// Lean compiler output
// Module: Lean.Elab.Macro
// Imports: Lean.Elab.MacroArgUtil
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__50;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__1;
lean_object* l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__3___closed__1;
lean_object* l_Lean_Syntax_mkNameLit(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__46;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__51;
lean_object* l_Lean_Elab_Command_mkNameFromParserSyntax___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__52;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__5;
lean_object* l_Lean_Elab_Command_getMainModule___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__32;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__18;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__53;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
lean_object* l_Lean_Syntax_getId(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__6;
lean_object* l_Lean_Syntax_getArgs(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_replaceRef(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__57;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__55;
lean_object* l_Lean_Elab_Command_elabCommand(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__19;
lean_object* l_Lean_addBuiltinDeclarationRanges(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkIdentFrom(lean_object*, lean_object*, uint8_t);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___boxed(lean_object**);
lean_object* l_Lean_Syntax_node5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__35;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__54;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__37;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__30;
static lean_object* l_Lean_Elab_Command_elabMacro___closed__4;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__56;
extern lean_object* l_Lean_Elab_Command_commandElabAttribute;
lean_object* l_Array_unzip___rarg(lean_object*);
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
lean_object* l_Lean_Syntax_node6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_addMacroScopeIfLocal___at_Lean_Elab_Command_elabSyntax___spec__12(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_getRef(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_object* l_Lean_quoteNameMk(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__42;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2(size_t, size_t, lean_object*);
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_append(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__34;
lean_object* l_Lean_Elab_Command_getCurrMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__38;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__6___closed__1;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__25;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__39;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
uint8_t l_Lean_Syntax_matchesNull(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__26;
lean_object* l_Lean_Elab_Command_getScope___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__33;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__40;
static lean_object* l_Lean_Elab_Command_elabMacro___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__41;
lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__8(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__6___closed__2;
lean_object* l_Array_append___rarg(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__31;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__24;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__4;
lean_object* l_Lean_evalOptPrio(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__8;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__21;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__7;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__6___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(lean_object*, lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__5;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__2;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__49;
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__23;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__3;
uint8_t l_Lean_Syntax_isNone(lean_object*);
lean_object* l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__3(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__3___closed__4;
static lean_object* l_Lean_Elab_Command_elabMacro___closed__2;
lean_object* l_Array_mkArray1___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__7___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__3___closed__2;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1(size_t, size_t, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_erase_macro_scopes(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
lean_object* l_String_intercalate(lean_object*, lean_object*);
lean_object* lean_array_mk(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro(lean_object*, lean_object*, lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__10;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__13;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_object* lean_array_uget(lean_object*, size_t);
size_t lean_array_size(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__48;
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__44;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__22;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__29;
lean_object* lean_array_get_size(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__36;
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__3___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
lean_object* l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_object* l_String_toSubstring_x27(lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
lean_object* l___private_Init_Data_Repr_0__Nat_reprFast(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__1;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__3___closed__3;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_object* l_Lean_Syntax_mkNumLit(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___closed__47;
static lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__2;
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Command_expandMacroArg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1(size_t x_1, size_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
uint8_t x_7; 
x_7 = lean_usize_dec_lt(x_2, x_1);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec(x_5);
lean_dec(x_4);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_6);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_array_uget(x_3, x_2);
x_10 = lean_unsigned_to_nat(0u);
x_11 = lean_array_uset(x_3, x_2, x_10);
lean_inc(x_5);
lean_inc(x_4);
x_12 = l_Lean_Elab_Command_expandMacroArg(x_9, x_4, x_5, x_6);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_12, 1);
lean_inc(x_14);
lean_dec(x_12);
x_15 = 1;
x_16 = lean_usize_add(x_2, x_15);
x_17 = lean_array_uset(x_11, x_2, x_13);
x_2 = x_16;
x_3 = x_17;
x_6 = x_14;
goto _start;
}
else
{
uint8_t x_19; 
lean_dec(x_11);
lean_dec(x_5);
lean_dec(x_4);
x_19 = !lean_is_exclusive(x_12);
if (x_19 == 0)
{
return x_12;
}
else
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; 
x_20 = lean_ctor_get(x_12, 0);
x_21 = lean_ctor_get(x_12, 1);
lean_inc(x_21);
lean_inc(x_20);
lean_dec(x_12);
x_22 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
return x_22;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = 1;
x_9 = lean_usize_add(x_2, x_8);
x_10 = lean_array_uset(x_7, x_2, x_5);
x_2 = x_9;
x_3 = x_10;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_4);
lean_ctor_set(x_8, 1, x_1);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_2);
lean_ctor_set(x_9, 1, x_8);
x_10 = lean_array_mk(x_9);
x_11 = lean_box(2);
x_12 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_3);
lean_ctor_set(x_12, 2, x_10);
x_13 = l_Lean_Elab_Command_elabCommand(x_12, x_5, x_6, x_7);
return x_13;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("macro_rules", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("matchAlts", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__8;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("matchAlt", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__10;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("|", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("quot", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__13;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`(", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(")", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("=>", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
x_2 = l_Array_append___rarg(x_1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__19;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Functor.map", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__21;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Functor", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("map", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__23;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__24;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("paren", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__26;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__29() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("explicit", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__29;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__31() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TSyntax.raw", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__32;
x_2 = l_String_toSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("TSyntax", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__35() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("raw", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__36() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__34;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__35;
x_3 = l_Lean_Name_mkStr2(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__34;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__35;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__38() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("quotedName", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__39() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__38;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__40() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__42() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("syntax", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__42;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__44() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("namedName", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__44;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__46() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("name", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__47() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":=", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__48() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("namedPrio", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__49() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__48;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__50() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("priority", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__51() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__52() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("precedence", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__53() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__52;
x_4 = l_Lean_Name_mkStr3(x_1, x_2, x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__54() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attributes", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__55() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__54;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__56() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("@[", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__57() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, size_t x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13, lean_object* x_14, lean_object* x_15, lean_object* x_16, lean_object* x_17, lean_object* x_18, lean_object* x_19) {
_start:
{
lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_573; uint8_t x_574; 
x_20 = l_Lean_Elab_Command_getScope___rarg(x_18, x_19);
x_21 = lean_ctor_get(x_20, 0);
lean_inc(x_21);
x_22 = lean_ctor_get(x_20, 1);
lean_inc(x_22);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 x_23 = x_20;
} else {
 lean_dec_ref(x_20);
 x_23 = lean_box(0);
}
x_24 = lean_ctor_get(x_21, 2);
lean_inc(x_24);
lean_dec(x_21);
lean_inc(x_16);
x_25 = l_Lean_Name_append(x_24, x_16);
x_26 = lean_box(2);
x_27 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_25);
lean_ctor_set(x_27, 2, x_1);
x_573 = l_Lean_Elab_Command_getRef(x_17, x_18, x_22);
x_574 = !lean_is_exclusive(x_573);
if (x_574 == 0)
{
lean_object* x_575; lean_object* x_576; uint8_t x_577; lean_object* x_578; lean_object* x_579; uint8_t x_580; 
x_575 = lean_ctor_get(x_573, 0);
x_576 = lean_ctor_get(x_573, 1);
x_577 = 0;
x_578 = l_Lean_SourceInfo_fromRef(x_575, x_577);
lean_dec(x_575);
x_579 = l_Lean_Elab_Command_getCurrMacroScope(x_17, x_18, x_576);
x_580 = !lean_is_exclusive(x_579);
if (x_580 == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; uint8_t x_584; 
x_581 = lean_ctor_get(x_579, 1);
x_582 = lean_ctor_get(x_579, 0);
lean_dec(x_582);
x_583 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_581);
x_584 = !lean_is_exclusive(x_583);
if (x_584 == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; size_t x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; 
x_585 = lean_ctor_get(x_583, 1);
x_586 = lean_ctor_get(x_583, 0);
lean_dec(x_586);
x_587 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__42;
lean_inc(x_578);
lean_ctor_set_tag(x_583, 2);
lean_ctor_set(x_583, 1, x_587);
lean_ctor_set(x_583, 0, x_578);
x_588 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_578);
lean_ctor_set_tag(x_579, 2);
lean_ctor_set(x_579, 1, x_588);
lean_ctor_set(x_579, 0, x_578);
x_589 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__46;
lean_inc(x_578);
lean_ctor_set_tag(x_573, 2);
lean_ctor_set(x_573, 1, x_589);
lean_ctor_set(x_573, 0, x_578);
x_590 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__47;
lean_inc(x_578);
x_591 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_591, 0, x_578);
lean_ctor_set(x_591, 1, x_590);
x_592 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_578);
x_593 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_593, 0, x_578);
lean_ctor_set(x_593, 1, x_592);
x_594 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__50;
lean_inc(x_578);
x_595 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_595, 0, x_578);
lean_ctor_set(x_595, 1, x_594);
x_596 = l___private_Init_Data_Repr_0__Nat_reprFast(x_8);
x_597 = l_Lean_Syntax_mkNumLit(x_596, x_26);
x_598 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__49;
lean_inc(x_593);
lean_inc(x_591);
lean_inc(x_579);
lean_inc(x_578);
x_599 = l_Lean_Syntax_node5(x_578, x_598, x_579, x_595, x_591, x_597, x_593);
lean_inc(x_3);
lean_inc(x_578);
x_600 = l_Lean_Syntax_node1(x_578, x_3, x_599);
x_601 = lean_array_size(x_9);
x_602 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2(x_601, x_10, x_9);
x_603 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
x_604 = l_Array_append___rarg(x_603, x_602);
lean_dec(x_602);
lean_inc(x_3);
lean_inc(x_578);
x_605 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_605, 0, x_578);
lean_ctor_set(x_605, 1, x_3);
lean_ctor_set(x_605, 2, x_604);
x_606 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__51;
lean_inc(x_578);
x_607 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_607, 0, x_578);
lean_ctor_set(x_607, 1, x_606);
lean_inc(x_2);
lean_inc(x_7);
x_608 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_608, 0, x_7);
lean_ctor_set(x_608, 1, x_2);
lean_inc(x_607);
x_609 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_608);
x_610 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_610, 0, x_605);
lean_ctor_set(x_610, 1, x_609);
x_611 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_611, 0, x_600);
lean_ctor_set(x_611, 1, x_610);
if (lean_obj_tag(x_6) == 0)
{
x_612 = x_603;
goto block_664;
}
else
{
lean_object* x_665; lean_object* x_666; 
x_665 = lean_ctor_get(x_6, 0);
lean_inc(x_665);
x_666 = l_Array_mkArray1___rarg(x_665);
x_612 = x_666;
goto block_664;
}
block_664:
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; 
x_613 = l_Array_append___rarg(x_603, x_612);
lean_dec(x_612);
lean_inc(x_3);
lean_inc(x_578);
x_614 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_614, 0, x_578);
lean_ctor_set(x_614, 1, x_3);
lean_ctor_set(x_614, 2, x_613);
if (lean_obj_tag(x_15) == 0)
{
x_615 = x_603;
goto block_653;
}
else
{
lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; 
x_654 = lean_ctor_get(x_15, 0);
x_655 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__56;
lean_inc(x_578);
x_656 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_656, 0, x_578);
lean_ctor_set(x_656, 1, x_655);
x_657 = l_Array_append___rarg(x_603, x_654);
lean_inc(x_3);
lean_inc(x_578);
x_658 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_658, 0, x_578);
lean_ctor_set(x_658, 1, x_3);
lean_ctor_set(x_658, 2, x_657);
x_659 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__57;
lean_inc(x_578);
x_660 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_660, 0, x_578);
lean_ctor_set(x_660, 1, x_659);
x_661 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__55;
lean_inc(x_578);
x_662 = l_Lean_Syntax_node3(x_578, x_661, x_656, x_658, x_660);
x_663 = l_Array_mkArray1___rarg(x_662);
x_615 = x_663;
goto block_653;
}
block_653:
{
lean_object* x_616; lean_object* x_617; lean_object* x_618; 
x_616 = l_Array_append___rarg(x_603, x_615);
lean_dec(x_615);
lean_inc(x_3);
lean_inc(x_578);
x_617 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_617, 0, x_578);
lean_ctor_set(x_617, 1, x_3);
lean_ctor_set(x_617, 2, x_616);
if (lean_obj_tag(x_14) == 0)
{
lean_dec(x_607);
x_618 = x_603;
goto block_648;
}
else
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_14, 0);
lean_inc(x_649);
lean_dec(x_14);
x_650 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__53;
lean_inc(x_578);
x_651 = l_Lean_Syntax_node2(x_578, x_650, x_607, x_649);
x_652 = l_Array_mkArray1___rarg(x_651);
x_618 = x_652;
goto block_648;
}
block_648:
{
lean_object* x_619; lean_object* x_620; 
x_619 = l_Array_append___rarg(x_603, x_618);
lean_dec(x_618);
lean_inc(x_3);
lean_inc(x_578);
x_620 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_620, 0, x_578);
lean_ctor_set(x_620, 1, x_3);
lean_ctor_set(x_620, 2, x_619);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; lean_object* x_634; 
x_621 = 1;
x_622 = l_Lean_mkIdentFrom(x_12, x_16, x_621);
x_623 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_578);
x_624 = l_Lean_Syntax_node5(x_578, x_623, x_579, x_573, x_591, x_622, x_593);
lean_inc(x_3);
lean_inc(x_578);
x_625 = l_Lean_Syntax_node1(x_578, x_3, x_624);
x_626 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_626, 0, x_625);
lean_ctor_set(x_626, 1, x_611);
x_627 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_627, 0, x_620);
lean_ctor_set(x_627, 1, x_626);
x_628 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_628, 0, x_583);
lean_ctor_set(x_628, 1, x_627);
x_629 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_629, 0, x_13);
lean_ctor_set(x_629, 1, x_628);
x_630 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_630, 0, x_617);
lean_ctor_set(x_630, 1, x_629);
x_631 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_631, 0, x_614);
lean_ctor_set(x_631, 1, x_630);
x_632 = lean_array_mk(x_631);
x_633 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_634 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_634, 0, x_578);
lean_ctor_set(x_634, 1, x_633);
lean_ctor_set(x_634, 2, x_632);
x_28 = x_634;
x_29 = x_585;
goto block_572;
}
else
{
lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; 
lean_dec(x_16);
x_635 = lean_ctor_get(x_11, 0);
lean_inc(x_635);
lean_dec(x_11);
x_636 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_578);
x_637 = l_Lean_Syntax_node5(x_578, x_636, x_579, x_573, x_591, x_635, x_593);
lean_inc(x_3);
lean_inc(x_578);
x_638 = l_Lean_Syntax_node1(x_578, x_3, x_637);
x_639 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_611);
x_640 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_640, 0, x_620);
lean_ctor_set(x_640, 1, x_639);
x_641 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_641, 0, x_583);
lean_ctor_set(x_641, 1, x_640);
x_642 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_642, 0, x_13);
lean_ctor_set(x_642, 1, x_641);
x_643 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_643, 0, x_617);
lean_ctor_set(x_643, 1, x_642);
x_644 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_644, 0, x_614);
lean_ctor_set(x_644, 1, x_643);
x_645 = lean_array_mk(x_644);
x_646 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_647 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_647, 0, x_578);
lean_ctor_set(x_647, 1, x_646);
lean_ctor_set(x_647, 2, x_645);
x_28 = x_647;
x_29 = x_585;
goto block_572;
}
}
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; size_t x_683; lean_object* x_684; lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; 
x_667 = lean_ctor_get(x_583, 1);
lean_inc(x_667);
lean_dec(x_583);
x_668 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__42;
lean_inc(x_578);
x_669 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_669, 0, x_578);
lean_ctor_set(x_669, 1, x_668);
x_670 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_578);
lean_ctor_set_tag(x_579, 2);
lean_ctor_set(x_579, 1, x_670);
lean_ctor_set(x_579, 0, x_578);
x_671 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__46;
lean_inc(x_578);
lean_ctor_set_tag(x_573, 2);
lean_ctor_set(x_573, 1, x_671);
lean_ctor_set(x_573, 0, x_578);
x_672 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__47;
lean_inc(x_578);
x_673 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_673, 0, x_578);
lean_ctor_set(x_673, 1, x_672);
x_674 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_578);
x_675 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_675, 0, x_578);
lean_ctor_set(x_675, 1, x_674);
x_676 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__50;
lean_inc(x_578);
x_677 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_677, 0, x_578);
lean_ctor_set(x_677, 1, x_676);
x_678 = l___private_Init_Data_Repr_0__Nat_reprFast(x_8);
x_679 = l_Lean_Syntax_mkNumLit(x_678, x_26);
x_680 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__49;
lean_inc(x_675);
lean_inc(x_673);
lean_inc(x_579);
lean_inc(x_578);
x_681 = l_Lean_Syntax_node5(x_578, x_680, x_579, x_677, x_673, x_679, x_675);
lean_inc(x_3);
lean_inc(x_578);
x_682 = l_Lean_Syntax_node1(x_578, x_3, x_681);
x_683 = lean_array_size(x_9);
x_684 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2(x_683, x_10, x_9);
x_685 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
x_686 = l_Array_append___rarg(x_685, x_684);
lean_dec(x_684);
lean_inc(x_3);
lean_inc(x_578);
x_687 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_687, 0, x_578);
lean_ctor_set(x_687, 1, x_3);
lean_ctor_set(x_687, 2, x_686);
x_688 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__51;
lean_inc(x_578);
x_689 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_689, 0, x_578);
lean_ctor_set(x_689, 1, x_688);
lean_inc(x_2);
lean_inc(x_7);
x_690 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_690, 0, x_7);
lean_ctor_set(x_690, 1, x_2);
lean_inc(x_689);
x_691 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_691, 0, x_689);
lean_ctor_set(x_691, 1, x_690);
x_692 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_692, 0, x_687);
lean_ctor_set(x_692, 1, x_691);
x_693 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_693, 0, x_682);
lean_ctor_set(x_693, 1, x_692);
if (lean_obj_tag(x_6) == 0)
{
x_694 = x_685;
goto block_746;
}
else
{
lean_object* x_747; lean_object* x_748; 
x_747 = lean_ctor_get(x_6, 0);
lean_inc(x_747);
x_748 = l_Array_mkArray1___rarg(x_747);
x_694 = x_748;
goto block_746;
}
block_746:
{
lean_object* x_695; lean_object* x_696; lean_object* x_697; 
x_695 = l_Array_append___rarg(x_685, x_694);
lean_dec(x_694);
lean_inc(x_3);
lean_inc(x_578);
x_696 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_696, 0, x_578);
lean_ctor_set(x_696, 1, x_3);
lean_ctor_set(x_696, 2, x_695);
if (lean_obj_tag(x_15) == 0)
{
x_697 = x_685;
goto block_735;
}
else
{
lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; lean_object* x_745; 
x_736 = lean_ctor_get(x_15, 0);
x_737 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__56;
lean_inc(x_578);
x_738 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_738, 0, x_578);
lean_ctor_set(x_738, 1, x_737);
x_739 = l_Array_append___rarg(x_685, x_736);
lean_inc(x_3);
lean_inc(x_578);
x_740 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_740, 0, x_578);
lean_ctor_set(x_740, 1, x_3);
lean_ctor_set(x_740, 2, x_739);
x_741 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__57;
lean_inc(x_578);
x_742 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_742, 0, x_578);
lean_ctor_set(x_742, 1, x_741);
x_743 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__55;
lean_inc(x_578);
x_744 = l_Lean_Syntax_node3(x_578, x_743, x_738, x_740, x_742);
x_745 = l_Array_mkArray1___rarg(x_744);
x_697 = x_745;
goto block_735;
}
block_735:
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; 
x_698 = l_Array_append___rarg(x_685, x_697);
lean_dec(x_697);
lean_inc(x_3);
lean_inc(x_578);
x_699 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_699, 0, x_578);
lean_ctor_set(x_699, 1, x_3);
lean_ctor_set(x_699, 2, x_698);
if (lean_obj_tag(x_14) == 0)
{
lean_dec(x_689);
x_700 = x_685;
goto block_730;
}
else
{
lean_object* x_731; lean_object* x_732; lean_object* x_733; lean_object* x_734; 
x_731 = lean_ctor_get(x_14, 0);
lean_inc(x_731);
lean_dec(x_14);
x_732 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__53;
lean_inc(x_578);
x_733 = l_Lean_Syntax_node2(x_578, x_732, x_689, x_731);
x_734 = l_Array_mkArray1___rarg(x_733);
x_700 = x_734;
goto block_730;
}
block_730:
{
lean_object* x_701; lean_object* x_702; 
x_701 = l_Array_append___rarg(x_685, x_700);
lean_dec(x_700);
lean_inc(x_3);
lean_inc(x_578);
x_702 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_702, 0, x_578);
lean_ctor_set(x_702, 1, x_3);
lean_ctor_set(x_702, 2, x_701);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; 
x_703 = 1;
x_704 = l_Lean_mkIdentFrom(x_12, x_16, x_703);
x_705 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_578);
x_706 = l_Lean_Syntax_node5(x_578, x_705, x_579, x_573, x_673, x_704, x_675);
lean_inc(x_3);
lean_inc(x_578);
x_707 = l_Lean_Syntax_node1(x_578, x_3, x_706);
x_708 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_693);
x_709 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_709, 0, x_702);
lean_ctor_set(x_709, 1, x_708);
x_710 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_710, 0, x_669);
lean_ctor_set(x_710, 1, x_709);
x_711 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_711, 0, x_13);
lean_ctor_set(x_711, 1, x_710);
x_712 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_712, 0, x_699);
lean_ctor_set(x_712, 1, x_711);
x_713 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_713, 0, x_696);
lean_ctor_set(x_713, 1, x_712);
x_714 = lean_array_mk(x_713);
x_715 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_716 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_716, 0, x_578);
lean_ctor_set(x_716, 1, x_715);
lean_ctor_set(x_716, 2, x_714);
x_28 = x_716;
x_29 = x_667;
goto block_572;
}
else
{
lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; lean_object* x_722; lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; 
lean_dec(x_16);
x_717 = lean_ctor_get(x_11, 0);
lean_inc(x_717);
lean_dec(x_11);
x_718 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_578);
x_719 = l_Lean_Syntax_node5(x_578, x_718, x_579, x_573, x_673, x_717, x_675);
lean_inc(x_3);
lean_inc(x_578);
x_720 = l_Lean_Syntax_node1(x_578, x_3, x_719);
x_721 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_721, 0, x_720);
lean_ctor_set(x_721, 1, x_693);
x_722 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_722, 0, x_702);
lean_ctor_set(x_722, 1, x_721);
x_723 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_723, 0, x_669);
lean_ctor_set(x_723, 1, x_722);
x_724 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_724, 0, x_13);
lean_ctor_set(x_724, 1, x_723);
x_725 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_725, 0, x_699);
lean_ctor_set(x_725, 1, x_724);
x_726 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_726, 0, x_696);
lean_ctor_set(x_726, 1, x_725);
x_727 = lean_array_mk(x_726);
x_728 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_729 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_729, 0, x_578);
lean_ctor_set(x_729, 1, x_728);
lean_ctor_set(x_729, 2, x_727);
x_28 = x_729;
x_29 = x_667;
goto block_572;
}
}
}
}
}
}
else
{
lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; lean_object* x_768; size_t x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; 
x_749 = lean_ctor_get(x_579, 1);
lean_inc(x_749);
lean_dec(x_579);
x_750 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_749);
x_751 = lean_ctor_get(x_750, 1);
lean_inc(x_751);
if (lean_is_exclusive(x_750)) {
 lean_ctor_release(x_750, 0);
 lean_ctor_release(x_750, 1);
 x_752 = x_750;
} else {
 lean_dec_ref(x_750);
 x_752 = lean_box(0);
}
x_753 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__42;
lean_inc(x_578);
if (lean_is_scalar(x_752)) {
 x_754 = lean_alloc_ctor(2, 2, 0);
} else {
 x_754 = x_752;
 lean_ctor_set_tag(x_754, 2);
}
lean_ctor_set(x_754, 0, x_578);
lean_ctor_set(x_754, 1, x_753);
x_755 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_578);
x_756 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_756, 0, x_578);
lean_ctor_set(x_756, 1, x_755);
x_757 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__46;
lean_inc(x_578);
lean_ctor_set_tag(x_573, 2);
lean_ctor_set(x_573, 1, x_757);
lean_ctor_set(x_573, 0, x_578);
x_758 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__47;
lean_inc(x_578);
x_759 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_759, 0, x_578);
lean_ctor_set(x_759, 1, x_758);
x_760 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_578);
x_761 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_761, 0, x_578);
lean_ctor_set(x_761, 1, x_760);
x_762 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__50;
lean_inc(x_578);
x_763 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_763, 0, x_578);
lean_ctor_set(x_763, 1, x_762);
x_764 = l___private_Init_Data_Repr_0__Nat_reprFast(x_8);
x_765 = l_Lean_Syntax_mkNumLit(x_764, x_26);
x_766 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__49;
lean_inc(x_761);
lean_inc(x_759);
lean_inc(x_756);
lean_inc(x_578);
x_767 = l_Lean_Syntax_node5(x_578, x_766, x_756, x_763, x_759, x_765, x_761);
lean_inc(x_3);
lean_inc(x_578);
x_768 = l_Lean_Syntax_node1(x_578, x_3, x_767);
x_769 = lean_array_size(x_9);
x_770 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2(x_769, x_10, x_9);
x_771 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
x_772 = l_Array_append___rarg(x_771, x_770);
lean_dec(x_770);
lean_inc(x_3);
lean_inc(x_578);
x_773 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_773, 0, x_578);
lean_ctor_set(x_773, 1, x_3);
lean_ctor_set(x_773, 2, x_772);
x_774 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__51;
lean_inc(x_578);
x_775 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_775, 0, x_578);
lean_ctor_set(x_775, 1, x_774);
lean_inc(x_2);
lean_inc(x_7);
x_776 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_776, 0, x_7);
lean_ctor_set(x_776, 1, x_2);
lean_inc(x_775);
x_777 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_777, 0, x_775);
lean_ctor_set(x_777, 1, x_776);
x_778 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_778, 0, x_773);
lean_ctor_set(x_778, 1, x_777);
x_779 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_779, 0, x_768);
lean_ctor_set(x_779, 1, x_778);
if (lean_obj_tag(x_6) == 0)
{
x_780 = x_771;
goto block_832;
}
else
{
lean_object* x_833; lean_object* x_834; 
x_833 = lean_ctor_get(x_6, 0);
lean_inc(x_833);
x_834 = l_Array_mkArray1___rarg(x_833);
x_780 = x_834;
goto block_832;
}
block_832:
{
lean_object* x_781; lean_object* x_782; lean_object* x_783; 
x_781 = l_Array_append___rarg(x_771, x_780);
lean_dec(x_780);
lean_inc(x_3);
lean_inc(x_578);
x_782 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_782, 0, x_578);
lean_ctor_set(x_782, 1, x_3);
lean_ctor_set(x_782, 2, x_781);
if (lean_obj_tag(x_15) == 0)
{
x_783 = x_771;
goto block_821;
}
else
{
lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; 
x_822 = lean_ctor_get(x_15, 0);
x_823 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__56;
lean_inc(x_578);
x_824 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_824, 0, x_578);
lean_ctor_set(x_824, 1, x_823);
x_825 = l_Array_append___rarg(x_771, x_822);
lean_inc(x_3);
lean_inc(x_578);
x_826 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_826, 0, x_578);
lean_ctor_set(x_826, 1, x_3);
lean_ctor_set(x_826, 2, x_825);
x_827 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__57;
lean_inc(x_578);
x_828 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_828, 0, x_578);
lean_ctor_set(x_828, 1, x_827);
x_829 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__55;
lean_inc(x_578);
x_830 = l_Lean_Syntax_node3(x_578, x_829, x_824, x_826, x_828);
x_831 = l_Array_mkArray1___rarg(x_830);
x_783 = x_831;
goto block_821;
}
block_821:
{
lean_object* x_784; lean_object* x_785; lean_object* x_786; 
x_784 = l_Array_append___rarg(x_771, x_783);
lean_dec(x_783);
lean_inc(x_3);
lean_inc(x_578);
x_785 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_785, 0, x_578);
lean_ctor_set(x_785, 1, x_3);
lean_ctor_set(x_785, 2, x_784);
if (lean_obj_tag(x_14) == 0)
{
lean_dec(x_775);
x_786 = x_771;
goto block_816;
}
else
{
lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; 
x_817 = lean_ctor_get(x_14, 0);
lean_inc(x_817);
lean_dec(x_14);
x_818 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__53;
lean_inc(x_578);
x_819 = l_Lean_Syntax_node2(x_578, x_818, x_775, x_817);
x_820 = l_Array_mkArray1___rarg(x_819);
x_786 = x_820;
goto block_816;
}
block_816:
{
lean_object* x_787; lean_object* x_788; 
x_787 = l_Array_append___rarg(x_771, x_786);
lean_dec(x_786);
lean_inc(x_3);
lean_inc(x_578);
x_788 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_788, 0, x_578);
lean_ctor_set(x_788, 1, x_3);
lean_ctor_set(x_788, 2, x_787);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; 
x_789 = 1;
x_790 = l_Lean_mkIdentFrom(x_12, x_16, x_789);
x_791 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_578);
x_792 = l_Lean_Syntax_node5(x_578, x_791, x_756, x_573, x_759, x_790, x_761);
lean_inc(x_3);
lean_inc(x_578);
x_793 = l_Lean_Syntax_node1(x_578, x_3, x_792);
x_794 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_794, 0, x_793);
lean_ctor_set(x_794, 1, x_779);
x_795 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_795, 0, x_788);
lean_ctor_set(x_795, 1, x_794);
x_796 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_796, 0, x_754);
lean_ctor_set(x_796, 1, x_795);
x_797 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_797, 0, x_13);
lean_ctor_set(x_797, 1, x_796);
x_798 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_798, 0, x_785);
lean_ctor_set(x_798, 1, x_797);
x_799 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_799, 0, x_782);
lean_ctor_set(x_799, 1, x_798);
x_800 = lean_array_mk(x_799);
x_801 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_802 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_802, 0, x_578);
lean_ctor_set(x_802, 1, x_801);
lean_ctor_set(x_802, 2, x_800);
x_28 = x_802;
x_29 = x_751;
goto block_572;
}
else
{
lean_object* x_803; lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; 
lean_dec(x_16);
x_803 = lean_ctor_get(x_11, 0);
lean_inc(x_803);
lean_dec(x_11);
x_804 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_578);
x_805 = l_Lean_Syntax_node5(x_578, x_804, x_756, x_573, x_759, x_803, x_761);
lean_inc(x_3);
lean_inc(x_578);
x_806 = l_Lean_Syntax_node1(x_578, x_3, x_805);
x_807 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_807, 0, x_806);
lean_ctor_set(x_807, 1, x_779);
x_808 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_808, 0, x_788);
lean_ctor_set(x_808, 1, x_807);
x_809 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_809, 0, x_754);
lean_ctor_set(x_809, 1, x_808);
x_810 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_810, 0, x_13);
lean_ctor_set(x_810, 1, x_809);
x_811 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_811, 0, x_785);
lean_ctor_set(x_811, 1, x_810);
x_812 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_812, 0, x_782);
lean_ctor_set(x_812, 1, x_811);
x_813 = lean_array_mk(x_812);
x_814 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_815 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_815, 0, x_578);
lean_ctor_set(x_815, 1, x_814);
lean_ctor_set(x_815, 2, x_813);
x_28 = x_815;
x_29 = x_751;
goto block_572;
}
}
}
}
}
}
else
{
lean_object* x_835; lean_object* x_836; uint8_t x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; size_t x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; 
x_835 = lean_ctor_get(x_573, 0);
x_836 = lean_ctor_get(x_573, 1);
lean_inc(x_836);
lean_inc(x_835);
lean_dec(x_573);
x_837 = 0;
x_838 = l_Lean_SourceInfo_fromRef(x_835, x_837);
lean_dec(x_835);
x_839 = l_Lean_Elab_Command_getCurrMacroScope(x_17, x_18, x_836);
x_840 = lean_ctor_get(x_839, 1);
lean_inc(x_840);
if (lean_is_exclusive(x_839)) {
 lean_ctor_release(x_839, 0);
 lean_ctor_release(x_839, 1);
 x_841 = x_839;
} else {
 lean_dec_ref(x_839);
 x_841 = lean_box(0);
}
x_842 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_840);
x_843 = lean_ctor_get(x_842, 1);
lean_inc(x_843);
if (lean_is_exclusive(x_842)) {
 lean_ctor_release(x_842, 0);
 lean_ctor_release(x_842, 1);
 x_844 = x_842;
} else {
 lean_dec_ref(x_842);
 x_844 = lean_box(0);
}
x_845 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__42;
lean_inc(x_838);
if (lean_is_scalar(x_844)) {
 x_846 = lean_alloc_ctor(2, 2, 0);
} else {
 x_846 = x_844;
 lean_ctor_set_tag(x_846, 2);
}
lean_ctor_set(x_846, 0, x_838);
lean_ctor_set(x_846, 1, x_845);
x_847 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_838);
if (lean_is_scalar(x_841)) {
 x_848 = lean_alloc_ctor(2, 2, 0);
} else {
 x_848 = x_841;
 lean_ctor_set_tag(x_848, 2);
}
lean_ctor_set(x_848, 0, x_838);
lean_ctor_set(x_848, 1, x_847);
x_849 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__46;
lean_inc(x_838);
x_850 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_850, 0, x_838);
lean_ctor_set(x_850, 1, x_849);
x_851 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__47;
lean_inc(x_838);
x_852 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_852, 0, x_838);
lean_ctor_set(x_852, 1, x_851);
x_853 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_838);
x_854 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_854, 0, x_838);
lean_ctor_set(x_854, 1, x_853);
x_855 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__50;
lean_inc(x_838);
x_856 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_856, 0, x_838);
lean_ctor_set(x_856, 1, x_855);
x_857 = l___private_Init_Data_Repr_0__Nat_reprFast(x_8);
x_858 = l_Lean_Syntax_mkNumLit(x_857, x_26);
x_859 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__49;
lean_inc(x_854);
lean_inc(x_852);
lean_inc(x_848);
lean_inc(x_838);
x_860 = l_Lean_Syntax_node5(x_838, x_859, x_848, x_856, x_852, x_858, x_854);
lean_inc(x_3);
lean_inc(x_838);
x_861 = l_Lean_Syntax_node1(x_838, x_3, x_860);
x_862 = lean_array_size(x_9);
x_863 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2(x_862, x_10, x_9);
x_864 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
x_865 = l_Array_append___rarg(x_864, x_863);
lean_dec(x_863);
lean_inc(x_3);
lean_inc(x_838);
x_866 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_866, 0, x_838);
lean_ctor_set(x_866, 1, x_3);
lean_ctor_set(x_866, 2, x_865);
x_867 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__51;
lean_inc(x_838);
x_868 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_868, 0, x_838);
lean_ctor_set(x_868, 1, x_867);
lean_inc(x_2);
lean_inc(x_7);
x_869 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_869, 0, x_7);
lean_ctor_set(x_869, 1, x_2);
lean_inc(x_868);
x_870 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_870, 0, x_868);
lean_ctor_set(x_870, 1, x_869);
x_871 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_871, 0, x_866);
lean_ctor_set(x_871, 1, x_870);
x_872 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_872, 0, x_861);
lean_ctor_set(x_872, 1, x_871);
if (lean_obj_tag(x_6) == 0)
{
x_873 = x_864;
goto block_925;
}
else
{
lean_object* x_926; lean_object* x_927; 
x_926 = lean_ctor_get(x_6, 0);
lean_inc(x_926);
x_927 = l_Array_mkArray1___rarg(x_926);
x_873 = x_927;
goto block_925;
}
block_925:
{
lean_object* x_874; lean_object* x_875; lean_object* x_876; 
x_874 = l_Array_append___rarg(x_864, x_873);
lean_dec(x_873);
lean_inc(x_3);
lean_inc(x_838);
x_875 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_875, 0, x_838);
lean_ctor_set(x_875, 1, x_3);
lean_ctor_set(x_875, 2, x_874);
if (lean_obj_tag(x_15) == 0)
{
x_876 = x_864;
goto block_914;
}
else
{
lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; 
x_915 = lean_ctor_get(x_15, 0);
x_916 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__56;
lean_inc(x_838);
x_917 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_917, 0, x_838);
lean_ctor_set(x_917, 1, x_916);
x_918 = l_Array_append___rarg(x_864, x_915);
lean_inc(x_3);
lean_inc(x_838);
x_919 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_919, 0, x_838);
lean_ctor_set(x_919, 1, x_3);
lean_ctor_set(x_919, 2, x_918);
x_920 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__57;
lean_inc(x_838);
x_921 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_921, 0, x_838);
lean_ctor_set(x_921, 1, x_920);
x_922 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__55;
lean_inc(x_838);
x_923 = l_Lean_Syntax_node3(x_838, x_922, x_917, x_919, x_921);
x_924 = l_Array_mkArray1___rarg(x_923);
x_876 = x_924;
goto block_914;
}
block_914:
{
lean_object* x_877; lean_object* x_878; lean_object* x_879; 
x_877 = l_Array_append___rarg(x_864, x_876);
lean_dec(x_876);
lean_inc(x_3);
lean_inc(x_838);
x_878 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_878, 0, x_838);
lean_ctor_set(x_878, 1, x_3);
lean_ctor_set(x_878, 2, x_877);
if (lean_obj_tag(x_14) == 0)
{
lean_dec(x_868);
x_879 = x_864;
goto block_909;
}
else
{
lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; 
x_910 = lean_ctor_get(x_14, 0);
lean_inc(x_910);
lean_dec(x_14);
x_911 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__53;
lean_inc(x_838);
x_912 = l_Lean_Syntax_node2(x_838, x_911, x_868, x_910);
x_913 = l_Array_mkArray1___rarg(x_912);
x_879 = x_913;
goto block_909;
}
block_909:
{
lean_object* x_880; lean_object* x_881; 
x_880 = l_Array_append___rarg(x_864, x_879);
lean_dec(x_879);
lean_inc(x_3);
lean_inc(x_838);
x_881 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_881, 0, x_838);
lean_ctor_set(x_881, 1, x_3);
lean_ctor_set(x_881, 2, x_880);
if (lean_obj_tag(x_11) == 0)
{
uint8_t x_882; lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; 
x_882 = 1;
x_883 = l_Lean_mkIdentFrom(x_12, x_16, x_882);
x_884 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_838);
x_885 = l_Lean_Syntax_node5(x_838, x_884, x_848, x_850, x_852, x_883, x_854);
lean_inc(x_3);
lean_inc(x_838);
x_886 = l_Lean_Syntax_node1(x_838, x_3, x_885);
x_887 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_887, 0, x_886);
lean_ctor_set(x_887, 1, x_872);
x_888 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_888, 0, x_881);
lean_ctor_set(x_888, 1, x_887);
x_889 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_889, 0, x_846);
lean_ctor_set(x_889, 1, x_888);
x_890 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_890, 0, x_13);
lean_ctor_set(x_890, 1, x_889);
x_891 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_891, 0, x_878);
lean_ctor_set(x_891, 1, x_890);
x_892 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_892, 0, x_875);
lean_ctor_set(x_892, 1, x_891);
x_893 = lean_array_mk(x_892);
x_894 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_895 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_895, 0, x_838);
lean_ctor_set(x_895, 1, x_894);
lean_ctor_set(x_895, 2, x_893);
x_28 = x_895;
x_29 = x_843;
goto block_572;
}
else
{
lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; 
lean_dec(x_16);
x_896 = lean_ctor_get(x_11, 0);
lean_inc(x_896);
lean_dec(x_11);
x_897 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_838);
x_898 = l_Lean_Syntax_node5(x_838, x_897, x_848, x_850, x_852, x_896, x_854);
lean_inc(x_3);
lean_inc(x_838);
x_899 = l_Lean_Syntax_node1(x_838, x_3, x_898);
x_900 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_900, 0, x_899);
lean_ctor_set(x_900, 1, x_872);
x_901 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_901, 0, x_881);
lean_ctor_set(x_901, 1, x_900);
x_902 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_902, 0, x_846);
lean_ctor_set(x_902, 1, x_901);
x_903 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_903, 0, x_13);
lean_ctor_set(x_903, 1, x_902);
x_904 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_904, 0, x_878);
lean_ctor_set(x_904, 1, x_903);
x_905 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_905, 0, x_875);
lean_ctor_set(x_905, 1, x_904);
x_906 = lean_array_mk(x_905);
x_907 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__43;
x_908 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_908, 0, x_838);
lean_ctor_set(x_908, 1, x_907);
lean_ctor_set(x_908, 2, x_906);
x_28 = x_908;
x_29 = x_843;
goto block_572;
}
}
}
}
}
block_572:
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
x_30 = l_Lean_Syntax_getArgs(x_4);
x_31 = lean_array_get_size(x_30);
lean_dec(x_30);
x_32 = lean_unsigned_to_nat(1u);
x_33 = lean_nat_dec_eq(x_31, x_32);
lean_dec(x_31);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; uint8_t x_36; 
lean_dec(x_7);
x_34 = l_Lean_Syntax_getArg(x_4, x_32);
x_35 = l_Lean_Elab_Command_getRef(x_17, x_18, x_29);
x_36 = !lean_is_exclusive(x_35);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; uint8_t x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; 
x_37 = lean_ctor_get(x_35, 0);
x_38 = lean_ctor_get(x_35, 1);
x_39 = 0;
x_40 = l_Lean_SourceInfo_fromRef(x_37, x_39);
lean_dec(x_37);
x_41 = l_Lean_Elab_Command_getCurrMacroScope(x_17, x_18, x_38);
x_42 = !lean_is_exclusive(x_41);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; 
x_43 = lean_ctor_get(x_41, 1);
x_44 = lean_ctor_get(x_41, 0);
lean_dec(x_44);
x_45 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_43);
x_46 = !lean_is_exclusive(x_45);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_47 = lean_ctor_get(x_45, 1);
x_48 = lean_ctor_get(x_45, 0);
lean_dec(x_48);
x_49 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_40);
x_50 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_50, 0, x_40);
lean_ctor_set(x_50, 1, x_3);
lean_ctor_set(x_50, 2, x_49);
lean_inc(x_50);
lean_inc(x_40);
x_51 = l_Lean_Syntax_node1(x_40, x_5, x_50);
x_52 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_40);
lean_ctor_set_tag(x_45, 2);
lean_ctor_set(x_45, 1, x_52);
lean_ctor_set(x_45, 0, x_40);
x_53 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_40);
lean_ctor_set_tag(x_41, 2);
lean_ctor_set(x_41, 1, x_53);
lean_ctor_set(x_41, 0, x_40);
x_54 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_40);
lean_ctor_set_tag(x_35, 2);
lean_ctor_set(x_35, 1, x_54);
lean_ctor_set(x_35, 0, x_40);
x_55 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_40);
if (lean_is_scalar(x_23)) {
 x_56 = lean_alloc_ctor(2, 2, 0);
} else {
 x_56 = x_23;
 lean_ctor_set_tag(x_56, 2);
}
lean_ctor_set(x_56, 0, x_40);
lean_ctor_set(x_56, 1, x_55);
x_57 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_56);
lean_inc(x_35);
lean_inc(x_40);
x_58 = l_Lean_Syntax_node3(x_40, x_57, x_35, x_27, x_56);
lean_inc(x_3);
lean_inc(x_40);
x_59 = l_Lean_Syntax_node1(x_40, x_3, x_58);
lean_inc(x_3);
lean_inc(x_40);
x_60 = l_Lean_Syntax_node1(x_40, x_3, x_59);
x_61 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_40);
x_62 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_62, 0, x_40);
lean_ctor_set(x_62, 1, x_61);
lean_inc(x_40);
x_63 = l_Lean_Syntax_node3(x_40, x_57, x_35, x_34, x_56);
x_64 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_40);
x_65 = l_Lean_Syntax_node4(x_40, x_64, x_41, x_60, x_62, x_63);
lean_inc(x_3);
lean_inc(x_40);
x_66 = l_Lean_Syntax_node1(x_40, x_3, x_65);
x_67 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_40);
x_68 = l_Lean_Syntax_node1(x_40, x_67, x_66);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_69 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__18;
lean_inc(x_3);
lean_inc(x_40);
x_70 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_70, 0, x_40);
lean_ctor_set(x_70, 1, x_3);
lean_ctor_set(x_70, 2, x_69);
x_71 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_50);
x_72 = l_Lean_Syntax_node6(x_40, x_71, x_70, x_50, x_51, x_45, x_50, x_68);
x_73 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_72, x_17, x_18, x_47);
return x_73;
}
else
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; 
x_74 = lean_ctor_get(x_6, 0);
lean_inc(x_74);
lean_dec(x_6);
x_75 = l_Array_mkArray1___rarg(x_74);
x_76 = l_Array_append___rarg(x_49, x_75);
lean_dec(x_75);
lean_inc(x_3);
lean_inc(x_40);
x_77 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_77, 0, x_40);
lean_ctor_set(x_77, 1, x_3);
lean_ctor_set(x_77, 2, x_76);
x_78 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_50);
x_79 = l_Lean_Syntax_node6(x_40, x_78, x_77, x_50, x_51, x_45, x_50, x_68);
x_80 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_79, x_17, x_18, x_47);
return x_80;
}
}
else
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; 
x_81 = lean_ctor_get(x_45, 1);
lean_inc(x_81);
lean_dec(x_45);
x_82 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_40);
x_83 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_83, 0, x_40);
lean_ctor_set(x_83, 1, x_3);
lean_ctor_set(x_83, 2, x_82);
lean_inc(x_83);
lean_inc(x_40);
x_84 = l_Lean_Syntax_node1(x_40, x_5, x_83);
x_85 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_40);
x_86 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_86, 0, x_40);
lean_ctor_set(x_86, 1, x_85);
x_87 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_40);
lean_ctor_set_tag(x_41, 2);
lean_ctor_set(x_41, 1, x_87);
lean_ctor_set(x_41, 0, x_40);
x_88 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_40);
lean_ctor_set_tag(x_35, 2);
lean_ctor_set(x_35, 1, x_88);
lean_ctor_set(x_35, 0, x_40);
x_89 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_40);
if (lean_is_scalar(x_23)) {
 x_90 = lean_alloc_ctor(2, 2, 0);
} else {
 x_90 = x_23;
 lean_ctor_set_tag(x_90, 2);
}
lean_ctor_set(x_90, 0, x_40);
lean_ctor_set(x_90, 1, x_89);
x_91 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_90);
lean_inc(x_35);
lean_inc(x_40);
x_92 = l_Lean_Syntax_node3(x_40, x_91, x_35, x_27, x_90);
lean_inc(x_3);
lean_inc(x_40);
x_93 = l_Lean_Syntax_node1(x_40, x_3, x_92);
lean_inc(x_3);
lean_inc(x_40);
x_94 = l_Lean_Syntax_node1(x_40, x_3, x_93);
x_95 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_40);
x_96 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_96, 0, x_40);
lean_ctor_set(x_96, 1, x_95);
lean_inc(x_40);
x_97 = l_Lean_Syntax_node3(x_40, x_91, x_35, x_34, x_90);
x_98 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_40);
x_99 = l_Lean_Syntax_node4(x_40, x_98, x_41, x_94, x_96, x_97);
lean_inc(x_3);
lean_inc(x_40);
x_100 = l_Lean_Syntax_node1(x_40, x_3, x_99);
x_101 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_40);
x_102 = l_Lean_Syntax_node1(x_40, x_101, x_100);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_103 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__18;
lean_inc(x_3);
lean_inc(x_40);
x_104 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_104, 0, x_40);
lean_ctor_set(x_104, 1, x_3);
lean_ctor_set(x_104, 2, x_103);
x_105 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_83);
x_106 = l_Lean_Syntax_node6(x_40, x_105, x_104, x_83, x_84, x_86, x_83, x_102);
x_107 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_106, x_17, x_18, x_81);
return x_107;
}
else
{
lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; 
x_108 = lean_ctor_get(x_6, 0);
lean_inc(x_108);
lean_dec(x_6);
x_109 = l_Array_mkArray1___rarg(x_108);
x_110 = l_Array_append___rarg(x_82, x_109);
lean_dec(x_109);
lean_inc(x_3);
lean_inc(x_40);
x_111 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_111, 0, x_40);
lean_ctor_set(x_111, 1, x_3);
lean_ctor_set(x_111, 2, x_110);
x_112 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_83);
x_113 = l_Lean_Syntax_node6(x_40, x_112, x_111, x_83, x_84, x_86, x_83, x_102);
x_114 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_113, x_17, x_18, x_81);
return x_114;
}
}
}
else
{
lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_115 = lean_ctor_get(x_41, 1);
lean_inc(x_115);
lean_dec(x_41);
x_116 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_115);
x_117 = lean_ctor_get(x_116, 1);
lean_inc(x_117);
if (lean_is_exclusive(x_116)) {
 lean_ctor_release(x_116, 0);
 lean_ctor_release(x_116, 1);
 x_118 = x_116;
} else {
 lean_dec_ref(x_116);
 x_118 = lean_box(0);
}
x_119 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_40);
x_120 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_120, 0, x_40);
lean_ctor_set(x_120, 1, x_3);
lean_ctor_set(x_120, 2, x_119);
lean_inc(x_120);
lean_inc(x_40);
x_121 = l_Lean_Syntax_node1(x_40, x_5, x_120);
x_122 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_40);
if (lean_is_scalar(x_118)) {
 x_123 = lean_alloc_ctor(2, 2, 0);
} else {
 x_123 = x_118;
 lean_ctor_set_tag(x_123, 2);
}
lean_ctor_set(x_123, 0, x_40);
lean_ctor_set(x_123, 1, x_122);
x_124 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_40);
x_125 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_125, 0, x_40);
lean_ctor_set(x_125, 1, x_124);
x_126 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_40);
lean_ctor_set_tag(x_35, 2);
lean_ctor_set(x_35, 1, x_126);
lean_ctor_set(x_35, 0, x_40);
x_127 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_40);
if (lean_is_scalar(x_23)) {
 x_128 = lean_alloc_ctor(2, 2, 0);
} else {
 x_128 = x_23;
 lean_ctor_set_tag(x_128, 2);
}
lean_ctor_set(x_128, 0, x_40);
lean_ctor_set(x_128, 1, x_127);
x_129 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_128);
lean_inc(x_35);
lean_inc(x_40);
x_130 = l_Lean_Syntax_node3(x_40, x_129, x_35, x_27, x_128);
lean_inc(x_3);
lean_inc(x_40);
x_131 = l_Lean_Syntax_node1(x_40, x_3, x_130);
lean_inc(x_3);
lean_inc(x_40);
x_132 = l_Lean_Syntax_node1(x_40, x_3, x_131);
x_133 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_40);
x_134 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_134, 0, x_40);
lean_ctor_set(x_134, 1, x_133);
lean_inc(x_40);
x_135 = l_Lean_Syntax_node3(x_40, x_129, x_35, x_34, x_128);
x_136 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_40);
x_137 = l_Lean_Syntax_node4(x_40, x_136, x_125, x_132, x_134, x_135);
lean_inc(x_3);
lean_inc(x_40);
x_138 = l_Lean_Syntax_node1(x_40, x_3, x_137);
x_139 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_40);
x_140 = l_Lean_Syntax_node1(x_40, x_139, x_138);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; 
x_141 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__18;
lean_inc(x_3);
lean_inc(x_40);
x_142 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_142, 0, x_40);
lean_ctor_set(x_142, 1, x_3);
lean_ctor_set(x_142, 2, x_141);
x_143 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_120);
x_144 = l_Lean_Syntax_node6(x_40, x_143, x_142, x_120, x_121, x_123, x_120, x_140);
x_145 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_144, x_17, x_18, x_117);
return x_145;
}
else
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_146 = lean_ctor_get(x_6, 0);
lean_inc(x_146);
lean_dec(x_6);
x_147 = l_Array_mkArray1___rarg(x_146);
x_148 = l_Array_append___rarg(x_119, x_147);
lean_dec(x_147);
lean_inc(x_3);
lean_inc(x_40);
x_149 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_149, 0, x_40);
lean_ctor_set(x_149, 1, x_3);
lean_ctor_set(x_149, 2, x_148);
x_150 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_120);
x_151 = l_Lean_Syntax_node6(x_40, x_150, x_149, x_120, x_121, x_123, x_120, x_140);
x_152 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_151, x_17, x_18, x_117);
return x_152;
}
}
}
else
{
lean_object* x_153; lean_object* x_154; uint8_t x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; 
x_153 = lean_ctor_get(x_35, 0);
x_154 = lean_ctor_get(x_35, 1);
lean_inc(x_154);
lean_inc(x_153);
lean_dec(x_35);
x_155 = 0;
x_156 = l_Lean_SourceInfo_fromRef(x_153, x_155);
lean_dec(x_153);
x_157 = l_Lean_Elab_Command_getCurrMacroScope(x_17, x_18, x_154);
x_158 = lean_ctor_get(x_157, 1);
lean_inc(x_158);
if (lean_is_exclusive(x_157)) {
 lean_ctor_release(x_157, 0);
 lean_ctor_release(x_157, 1);
 x_159 = x_157;
} else {
 lean_dec_ref(x_157);
 x_159 = lean_box(0);
}
x_160 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_158);
x_161 = lean_ctor_get(x_160, 1);
lean_inc(x_161);
if (lean_is_exclusive(x_160)) {
 lean_ctor_release(x_160, 0);
 lean_ctor_release(x_160, 1);
 x_162 = x_160;
} else {
 lean_dec_ref(x_160);
 x_162 = lean_box(0);
}
x_163 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_156);
x_164 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_164, 0, x_156);
lean_ctor_set(x_164, 1, x_3);
lean_ctor_set(x_164, 2, x_163);
lean_inc(x_164);
lean_inc(x_156);
x_165 = l_Lean_Syntax_node1(x_156, x_5, x_164);
x_166 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_156);
if (lean_is_scalar(x_162)) {
 x_167 = lean_alloc_ctor(2, 2, 0);
} else {
 x_167 = x_162;
 lean_ctor_set_tag(x_167, 2);
}
lean_ctor_set(x_167, 0, x_156);
lean_ctor_set(x_167, 1, x_166);
x_168 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_156);
if (lean_is_scalar(x_159)) {
 x_169 = lean_alloc_ctor(2, 2, 0);
} else {
 x_169 = x_159;
 lean_ctor_set_tag(x_169, 2);
}
lean_ctor_set(x_169, 0, x_156);
lean_ctor_set(x_169, 1, x_168);
x_170 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_156);
x_171 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_171, 0, x_156);
lean_ctor_set(x_171, 1, x_170);
x_172 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_156);
if (lean_is_scalar(x_23)) {
 x_173 = lean_alloc_ctor(2, 2, 0);
} else {
 x_173 = x_23;
 lean_ctor_set_tag(x_173, 2);
}
lean_ctor_set(x_173, 0, x_156);
lean_ctor_set(x_173, 1, x_172);
x_174 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_173);
lean_inc(x_171);
lean_inc(x_156);
x_175 = l_Lean_Syntax_node3(x_156, x_174, x_171, x_27, x_173);
lean_inc(x_3);
lean_inc(x_156);
x_176 = l_Lean_Syntax_node1(x_156, x_3, x_175);
lean_inc(x_3);
lean_inc(x_156);
x_177 = l_Lean_Syntax_node1(x_156, x_3, x_176);
x_178 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_156);
x_179 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_179, 0, x_156);
lean_ctor_set(x_179, 1, x_178);
lean_inc(x_156);
x_180 = l_Lean_Syntax_node3(x_156, x_174, x_171, x_34, x_173);
x_181 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_156);
x_182 = l_Lean_Syntax_node4(x_156, x_181, x_169, x_177, x_179, x_180);
lean_inc(x_3);
lean_inc(x_156);
x_183 = l_Lean_Syntax_node1(x_156, x_3, x_182);
x_184 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_156);
x_185 = l_Lean_Syntax_node1(x_156, x_184, x_183);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; 
x_186 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__18;
lean_inc(x_3);
lean_inc(x_156);
x_187 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_187, 0, x_156);
lean_ctor_set(x_187, 1, x_3);
lean_ctor_set(x_187, 2, x_186);
x_188 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_164);
x_189 = l_Lean_Syntax_node6(x_156, x_188, x_187, x_164, x_165, x_167, x_164, x_185);
x_190 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_189, x_17, x_18, x_161);
return x_190;
}
else
{
lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_191 = lean_ctor_get(x_6, 0);
lean_inc(x_191);
lean_dec(x_6);
x_192 = l_Array_mkArray1___rarg(x_191);
x_193 = l_Array_append___rarg(x_163, x_192);
lean_dec(x_192);
lean_inc(x_3);
lean_inc(x_156);
x_194 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_194, 0, x_156);
lean_ctor_set(x_194, 1, x_3);
lean_ctor_set(x_194, 2, x_193);
x_195 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_164);
x_196 = l_Lean_Syntax_node6(x_156, x_195, x_194, x_164, x_165, x_167, x_164, x_185);
x_197 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_196, x_17, x_18, x_161);
return x_197;
}
}
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; uint8_t x_201; 
x_198 = lean_unsigned_to_nat(0u);
x_199 = l_Lean_Syntax_getArg(x_4, x_198);
x_200 = l_Lean_Elab_Command_getRef(x_17, x_18, x_29);
x_201 = !lean_is_exclusive(x_200);
if (x_201 == 0)
{
lean_object* x_202; lean_object* x_203; uint8_t x_204; lean_object* x_205; lean_object* x_206; uint8_t x_207; 
x_202 = lean_ctor_get(x_200, 0);
x_203 = lean_ctor_get(x_200, 1);
x_204 = 0;
x_205 = l_Lean_SourceInfo_fromRef(x_202, x_204);
lean_dec(x_202);
x_206 = l_Lean_Elab_Command_getCurrMacroScope(x_17, x_18, x_203);
x_207 = !lean_is_exclusive(x_206);
if (x_207 == 0)
{
lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_208 = lean_ctor_get(x_206, 0);
x_209 = lean_ctor_get(x_206, 1);
x_210 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_209);
x_211 = !lean_is_exclusive(x_210);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; 
x_212 = lean_ctor_get(x_210, 0);
x_213 = lean_ctor_get(x_210, 1);
x_214 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_205);
x_215 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_215, 0, x_205);
lean_ctor_set(x_215, 1, x_3);
lean_ctor_set(x_215, 2, x_214);
lean_inc(x_215);
lean_inc(x_205);
x_216 = l_Lean_Syntax_node1(x_205, x_5, x_215);
x_217 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_205);
lean_ctor_set_tag(x_210, 2);
lean_ctor_set(x_210, 1, x_217);
lean_ctor_set(x_210, 0, x_205);
x_218 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_205);
lean_ctor_set_tag(x_206, 2);
lean_ctor_set(x_206, 1, x_218);
lean_ctor_set(x_206, 0, x_205);
x_219 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_205);
lean_ctor_set_tag(x_200, 2);
lean_ctor_set(x_200, 1, x_219);
lean_ctor_set(x_200, 0, x_205);
x_220 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_205);
if (lean_is_scalar(x_23)) {
 x_221 = lean_alloc_ctor(2, 2, 0);
} else {
 x_221 = x_23;
 lean_ctor_set_tag(x_221, 2);
}
lean_ctor_set(x_221, 0, x_205);
lean_ctor_set(x_221, 1, x_220);
x_222 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_221);
lean_inc(x_205);
x_223 = l_Lean_Syntax_node3(x_205, x_222, x_200, x_27, x_221);
lean_inc(x_3);
lean_inc(x_205);
x_224 = l_Lean_Syntax_node1(x_205, x_3, x_223);
lean_inc(x_3);
lean_inc(x_205);
x_225 = l_Lean_Syntax_node1(x_205, x_3, x_224);
x_226 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_205);
x_227 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_227, 0, x_205);
lean_ctor_set(x_227, 1, x_226);
x_228 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__25;
lean_inc(x_208);
lean_inc(x_212);
x_229 = l_Lean_addMacroScope(x_212, x_228, x_208);
lean_inc(x_2);
x_230 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_230, 0, x_228);
lean_ctor_set(x_230, 1, x_2);
lean_inc(x_2);
x_231 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_231, 0, x_230);
lean_ctor_set(x_231, 1, x_2);
x_232 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__22;
lean_inc(x_205);
x_233 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_233, 0, x_205);
lean_ctor_set(x_233, 1, x_232);
lean_ctor_set(x_233, 2, x_229);
lean_ctor_set(x_233, 3, x_231);
x_234 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_205);
x_235 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_235, 0, x_205);
lean_ctor_set(x_235, 1, x_234);
x_236 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__31;
lean_inc(x_205);
x_237 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_237, 0, x_205);
lean_ctor_set(x_237, 1, x_236);
x_238 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__36;
x_239 = l_Lean_addMacroScope(x_212, x_238, x_208);
x_240 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__37;
lean_inc(x_2);
x_241 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_241, 0, x_240);
lean_ctor_set(x_241, 1, x_2);
lean_inc(x_2);
x_242 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_242, 0, x_241);
lean_ctor_set(x_242, 1, x_2);
x_243 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__33;
lean_inc(x_205);
x_244 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_244, 0, x_205);
lean_ctor_set(x_244, 1, x_243);
lean_ctor_set(x_244, 2, x_239);
lean_ctor_set(x_244, 3, x_242);
x_245 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__30;
lean_inc(x_205);
x_246 = l_Lean_Syntax_node2(x_205, x_245, x_237, x_244);
x_247 = l_Lean_Syntax_getId(x_7);
lean_dec(x_7);
x_248 = lean_erase_macro_scopes(x_247);
lean_inc(x_248);
lean_inc(x_2);
x_249 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_2, x_248);
if (lean_obj_tag(x_6) == 0)
{
x_250 = x_214;
goto block_294;
}
else
{
lean_object* x_295; lean_object* x_296; 
x_295 = lean_ctor_get(x_6, 0);
lean_inc(x_295);
lean_dec(x_6);
x_296 = l_Array_mkArray1___rarg(x_295);
x_250 = x_296;
goto block_294;
}
block_294:
{
lean_object* x_251; lean_object* x_252; 
x_251 = l_Array_append___rarg(x_214, x_250);
lean_dec(x_250);
lean_inc(x_3);
lean_inc(x_205);
x_252 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_252, 0, x_205);
lean_ctor_set(x_252, 1, x_3);
lean_ctor_set(x_252, 2, x_251);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; 
x_253 = l_Lean_quoteNameMk(x_248);
lean_inc(x_3);
lean_inc(x_205);
x_254 = l_Lean_Syntax_node1(x_205, x_3, x_253);
x_255 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_205);
x_256 = l_Lean_Syntax_node2(x_205, x_255, x_246, x_254);
x_257 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_205);
x_258 = l_Lean_Syntax_node3(x_205, x_257, x_235, x_256, x_221);
lean_inc(x_3);
lean_inc(x_205);
x_259 = l_Lean_Syntax_node2(x_205, x_3, x_258, x_199);
lean_inc(x_205);
x_260 = l_Lean_Syntax_node2(x_205, x_255, x_233, x_259);
x_261 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_205);
x_262 = l_Lean_Syntax_node4(x_205, x_261, x_206, x_225, x_227, x_260);
lean_inc(x_3);
lean_inc(x_205);
x_263 = l_Lean_Syntax_node1(x_205, x_3, x_262);
x_264 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_205);
x_265 = l_Lean_Syntax_node1(x_205, x_264, x_263);
x_266 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_215);
x_267 = l_Lean_Syntax_node6(x_205, x_266, x_252, x_215, x_216, x_210, x_215, x_265);
x_268 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_267, x_17, x_18, x_213);
return x_268;
}
else
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; 
lean_dec(x_248);
x_269 = lean_ctor_get(x_249, 0);
lean_inc(x_269);
lean_dec(x_249);
x_270 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__40;
x_271 = l_String_intercalate(x_270, x_269);
x_272 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__41;
x_273 = lean_string_append(x_272, x_271);
lean_dec(x_271);
x_274 = l_Lean_Syntax_mkNameLit(x_273, x_26);
lean_inc(x_2);
x_275 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_275, 0, x_274);
lean_ctor_set(x_275, 1, x_2);
x_276 = lean_array_mk(x_275);
x_277 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__39;
x_278 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_278, 0, x_26);
lean_ctor_set(x_278, 1, x_277);
lean_ctor_set(x_278, 2, x_276);
lean_inc(x_3);
lean_inc(x_205);
x_279 = l_Lean_Syntax_node1(x_205, x_3, x_278);
x_280 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_205);
x_281 = l_Lean_Syntax_node2(x_205, x_280, x_246, x_279);
x_282 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_205);
x_283 = l_Lean_Syntax_node3(x_205, x_282, x_235, x_281, x_221);
lean_inc(x_3);
lean_inc(x_205);
x_284 = l_Lean_Syntax_node2(x_205, x_3, x_283, x_199);
lean_inc(x_205);
x_285 = l_Lean_Syntax_node2(x_205, x_280, x_233, x_284);
x_286 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_205);
x_287 = l_Lean_Syntax_node4(x_205, x_286, x_206, x_225, x_227, x_285);
lean_inc(x_3);
lean_inc(x_205);
x_288 = l_Lean_Syntax_node1(x_205, x_3, x_287);
x_289 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_205);
x_290 = l_Lean_Syntax_node1(x_205, x_289, x_288);
x_291 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_215);
x_292 = l_Lean_Syntax_node6(x_205, x_291, x_252, x_215, x_216, x_210, x_215, x_290);
x_293 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_292, x_17, x_18, x_213);
return x_293;
}
}
}
else
{
lean_object* x_297; lean_object* x_298; lean_object* x_299; lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; lean_object* x_310; lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; 
x_297 = lean_ctor_get(x_210, 0);
x_298 = lean_ctor_get(x_210, 1);
lean_inc(x_298);
lean_inc(x_297);
lean_dec(x_210);
x_299 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_205);
x_300 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_300, 0, x_205);
lean_ctor_set(x_300, 1, x_3);
lean_ctor_set(x_300, 2, x_299);
lean_inc(x_300);
lean_inc(x_205);
x_301 = l_Lean_Syntax_node1(x_205, x_5, x_300);
x_302 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_205);
x_303 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_303, 0, x_205);
lean_ctor_set(x_303, 1, x_302);
x_304 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_205);
lean_ctor_set_tag(x_206, 2);
lean_ctor_set(x_206, 1, x_304);
lean_ctor_set(x_206, 0, x_205);
x_305 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_205);
lean_ctor_set_tag(x_200, 2);
lean_ctor_set(x_200, 1, x_305);
lean_ctor_set(x_200, 0, x_205);
x_306 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_205);
if (lean_is_scalar(x_23)) {
 x_307 = lean_alloc_ctor(2, 2, 0);
} else {
 x_307 = x_23;
 lean_ctor_set_tag(x_307, 2);
}
lean_ctor_set(x_307, 0, x_205);
lean_ctor_set(x_307, 1, x_306);
x_308 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_307);
lean_inc(x_205);
x_309 = l_Lean_Syntax_node3(x_205, x_308, x_200, x_27, x_307);
lean_inc(x_3);
lean_inc(x_205);
x_310 = l_Lean_Syntax_node1(x_205, x_3, x_309);
lean_inc(x_3);
lean_inc(x_205);
x_311 = l_Lean_Syntax_node1(x_205, x_3, x_310);
x_312 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_205);
x_313 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_313, 0, x_205);
lean_ctor_set(x_313, 1, x_312);
x_314 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__25;
lean_inc(x_208);
lean_inc(x_297);
x_315 = l_Lean_addMacroScope(x_297, x_314, x_208);
lean_inc(x_2);
x_316 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_316, 0, x_314);
lean_ctor_set(x_316, 1, x_2);
lean_inc(x_2);
x_317 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_317, 0, x_316);
lean_ctor_set(x_317, 1, x_2);
x_318 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__22;
lean_inc(x_205);
x_319 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_319, 0, x_205);
lean_ctor_set(x_319, 1, x_318);
lean_ctor_set(x_319, 2, x_315);
lean_ctor_set(x_319, 3, x_317);
x_320 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_205);
x_321 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_321, 0, x_205);
lean_ctor_set(x_321, 1, x_320);
x_322 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__31;
lean_inc(x_205);
x_323 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_323, 0, x_205);
lean_ctor_set(x_323, 1, x_322);
x_324 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__36;
x_325 = l_Lean_addMacroScope(x_297, x_324, x_208);
x_326 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__37;
lean_inc(x_2);
x_327 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_327, 0, x_326);
lean_ctor_set(x_327, 1, x_2);
lean_inc(x_2);
x_328 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_328, 0, x_327);
lean_ctor_set(x_328, 1, x_2);
x_329 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__33;
lean_inc(x_205);
x_330 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_330, 0, x_205);
lean_ctor_set(x_330, 1, x_329);
lean_ctor_set(x_330, 2, x_325);
lean_ctor_set(x_330, 3, x_328);
x_331 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__30;
lean_inc(x_205);
x_332 = l_Lean_Syntax_node2(x_205, x_331, x_323, x_330);
x_333 = l_Lean_Syntax_getId(x_7);
lean_dec(x_7);
x_334 = lean_erase_macro_scopes(x_333);
lean_inc(x_334);
lean_inc(x_2);
x_335 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_2, x_334);
if (lean_obj_tag(x_6) == 0)
{
x_336 = x_299;
goto block_380;
}
else
{
lean_object* x_381; lean_object* x_382; 
x_381 = lean_ctor_get(x_6, 0);
lean_inc(x_381);
lean_dec(x_6);
x_382 = l_Array_mkArray1___rarg(x_381);
x_336 = x_382;
goto block_380;
}
block_380:
{
lean_object* x_337; lean_object* x_338; 
x_337 = l_Array_append___rarg(x_299, x_336);
lean_dec(x_336);
lean_inc(x_3);
lean_inc(x_205);
x_338 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_338, 0, x_205);
lean_ctor_set(x_338, 1, x_3);
lean_ctor_set(x_338, 2, x_337);
if (lean_obj_tag(x_335) == 0)
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; 
x_339 = l_Lean_quoteNameMk(x_334);
lean_inc(x_3);
lean_inc(x_205);
x_340 = l_Lean_Syntax_node1(x_205, x_3, x_339);
x_341 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_205);
x_342 = l_Lean_Syntax_node2(x_205, x_341, x_332, x_340);
x_343 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_205);
x_344 = l_Lean_Syntax_node3(x_205, x_343, x_321, x_342, x_307);
lean_inc(x_3);
lean_inc(x_205);
x_345 = l_Lean_Syntax_node2(x_205, x_3, x_344, x_199);
lean_inc(x_205);
x_346 = l_Lean_Syntax_node2(x_205, x_341, x_319, x_345);
x_347 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_205);
x_348 = l_Lean_Syntax_node4(x_205, x_347, x_206, x_311, x_313, x_346);
lean_inc(x_3);
lean_inc(x_205);
x_349 = l_Lean_Syntax_node1(x_205, x_3, x_348);
x_350 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_205);
x_351 = l_Lean_Syntax_node1(x_205, x_350, x_349);
x_352 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_300);
x_353 = l_Lean_Syntax_node6(x_205, x_352, x_338, x_300, x_301, x_303, x_300, x_351);
x_354 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_353, x_17, x_18, x_298);
return x_354;
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
lean_dec(x_334);
x_355 = lean_ctor_get(x_335, 0);
lean_inc(x_355);
lean_dec(x_335);
x_356 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__40;
x_357 = l_String_intercalate(x_356, x_355);
x_358 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__41;
x_359 = lean_string_append(x_358, x_357);
lean_dec(x_357);
x_360 = l_Lean_Syntax_mkNameLit(x_359, x_26);
lean_inc(x_2);
x_361 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_361, 0, x_360);
lean_ctor_set(x_361, 1, x_2);
x_362 = lean_array_mk(x_361);
x_363 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__39;
x_364 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_364, 0, x_26);
lean_ctor_set(x_364, 1, x_363);
lean_ctor_set(x_364, 2, x_362);
lean_inc(x_3);
lean_inc(x_205);
x_365 = l_Lean_Syntax_node1(x_205, x_3, x_364);
x_366 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_205);
x_367 = l_Lean_Syntax_node2(x_205, x_366, x_332, x_365);
x_368 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_205);
x_369 = l_Lean_Syntax_node3(x_205, x_368, x_321, x_367, x_307);
lean_inc(x_3);
lean_inc(x_205);
x_370 = l_Lean_Syntax_node2(x_205, x_3, x_369, x_199);
lean_inc(x_205);
x_371 = l_Lean_Syntax_node2(x_205, x_366, x_319, x_370);
x_372 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_205);
x_373 = l_Lean_Syntax_node4(x_205, x_372, x_206, x_311, x_313, x_371);
lean_inc(x_3);
lean_inc(x_205);
x_374 = l_Lean_Syntax_node1(x_205, x_3, x_373);
x_375 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_205);
x_376 = l_Lean_Syntax_node1(x_205, x_375, x_374);
x_377 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_300);
x_378 = l_Lean_Syntax_node6(x_205, x_377, x_338, x_300, x_301, x_303, x_300, x_376);
x_379 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_378, x_17, x_18, x_298);
return x_379;
}
}
}
}
else
{
lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; lean_object* x_398; lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_383 = lean_ctor_get(x_206, 0);
x_384 = lean_ctor_get(x_206, 1);
lean_inc(x_384);
lean_inc(x_383);
lean_dec(x_206);
x_385 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_384);
x_386 = lean_ctor_get(x_385, 0);
lean_inc(x_386);
x_387 = lean_ctor_get(x_385, 1);
lean_inc(x_387);
if (lean_is_exclusive(x_385)) {
 lean_ctor_release(x_385, 0);
 lean_ctor_release(x_385, 1);
 x_388 = x_385;
} else {
 lean_dec_ref(x_385);
 x_388 = lean_box(0);
}
x_389 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_205);
x_390 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_390, 0, x_205);
lean_ctor_set(x_390, 1, x_3);
lean_ctor_set(x_390, 2, x_389);
lean_inc(x_390);
lean_inc(x_205);
x_391 = l_Lean_Syntax_node1(x_205, x_5, x_390);
x_392 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_205);
if (lean_is_scalar(x_388)) {
 x_393 = lean_alloc_ctor(2, 2, 0);
} else {
 x_393 = x_388;
 lean_ctor_set_tag(x_393, 2);
}
lean_ctor_set(x_393, 0, x_205);
lean_ctor_set(x_393, 1, x_392);
x_394 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_205);
x_395 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_395, 0, x_205);
lean_ctor_set(x_395, 1, x_394);
x_396 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_205);
lean_ctor_set_tag(x_200, 2);
lean_ctor_set(x_200, 1, x_396);
lean_ctor_set(x_200, 0, x_205);
x_397 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_205);
if (lean_is_scalar(x_23)) {
 x_398 = lean_alloc_ctor(2, 2, 0);
} else {
 x_398 = x_23;
 lean_ctor_set_tag(x_398, 2);
}
lean_ctor_set(x_398, 0, x_205);
lean_ctor_set(x_398, 1, x_397);
x_399 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_398);
lean_inc(x_205);
x_400 = l_Lean_Syntax_node3(x_205, x_399, x_200, x_27, x_398);
lean_inc(x_3);
lean_inc(x_205);
x_401 = l_Lean_Syntax_node1(x_205, x_3, x_400);
lean_inc(x_3);
lean_inc(x_205);
x_402 = l_Lean_Syntax_node1(x_205, x_3, x_401);
x_403 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_205);
x_404 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_404, 0, x_205);
lean_ctor_set(x_404, 1, x_403);
x_405 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__25;
lean_inc(x_383);
lean_inc(x_386);
x_406 = l_Lean_addMacroScope(x_386, x_405, x_383);
lean_inc(x_2);
x_407 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_407, 0, x_405);
lean_ctor_set(x_407, 1, x_2);
lean_inc(x_2);
x_408 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_408, 0, x_407);
lean_ctor_set(x_408, 1, x_2);
x_409 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__22;
lean_inc(x_205);
x_410 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_410, 0, x_205);
lean_ctor_set(x_410, 1, x_409);
lean_ctor_set(x_410, 2, x_406);
lean_ctor_set(x_410, 3, x_408);
x_411 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_205);
x_412 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_412, 0, x_205);
lean_ctor_set(x_412, 1, x_411);
x_413 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__31;
lean_inc(x_205);
x_414 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_414, 0, x_205);
lean_ctor_set(x_414, 1, x_413);
x_415 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__36;
x_416 = l_Lean_addMacroScope(x_386, x_415, x_383);
x_417 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__37;
lean_inc(x_2);
x_418 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_418, 0, x_417);
lean_ctor_set(x_418, 1, x_2);
lean_inc(x_2);
x_419 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_419, 0, x_418);
lean_ctor_set(x_419, 1, x_2);
x_420 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__33;
lean_inc(x_205);
x_421 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_421, 0, x_205);
lean_ctor_set(x_421, 1, x_420);
lean_ctor_set(x_421, 2, x_416);
lean_ctor_set(x_421, 3, x_419);
x_422 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__30;
lean_inc(x_205);
x_423 = l_Lean_Syntax_node2(x_205, x_422, x_414, x_421);
x_424 = l_Lean_Syntax_getId(x_7);
lean_dec(x_7);
x_425 = lean_erase_macro_scopes(x_424);
lean_inc(x_425);
lean_inc(x_2);
x_426 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_2, x_425);
if (lean_obj_tag(x_6) == 0)
{
x_427 = x_389;
goto block_471;
}
else
{
lean_object* x_472; lean_object* x_473; 
x_472 = lean_ctor_get(x_6, 0);
lean_inc(x_472);
lean_dec(x_6);
x_473 = l_Array_mkArray1___rarg(x_472);
x_427 = x_473;
goto block_471;
}
block_471:
{
lean_object* x_428; lean_object* x_429; 
x_428 = l_Array_append___rarg(x_389, x_427);
lean_dec(x_427);
lean_inc(x_3);
lean_inc(x_205);
x_429 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_429, 0, x_205);
lean_ctor_set(x_429, 1, x_3);
lean_ctor_set(x_429, 2, x_428);
if (lean_obj_tag(x_426) == 0)
{
lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; 
x_430 = l_Lean_quoteNameMk(x_425);
lean_inc(x_3);
lean_inc(x_205);
x_431 = l_Lean_Syntax_node1(x_205, x_3, x_430);
x_432 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_205);
x_433 = l_Lean_Syntax_node2(x_205, x_432, x_423, x_431);
x_434 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_205);
x_435 = l_Lean_Syntax_node3(x_205, x_434, x_412, x_433, x_398);
lean_inc(x_3);
lean_inc(x_205);
x_436 = l_Lean_Syntax_node2(x_205, x_3, x_435, x_199);
lean_inc(x_205);
x_437 = l_Lean_Syntax_node2(x_205, x_432, x_410, x_436);
x_438 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_205);
x_439 = l_Lean_Syntax_node4(x_205, x_438, x_395, x_402, x_404, x_437);
lean_inc(x_3);
lean_inc(x_205);
x_440 = l_Lean_Syntax_node1(x_205, x_3, x_439);
x_441 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_205);
x_442 = l_Lean_Syntax_node1(x_205, x_441, x_440);
x_443 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_390);
x_444 = l_Lean_Syntax_node6(x_205, x_443, x_429, x_390, x_391, x_393, x_390, x_442);
x_445 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_444, x_17, x_18, x_387);
return x_445;
}
else
{
lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; 
lean_dec(x_425);
x_446 = lean_ctor_get(x_426, 0);
lean_inc(x_446);
lean_dec(x_426);
x_447 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__40;
x_448 = l_String_intercalate(x_447, x_446);
x_449 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__41;
x_450 = lean_string_append(x_449, x_448);
lean_dec(x_448);
x_451 = l_Lean_Syntax_mkNameLit(x_450, x_26);
lean_inc(x_2);
x_452 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_452, 0, x_451);
lean_ctor_set(x_452, 1, x_2);
x_453 = lean_array_mk(x_452);
x_454 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__39;
x_455 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_455, 0, x_26);
lean_ctor_set(x_455, 1, x_454);
lean_ctor_set(x_455, 2, x_453);
lean_inc(x_3);
lean_inc(x_205);
x_456 = l_Lean_Syntax_node1(x_205, x_3, x_455);
x_457 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_205);
x_458 = l_Lean_Syntax_node2(x_205, x_457, x_423, x_456);
x_459 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_205);
x_460 = l_Lean_Syntax_node3(x_205, x_459, x_412, x_458, x_398);
lean_inc(x_3);
lean_inc(x_205);
x_461 = l_Lean_Syntax_node2(x_205, x_3, x_460, x_199);
lean_inc(x_205);
x_462 = l_Lean_Syntax_node2(x_205, x_457, x_410, x_461);
x_463 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_205);
x_464 = l_Lean_Syntax_node4(x_205, x_463, x_395, x_402, x_404, x_462);
lean_inc(x_3);
lean_inc(x_205);
x_465 = l_Lean_Syntax_node1(x_205, x_3, x_464);
x_466 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_205);
x_467 = l_Lean_Syntax_node1(x_205, x_466, x_465);
x_468 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_390);
x_469 = l_Lean_Syntax_node6(x_205, x_468, x_429, x_390, x_391, x_393, x_390, x_467);
x_470 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_469, x_17, x_18, x_387);
return x_470;
}
}
}
}
else
{
lean_object* x_474; lean_object* x_475; uint8_t x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; lean_object* x_525; 
x_474 = lean_ctor_get(x_200, 0);
x_475 = lean_ctor_get(x_200, 1);
lean_inc(x_475);
lean_inc(x_474);
lean_dec(x_200);
x_476 = 0;
x_477 = l_Lean_SourceInfo_fromRef(x_474, x_476);
lean_dec(x_474);
x_478 = l_Lean_Elab_Command_getCurrMacroScope(x_17, x_18, x_475);
x_479 = lean_ctor_get(x_478, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_478, 1);
lean_inc(x_480);
if (lean_is_exclusive(x_478)) {
 lean_ctor_release(x_478, 0);
 lean_ctor_release(x_478, 1);
 x_481 = x_478;
} else {
 lean_dec_ref(x_478);
 x_481 = lean_box(0);
}
x_482 = l_Lean_Elab_Command_getMainModule___rarg(x_18, x_480);
x_483 = lean_ctor_get(x_482, 0);
lean_inc(x_483);
x_484 = lean_ctor_get(x_482, 1);
lean_inc(x_484);
if (lean_is_exclusive(x_482)) {
 lean_ctor_release(x_482, 0);
 lean_ctor_release(x_482, 1);
 x_485 = x_482;
} else {
 lean_dec_ref(x_482);
 x_485 = lean_box(0);
}
x_486 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__6;
lean_inc(x_3);
lean_inc(x_477);
x_487 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_487, 0, x_477);
lean_ctor_set(x_487, 1, x_3);
lean_ctor_set(x_487, 2, x_486);
lean_inc(x_487);
lean_inc(x_477);
x_488 = l_Lean_Syntax_node1(x_477, x_5, x_487);
x_489 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__4;
lean_inc(x_477);
if (lean_is_scalar(x_485)) {
 x_490 = lean_alloc_ctor(2, 2, 0);
} else {
 x_490 = x_485;
 lean_ctor_set_tag(x_490, 2);
}
lean_ctor_set(x_490, 0, x_477);
lean_ctor_set(x_490, 1, x_489);
x_491 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__12;
lean_inc(x_477);
if (lean_is_scalar(x_481)) {
 x_492 = lean_alloc_ctor(2, 2, 0);
} else {
 x_492 = x_481;
 lean_ctor_set_tag(x_492, 2);
}
lean_ctor_set(x_492, 0, x_477);
lean_ctor_set(x_492, 1, x_491);
x_493 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__15;
lean_inc(x_477);
x_494 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_494, 0, x_477);
lean_ctor_set(x_494, 1, x_493);
x_495 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__16;
lean_inc(x_477);
if (lean_is_scalar(x_23)) {
 x_496 = lean_alloc_ctor(2, 2, 0);
} else {
 x_496 = x_23;
 lean_ctor_set_tag(x_496, 2);
}
lean_ctor_set(x_496, 0, x_477);
lean_ctor_set(x_496, 1, x_495);
x_497 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__14;
lean_inc(x_496);
lean_inc(x_477);
x_498 = l_Lean_Syntax_node3(x_477, x_497, x_494, x_27, x_496);
lean_inc(x_3);
lean_inc(x_477);
x_499 = l_Lean_Syntax_node1(x_477, x_3, x_498);
lean_inc(x_3);
lean_inc(x_477);
x_500 = l_Lean_Syntax_node1(x_477, x_3, x_499);
x_501 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__17;
lean_inc(x_477);
x_502 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_502, 0, x_477);
lean_ctor_set(x_502, 1, x_501);
x_503 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__25;
lean_inc(x_479);
lean_inc(x_483);
x_504 = l_Lean_addMacroScope(x_483, x_503, x_479);
lean_inc(x_2);
x_505 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_505, 0, x_503);
lean_ctor_set(x_505, 1, x_2);
lean_inc(x_2);
x_506 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_2);
x_507 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__22;
lean_inc(x_477);
x_508 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_508, 0, x_477);
lean_ctor_set(x_508, 1, x_507);
lean_ctor_set(x_508, 2, x_504);
lean_ctor_set(x_508, 3, x_506);
x_509 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__28;
lean_inc(x_477);
x_510 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_510, 0, x_477);
lean_ctor_set(x_510, 1, x_509);
x_511 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__31;
lean_inc(x_477);
x_512 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_512, 0, x_477);
lean_ctor_set(x_512, 1, x_511);
x_513 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__36;
x_514 = l_Lean_addMacroScope(x_483, x_513, x_479);
x_515 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__37;
lean_inc(x_2);
x_516 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_516, 0, x_515);
lean_ctor_set(x_516, 1, x_2);
lean_inc(x_2);
x_517 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_517, 0, x_516);
lean_ctor_set(x_517, 1, x_2);
x_518 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__33;
lean_inc(x_477);
x_519 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_519, 0, x_477);
lean_ctor_set(x_519, 1, x_518);
lean_ctor_set(x_519, 2, x_514);
lean_ctor_set(x_519, 3, x_517);
x_520 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__30;
lean_inc(x_477);
x_521 = l_Lean_Syntax_node2(x_477, x_520, x_512, x_519);
x_522 = l_Lean_Syntax_getId(x_7);
lean_dec(x_7);
x_523 = lean_erase_macro_scopes(x_522);
lean_inc(x_523);
lean_inc(x_2);
x_524 = l___private_Init_Meta_0__Lean_getEscapedNameParts_x3f(x_2, x_523);
if (lean_obj_tag(x_6) == 0)
{
x_525 = x_486;
goto block_569;
}
else
{
lean_object* x_570; lean_object* x_571; 
x_570 = lean_ctor_get(x_6, 0);
lean_inc(x_570);
lean_dec(x_6);
x_571 = l_Array_mkArray1___rarg(x_570);
x_525 = x_571;
goto block_569;
}
block_569:
{
lean_object* x_526; lean_object* x_527; 
x_526 = l_Array_append___rarg(x_486, x_525);
lean_dec(x_525);
lean_inc(x_3);
lean_inc(x_477);
x_527 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_527, 0, x_477);
lean_ctor_set(x_527, 1, x_3);
lean_ctor_set(x_527, 2, x_526);
if (lean_obj_tag(x_524) == 0)
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; 
x_528 = l_Lean_quoteNameMk(x_523);
lean_inc(x_3);
lean_inc(x_477);
x_529 = l_Lean_Syntax_node1(x_477, x_3, x_528);
x_530 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_477);
x_531 = l_Lean_Syntax_node2(x_477, x_530, x_521, x_529);
x_532 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_477);
x_533 = l_Lean_Syntax_node3(x_477, x_532, x_510, x_531, x_496);
lean_inc(x_3);
lean_inc(x_477);
x_534 = l_Lean_Syntax_node2(x_477, x_3, x_533, x_199);
lean_inc(x_477);
x_535 = l_Lean_Syntax_node2(x_477, x_530, x_508, x_534);
x_536 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_477);
x_537 = l_Lean_Syntax_node4(x_477, x_536, x_492, x_500, x_502, x_535);
lean_inc(x_3);
lean_inc(x_477);
x_538 = l_Lean_Syntax_node1(x_477, x_3, x_537);
x_539 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_477);
x_540 = l_Lean_Syntax_node1(x_477, x_539, x_538);
x_541 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_487);
x_542 = l_Lean_Syntax_node6(x_477, x_541, x_527, x_487, x_488, x_490, x_487, x_540);
x_543 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_542, x_17, x_18, x_484);
return x_543;
}
else
{
lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; 
lean_dec(x_523);
x_544 = lean_ctor_get(x_524, 0);
lean_inc(x_544);
lean_dec(x_524);
x_545 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__40;
x_546 = l_String_intercalate(x_545, x_544);
x_547 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__41;
x_548 = lean_string_append(x_547, x_546);
lean_dec(x_546);
x_549 = l_Lean_Syntax_mkNameLit(x_548, x_26);
lean_inc(x_2);
x_550 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_550, 0, x_549);
lean_ctor_set(x_550, 1, x_2);
x_551 = lean_array_mk(x_550);
x_552 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__39;
x_553 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_553, 0, x_26);
lean_ctor_set(x_553, 1, x_552);
lean_ctor_set(x_553, 2, x_551);
lean_inc(x_3);
lean_inc(x_477);
x_554 = l_Lean_Syntax_node1(x_477, x_3, x_553);
x_555 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__20;
lean_inc(x_477);
x_556 = l_Lean_Syntax_node2(x_477, x_555, x_521, x_554);
x_557 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__27;
lean_inc(x_477);
x_558 = l_Lean_Syntax_node3(x_477, x_557, x_510, x_556, x_496);
lean_inc(x_3);
lean_inc(x_477);
x_559 = l_Lean_Syntax_node2(x_477, x_3, x_558, x_199);
lean_inc(x_477);
x_560 = l_Lean_Syntax_node2(x_477, x_555, x_508, x_559);
x_561 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__11;
lean_inc(x_477);
x_562 = l_Lean_Syntax_node4(x_477, x_561, x_492, x_500, x_502, x_560);
lean_inc(x_3);
lean_inc(x_477);
x_563 = l_Lean_Syntax_node1(x_477, x_3, x_562);
x_564 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__9;
lean_inc(x_477);
x_565 = l_Lean_Syntax_node1(x_477, x_564, x_563);
x_566 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__5;
lean_inc(x_487);
x_567 = l_Lean_Syntax_node6(x_477, x_566, x_527, x_487, x_488, x_490, x_487, x_565);
x_568 = l_Lean_Elab_Command_elabMacro___lambda__1(x_2, x_28, x_3, x_567, x_17, x_18, x_484);
return x_568;
}
}
}
}
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("macroTail", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__3___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Command_elabMacro___lambda__3___closed__3;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_14 = lean_unsigned_to_nat(7u);
x_15 = l_Lean_Syntax_getArg(x_1, x_14);
x_16 = lean_unsigned_to_nat(8u);
x_17 = l_Lean_Syntax_getArg(x_1, x_16);
x_18 = l_Lean_Elab_Command_elabMacro___lambda__3___closed__2;
lean_inc(x_17);
x_19 = l_Lean_Syntax_isOfKind(x_17, x_18);
if (x_19 == 0)
{
lean_object* x_20; 
lean_dec(x_17);
lean_dec(x_15);
lean_dec(x_12);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_20 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_13);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; uint8_t x_38; 
x_21 = lean_unsigned_to_nat(1u);
x_22 = l_Lean_Syntax_getArg(x_17, x_21);
x_23 = lean_unsigned_to_nat(3u);
x_24 = l_Lean_Syntax_getArg(x_17, x_23);
lean_dec(x_17);
x_25 = l_Lean_Syntax_getArgs(x_15);
lean_dec(x_15);
x_26 = lean_box(0);
lean_inc(x_24);
x_27 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_27, 0, x_24);
lean_ctor_set(x_27, 1, x_26);
lean_inc(x_2);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_2);
lean_ctor_set(x_28, 1, x_27);
x_29 = lean_array_mk(x_28);
x_30 = lean_box(2);
x_31 = l_Lean_Elab_Command_elabMacro___lambda__3___closed__4;
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
lean_ctor_set(x_32, 2, x_29);
x_33 = lean_alloc_closure((void*)(l_Lean_evalOptPrio), 3, 1);
lean_closure_set(x_33, 0, x_10);
x_34 = l_Lean_Elab_Command_getRef(x_11, x_12, x_13);
x_35 = lean_ctor_get(x_34, 0);
lean_inc(x_35);
x_36 = lean_ctor_get(x_34, 1);
lean_inc(x_36);
lean_dec(x_34);
x_37 = l_Lean_replaceRef(x_32, x_35);
lean_dec(x_35);
lean_dec(x_32);
x_38 = !lean_is_exclusive(x_11);
if (x_38 == 0)
{
lean_object* x_39; lean_object* x_40; 
x_39 = lean_ctor_get(x_11, 6);
lean_dec(x_39);
lean_ctor_set(x_11, 6, x_37);
lean_inc(x_11);
x_40 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__3(x_33, x_11, x_12, x_36);
if (lean_obj_tag(x_40) == 0)
{
lean_object* x_41; lean_object* x_42; size_t x_43; size_t x_44; lean_object* x_45; 
x_41 = lean_ctor_get(x_40, 0);
lean_inc(x_41);
x_42 = lean_ctor_get(x_40, 1);
lean_inc(x_42);
lean_dec(x_40);
x_43 = lean_array_size(x_25);
x_44 = 0;
lean_inc(x_12);
lean_inc(x_11);
x_45 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1(x_43, x_44, x_25, x_11, x_12, x_42);
if (lean_obj_tag(x_45) == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = lean_ctor_get(x_45, 0);
lean_inc(x_46);
x_47 = lean_ctor_get(x_45, 1);
lean_inc(x_47);
lean_dec(x_45);
x_48 = l_Array_unzip___rarg(x_46);
lean_dec(x_46);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_49 = lean_ctor_get(x_48, 0);
lean_inc(x_49);
x_50 = lean_ctor_get(x_48, 1);
lean_inc(x_50);
lean_dec(x_48);
x_51 = l_Lean_Syntax_getId(x_22);
lean_inc(x_49);
x_52 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_52, 0, x_30);
lean_ctor_set(x_52, 1, x_31);
lean_ctor_set(x_52, 2, x_49);
x_53 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkNameFromParserSyntax___boxed), 4, 2);
lean_closure_set(x_53, 0, x_51);
lean_closure_set(x_53, 1, x_52);
lean_inc(x_11);
x_54 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__8(x_53, x_11, x_12, x_47);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_55 = lean_ctor_get(x_54, 0);
lean_inc(x_55);
x_56 = lean_ctor_get(x_54, 1);
lean_inc(x_56);
lean_dec(x_54);
lean_inc(x_6);
x_57 = l_Lean_Elab_Command_addMacroScopeIfLocal___at_Lean_Elab_Command_elabSyntax___spec__12(x_55, x_6, x_11, x_12, x_56);
x_58 = lean_ctor_get(x_57, 0);
lean_inc(x_58);
x_59 = lean_ctor_get(x_57, 1);
lean_inc(x_59);
lean_dec(x_57);
x_60 = l_Lean_Elab_Command_elabMacro___lambda__2(x_50, x_26, x_31, x_24, x_3, x_4, x_22, x_41, x_49, x_44, x_5, x_2, x_6, x_7, x_8, x_58, x_11, x_12, x_59);
lean_dec(x_2);
lean_dec(x_24);
return x_60;
}
else
{
uint8_t x_61; 
lean_dec(x_50);
lean_dec(x_49);
lean_dec(x_41);
lean_dec(x_11);
lean_dec(x_24);
lean_dec(x_22);
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_61 = !lean_is_exclusive(x_54);
if (x_61 == 0)
{
return x_54;
}
else
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_62 = lean_ctor_get(x_54, 0);
x_63 = lean_ctor_get(x_54, 1);
lean_inc(x_63);
lean_inc(x_62);
lean_dec(x_54);
x_64 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_64, 0, x_62);
lean_ctor_set(x_64, 1, x_63);
return x_64;
}
}
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_65 = lean_ctor_get(x_48, 0);
lean_inc(x_65);
x_66 = lean_ctor_get(x_48, 1);
lean_inc(x_66);
lean_dec(x_48);
x_67 = lean_ctor_get(x_5, 0);
lean_inc(x_67);
x_68 = l_Lean_Syntax_getId(x_67);
lean_dec(x_67);
x_69 = l_Lean_Elab_Command_elabMacro___lambda__2(x_66, x_26, x_31, x_24, x_3, x_4, x_22, x_41, x_65, x_44, x_5, x_2, x_6, x_7, x_8, x_68, x_11, x_12, x_47);
lean_dec(x_2);
lean_dec(x_24);
return x_69;
}
}
else
{
uint8_t x_70; 
lean_dec(x_41);
lean_dec(x_11);
lean_dec(x_24);
lean_dec(x_22);
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_70 = !lean_is_exclusive(x_45);
if (x_70 == 0)
{
return x_45;
}
else
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_71 = lean_ctor_get(x_45, 0);
x_72 = lean_ctor_get(x_45, 1);
lean_inc(x_72);
lean_inc(x_71);
lean_dec(x_45);
x_73 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_73, 0, x_71);
lean_ctor_set(x_73, 1, x_72);
return x_73;
}
}
}
else
{
uint8_t x_74; 
lean_dec(x_11);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_22);
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_74 = !lean_is_exclusive(x_40);
if (x_74 == 0)
{
return x_40;
}
else
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_75 = lean_ctor_get(x_40, 0);
x_76 = lean_ctor_get(x_40, 1);
lean_inc(x_76);
lean_inc(x_75);
lean_dec(x_40);
x_77 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_77, 0, x_75);
lean_ctor_set(x_77, 1, x_76);
return x_77;
}
}
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; uint8_t x_86; lean_object* x_87; lean_object* x_88; 
x_78 = lean_ctor_get(x_11, 0);
x_79 = lean_ctor_get(x_11, 1);
x_80 = lean_ctor_get(x_11, 2);
x_81 = lean_ctor_get(x_11, 3);
x_82 = lean_ctor_get(x_11, 4);
x_83 = lean_ctor_get(x_11, 5);
x_84 = lean_ctor_get(x_11, 7);
x_85 = lean_ctor_get(x_11, 8);
x_86 = lean_ctor_get_uint8(x_11, sizeof(void*)*9);
lean_inc(x_85);
lean_inc(x_84);
lean_inc(x_83);
lean_inc(x_82);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_inc(x_78);
lean_dec(x_11);
x_87 = lean_alloc_ctor(0, 9, 1);
lean_ctor_set(x_87, 0, x_78);
lean_ctor_set(x_87, 1, x_79);
lean_ctor_set(x_87, 2, x_80);
lean_ctor_set(x_87, 3, x_81);
lean_ctor_set(x_87, 4, x_82);
lean_ctor_set(x_87, 5, x_83);
lean_ctor_set(x_87, 6, x_37);
lean_ctor_set(x_87, 7, x_84);
lean_ctor_set(x_87, 8, x_85);
lean_ctor_set_uint8(x_87, sizeof(void*)*9, x_86);
lean_inc(x_87);
x_88 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__3(x_33, x_87, x_12, x_36);
if (lean_obj_tag(x_88) == 0)
{
lean_object* x_89; lean_object* x_90; size_t x_91; size_t x_92; lean_object* x_93; 
x_89 = lean_ctor_get(x_88, 0);
lean_inc(x_89);
x_90 = lean_ctor_get(x_88, 1);
lean_inc(x_90);
lean_dec(x_88);
x_91 = lean_array_size(x_25);
x_92 = 0;
lean_inc(x_12);
lean_inc(x_87);
x_93 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1(x_91, x_92, x_25, x_87, x_12, x_90);
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_94; lean_object* x_95; lean_object* x_96; 
x_94 = lean_ctor_get(x_93, 0);
lean_inc(x_94);
x_95 = lean_ctor_get(x_93, 1);
lean_inc(x_95);
lean_dec(x_93);
x_96 = l_Array_unzip___rarg(x_94);
lean_dec(x_94);
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; 
x_97 = lean_ctor_get(x_96, 0);
lean_inc(x_97);
x_98 = lean_ctor_get(x_96, 1);
lean_inc(x_98);
lean_dec(x_96);
x_99 = l_Lean_Syntax_getId(x_22);
lean_inc(x_97);
x_100 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_100, 0, x_30);
lean_ctor_set(x_100, 1, x_31);
lean_ctor_set(x_100, 2, x_97);
x_101 = lean_alloc_closure((void*)(l_Lean_Elab_Command_mkNameFromParserSyntax___boxed), 4, 2);
lean_closure_set(x_101, 0, x_99);
lean_closure_set(x_101, 1, x_100);
lean_inc(x_87);
x_102 = l_Lean_Elab_liftMacroM___at_Lean_Elab_Command_elabSyntax___spec__8(x_101, x_87, x_12, x_95);
if (lean_obj_tag(x_102) == 0)
{
lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_103 = lean_ctor_get(x_102, 0);
lean_inc(x_103);
x_104 = lean_ctor_get(x_102, 1);
lean_inc(x_104);
lean_dec(x_102);
lean_inc(x_6);
x_105 = l_Lean_Elab_Command_addMacroScopeIfLocal___at_Lean_Elab_Command_elabSyntax___spec__12(x_103, x_6, x_87, x_12, x_104);
x_106 = lean_ctor_get(x_105, 0);
lean_inc(x_106);
x_107 = lean_ctor_get(x_105, 1);
lean_inc(x_107);
lean_dec(x_105);
x_108 = l_Lean_Elab_Command_elabMacro___lambda__2(x_98, x_26, x_31, x_24, x_3, x_4, x_22, x_89, x_97, x_92, x_5, x_2, x_6, x_7, x_8, x_106, x_87, x_12, x_107);
lean_dec(x_2);
lean_dec(x_24);
return x_108;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 
lean_dec(x_98);
lean_dec(x_97);
lean_dec(x_89);
lean_dec(x_87);
lean_dec(x_24);
lean_dec(x_22);
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_109 = lean_ctor_get(x_102, 0);
lean_inc(x_109);
x_110 = lean_ctor_get(x_102, 1);
lean_inc(x_110);
if (lean_is_exclusive(x_102)) {
 lean_ctor_release(x_102, 0);
 lean_ctor_release(x_102, 1);
 x_111 = x_102;
} else {
 lean_dec_ref(x_102);
 x_111 = lean_box(0);
}
if (lean_is_scalar(x_111)) {
 x_112 = lean_alloc_ctor(1, 2, 0);
} else {
 x_112 = x_111;
}
lean_ctor_set(x_112, 0, x_109);
lean_ctor_set(x_112, 1, x_110);
return x_112;
}
}
else
{
lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; 
x_113 = lean_ctor_get(x_96, 0);
lean_inc(x_113);
x_114 = lean_ctor_get(x_96, 1);
lean_inc(x_114);
lean_dec(x_96);
x_115 = lean_ctor_get(x_5, 0);
lean_inc(x_115);
x_116 = l_Lean_Syntax_getId(x_115);
lean_dec(x_115);
x_117 = l_Lean_Elab_Command_elabMacro___lambda__2(x_114, x_26, x_31, x_24, x_3, x_4, x_22, x_89, x_113, x_92, x_5, x_2, x_6, x_7, x_8, x_116, x_87, x_12, x_95);
lean_dec(x_2);
lean_dec(x_24);
return x_117;
}
}
else
{
lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; 
lean_dec(x_89);
lean_dec(x_87);
lean_dec(x_24);
lean_dec(x_22);
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_118 = lean_ctor_get(x_93, 0);
lean_inc(x_118);
x_119 = lean_ctor_get(x_93, 1);
lean_inc(x_119);
if (lean_is_exclusive(x_93)) {
 lean_ctor_release(x_93, 0);
 lean_ctor_release(x_93, 1);
 x_120 = x_93;
} else {
 lean_dec_ref(x_93);
 x_120 = lean_box(0);
}
if (lean_is_scalar(x_120)) {
 x_121 = lean_alloc_ctor(1, 2, 0);
} else {
 x_121 = x_120;
}
lean_ctor_set(x_121, 0, x_118);
lean_ctor_set(x_121, 1, x_119);
return x_121;
}
}
else
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; 
lean_dec(x_87);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_22);
lean_dec(x_12);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_122 = lean_ctor_get(x_88, 0);
lean_inc(x_122);
x_123 = lean_ctor_get(x_88, 1);
lean_inc(x_123);
if (lean_is_exclusive(x_88)) {
 lean_ctor_release(x_88, 0);
 lean_ctor_release(x_88, 1);
 x_124 = x_88;
} else {
 lean_dec_ref(x_88);
 x_124 = lean_box(0);
}
if (lean_is_scalar(x_124)) {
 x_125 = lean_alloc_ctor(1, 2, 0);
} else {
 x_125 = x_124;
}
lean_ctor_set(x_125, 0, x_122);
lean_ctor_set(x_125, 1, x_123);
return x_125;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__4(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_13 = lean_unsigned_to_nat(6u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = l_Lean_Syntax_isNone(x_14);
if (x_15 == 0)
{
lean_object* x_16; uint8_t x_17; 
x_16 = lean_unsigned_to_nat(1u);
lean_inc(x_14);
x_17 = l_Lean_Syntax_matchesNull(x_14, x_16);
if (x_17 == 0)
{
lean_object* x_18; 
lean_dec(x_14);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_18 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_12);
return x_18;
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_19 = lean_unsigned_to_nat(0u);
x_20 = l_Lean_Syntax_getArg(x_14, x_19);
lean_dec(x_14);
x_21 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__49;
lean_inc(x_20);
x_22 = l_Lean_Syntax_isOfKind(x_20, x_21);
if (x_22 == 0)
{
lean_object* x_23; 
lean_dec(x_20);
lean_dec(x_11);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_23 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_12);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_24 = lean_unsigned_to_nat(3u);
x_25 = l_Lean_Syntax_getArg(x_20, x_24);
lean_dec(x_20);
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_25);
x_27 = lean_box(0);
x_28 = l_Lean_Elab_Command_elabMacro___lambda__3(x_1, x_2, x_3, x_4, x_9, x_5, x_6, x_7, x_27, x_26, x_10, x_11, x_12);
return x_28;
}
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
lean_dec(x_14);
x_29 = lean_box(0);
x_30 = lean_box(0);
x_31 = l_Lean_Elab_Command_elabMacro___lambda__3(x_1, x_2, x_3, x_4, x_9, x_5, x_6, x_7, x_30, x_29, x_10, x_11, x_12);
return x_31;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__5(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_12 = lean_unsigned_to_nat(5u);
x_13 = l_Lean_Syntax_getArg(x_1, x_12);
x_14 = l_Lean_Syntax_isNone(x_13);
if (x_14 == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_unsigned_to_nat(1u);
lean_inc(x_13);
x_16 = l_Lean_Syntax_matchesNull(x_13, x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_13);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_11);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_18 = lean_unsigned_to_nat(0u);
x_19 = l_Lean_Syntax_getArg(x_13, x_18);
lean_dec(x_13);
x_20 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__45;
lean_inc(x_19);
x_21 = l_Lean_Syntax_isOfKind(x_19, x_20);
if (x_21 == 0)
{
lean_object* x_22; 
lean_dec(x_19);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_22 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_11);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_23 = lean_unsigned_to_nat(3u);
x_24 = l_Lean_Syntax_getArg(x_19, x_23);
lean_dec(x_19);
x_25 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_25, 0, x_24);
x_26 = lean_box(0);
x_27 = l_Lean_Elab_Command_elabMacro___lambda__4(x_1, x_2, x_3, x_4, x_5, x_8, x_6, x_26, x_25, x_9, x_10, x_11);
return x_27;
}
}
}
else
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_13);
x_28 = lean_box(0);
x_29 = lean_box(0);
x_30 = l_Lean_Elab_Command_elabMacro___lambda__4(x_1, x_2, x_3, x_4, x_5, x_8, x_6, x_29, x_28, x_9, x_10, x_11);
return x_30;
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__6___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("attrKind", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___lambda__6___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__7;
x_4 = l_Lean_Elab_Command_elabMacro___lambda__6___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__6(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_8 = lean_unsigned_to_nat(2u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Elab_Command_elabMacro___lambda__6___closed__2;
lean_inc(x_9);
x_11 = l_Lean_Syntax_isOfKind(x_9, x_10);
if (x_11 == 0)
{
lean_object* x_12; 
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
x_12 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_7);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; uint8_t x_17; 
x_13 = lean_unsigned_to_nat(3u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(4u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = l_Lean_Syntax_isNone(x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = lean_unsigned_to_nat(1u);
lean_inc(x_16);
x_19 = l_Lean_Syntax_matchesNull(x_16, x_18);
if (x_19 == 0)
{
lean_object* x_20; 
lean_dec(x_16);
lean_dec(x_14);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
x_20 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_7);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_21 = lean_unsigned_to_nat(0u);
x_22 = l_Lean_Syntax_getArg(x_16, x_21);
lean_dec(x_16);
x_23 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__53;
lean_inc(x_22);
x_24 = l_Lean_Syntax_isOfKind(x_22, x_23);
if (x_24 == 0)
{
lean_object* x_25; 
lean_dec(x_22);
lean_dec(x_14);
lean_dec(x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
x_25 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_7);
return x_25;
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_26 = l_Lean_Syntax_getArg(x_22, x_18);
lean_dec(x_22);
x_27 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_27, 0, x_26);
x_28 = lean_box(0);
x_29 = l_Lean_Elab_Command_elabMacro___lambda__5(x_1, x_14, x_10, x_2, x_9, x_4, x_28, x_27, x_5, x_6, x_7);
return x_29;
}
}
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; 
lean_dec(x_16);
x_30 = lean_box(0);
x_31 = lean_box(0);
x_32 = l_Lean_Elab_Command_elabMacro___lambda__5(x_1, x_14, x_10, x_2, x_9, x_4, x_31, x_30, x_5, x_6, x_7);
return x_32;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__7(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_unsigned_to_nat(1u);
x_8 = l_Lean_Syntax_getArg(x_1, x_7);
x_9 = l_Lean_Syntax_isNone(x_8);
if (x_9 == 0)
{
uint8_t x_10; 
lean_inc(x_8);
x_10 = l_Lean_Syntax_matchesNull(x_8, x_7);
if (x_10 == 0)
{
lean_object* x_11; 
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_11 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_6);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_12 = lean_unsigned_to_nat(0u);
x_13 = l_Lean_Syntax_getArg(x_8, x_12);
lean_dec(x_8);
x_14 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__55;
lean_inc(x_13);
x_15 = l_Lean_Syntax_isOfKind(x_13, x_14);
if (x_15 == 0)
{
lean_object* x_16; 
lean_dec(x_13);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
x_16 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_6);
return x_16;
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_17 = l_Lean_Syntax_getArg(x_13, x_7);
lean_dec(x_13);
x_18 = l_Lean_Syntax_getArgs(x_17);
lean_dec(x_17);
x_19 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_19, 0, x_18);
x_20 = lean_box(0);
x_21 = l_Lean_Elab_Command_elabMacro___lambda__6(x_1, x_3, x_20, x_19, x_4, x_5, x_6);
lean_dec(x_19);
return x_21;
}
}
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
lean_dec(x_8);
x_22 = lean_box(0);
x_23 = lean_box(0);
x_24 = l_Lean_Elab_Command_elabMacro___lambda__6(x_1, x_3, x_23, x_22, x_4, x_5, x_6);
return x_24;
}
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("macro", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___closed__1;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("docComment", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__2;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___closed__3;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = l_Lean_Elab_Command_elabMacro___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_7 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Lean_Syntax_getArg(x_1, x_8);
x_10 = l_Lean_Syntax_isNone(x_9);
if (x_10 == 0)
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_unsigned_to_nat(1u);
lean_inc(x_9);
x_12 = l_Lean_Syntax_matchesNull(x_9, x_11);
if (x_12 == 0)
{
lean_object* x_13; 
lean_dec(x_9);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_13 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_14 = l_Lean_Syntax_getArg(x_9, x_8);
lean_dec(x_9);
x_15 = l_Lean_Elab_Command_elabMacro___closed__4;
lean_inc(x_14);
x_16 = l_Lean_Syntax_isOfKind(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; 
lean_dec(x_14);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_17 = l_Lean_Elab_throwUnsupportedSyntax___at_Lean_Elab_Command_elabSyntax___spec__1___rarg(x_4);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_14);
x_19 = lean_box(0);
x_20 = l_Lean_Elab_Command_elabMacro___lambda__7(x_1, x_19, x_18, x_2, x_3, x_4);
lean_dec(x_1);
return x_20;
}
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; 
lean_dec(x_9);
x_21 = lean_box(0);
x_22 = lean_box(0);
x_23 = l_Lean_Elab_Command_elabMacro___lambda__7(x_1, x_22, x_21, x_2, x_3, x_4);
lean_dec(x_1);
return x_23;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_8 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_9 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__1(x_7, x_8, x_3, x_4, x_5, x_6);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l_Array_mapMUnsafe_map___at_Lean_Elab_Command_elabMacro___spec__2(x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__2___boxed(lean_object** _args) {
lean_object* x_1 = _args[0];
lean_object* x_2 = _args[1];
lean_object* x_3 = _args[2];
lean_object* x_4 = _args[3];
lean_object* x_5 = _args[4];
lean_object* x_6 = _args[5];
lean_object* x_7 = _args[6];
lean_object* x_8 = _args[7];
lean_object* x_9 = _args[8];
lean_object* x_10 = _args[9];
lean_object* x_11 = _args[10];
lean_object* x_12 = _args[11];
lean_object* x_13 = _args[12];
lean_object* x_14 = _args[13];
lean_object* x_15 = _args[14];
lean_object* x_16 = _args[15];
lean_object* x_17 = _args[16];
lean_object* x_18 = _args[17];
lean_object* x_19 = _args[18];
_start:
{
size_t x_20; lean_object* x_21; 
x_20 = lean_unbox_usize(x_10);
lean_dec(x_10);
x_21 = l_Lean_Elab_Command_elabMacro___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_20, x_11, x_12, x_13, x_14, x_15, x_16, x_17, x_18, x_19);
lean_dec(x_15);
lean_dec(x_12);
lean_dec(x_4);
return x_21;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__3___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12, lean_object* x_13) {
_start:
{
lean_object* x_14; 
x_14 = l_Lean_Elab_Command_elabMacro___lambda__3(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12, x_13);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
return x_14;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11, lean_object* x_12) {
_start:
{
lean_object* x_13; 
x_13 = l_Lean_Elab_Command_elabMacro___lambda__4(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11, x_12);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
return x_13;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9, lean_object* x_10, lean_object* x_11) {
_start:
{
lean_object* x_12; 
x_12 = l_Lean_Elab_Command_elabMacro___lambda__5(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9, x_10, x_11);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__6___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Elab_Command_elabMacro___lambda__6(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___lambda__7___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Elab_Command_elabMacro___lambda__7(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_2);
lean_dec(x_1);
return x_7;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Elab", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("elabMacro", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__1;
x_2 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__1;
x_3 = l_Lean_Elab_Command_elabMacro___lambda__2___closed__3;
x_4 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__2;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Command_commandElabAttribute;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Elab_Command_elabMacro), 4, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_2 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__4;
x_3 = l_Lean_Elab_Command_elabMacro___closed__2;
x_4 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__3;
x_5 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__5;
x_6 = l_Lean_KeyedDeclsAttribute_addBuiltin___rarg(x_2, x_3, x_4, x_5, x_1);
return x_6;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(14u);
x_2 = lean_unsigned_to_nat(50u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(44u);
x_2 = lean_unsigned_to_nat(31u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__1;
x_2 = lean_unsigned_to_nat(50u);
x_3 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__2;
x_4 = lean_unsigned_to_nat(31u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(14u);
x_2 = lean_unsigned_to_nat(54u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(14u);
x_2 = lean_unsigned_to_nat(63u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__4;
x_2 = lean_unsigned_to_nat(54u);
x_3 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__5;
x_4 = lean_unsigned_to_nat(63u);
x_5 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_5, 0, x_1);
lean_ctor_set(x_5, 1, x_2);
lean_ctor_set(x_5, 2, x_3);
lean_ctor_set(x_5, 3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__3;
x_2 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__6;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__3;
x_3 = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__7;
x_4 = l_Lean_addBuiltinDeclarationRanges(x_2, x_3, x_1);
return x_4;
}
}
lean_object* initialize_Lean_Elab_MacroArgUtil(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_Macro(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Elab_MacroArgUtil(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__1 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__1);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__2 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__2);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__3 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__3);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__4 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__4);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__5 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__5);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__6 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__6);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__7 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__7);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__8 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__8();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__8);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__9 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__9();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__9);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__10 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__10();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__10);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__11 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__11();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__11);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__12 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__12();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__12);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__13 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__13();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__13);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__14 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__14();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__14);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__15 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__15();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__15);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__16 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__16();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__16);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__17 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__17();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__17);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__18 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__18();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__18);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__19 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__19();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__19);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__20 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__20();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__20);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__21 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__21();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__21);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__22 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__22();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__22);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__23 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__23();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__23);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__24 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__24();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__24);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__25 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__25();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__25);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__26 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__26();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__26);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__27 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__27();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__27);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__28 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__28();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__28);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__29 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__29();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__29);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__30 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__30();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__30);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__31 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__31();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__31);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__32 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__32();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__32);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__33 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__33();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__33);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__34 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__34();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__34);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__35 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__35();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__35);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__36 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__36();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__36);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__37 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__37();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__37);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__38 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__38();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__38);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__39 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__39();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__39);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__40 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__40();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__40);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__41 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__41();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__41);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__42 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__42();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__42);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__43 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__43();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__43);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__44 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__44();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__44);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__45 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__45();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__45);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__46 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__46();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__46);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__47 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__47();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__47);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__48 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__48();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__48);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__49 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__49();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__49);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__50 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__50();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__50);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__51 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__51();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__51);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__52 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__52();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__52);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__53 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__53();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__53);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__54 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__54();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__54);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__55 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__55();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__55);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__56 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__56();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__56);
l_Lean_Elab_Command_elabMacro___lambda__2___closed__57 = _init_l_Lean_Elab_Command_elabMacro___lambda__2___closed__57();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__2___closed__57);
l_Lean_Elab_Command_elabMacro___lambda__3___closed__1 = _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__3___closed__1);
l_Lean_Elab_Command_elabMacro___lambda__3___closed__2 = _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__3___closed__2);
l_Lean_Elab_Command_elabMacro___lambda__3___closed__3 = _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__3___closed__3);
l_Lean_Elab_Command_elabMacro___lambda__3___closed__4 = _init_l_Lean_Elab_Command_elabMacro___lambda__3___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__3___closed__4);
l_Lean_Elab_Command_elabMacro___lambda__6___closed__1 = _init_l_Lean_Elab_Command_elabMacro___lambda__6___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__6___closed__1);
l_Lean_Elab_Command_elabMacro___lambda__6___closed__2 = _init_l_Lean_Elab_Command_elabMacro___lambda__6___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___lambda__6___closed__2);
l_Lean_Elab_Command_elabMacro___closed__1 = _init_l_Lean_Elab_Command_elabMacro___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___closed__1);
l_Lean_Elab_Command_elabMacro___closed__2 = _init_l_Lean_Elab_Command_elabMacro___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___closed__2);
l_Lean_Elab_Command_elabMacro___closed__3 = _init_l_Lean_Elab_Command_elabMacro___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___closed__3);
l_Lean_Elab_Command_elabMacro___closed__4 = _init_l_Lean_Elab_Command_elabMacro___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___closed__4);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__1 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__1);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__2 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__2);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__3 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__3);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__4 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__4);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__5 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1___closed__5);
if (builtin) {res = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro__1(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__1 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__1();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__1);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__2 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__2();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__2);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__3 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__3();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__3);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__4 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__4();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__4);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__5 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__5();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__5);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__6 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__6();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__6);
l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__7 = _init_l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__7();
lean_mark_persistent(l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3___closed__7);
if (builtin) {res = l_Lean_Elab_Command_elabMacro___regBuiltin_Lean_Elab_Command_elabMacro_declRange__3(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
}return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
