// Lean compiler output
// Module: Lean.Data.Trie
// Imports: Init Lean.Data.Format
#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
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_loop(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instInhabitedTrie(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_insertEmpty(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg(lean_object*, uint32_t, lean_object*);
static lean_object* l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1___rarg(lean_object*, lean_object*);
lean_object* l_Std_RBNode_singleton___rarg(lean_object*, lean_object*);
extern lean_object* l_Std_Format_defWidth;
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1___rarg(lean_object*, uint32_t);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_go(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_empty(lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_go___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_Format_joinSep___at_instReprProd___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instEmptyCollectionTrie(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix_loop(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix___rarg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_next(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_insertEmpty___rarg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_RBNode_setBlack___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_go___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instToStringTrie(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(lean_object*, uint32_t, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg(lean_object*, uint32_t);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_collect___rarg(lean_object*, lean_object*);
uint8_t lean_uint32_dec_lt(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(lean_object*, uint32_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instToStringTrie___rarg(lean_object*);
lean_object* lean_format_pretty(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1___rarg(lean_object*, uint32_t);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix(lean_object*);
uint32_t lean_string_utf8_get(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_loop___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f_loop(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg___boxed(lean_object*, lean_object*, lean_object*);
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg(lean_object*, uint32_t, lean_object*);
uint8_t l_Std_RBNode_isRed___rarg(lean_object*);
static lean_object* l_Lean_Parser_Trie_instEmptyCollectionTrie___closed__1;
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix_loop___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(lean_object*, uint32_t, lean_object*);
static lean_object* l_Lean_Parser_Trie_empty___closed__1;
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg(lean_object*, lean_object*);
lean_object* l_Char_quote(uint32_t);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(lean_object*, uint32_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_collect___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_collect(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5(lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg(lean_object*, uint32_t, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2(lean_object*);
uint8_t lean_string_utf8_at_end(lean_object*, lean_object*);
lean_object* lean_nat_to_int(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Parser_Trie_findPrefix___rarg___closed__1;
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f_loop___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f_loop___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_insertEmpty___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* _init_l_Lean_Parser_Trie_empty___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
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_Parser_Trie_empty(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Parser_Trie_empty___closed__1;
return x_2;
}
}
static lean_object* _init_l_Lean_Parser_Trie_instEmptyCollectionTrie___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Parser_Trie_empty(lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instEmptyCollectionTrie(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Parser_Trie_instEmptyCollectionTrie___closed__1;
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instInhabitedTrie(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Parser_Trie_empty___closed__1;
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_insertEmpty___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_string_utf8_at_end(x_1, x_3);
if (x_4 == 0)
{
uint32_t 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; 
x_5 = lean_string_utf8_get(x_1, x_3);
x_6 = lean_string_utf8_next(x_1, x_3);
x_7 = l_Lean_Parser_Trie_insert_insertEmpty___rarg(x_1, x_2, x_6);
lean_dec(x_6);
x_8 = lean_box(0);
x_9 = lean_box_uint32(x_5);
x_10 = l_Std_RBNode_singleton___rarg(x_9, x_7);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_8);
lean_ctor_set(x_11, 1, x_10);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_2);
x_13 = lean_box(0);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_insertEmpty(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_insert_insertEmpty___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_insertEmpty___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Parser_Trie_insert_insertEmpty___rarg(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg(lean_object* x_1, uint32_t x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint32_t x_8; uint8_t x_9; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_unbox_uint32(x_5);
x_9 = lean_uint32_dec_lt(x_2, x_8);
if (x_9 == 0)
{
uint32_t x_10; uint8_t x_11; 
lean_dec(x_4);
x_10 = lean_unbox_uint32(x_5);
lean_dec(x_5);
x_11 = lean_uint32_dec_eq(x_2, x_10);
if (x_11 == 0)
{
lean_dec(x_6);
x_1 = x_7;
goto _start;
}
else
{
lean_object* x_13; 
lean_dec(x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_6);
return x_13;
}
}
else
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_1 = x_4;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg___boxed), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_box(0);
x_5 = 0;
x_6 = lean_box_uint32(x_2);
x_7 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*4, x_5);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint32_t x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_1, 2);
x_13 = lean_ctor_get(x_1, 3);
x_14 = lean_unbox_uint32(x_11);
x_15 = lean_uint32_dec_lt(x_2, x_14);
if (x_15 == 0)
{
uint32_t x_16; uint8_t x_17; 
x_16 = lean_unbox_uint32(x_11);
x_17 = lean_uint32_dec_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_13, x_2, x_3);
x_19 = 0;
lean_ctor_set(x_1, 3, x_18);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19);
return x_1;
}
else
{
uint8_t x_20; lean_object* x_21; 
lean_dec(x_12);
lean_dec(x_11);
x_20 = 0;
x_21 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_21);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_20);
return x_1;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_10, x_2, x_3);
x_23 = 0;
lean_ctor_set(x_1, 0, x_22);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_23);
return x_1;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint32_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_1, 0);
x_25 = lean_ctor_get(x_1, 1);
x_26 = lean_ctor_get(x_1, 2);
x_27 = lean_ctor_get(x_1, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_1);
x_28 = lean_unbox_uint32(x_25);
x_29 = lean_uint32_dec_lt(x_2, x_28);
if (x_29 == 0)
{
uint32_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint32(x_25);
x_31 = lean_uint32_dec_eq(x_2, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_32 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_27, x_2, x_3);
x_33 = 0;
x_34 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_25);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_33);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_26);
lean_dec(x_25);
x_35 = 0;
x_36 = lean_box_uint32(x_2);
x_37 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_37, 0, x_24);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_3);
lean_ctor_set(x_37, 3, x_27);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_35);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; lean_object* x_40; 
x_38 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_24, x_2, x_3);
x_39 = 0;
x_40 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_26);
lean_ctor_set(x_40, 3, x_27);
lean_ctor_set_uint8(x_40, sizeof(void*)*4, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
x_41 = !lean_is_exclusive(x_1);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint32_t x_46; uint8_t x_47; 
x_42 = lean_ctor_get(x_1, 0);
x_43 = lean_ctor_get(x_1, 1);
x_44 = lean_ctor_get(x_1, 2);
x_45 = lean_ctor_get(x_1, 3);
x_46 = lean_unbox_uint32(x_43);
x_47 = lean_uint32_dec_lt(x_2, x_46);
if (x_47 == 0)
{
uint32_t x_48; uint8_t x_49; 
x_48 = lean_unbox_uint32(x_43);
x_49 = lean_uint32_dec_eq(x_2, x_48);
if (x_49 == 0)
{
uint8_t x_50; 
x_50 = l_Std_RBNode_isRed___rarg(x_45);
if (x_50 == 0)
{
lean_object* x_51; uint8_t x_52; 
x_51 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_45, x_2, x_3);
x_52 = 1;
lean_ctor_set(x_1, 3, x_51);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_52);
return x_1;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_45, x_2, x_3);
x_54 = lean_ctor_get(x_53, 0);
lean_inc(x_54);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55; 
x_55 = lean_ctor_get(x_53, 3);
lean_inc(x_55);
if (lean_obj_tag(x_55) == 0)
{
uint8_t x_56; 
x_56 = !lean_is_exclusive(x_53);
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; 
x_57 = lean_ctor_get(x_53, 3);
lean_dec(x_57);
x_58 = lean_ctor_get(x_53, 0);
lean_dec(x_58);
x_59 = 0;
lean_ctor_set(x_53, 0, x_55);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_59);
x_60 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_60);
return x_1;
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; 
x_61 = lean_ctor_get(x_53, 1);
x_62 = lean_ctor_get(x_53, 2);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_53);
x_63 = 0;
x_64 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_64, 0, x_55);
lean_ctor_set(x_64, 1, x_61);
lean_ctor_set(x_64, 2, x_62);
lean_ctor_set(x_64, 3, x_55);
lean_ctor_set_uint8(x_64, sizeof(void*)*4, x_63);
x_65 = 1;
lean_ctor_set(x_1, 3, x_64);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_65);
return x_1;
}
}
else
{
uint8_t x_66; 
x_66 = lean_ctor_get_uint8(x_55, sizeof(void*)*4);
if (x_66 == 0)
{
uint8_t x_67; 
x_67 = !lean_is_exclusive(x_53);
if (x_67 == 0)
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_68 = lean_ctor_get(x_53, 1);
x_69 = lean_ctor_get(x_53, 2);
x_70 = lean_ctor_get(x_53, 3);
lean_dec(x_70);
x_71 = lean_ctor_get(x_53, 0);
lean_dec(x_71);
x_72 = !lean_is_exclusive(x_55);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; 
x_73 = lean_ctor_get(x_55, 0);
x_74 = lean_ctor_get(x_55, 1);
x_75 = lean_ctor_get(x_55, 2);
x_76 = lean_ctor_get(x_55, 3);
x_77 = 1;
lean_ctor_set(x_55, 3, x_54);
lean_ctor_set(x_55, 2, x_44);
lean_ctor_set(x_55, 1, x_43);
lean_ctor_set(x_55, 0, x_42);
lean_ctor_set_uint8(x_55, sizeof(void*)*4, x_77);
lean_ctor_set(x_53, 3, x_76);
lean_ctor_set(x_53, 2, x_75);
lean_ctor_set(x_53, 1, x_74);
lean_ctor_set(x_53, 0, x_73);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_77);
x_78 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_55);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_78);
return x_1;
}
else
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; 
x_79 = lean_ctor_get(x_55, 0);
x_80 = lean_ctor_get(x_55, 1);
x_81 = lean_ctor_get(x_55, 2);
x_82 = lean_ctor_get(x_55, 3);
lean_inc(x_82);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_dec(x_55);
x_83 = 1;
x_84 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_84, 0, x_42);
lean_ctor_set(x_84, 1, x_43);
lean_ctor_set(x_84, 2, x_44);
lean_ctor_set(x_84, 3, x_54);
lean_ctor_set_uint8(x_84, sizeof(void*)*4, x_83);
lean_ctor_set(x_53, 3, x_82);
lean_ctor_set(x_53, 2, x_81);
lean_ctor_set(x_53, 1, x_80);
lean_ctor_set(x_53, 0, x_79);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_83);
x_85 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_84);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_85);
return x_1;
}
}
else
{
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; uint8_t x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_86 = lean_ctor_get(x_53, 1);
x_87 = lean_ctor_get(x_53, 2);
lean_inc(x_87);
lean_inc(x_86);
lean_dec(x_53);
x_88 = lean_ctor_get(x_55, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_55, 1);
lean_inc(x_89);
x_90 = lean_ctor_get(x_55, 2);
lean_inc(x_90);
x_91 = lean_ctor_get(x_55, 3);
lean_inc(x_91);
if (lean_is_exclusive(x_55)) {
 lean_ctor_release(x_55, 0);
 lean_ctor_release(x_55, 1);
 lean_ctor_release(x_55, 2);
 lean_ctor_release(x_55, 3);
 x_92 = x_55;
} else {
 lean_dec_ref(x_55);
 x_92 = lean_box(0);
}
x_93 = 1;
if (lean_is_scalar(x_92)) {
 x_94 = lean_alloc_ctor(1, 4, 1);
} else {
 x_94 = x_92;
}
lean_ctor_set(x_94, 0, x_42);
lean_ctor_set(x_94, 1, x_43);
lean_ctor_set(x_94, 2, x_44);
lean_ctor_set(x_94, 3, x_54);
lean_ctor_set_uint8(x_94, sizeof(void*)*4, x_93);
x_95 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_95, 0, x_88);
lean_ctor_set(x_95, 1, x_89);
lean_ctor_set(x_95, 2, x_90);
lean_ctor_set(x_95, 3, x_91);
lean_ctor_set_uint8(x_95, sizeof(void*)*4, x_93);
x_96 = 0;
lean_ctor_set(x_1, 3, x_95);
lean_ctor_set(x_1, 2, x_87);
lean_ctor_set(x_1, 1, x_86);
lean_ctor_set(x_1, 0, x_94);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_96);
return x_1;
}
}
else
{
uint8_t x_97; 
x_97 = !lean_is_exclusive(x_53);
if (x_97 == 0)
{
lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; 
x_98 = lean_ctor_get(x_53, 3);
lean_dec(x_98);
x_99 = lean_ctor_get(x_53, 0);
lean_dec(x_99);
x_100 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_100);
x_101 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_101);
return x_1;
}
else
{
lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; uint8_t x_106; 
x_102 = lean_ctor_get(x_53, 1);
x_103 = lean_ctor_get(x_53, 2);
lean_inc(x_103);
lean_inc(x_102);
lean_dec(x_53);
x_104 = 0;
x_105 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_105, 0, x_54);
lean_ctor_set(x_105, 1, x_102);
lean_ctor_set(x_105, 2, x_103);
lean_ctor_set(x_105, 3, x_55);
lean_ctor_set_uint8(x_105, sizeof(void*)*4, x_104);
x_106 = 1;
lean_ctor_set(x_1, 3, x_105);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_106);
return x_1;
}
}
}
}
else
{
uint8_t x_107; 
x_107 = lean_ctor_get_uint8(x_54, sizeof(void*)*4);
if (x_107 == 0)
{
uint8_t x_108; 
x_108 = !lean_is_exclusive(x_53);
if (x_108 == 0)
{
lean_object* x_109; uint8_t x_110; 
x_109 = lean_ctor_get(x_53, 0);
lean_dec(x_109);
x_110 = !lean_is_exclusive(x_54);
if (x_110 == 0)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; 
x_111 = lean_ctor_get(x_54, 0);
x_112 = lean_ctor_get(x_54, 1);
x_113 = lean_ctor_get(x_54, 2);
x_114 = lean_ctor_get(x_54, 3);
x_115 = 1;
lean_ctor_set(x_54, 3, x_111);
lean_ctor_set(x_54, 2, x_44);
lean_ctor_set(x_54, 1, x_43);
lean_ctor_set(x_54, 0, x_42);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_115);
lean_ctor_set(x_53, 0, x_114);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_115);
x_116 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_113);
lean_ctor_set(x_1, 1, x_112);
lean_ctor_set(x_1, 0, x_54);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_116);
return x_1;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; 
x_117 = lean_ctor_get(x_54, 0);
x_118 = lean_ctor_get(x_54, 1);
x_119 = lean_ctor_get(x_54, 2);
x_120 = lean_ctor_get(x_54, 3);
lean_inc(x_120);
lean_inc(x_119);
lean_inc(x_118);
lean_inc(x_117);
lean_dec(x_54);
x_121 = 1;
x_122 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_122, 0, x_42);
lean_ctor_set(x_122, 1, x_43);
lean_ctor_set(x_122, 2, x_44);
lean_ctor_set(x_122, 3, x_117);
lean_ctor_set_uint8(x_122, sizeof(void*)*4, x_121);
lean_ctor_set(x_53, 0, x_120);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_121);
x_123 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_119);
lean_ctor_set(x_1, 1, x_118);
lean_ctor_set(x_1, 0, x_122);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_123);
return x_1;
}
}
else
{
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; uint8_t x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; 
x_124 = lean_ctor_get(x_53, 1);
x_125 = lean_ctor_get(x_53, 2);
x_126 = lean_ctor_get(x_53, 3);
lean_inc(x_126);
lean_inc(x_125);
lean_inc(x_124);
lean_dec(x_53);
x_127 = lean_ctor_get(x_54, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_54, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_54, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_54, 3);
lean_inc(x_130);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_131 = x_54;
} else {
 lean_dec_ref(x_54);
 x_131 = lean_box(0);
}
x_132 = 1;
if (lean_is_scalar(x_131)) {
 x_133 = lean_alloc_ctor(1, 4, 1);
} else {
 x_133 = x_131;
}
lean_ctor_set(x_133, 0, x_42);
lean_ctor_set(x_133, 1, x_43);
lean_ctor_set(x_133, 2, x_44);
lean_ctor_set(x_133, 3, x_127);
lean_ctor_set_uint8(x_133, sizeof(void*)*4, x_132);
x_134 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_134, 0, x_130);
lean_ctor_set(x_134, 1, x_124);
lean_ctor_set(x_134, 2, x_125);
lean_ctor_set(x_134, 3, x_126);
lean_ctor_set_uint8(x_134, sizeof(void*)*4, x_132);
x_135 = 0;
lean_ctor_set(x_1, 3, x_134);
lean_ctor_set(x_1, 2, x_129);
lean_ctor_set(x_1, 1, x_128);
lean_ctor_set(x_1, 0, x_133);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_135);
return x_1;
}
}
else
{
lean_object* x_136; 
x_136 = lean_ctor_get(x_53, 3);
lean_inc(x_136);
if (lean_obj_tag(x_136) == 0)
{
uint8_t x_137; 
x_137 = !lean_is_exclusive(x_53);
if (x_137 == 0)
{
lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; 
x_138 = lean_ctor_get(x_53, 3);
lean_dec(x_138);
x_139 = lean_ctor_get(x_53, 0);
lean_dec(x_139);
x_140 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_140);
x_141 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_141);
return x_1;
}
else
{
lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; uint8_t x_146; 
x_142 = lean_ctor_get(x_53, 1);
x_143 = lean_ctor_get(x_53, 2);
lean_inc(x_143);
lean_inc(x_142);
lean_dec(x_53);
x_144 = 0;
x_145 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_145, 0, x_54);
lean_ctor_set(x_145, 1, x_142);
lean_ctor_set(x_145, 2, x_143);
lean_ctor_set(x_145, 3, x_136);
lean_ctor_set_uint8(x_145, sizeof(void*)*4, x_144);
x_146 = 1;
lean_ctor_set(x_1, 3, x_145);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_146);
return x_1;
}
}
else
{
uint8_t x_147; 
x_147 = lean_ctor_get_uint8(x_136, sizeof(void*)*4);
if (x_147 == 0)
{
uint8_t x_148; 
lean_free_object(x_1);
x_148 = !lean_is_exclusive(x_53);
if (x_148 == 0)
{
lean_object* x_149; lean_object* x_150; uint8_t x_151; 
x_149 = lean_ctor_get(x_53, 3);
lean_dec(x_149);
x_150 = lean_ctor_get(x_53, 0);
lean_dec(x_150);
x_151 = !lean_is_exclusive(x_136);
if (x_151 == 0)
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; uint8_t x_157; 
x_152 = lean_ctor_get(x_136, 0);
x_153 = lean_ctor_get(x_136, 1);
x_154 = lean_ctor_get(x_136, 2);
x_155 = lean_ctor_get(x_136, 3);
x_156 = 1;
lean_inc(x_54);
lean_ctor_set(x_136, 3, x_54);
lean_ctor_set(x_136, 2, x_44);
lean_ctor_set(x_136, 1, x_43);
lean_ctor_set(x_136, 0, x_42);
x_157 = !lean_is_exclusive(x_54);
if (x_157 == 0)
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; 
x_158 = lean_ctor_get(x_54, 3);
lean_dec(x_158);
x_159 = lean_ctor_get(x_54, 2);
lean_dec(x_159);
x_160 = lean_ctor_get(x_54, 1);
lean_dec(x_160);
x_161 = lean_ctor_get(x_54, 0);
lean_dec(x_161);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
lean_ctor_set(x_54, 3, x_155);
lean_ctor_set(x_54, 2, x_154);
lean_ctor_set(x_54, 1, x_153);
lean_ctor_set(x_54, 0, x_152);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_156);
x_162 = 0;
lean_ctor_set(x_53, 3, x_54);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_162);
return x_53;
}
else
{
lean_object* x_163; uint8_t x_164; 
lean_dec(x_54);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
x_163 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_163, 0, x_152);
lean_ctor_set(x_163, 1, x_153);
lean_ctor_set(x_163, 2, x_154);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set_uint8(x_163, sizeof(void*)*4, x_156);
x_164 = 0;
lean_ctor_set(x_53, 3, x_163);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_164);
return x_53;
}
}
else
{
lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; 
x_165 = lean_ctor_get(x_136, 0);
x_166 = lean_ctor_get(x_136, 1);
x_167 = lean_ctor_get(x_136, 2);
x_168 = lean_ctor_get(x_136, 3);
lean_inc(x_168);
lean_inc(x_167);
lean_inc(x_166);
lean_inc(x_165);
lean_dec(x_136);
x_169 = 1;
lean_inc(x_54);
x_170 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_170, 0, x_42);
lean_ctor_set(x_170, 1, x_43);
lean_ctor_set(x_170, 2, x_44);
lean_ctor_set(x_170, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_171 = x_54;
} else {
 lean_dec_ref(x_54);
 x_171 = lean_box(0);
}
lean_ctor_set_uint8(x_170, sizeof(void*)*4, x_169);
if (lean_is_scalar(x_171)) {
 x_172 = lean_alloc_ctor(1, 4, 1);
} else {
 x_172 = x_171;
}
lean_ctor_set(x_172, 0, x_165);
lean_ctor_set(x_172, 1, x_166);
lean_ctor_set(x_172, 2, x_167);
lean_ctor_set(x_172, 3, x_168);
lean_ctor_set_uint8(x_172, sizeof(void*)*4, x_169);
x_173 = 0;
lean_ctor_set(x_53, 3, x_172);
lean_ctor_set(x_53, 0, x_170);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_173);
return x_53;
}
}
else
{
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; uint8_t x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; 
x_174 = lean_ctor_get(x_53, 1);
x_175 = lean_ctor_get(x_53, 2);
lean_inc(x_175);
lean_inc(x_174);
lean_dec(x_53);
x_176 = lean_ctor_get(x_136, 0);
lean_inc(x_176);
x_177 = lean_ctor_get(x_136, 1);
lean_inc(x_177);
x_178 = lean_ctor_get(x_136, 2);
lean_inc(x_178);
x_179 = lean_ctor_get(x_136, 3);
lean_inc(x_179);
if (lean_is_exclusive(x_136)) {
 lean_ctor_release(x_136, 0);
 lean_ctor_release(x_136, 1);
 lean_ctor_release(x_136, 2);
 lean_ctor_release(x_136, 3);
 x_180 = x_136;
} else {
 lean_dec_ref(x_136);
 x_180 = lean_box(0);
}
x_181 = 1;
lean_inc(x_54);
if (lean_is_scalar(x_180)) {
 x_182 = lean_alloc_ctor(1, 4, 1);
} else {
 x_182 = x_180;
}
lean_ctor_set(x_182, 0, x_42);
lean_ctor_set(x_182, 1, x_43);
lean_ctor_set(x_182, 2, x_44);
lean_ctor_set(x_182, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_183 = x_54;
} else {
 lean_dec_ref(x_54);
 x_183 = lean_box(0);
}
lean_ctor_set_uint8(x_182, sizeof(void*)*4, x_181);
if (lean_is_scalar(x_183)) {
 x_184 = lean_alloc_ctor(1, 4, 1);
} else {
 x_184 = x_183;
}
lean_ctor_set(x_184, 0, x_176);
lean_ctor_set(x_184, 1, x_177);
lean_ctor_set(x_184, 2, x_178);
lean_ctor_set(x_184, 3, x_179);
lean_ctor_set_uint8(x_184, sizeof(void*)*4, x_181);
x_185 = 0;
x_186 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_186, 0, x_182);
lean_ctor_set(x_186, 1, x_174);
lean_ctor_set(x_186, 2, x_175);
lean_ctor_set(x_186, 3, x_184);
lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_185);
return x_186;
}
}
else
{
uint8_t x_187; 
x_187 = !lean_is_exclusive(x_53);
if (x_187 == 0)
{
lean_object* x_188; lean_object* x_189; uint8_t x_190; 
x_188 = lean_ctor_get(x_53, 3);
lean_dec(x_188);
x_189 = lean_ctor_get(x_53, 0);
lean_dec(x_189);
x_190 = !lean_is_exclusive(x_54);
if (x_190 == 0)
{
uint8_t x_191; uint8_t x_192; 
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_147);
x_191 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_191);
x_192 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_192);
return x_1;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; 
x_193 = lean_ctor_get(x_54, 0);
x_194 = lean_ctor_get(x_54, 1);
x_195 = lean_ctor_get(x_54, 2);
x_196 = lean_ctor_get(x_54, 3);
lean_inc(x_196);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_54);
x_197 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_197, 0, x_193);
lean_ctor_set(x_197, 1, x_194);
lean_ctor_set(x_197, 2, x_195);
lean_ctor_set(x_197, 3, x_196);
lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_147);
x_198 = 0;
lean_ctor_set(x_53, 0, x_197);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_198);
x_199 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199);
return x_1;
}
}
else
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; uint8_t x_210; 
x_200 = lean_ctor_get(x_53, 1);
x_201 = lean_ctor_get(x_53, 2);
lean_inc(x_201);
lean_inc(x_200);
lean_dec(x_53);
x_202 = lean_ctor_get(x_54, 0);
lean_inc(x_202);
x_203 = lean_ctor_get(x_54, 1);
lean_inc(x_203);
x_204 = lean_ctor_get(x_54, 2);
lean_inc(x_204);
x_205 = lean_ctor_get(x_54, 3);
lean_inc(x_205);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_206 = x_54;
} else {
 lean_dec_ref(x_54);
 x_206 = lean_box(0);
}
if (lean_is_scalar(x_206)) {
 x_207 = lean_alloc_ctor(1, 4, 1);
} else {
 x_207 = x_206;
}
lean_ctor_set(x_207, 0, x_202);
lean_ctor_set(x_207, 1, x_203);
lean_ctor_set(x_207, 2, x_204);
lean_ctor_set(x_207, 3, x_205);
lean_ctor_set_uint8(x_207, sizeof(void*)*4, x_147);
x_208 = 0;
x_209 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_209, 0, x_207);
lean_ctor_set(x_209, 1, x_200);
lean_ctor_set(x_209, 2, x_201);
lean_ctor_set(x_209, 3, x_136);
lean_ctor_set_uint8(x_209, sizeof(void*)*4, x_208);
x_210 = 1;
lean_ctor_set(x_1, 3, x_209);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_210);
return x_1;
}
}
}
}
}
}
}
else
{
uint8_t x_211; lean_object* x_212; 
lean_dec(x_44);
lean_dec(x_43);
x_211 = 1;
x_212 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_212);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211);
return x_1;
}
}
else
{
uint8_t x_213; 
x_213 = l_Std_RBNode_isRed___rarg(x_42);
if (x_213 == 0)
{
lean_object* x_214; uint8_t x_215; 
x_214 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_42, x_2, x_3);
x_215 = 1;
lean_ctor_set(x_1, 0, x_214);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_215);
return x_1;
}
else
{
lean_object* x_216; lean_object* x_217; 
x_216 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_42, x_2, x_3);
x_217 = lean_ctor_get(x_216, 0);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
lean_object* x_218; 
x_218 = lean_ctor_get(x_216, 3);
lean_inc(x_218);
if (lean_obj_tag(x_218) == 0)
{
uint8_t x_219; 
x_219 = !lean_is_exclusive(x_216);
if (x_219 == 0)
{
lean_object* x_220; lean_object* x_221; uint8_t x_222; uint8_t x_223; 
x_220 = lean_ctor_get(x_216, 3);
lean_dec(x_220);
x_221 = lean_ctor_get(x_216, 0);
lean_dec(x_221);
x_222 = 0;
lean_ctor_set(x_216, 0, x_218);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_222);
x_223 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_223);
return x_1;
}
else
{
lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; uint8_t x_228; 
x_224 = lean_ctor_get(x_216, 1);
x_225 = lean_ctor_get(x_216, 2);
lean_inc(x_225);
lean_inc(x_224);
lean_dec(x_216);
x_226 = 0;
x_227 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_227, 0, x_218);
lean_ctor_set(x_227, 1, x_224);
lean_ctor_set(x_227, 2, x_225);
lean_ctor_set(x_227, 3, x_218);
lean_ctor_set_uint8(x_227, sizeof(void*)*4, x_226);
x_228 = 1;
lean_ctor_set(x_1, 0, x_227);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_228);
return x_1;
}
}
else
{
uint8_t x_229; 
x_229 = lean_ctor_get_uint8(x_218, sizeof(void*)*4);
if (x_229 == 0)
{
uint8_t x_230; 
x_230 = !lean_is_exclusive(x_216);
if (x_230 == 0)
{
lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; 
x_231 = lean_ctor_get(x_216, 1);
x_232 = lean_ctor_get(x_216, 2);
x_233 = lean_ctor_get(x_216, 3);
lean_dec(x_233);
x_234 = lean_ctor_get(x_216, 0);
lean_dec(x_234);
x_235 = !lean_is_exclusive(x_218);
if (x_235 == 0)
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; uint8_t x_241; 
x_236 = lean_ctor_get(x_218, 0);
x_237 = lean_ctor_get(x_218, 1);
x_238 = lean_ctor_get(x_218, 2);
x_239 = lean_ctor_get(x_218, 3);
x_240 = 1;
lean_ctor_set(x_218, 3, x_236);
lean_ctor_set(x_218, 2, x_232);
lean_ctor_set(x_218, 1, x_231);
lean_ctor_set(x_218, 0, x_217);
lean_ctor_set_uint8(x_218, sizeof(void*)*4, x_240);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_239);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_240);
x_241 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_238);
lean_ctor_set(x_1, 1, x_237);
lean_ctor_set(x_1, 0, x_218);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_241);
return x_1;
}
else
{
lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; uint8_t x_246; lean_object* x_247; uint8_t x_248; 
x_242 = lean_ctor_get(x_218, 0);
x_243 = lean_ctor_get(x_218, 1);
x_244 = lean_ctor_get(x_218, 2);
x_245 = lean_ctor_get(x_218, 3);
lean_inc(x_245);
lean_inc(x_244);
lean_inc(x_243);
lean_inc(x_242);
lean_dec(x_218);
x_246 = 1;
x_247 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_247, 0, x_217);
lean_ctor_set(x_247, 1, x_231);
lean_ctor_set(x_247, 2, x_232);
lean_ctor_set(x_247, 3, x_242);
lean_ctor_set_uint8(x_247, sizeof(void*)*4, x_246);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_245);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_246);
x_248 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_244);
lean_ctor_set(x_1, 1, x_243);
lean_ctor_set(x_1, 0, x_247);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_248);
return x_1;
}
}
else
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; 
x_249 = lean_ctor_get(x_216, 1);
x_250 = lean_ctor_get(x_216, 2);
lean_inc(x_250);
lean_inc(x_249);
lean_dec(x_216);
x_251 = lean_ctor_get(x_218, 0);
lean_inc(x_251);
x_252 = lean_ctor_get(x_218, 1);
lean_inc(x_252);
x_253 = lean_ctor_get(x_218, 2);
lean_inc(x_253);
x_254 = lean_ctor_get(x_218, 3);
lean_inc(x_254);
if (lean_is_exclusive(x_218)) {
 lean_ctor_release(x_218, 0);
 lean_ctor_release(x_218, 1);
 lean_ctor_release(x_218, 2);
 lean_ctor_release(x_218, 3);
 x_255 = x_218;
} else {
 lean_dec_ref(x_218);
 x_255 = lean_box(0);
}
x_256 = 1;
if (lean_is_scalar(x_255)) {
 x_257 = lean_alloc_ctor(1, 4, 1);
} else {
 x_257 = x_255;
}
lean_ctor_set(x_257, 0, x_217);
lean_ctor_set(x_257, 1, x_249);
lean_ctor_set(x_257, 2, x_250);
lean_ctor_set(x_257, 3, x_251);
lean_ctor_set_uint8(x_257, sizeof(void*)*4, x_256);
x_258 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_258, 0, x_254);
lean_ctor_set(x_258, 1, x_43);
lean_ctor_set(x_258, 2, x_44);
lean_ctor_set(x_258, 3, x_45);
lean_ctor_set_uint8(x_258, sizeof(void*)*4, x_256);
x_259 = 0;
lean_ctor_set(x_1, 3, x_258);
lean_ctor_set(x_1, 2, x_253);
lean_ctor_set(x_1, 1, x_252);
lean_ctor_set(x_1, 0, x_257);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_259);
return x_1;
}
}
else
{
uint8_t x_260; 
x_260 = !lean_is_exclusive(x_216);
if (x_260 == 0)
{
lean_object* x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; 
x_261 = lean_ctor_get(x_216, 3);
lean_dec(x_261);
x_262 = lean_ctor_get(x_216, 0);
lean_dec(x_262);
x_263 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_263);
x_264 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_264);
return x_1;
}
else
{
lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; uint8_t x_269; 
x_265 = lean_ctor_get(x_216, 1);
x_266 = lean_ctor_get(x_216, 2);
lean_inc(x_266);
lean_inc(x_265);
lean_dec(x_216);
x_267 = 0;
x_268 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_268, 0, x_217);
lean_ctor_set(x_268, 1, x_265);
lean_ctor_set(x_268, 2, x_266);
lean_ctor_set(x_268, 3, x_218);
lean_ctor_set_uint8(x_268, sizeof(void*)*4, x_267);
x_269 = 1;
lean_ctor_set(x_1, 0, x_268);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_269);
return x_1;
}
}
}
}
else
{
uint8_t x_270; 
x_270 = lean_ctor_get_uint8(x_217, sizeof(void*)*4);
if (x_270 == 0)
{
uint8_t x_271; 
x_271 = !lean_is_exclusive(x_216);
if (x_271 == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; 
x_272 = lean_ctor_get(x_216, 1);
x_273 = lean_ctor_get(x_216, 2);
x_274 = lean_ctor_get(x_216, 3);
x_275 = lean_ctor_get(x_216, 0);
lean_dec(x_275);
x_276 = !lean_is_exclusive(x_217);
if (x_276 == 0)
{
uint8_t x_277; uint8_t x_278; 
x_277 = 1;
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_277);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_277);
x_278 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_217);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_278);
return x_1;
}
else
{
lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; uint8_t x_285; 
x_279 = lean_ctor_get(x_217, 0);
x_280 = lean_ctor_get(x_217, 1);
x_281 = lean_ctor_get(x_217, 2);
x_282 = lean_ctor_get(x_217, 3);
lean_inc(x_282);
lean_inc(x_281);
lean_inc(x_280);
lean_inc(x_279);
lean_dec(x_217);
x_283 = 1;
x_284 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_284, 0, x_279);
lean_ctor_set(x_284, 1, x_280);
lean_ctor_set(x_284, 2, x_281);
lean_ctor_set(x_284, 3, x_282);
lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_283);
x_285 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_284);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_285);
return x_1;
}
}
else
{
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; uint8_t x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_286 = lean_ctor_get(x_216, 1);
x_287 = lean_ctor_get(x_216, 2);
x_288 = lean_ctor_get(x_216, 3);
lean_inc(x_288);
lean_inc(x_287);
lean_inc(x_286);
lean_dec(x_216);
x_289 = lean_ctor_get(x_217, 0);
lean_inc(x_289);
x_290 = lean_ctor_get(x_217, 1);
lean_inc(x_290);
x_291 = lean_ctor_get(x_217, 2);
lean_inc(x_291);
x_292 = lean_ctor_get(x_217, 3);
lean_inc(x_292);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_293 = x_217;
} else {
 lean_dec_ref(x_217);
 x_293 = lean_box(0);
}
x_294 = 1;
if (lean_is_scalar(x_293)) {
 x_295 = lean_alloc_ctor(1, 4, 1);
} else {
 x_295 = x_293;
}
lean_ctor_set(x_295, 0, x_289);
lean_ctor_set(x_295, 1, x_290);
lean_ctor_set(x_295, 2, x_291);
lean_ctor_set(x_295, 3, x_292);
lean_ctor_set_uint8(x_295, sizeof(void*)*4, x_294);
x_296 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_296, 0, x_288);
lean_ctor_set(x_296, 1, x_43);
lean_ctor_set(x_296, 2, x_44);
lean_ctor_set(x_296, 3, x_45);
lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_294);
x_297 = 0;
lean_ctor_set(x_1, 3, x_296);
lean_ctor_set(x_1, 2, x_287);
lean_ctor_set(x_1, 1, x_286);
lean_ctor_set(x_1, 0, x_295);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297);
return x_1;
}
}
else
{
lean_object* x_298; 
x_298 = lean_ctor_get(x_216, 3);
lean_inc(x_298);
if (lean_obj_tag(x_298) == 0)
{
uint8_t x_299; 
x_299 = !lean_is_exclusive(x_216);
if (x_299 == 0)
{
lean_object* x_300; lean_object* x_301; uint8_t x_302; uint8_t x_303; 
x_300 = lean_ctor_get(x_216, 3);
lean_dec(x_300);
x_301 = lean_ctor_get(x_216, 0);
lean_dec(x_301);
x_302 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_302);
x_303 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_303);
return x_1;
}
else
{
lean_object* x_304; lean_object* x_305; uint8_t x_306; lean_object* x_307; uint8_t x_308; 
x_304 = lean_ctor_get(x_216, 1);
x_305 = lean_ctor_get(x_216, 2);
lean_inc(x_305);
lean_inc(x_304);
lean_dec(x_216);
x_306 = 0;
x_307 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_307, 0, x_217);
lean_ctor_set(x_307, 1, x_304);
lean_ctor_set(x_307, 2, x_305);
lean_ctor_set(x_307, 3, x_298);
lean_ctor_set_uint8(x_307, sizeof(void*)*4, x_306);
x_308 = 1;
lean_ctor_set(x_1, 0, x_307);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_308);
return x_1;
}
}
else
{
uint8_t x_309; 
x_309 = lean_ctor_get_uint8(x_298, sizeof(void*)*4);
if (x_309 == 0)
{
uint8_t x_310; 
lean_free_object(x_1);
x_310 = !lean_is_exclusive(x_216);
if (x_310 == 0)
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; 
x_311 = lean_ctor_get(x_216, 1);
x_312 = lean_ctor_get(x_216, 2);
x_313 = lean_ctor_get(x_216, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_216, 0);
lean_dec(x_314);
x_315 = !lean_is_exclusive(x_298);
if (x_315 == 0)
{
lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; uint8_t x_321; 
x_316 = lean_ctor_get(x_298, 0);
x_317 = lean_ctor_get(x_298, 1);
x_318 = lean_ctor_get(x_298, 2);
x_319 = lean_ctor_get(x_298, 3);
x_320 = 1;
lean_inc(x_217);
lean_ctor_set(x_298, 3, x_316);
lean_ctor_set(x_298, 2, x_312);
lean_ctor_set(x_298, 1, x_311);
lean_ctor_set(x_298, 0, x_217);
x_321 = !lean_is_exclusive(x_217);
if (x_321 == 0)
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; 
x_322 = lean_ctor_get(x_217, 3);
lean_dec(x_322);
x_323 = lean_ctor_get(x_217, 2);
lean_dec(x_323);
x_324 = lean_ctor_get(x_217, 1);
lean_dec(x_324);
x_325 = lean_ctor_get(x_217, 0);
lean_dec(x_325);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
lean_ctor_set(x_217, 3, x_45);
lean_ctor_set(x_217, 2, x_44);
lean_ctor_set(x_217, 1, x_43);
lean_ctor_set(x_217, 0, x_319);
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_320);
x_326 = 0;
lean_ctor_set(x_216, 3, x_217);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_326);
return x_216;
}
else
{
lean_object* x_327; uint8_t x_328; 
lean_dec(x_217);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
x_327 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_327, 0, x_319);
lean_ctor_set(x_327, 1, x_43);
lean_ctor_set(x_327, 2, x_44);
lean_ctor_set(x_327, 3, x_45);
lean_ctor_set_uint8(x_327, sizeof(void*)*4, x_320);
x_328 = 0;
lean_ctor_set(x_216, 3, x_327);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_328);
return x_216;
}
}
else
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; 
x_329 = lean_ctor_get(x_298, 0);
x_330 = lean_ctor_get(x_298, 1);
x_331 = lean_ctor_get(x_298, 2);
x_332 = lean_ctor_get(x_298, 3);
lean_inc(x_332);
lean_inc(x_331);
lean_inc(x_330);
lean_inc(x_329);
lean_dec(x_298);
x_333 = 1;
lean_inc(x_217);
x_334 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_334, 0, x_217);
lean_ctor_set(x_334, 1, x_311);
lean_ctor_set(x_334, 2, x_312);
lean_ctor_set(x_334, 3, x_329);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_335 = x_217;
} else {
 lean_dec_ref(x_217);
 x_335 = lean_box(0);
}
lean_ctor_set_uint8(x_334, sizeof(void*)*4, x_333);
if (lean_is_scalar(x_335)) {
 x_336 = lean_alloc_ctor(1, 4, 1);
} else {
 x_336 = x_335;
}
lean_ctor_set(x_336, 0, x_332);
lean_ctor_set(x_336, 1, x_43);
lean_ctor_set(x_336, 2, x_44);
lean_ctor_set(x_336, 3, x_45);
lean_ctor_set_uint8(x_336, sizeof(void*)*4, x_333);
x_337 = 0;
lean_ctor_set(x_216, 3, x_336);
lean_ctor_set(x_216, 2, x_331);
lean_ctor_set(x_216, 1, x_330);
lean_ctor_set(x_216, 0, x_334);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_337);
return x_216;
}
}
else
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; lean_object* x_350; 
x_338 = lean_ctor_get(x_216, 1);
x_339 = lean_ctor_get(x_216, 2);
lean_inc(x_339);
lean_inc(x_338);
lean_dec(x_216);
x_340 = lean_ctor_get(x_298, 0);
lean_inc(x_340);
x_341 = lean_ctor_get(x_298, 1);
lean_inc(x_341);
x_342 = lean_ctor_get(x_298, 2);
lean_inc(x_342);
x_343 = lean_ctor_get(x_298, 3);
lean_inc(x_343);
if (lean_is_exclusive(x_298)) {
 lean_ctor_release(x_298, 0);
 lean_ctor_release(x_298, 1);
 lean_ctor_release(x_298, 2);
 lean_ctor_release(x_298, 3);
 x_344 = x_298;
} else {
 lean_dec_ref(x_298);
 x_344 = lean_box(0);
}
x_345 = 1;
lean_inc(x_217);
if (lean_is_scalar(x_344)) {
 x_346 = lean_alloc_ctor(1, 4, 1);
} else {
 x_346 = x_344;
}
lean_ctor_set(x_346, 0, x_217);
lean_ctor_set(x_346, 1, x_338);
lean_ctor_set(x_346, 2, x_339);
lean_ctor_set(x_346, 3, x_340);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_347 = x_217;
} else {
 lean_dec_ref(x_217);
 x_347 = lean_box(0);
}
lean_ctor_set_uint8(x_346, sizeof(void*)*4, x_345);
if (lean_is_scalar(x_347)) {
 x_348 = lean_alloc_ctor(1, 4, 1);
} else {
 x_348 = x_347;
}
lean_ctor_set(x_348, 0, x_343);
lean_ctor_set(x_348, 1, x_43);
lean_ctor_set(x_348, 2, x_44);
lean_ctor_set(x_348, 3, x_45);
lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_345);
x_349 = 0;
x_350 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_350, 0, x_346);
lean_ctor_set(x_350, 1, x_341);
lean_ctor_set(x_350, 2, x_342);
lean_ctor_set(x_350, 3, x_348);
lean_ctor_set_uint8(x_350, sizeof(void*)*4, x_349);
return x_350;
}
}
else
{
uint8_t x_351; 
x_351 = !lean_is_exclusive(x_216);
if (x_351 == 0)
{
lean_object* x_352; lean_object* x_353; uint8_t x_354; 
x_352 = lean_ctor_get(x_216, 3);
lean_dec(x_352);
x_353 = lean_ctor_get(x_216, 0);
lean_dec(x_353);
x_354 = !lean_is_exclusive(x_217);
if (x_354 == 0)
{
uint8_t x_355; uint8_t x_356; 
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_309);
x_355 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_355);
x_356 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_356);
return x_1;
}
else
{
lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; uint8_t x_362; uint8_t x_363; 
x_357 = lean_ctor_get(x_217, 0);
x_358 = lean_ctor_get(x_217, 1);
x_359 = lean_ctor_get(x_217, 2);
x_360 = lean_ctor_get(x_217, 3);
lean_inc(x_360);
lean_inc(x_359);
lean_inc(x_358);
lean_inc(x_357);
lean_dec(x_217);
x_361 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_361, 0, x_357);
lean_ctor_set(x_361, 1, x_358);
lean_ctor_set(x_361, 2, x_359);
lean_ctor_set(x_361, 3, x_360);
lean_ctor_set_uint8(x_361, sizeof(void*)*4, x_309);
x_362 = 0;
lean_ctor_set(x_216, 0, x_361);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_362);
x_363 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_363);
return x_1;
}
}
else
{
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; uint8_t x_372; lean_object* x_373; uint8_t x_374; 
x_364 = lean_ctor_get(x_216, 1);
x_365 = lean_ctor_get(x_216, 2);
lean_inc(x_365);
lean_inc(x_364);
lean_dec(x_216);
x_366 = lean_ctor_get(x_217, 0);
lean_inc(x_366);
x_367 = lean_ctor_get(x_217, 1);
lean_inc(x_367);
x_368 = lean_ctor_get(x_217, 2);
lean_inc(x_368);
x_369 = lean_ctor_get(x_217, 3);
lean_inc(x_369);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_370 = x_217;
} else {
 lean_dec_ref(x_217);
 x_370 = lean_box(0);
}
if (lean_is_scalar(x_370)) {
 x_371 = lean_alloc_ctor(1, 4, 1);
} else {
 x_371 = x_370;
}
lean_ctor_set(x_371, 0, x_366);
lean_ctor_set(x_371, 1, x_367);
lean_ctor_set(x_371, 2, x_368);
lean_ctor_set(x_371, 3, x_369);
lean_ctor_set_uint8(x_371, sizeof(void*)*4, x_309);
x_372 = 0;
x_373 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_373, 0, x_371);
lean_ctor_set(x_373, 1, x_364);
lean_ctor_set(x_373, 2, x_365);
lean_ctor_set(x_373, 3, x_298);
lean_ctor_set_uint8(x_373, sizeof(void*)*4, x_372);
x_374 = 1;
lean_ctor_set(x_1, 0, x_373);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_374);
return x_1;
}
}
}
}
}
}
}
}
else
{
lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint32_t x_379; uint8_t x_380; 
x_375 = lean_ctor_get(x_1, 0);
x_376 = lean_ctor_get(x_1, 1);
x_377 = lean_ctor_get(x_1, 2);
x_378 = lean_ctor_get(x_1, 3);
lean_inc(x_378);
lean_inc(x_377);
lean_inc(x_376);
lean_inc(x_375);
lean_dec(x_1);
x_379 = lean_unbox_uint32(x_376);
x_380 = lean_uint32_dec_lt(x_2, x_379);
if (x_380 == 0)
{
uint32_t x_381; uint8_t x_382; 
x_381 = lean_unbox_uint32(x_376);
x_382 = lean_uint32_dec_eq(x_2, x_381);
if (x_382 == 0)
{
uint8_t x_383; 
x_383 = l_Std_RBNode_isRed___rarg(x_378);
if (x_383 == 0)
{
lean_object* x_384; uint8_t x_385; lean_object* x_386; 
x_384 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_378, x_2, x_3);
x_385 = 1;
x_386 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_386, 0, x_375);
lean_ctor_set(x_386, 1, x_376);
lean_ctor_set(x_386, 2, x_377);
lean_ctor_set(x_386, 3, x_384);
lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_385);
return x_386;
}
else
{
lean_object* x_387; lean_object* x_388; 
x_387 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_378, x_2, x_3);
x_388 = lean_ctor_get(x_387, 0);
lean_inc(x_388);
if (lean_obj_tag(x_388) == 0)
{
lean_object* x_389; 
x_389 = lean_ctor_get(x_387, 3);
lean_inc(x_389);
if (lean_obj_tag(x_389) == 0)
{
lean_object* x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; uint8_t x_395; lean_object* x_396; 
x_390 = lean_ctor_get(x_387, 1);
lean_inc(x_390);
x_391 = lean_ctor_get(x_387, 2);
lean_inc(x_391);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_392 = x_387;
} else {
 lean_dec_ref(x_387);
 x_392 = lean_box(0);
}
x_393 = 0;
if (lean_is_scalar(x_392)) {
 x_394 = lean_alloc_ctor(1, 4, 1);
} else {
 x_394 = x_392;
}
lean_ctor_set(x_394, 0, x_389);
lean_ctor_set(x_394, 1, x_390);
lean_ctor_set(x_394, 2, x_391);
lean_ctor_set(x_394, 3, x_389);
lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393);
x_395 = 1;
x_396 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_376);
lean_ctor_set(x_396, 2, x_377);
lean_ctor_set(x_396, 3, x_394);
lean_ctor_set_uint8(x_396, sizeof(void*)*4, x_395);
return x_396;
}
else
{
uint8_t x_397; 
x_397 = lean_ctor_get_uint8(x_389, sizeof(void*)*4);
if (x_397 == 0)
{
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; uint8_t x_406; lean_object* x_407; lean_object* x_408; uint8_t x_409; lean_object* x_410; 
x_398 = lean_ctor_get(x_387, 1);
lean_inc(x_398);
x_399 = lean_ctor_get(x_387, 2);
lean_inc(x_399);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_400 = x_387;
} else {
 lean_dec_ref(x_387);
 x_400 = lean_box(0);
}
x_401 = lean_ctor_get(x_389, 0);
lean_inc(x_401);
x_402 = lean_ctor_get(x_389, 1);
lean_inc(x_402);
x_403 = lean_ctor_get(x_389, 2);
lean_inc(x_403);
x_404 = lean_ctor_get(x_389, 3);
lean_inc(x_404);
if (lean_is_exclusive(x_389)) {
 lean_ctor_release(x_389, 0);
 lean_ctor_release(x_389, 1);
 lean_ctor_release(x_389, 2);
 lean_ctor_release(x_389, 3);
 x_405 = x_389;
} else {
 lean_dec_ref(x_389);
 x_405 = lean_box(0);
}
x_406 = 1;
if (lean_is_scalar(x_405)) {
 x_407 = lean_alloc_ctor(1, 4, 1);
} else {
 x_407 = x_405;
}
lean_ctor_set(x_407, 0, x_375);
lean_ctor_set(x_407, 1, x_376);
lean_ctor_set(x_407, 2, x_377);
lean_ctor_set(x_407, 3, x_388);
lean_ctor_set_uint8(x_407, sizeof(void*)*4, x_406);
if (lean_is_scalar(x_400)) {
 x_408 = lean_alloc_ctor(1, 4, 1);
} else {
 x_408 = x_400;
}
lean_ctor_set(x_408, 0, x_401);
lean_ctor_set(x_408, 1, x_402);
lean_ctor_set(x_408, 2, x_403);
lean_ctor_set(x_408, 3, x_404);
lean_ctor_set_uint8(x_408, sizeof(void*)*4, x_406);
x_409 = 0;
x_410 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_410, 0, x_407);
lean_ctor_set(x_410, 1, x_398);
lean_ctor_set(x_410, 2, x_399);
lean_ctor_set(x_410, 3, x_408);
lean_ctor_set_uint8(x_410, sizeof(void*)*4, x_409);
return x_410;
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; lean_object* x_415; uint8_t x_416; lean_object* x_417; 
x_411 = lean_ctor_get(x_387, 1);
lean_inc(x_411);
x_412 = lean_ctor_get(x_387, 2);
lean_inc(x_412);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_413 = x_387;
} else {
 lean_dec_ref(x_387);
 x_413 = lean_box(0);
}
x_414 = 0;
if (lean_is_scalar(x_413)) {
 x_415 = lean_alloc_ctor(1, 4, 1);
} else {
 x_415 = x_413;
}
lean_ctor_set(x_415, 0, x_388);
lean_ctor_set(x_415, 1, x_411);
lean_ctor_set(x_415, 2, x_412);
lean_ctor_set(x_415, 3, x_389);
lean_ctor_set_uint8(x_415, sizeof(void*)*4, x_414);
x_416 = 1;
x_417 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_417, 0, x_375);
lean_ctor_set(x_417, 1, x_376);
lean_ctor_set(x_417, 2, x_377);
lean_ctor_set(x_417, 3, x_415);
lean_ctor_set_uint8(x_417, sizeof(void*)*4, x_416);
return x_417;
}
}
}
else
{
uint8_t x_418; 
x_418 = lean_ctor_get_uint8(x_388, sizeof(void*)*4);
if (x_418 == 0)
{
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; uint8_t x_428; lean_object* x_429; lean_object* x_430; uint8_t x_431; lean_object* x_432; 
x_419 = lean_ctor_get(x_387, 1);
lean_inc(x_419);
x_420 = lean_ctor_get(x_387, 2);
lean_inc(x_420);
x_421 = lean_ctor_get(x_387, 3);
lean_inc(x_421);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_422 = x_387;
} else {
 lean_dec_ref(x_387);
 x_422 = lean_box(0);
}
x_423 = lean_ctor_get(x_388, 0);
lean_inc(x_423);
x_424 = lean_ctor_get(x_388, 1);
lean_inc(x_424);
x_425 = lean_ctor_get(x_388, 2);
lean_inc(x_425);
x_426 = lean_ctor_get(x_388, 3);
lean_inc(x_426);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_427 = x_388;
} else {
 lean_dec_ref(x_388);
 x_427 = lean_box(0);
}
x_428 = 1;
if (lean_is_scalar(x_427)) {
 x_429 = lean_alloc_ctor(1, 4, 1);
} else {
 x_429 = x_427;
}
lean_ctor_set(x_429, 0, x_375);
lean_ctor_set(x_429, 1, x_376);
lean_ctor_set(x_429, 2, x_377);
lean_ctor_set(x_429, 3, x_423);
lean_ctor_set_uint8(x_429, sizeof(void*)*4, x_428);
if (lean_is_scalar(x_422)) {
 x_430 = lean_alloc_ctor(1, 4, 1);
} else {
 x_430 = x_422;
}
lean_ctor_set(x_430, 0, x_426);
lean_ctor_set(x_430, 1, x_419);
lean_ctor_set(x_430, 2, x_420);
lean_ctor_set(x_430, 3, x_421);
lean_ctor_set_uint8(x_430, sizeof(void*)*4, x_428);
x_431 = 0;
x_432 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_432, 0, x_429);
lean_ctor_set(x_432, 1, x_424);
lean_ctor_set(x_432, 2, x_425);
lean_ctor_set(x_432, 3, x_430);
lean_ctor_set_uint8(x_432, sizeof(void*)*4, x_431);
return x_432;
}
else
{
lean_object* x_433; 
x_433 = lean_ctor_get(x_387, 3);
lean_inc(x_433);
if (lean_obj_tag(x_433) == 0)
{
lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; lean_object* x_438; uint8_t x_439; lean_object* x_440; 
x_434 = lean_ctor_get(x_387, 1);
lean_inc(x_434);
x_435 = lean_ctor_get(x_387, 2);
lean_inc(x_435);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_436 = x_387;
} else {
 lean_dec_ref(x_387);
 x_436 = lean_box(0);
}
x_437 = 0;
if (lean_is_scalar(x_436)) {
 x_438 = lean_alloc_ctor(1, 4, 1);
} else {
 x_438 = x_436;
}
lean_ctor_set(x_438, 0, x_388);
lean_ctor_set(x_438, 1, x_434);
lean_ctor_set(x_438, 2, x_435);
lean_ctor_set(x_438, 3, x_433);
lean_ctor_set_uint8(x_438, sizeof(void*)*4, x_437);
x_439 = 1;
x_440 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_440, 0, x_375);
lean_ctor_set(x_440, 1, x_376);
lean_ctor_set(x_440, 2, x_377);
lean_ctor_set(x_440, 3, x_438);
lean_ctor_set_uint8(x_440, sizeof(void*)*4, x_439);
return x_440;
}
else
{
uint8_t x_441; 
x_441 = lean_ctor_get_uint8(x_433, sizeof(void*)*4);
if (x_441 == 0)
{
lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; lean_object* x_455; 
x_442 = lean_ctor_get(x_387, 1);
lean_inc(x_442);
x_443 = lean_ctor_get(x_387, 2);
lean_inc(x_443);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_444 = x_387;
} else {
 lean_dec_ref(x_387);
 x_444 = lean_box(0);
}
x_445 = lean_ctor_get(x_433, 0);
lean_inc(x_445);
x_446 = lean_ctor_get(x_433, 1);
lean_inc(x_446);
x_447 = lean_ctor_get(x_433, 2);
lean_inc(x_447);
x_448 = lean_ctor_get(x_433, 3);
lean_inc(x_448);
if (lean_is_exclusive(x_433)) {
 lean_ctor_release(x_433, 0);
 lean_ctor_release(x_433, 1);
 lean_ctor_release(x_433, 2);
 lean_ctor_release(x_433, 3);
 x_449 = x_433;
} else {
 lean_dec_ref(x_433);
 x_449 = lean_box(0);
}
x_450 = 1;
lean_inc(x_388);
if (lean_is_scalar(x_449)) {
 x_451 = lean_alloc_ctor(1, 4, 1);
} else {
 x_451 = x_449;
}
lean_ctor_set(x_451, 0, x_375);
lean_ctor_set(x_451, 1, x_376);
lean_ctor_set(x_451, 2, x_377);
lean_ctor_set(x_451, 3, x_388);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_452 = x_388;
} else {
 lean_dec_ref(x_388);
 x_452 = lean_box(0);
}
lean_ctor_set_uint8(x_451, sizeof(void*)*4, x_450);
if (lean_is_scalar(x_452)) {
 x_453 = lean_alloc_ctor(1, 4, 1);
} else {
 x_453 = x_452;
}
lean_ctor_set(x_453, 0, x_445);
lean_ctor_set(x_453, 1, x_446);
lean_ctor_set(x_453, 2, x_447);
lean_ctor_set(x_453, 3, x_448);
lean_ctor_set_uint8(x_453, sizeof(void*)*4, x_450);
x_454 = 0;
if (lean_is_scalar(x_444)) {
 x_455 = lean_alloc_ctor(1, 4, 1);
} else {
 x_455 = x_444;
}
lean_ctor_set(x_455, 0, x_451);
lean_ctor_set(x_455, 1, x_442);
lean_ctor_set(x_455, 2, x_443);
lean_ctor_set(x_455, 3, x_453);
lean_ctor_set_uint8(x_455, sizeof(void*)*4, x_454);
return x_455;
}
else
{
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; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; 
x_456 = lean_ctor_get(x_387, 1);
lean_inc(x_456);
x_457 = lean_ctor_get(x_387, 2);
lean_inc(x_457);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_458 = x_387;
} else {
 lean_dec_ref(x_387);
 x_458 = lean_box(0);
}
x_459 = lean_ctor_get(x_388, 0);
lean_inc(x_459);
x_460 = lean_ctor_get(x_388, 1);
lean_inc(x_460);
x_461 = lean_ctor_get(x_388, 2);
lean_inc(x_461);
x_462 = lean_ctor_get(x_388, 3);
lean_inc(x_462);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_463 = x_388;
} else {
 lean_dec_ref(x_388);
 x_463 = lean_box(0);
}
if (lean_is_scalar(x_463)) {
 x_464 = lean_alloc_ctor(1, 4, 1);
} else {
 x_464 = x_463;
}
lean_ctor_set(x_464, 0, x_459);
lean_ctor_set(x_464, 1, x_460);
lean_ctor_set(x_464, 2, x_461);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set_uint8(x_464, sizeof(void*)*4, x_441);
x_465 = 0;
if (lean_is_scalar(x_458)) {
 x_466 = lean_alloc_ctor(1, 4, 1);
} else {
 x_466 = x_458;
}
lean_ctor_set(x_466, 0, x_464);
lean_ctor_set(x_466, 1, x_456);
lean_ctor_set(x_466, 2, x_457);
lean_ctor_set(x_466, 3, x_433);
lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465);
x_467 = 1;
x_468 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_468, 0, x_375);
lean_ctor_set(x_468, 1, x_376);
lean_ctor_set(x_468, 2, x_377);
lean_ctor_set(x_468, 3, x_466);
lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467);
return x_468;
}
}
}
}
}
}
else
{
uint8_t x_469; lean_object* x_470; lean_object* x_471; 
lean_dec(x_377);
lean_dec(x_376);
x_469 = 1;
x_470 = lean_box_uint32(x_2);
x_471 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_471, 0, x_375);
lean_ctor_set(x_471, 1, x_470);
lean_ctor_set(x_471, 2, x_3);
lean_ctor_set(x_471, 3, x_378);
lean_ctor_set_uint8(x_471, sizeof(void*)*4, x_469);
return x_471;
}
}
else
{
uint8_t x_472; 
x_472 = l_Std_RBNode_isRed___rarg(x_375);
if (x_472 == 0)
{
lean_object* x_473; uint8_t x_474; lean_object* x_475; 
x_473 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_375, x_2, x_3);
x_474 = 1;
x_475 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_475, 0, x_473);
lean_ctor_set(x_475, 1, x_376);
lean_ctor_set(x_475, 2, x_377);
lean_ctor_set(x_475, 3, x_378);
lean_ctor_set_uint8(x_475, sizeof(void*)*4, x_474);
return x_475;
}
else
{
lean_object* x_476; lean_object* x_477; 
x_476 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_375, x_2, x_3);
x_477 = lean_ctor_get(x_476, 0);
lean_inc(x_477);
if (lean_obj_tag(x_477) == 0)
{
lean_object* x_478; 
x_478 = lean_ctor_get(x_476, 3);
lean_inc(x_478);
if (lean_obj_tag(x_478) == 0)
{
lean_object* x_479; lean_object* x_480; lean_object* x_481; uint8_t x_482; lean_object* x_483; uint8_t x_484; lean_object* x_485; 
x_479 = lean_ctor_get(x_476, 1);
lean_inc(x_479);
x_480 = lean_ctor_get(x_476, 2);
lean_inc(x_480);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_481 = x_476;
} else {
 lean_dec_ref(x_476);
 x_481 = lean_box(0);
}
x_482 = 0;
if (lean_is_scalar(x_481)) {
 x_483 = lean_alloc_ctor(1, 4, 1);
} else {
 x_483 = x_481;
}
lean_ctor_set(x_483, 0, x_478);
lean_ctor_set(x_483, 1, x_479);
lean_ctor_set(x_483, 2, x_480);
lean_ctor_set(x_483, 3, x_478);
lean_ctor_set_uint8(x_483, sizeof(void*)*4, x_482);
x_484 = 1;
x_485 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_485, 0, x_483);
lean_ctor_set(x_485, 1, x_376);
lean_ctor_set(x_485, 2, x_377);
lean_ctor_set(x_485, 3, x_378);
lean_ctor_set_uint8(x_485, sizeof(void*)*4, x_484);
return x_485;
}
else
{
uint8_t x_486; 
x_486 = lean_ctor_get_uint8(x_478, sizeof(void*)*4);
if (x_486 == 0)
{
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; uint8_t x_495; lean_object* x_496; lean_object* x_497; uint8_t x_498; lean_object* x_499; 
x_487 = lean_ctor_get(x_476, 1);
lean_inc(x_487);
x_488 = lean_ctor_get(x_476, 2);
lean_inc(x_488);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_489 = x_476;
} else {
 lean_dec_ref(x_476);
 x_489 = lean_box(0);
}
x_490 = lean_ctor_get(x_478, 0);
lean_inc(x_490);
x_491 = lean_ctor_get(x_478, 1);
lean_inc(x_491);
x_492 = lean_ctor_get(x_478, 2);
lean_inc(x_492);
x_493 = lean_ctor_get(x_478, 3);
lean_inc(x_493);
if (lean_is_exclusive(x_478)) {
 lean_ctor_release(x_478, 0);
 lean_ctor_release(x_478, 1);
 lean_ctor_release(x_478, 2);
 lean_ctor_release(x_478, 3);
 x_494 = x_478;
} else {
 lean_dec_ref(x_478);
 x_494 = lean_box(0);
}
x_495 = 1;
if (lean_is_scalar(x_494)) {
 x_496 = lean_alloc_ctor(1, 4, 1);
} else {
 x_496 = x_494;
}
lean_ctor_set(x_496, 0, x_477);
lean_ctor_set(x_496, 1, x_487);
lean_ctor_set(x_496, 2, x_488);
lean_ctor_set(x_496, 3, x_490);
lean_ctor_set_uint8(x_496, sizeof(void*)*4, x_495);
if (lean_is_scalar(x_489)) {
 x_497 = lean_alloc_ctor(1, 4, 1);
} else {
 x_497 = x_489;
}
lean_ctor_set(x_497, 0, x_493);
lean_ctor_set(x_497, 1, x_376);
lean_ctor_set(x_497, 2, x_377);
lean_ctor_set(x_497, 3, x_378);
lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_495);
x_498 = 0;
x_499 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_499, 0, x_496);
lean_ctor_set(x_499, 1, x_491);
lean_ctor_set(x_499, 2, x_492);
lean_ctor_set(x_499, 3, x_497);
lean_ctor_set_uint8(x_499, sizeof(void*)*4, x_498);
return x_499;
}
else
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; uint8_t x_505; lean_object* x_506; 
x_500 = lean_ctor_get(x_476, 1);
lean_inc(x_500);
x_501 = lean_ctor_get(x_476, 2);
lean_inc(x_501);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_502 = x_476;
} else {
 lean_dec_ref(x_476);
 x_502 = lean_box(0);
}
x_503 = 0;
if (lean_is_scalar(x_502)) {
 x_504 = lean_alloc_ctor(1, 4, 1);
} else {
 x_504 = x_502;
}
lean_ctor_set(x_504, 0, x_477);
lean_ctor_set(x_504, 1, x_500);
lean_ctor_set(x_504, 2, x_501);
lean_ctor_set(x_504, 3, x_478);
lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503);
x_505 = 1;
x_506 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_506, 0, x_504);
lean_ctor_set(x_506, 1, x_376);
lean_ctor_set(x_506, 2, x_377);
lean_ctor_set(x_506, 3, x_378);
lean_ctor_set_uint8(x_506, sizeof(void*)*4, x_505);
return x_506;
}
}
}
else
{
uint8_t x_507; 
x_507 = lean_ctor_get_uint8(x_477, sizeof(void*)*4);
if (x_507 == 0)
{
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; uint8_t x_517; lean_object* x_518; lean_object* x_519; uint8_t x_520; lean_object* x_521; 
x_508 = lean_ctor_get(x_476, 1);
lean_inc(x_508);
x_509 = lean_ctor_get(x_476, 2);
lean_inc(x_509);
x_510 = lean_ctor_get(x_476, 3);
lean_inc(x_510);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_511 = x_476;
} else {
 lean_dec_ref(x_476);
 x_511 = lean_box(0);
}
x_512 = lean_ctor_get(x_477, 0);
lean_inc(x_512);
x_513 = lean_ctor_get(x_477, 1);
lean_inc(x_513);
x_514 = lean_ctor_get(x_477, 2);
lean_inc(x_514);
x_515 = lean_ctor_get(x_477, 3);
lean_inc(x_515);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_516 = x_477;
} else {
 lean_dec_ref(x_477);
 x_516 = lean_box(0);
}
x_517 = 1;
if (lean_is_scalar(x_516)) {
 x_518 = lean_alloc_ctor(1, 4, 1);
} else {
 x_518 = x_516;
}
lean_ctor_set(x_518, 0, x_512);
lean_ctor_set(x_518, 1, x_513);
lean_ctor_set(x_518, 2, x_514);
lean_ctor_set(x_518, 3, x_515);
lean_ctor_set_uint8(x_518, sizeof(void*)*4, x_517);
if (lean_is_scalar(x_511)) {
 x_519 = lean_alloc_ctor(1, 4, 1);
} else {
 x_519 = x_511;
}
lean_ctor_set(x_519, 0, x_510);
lean_ctor_set(x_519, 1, x_376);
lean_ctor_set(x_519, 2, x_377);
lean_ctor_set(x_519, 3, x_378);
lean_ctor_set_uint8(x_519, sizeof(void*)*4, x_517);
x_520 = 0;
x_521 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_521, 0, x_518);
lean_ctor_set(x_521, 1, x_508);
lean_ctor_set(x_521, 2, x_509);
lean_ctor_set(x_521, 3, x_519);
lean_ctor_set_uint8(x_521, sizeof(void*)*4, x_520);
return x_521;
}
else
{
lean_object* x_522; 
x_522 = lean_ctor_get(x_476, 3);
lean_inc(x_522);
if (lean_obj_tag(x_522) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; uint8_t x_528; lean_object* x_529; 
x_523 = lean_ctor_get(x_476, 1);
lean_inc(x_523);
x_524 = lean_ctor_get(x_476, 2);
lean_inc(x_524);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_525 = x_476;
} else {
 lean_dec_ref(x_476);
 x_525 = lean_box(0);
}
x_526 = 0;
if (lean_is_scalar(x_525)) {
 x_527 = lean_alloc_ctor(1, 4, 1);
} else {
 x_527 = x_525;
}
lean_ctor_set(x_527, 0, x_477);
lean_ctor_set(x_527, 1, x_523);
lean_ctor_set(x_527, 2, x_524);
lean_ctor_set(x_527, 3, x_522);
lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526);
x_528 = 1;
x_529 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_529, 0, x_527);
lean_ctor_set(x_529, 1, x_376);
lean_ctor_set(x_529, 2, x_377);
lean_ctor_set(x_529, 3, x_378);
lean_ctor_set_uint8(x_529, sizeof(void*)*4, x_528);
return x_529;
}
else
{
uint8_t x_530; 
x_530 = lean_ctor_get_uint8(x_522, sizeof(void*)*4);
if (x_530 == 0)
{
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; uint8_t x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; uint8_t x_543; lean_object* x_544; 
x_531 = lean_ctor_get(x_476, 1);
lean_inc(x_531);
x_532 = lean_ctor_get(x_476, 2);
lean_inc(x_532);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_533 = x_476;
} else {
 lean_dec_ref(x_476);
 x_533 = lean_box(0);
}
x_534 = lean_ctor_get(x_522, 0);
lean_inc(x_534);
x_535 = lean_ctor_get(x_522, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_522, 2);
lean_inc(x_536);
x_537 = lean_ctor_get(x_522, 3);
lean_inc(x_537);
if (lean_is_exclusive(x_522)) {
 lean_ctor_release(x_522, 0);
 lean_ctor_release(x_522, 1);
 lean_ctor_release(x_522, 2);
 lean_ctor_release(x_522, 3);
 x_538 = x_522;
} else {
 lean_dec_ref(x_522);
 x_538 = lean_box(0);
}
x_539 = 1;
lean_inc(x_477);
if (lean_is_scalar(x_538)) {
 x_540 = lean_alloc_ctor(1, 4, 1);
} else {
 x_540 = x_538;
}
lean_ctor_set(x_540, 0, x_477);
lean_ctor_set(x_540, 1, x_531);
lean_ctor_set(x_540, 2, x_532);
lean_ctor_set(x_540, 3, x_534);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_541 = x_477;
} else {
 lean_dec_ref(x_477);
 x_541 = lean_box(0);
}
lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539);
if (lean_is_scalar(x_541)) {
 x_542 = lean_alloc_ctor(1, 4, 1);
} else {
 x_542 = x_541;
}
lean_ctor_set(x_542, 0, x_537);
lean_ctor_set(x_542, 1, x_376);
lean_ctor_set(x_542, 2, x_377);
lean_ctor_set(x_542, 3, x_378);
lean_ctor_set_uint8(x_542, sizeof(void*)*4, x_539);
x_543 = 0;
if (lean_is_scalar(x_533)) {
 x_544 = lean_alloc_ctor(1, 4, 1);
} else {
 x_544 = x_533;
}
lean_ctor_set(x_544, 0, x_540);
lean_ctor_set(x_544, 1, x_535);
lean_ctor_set(x_544, 2, x_536);
lean_ctor_set(x_544, 3, x_542);
lean_ctor_set_uint8(x_544, sizeof(void*)*4, x_543);
return x_544;
}
else
{
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; uint8_t x_554; lean_object* x_555; uint8_t x_556; lean_object* x_557; 
x_545 = lean_ctor_get(x_476, 1);
lean_inc(x_545);
x_546 = lean_ctor_get(x_476, 2);
lean_inc(x_546);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_547 = x_476;
} else {
 lean_dec_ref(x_476);
 x_547 = lean_box(0);
}
x_548 = lean_ctor_get(x_477, 0);
lean_inc(x_548);
x_549 = lean_ctor_get(x_477, 1);
lean_inc(x_549);
x_550 = lean_ctor_get(x_477, 2);
lean_inc(x_550);
x_551 = lean_ctor_get(x_477, 3);
lean_inc(x_551);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_552 = x_477;
} else {
 lean_dec_ref(x_477);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(1, 4, 1);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_549);
lean_ctor_set(x_553, 2, x_550);
lean_ctor_set(x_553, 3, x_551);
lean_ctor_set_uint8(x_553, sizeof(void*)*4, x_530);
x_554 = 0;
if (lean_is_scalar(x_547)) {
 x_555 = lean_alloc_ctor(1, 4, 1);
} else {
 x_555 = x_547;
}
lean_ctor_set(x_555, 0, x_553);
lean_ctor_set(x_555, 1, x_545);
lean_ctor_set(x_555, 2, x_546);
lean_ctor_set(x_555, 3, x_522);
lean_ctor_set_uint8(x_555, sizeof(void*)*4, x_554);
x_556 = 1;
x_557 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_557, 0, x_555);
lean_ctor_set(x_557, 1, x_376);
lean_ctor_set(x_557, 2, x_377);
lean_ctor_set(x_557, 3, x_378);
lean_ctor_set_uint8(x_557, sizeof(void*)*4, x_556);
return x_557;
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_box(0);
x_5 = 0;
x_6 = lean_box_uint32(x_2);
x_7 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*4, x_5);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint32_t x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_1, 2);
x_13 = lean_ctor_get(x_1, 3);
x_14 = lean_unbox_uint32(x_11);
x_15 = lean_uint32_dec_lt(x_2, x_14);
if (x_15 == 0)
{
uint32_t x_16; uint8_t x_17; 
x_16 = lean_unbox_uint32(x_11);
x_17 = lean_uint32_dec_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_13, x_2, x_3);
x_19 = 0;
lean_ctor_set(x_1, 3, x_18);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19);
return x_1;
}
else
{
uint8_t x_20; lean_object* x_21; 
lean_dec(x_12);
lean_dec(x_11);
x_20 = 0;
x_21 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_21);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_20);
return x_1;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_10, x_2, x_3);
x_23 = 0;
lean_ctor_set(x_1, 0, x_22);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_23);
return x_1;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint32_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_1, 0);
x_25 = lean_ctor_get(x_1, 1);
x_26 = lean_ctor_get(x_1, 2);
x_27 = lean_ctor_get(x_1, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_1);
x_28 = lean_unbox_uint32(x_25);
x_29 = lean_uint32_dec_lt(x_2, x_28);
if (x_29 == 0)
{
uint32_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint32(x_25);
x_31 = lean_uint32_dec_eq(x_2, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_32 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_27, x_2, x_3);
x_33 = 0;
x_34 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_25);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_33);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_26);
lean_dec(x_25);
x_35 = 0;
x_36 = lean_box_uint32(x_2);
x_37 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_37, 0, x_24);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_3);
lean_ctor_set(x_37, 3, x_27);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_35);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; lean_object* x_40; 
x_38 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_24, x_2, x_3);
x_39 = 0;
x_40 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_26);
lean_ctor_set(x_40, 3, x_27);
lean_ctor_set_uint8(x_40, sizeof(void*)*4, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
x_41 = !lean_is_exclusive(x_1);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint32_t x_46; uint8_t x_47; 
x_42 = lean_ctor_get(x_1, 0);
x_43 = lean_ctor_get(x_1, 1);
x_44 = lean_ctor_get(x_1, 2);
x_45 = lean_ctor_get(x_1, 3);
x_46 = lean_unbox_uint32(x_43);
x_47 = lean_uint32_dec_lt(x_2, x_46);
if (x_47 == 0)
{
uint32_t x_48; uint8_t x_49; 
x_48 = lean_unbox_uint32(x_43);
x_49 = lean_uint32_dec_eq(x_2, x_48);
if (x_49 == 0)
{
uint8_t x_50; 
x_50 = l_Std_RBNode_isRed___rarg(x_45);
if (x_50 == 0)
{
lean_object* x_51; uint8_t x_52; 
x_51 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_45, x_2, x_3);
x_52 = 1;
lean_ctor_set(x_1, 3, x_51);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_52);
return x_1;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_45, x_2, x_3);
x_54 = lean_ctor_get(x_53, 0);
lean_inc(x_54);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55; 
x_55 = lean_ctor_get(x_53, 3);
lean_inc(x_55);
if (lean_obj_tag(x_55) == 0)
{
uint8_t x_56; 
x_56 = !lean_is_exclusive(x_53);
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; 
x_57 = lean_ctor_get(x_53, 3);
lean_dec(x_57);
x_58 = lean_ctor_get(x_53, 0);
lean_dec(x_58);
x_59 = 0;
lean_ctor_set(x_53, 0, x_55);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_59);
x_60 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_60);
return x_1;
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; 
x_61 = lean_ctor_get(x_53, 1);
x_62 = lean_ctor_get(x_53, 2);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_53);
x_63 = 0;
x_64 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_64, 0, x_55);
lean_ctor_set(x_64, 1, x_61);
lean_ctor_set(x_64, 2, x_62);
lean_ctor_set(x_64, 3, x_55);
lean_ctor_set_uint8(x_64, sizeof(void*)*4, x_63);
x_65 = 1;
lean_ctor_set(x_1, 3, x_64);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_65);
return x_1;
}
}
else
{
uint8_t x_66; 
x_66 = lean_ctor_get_uint8(x_55, sizeof(void*)*4);
if (x_66 == 0)
{
uint8_t x_67; 
x_67 = !lean_is_exclusive(x_53);
if (x_67 == 0)
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_68 = lean_ctor_get(x_53, 1);
x_69 = lean_ctor_get(x_53, 2);
x_70 = lean_ctor_get(x_53, 3);
lean_dec(x_70);
x_71 = lean_ctor_get(x_53, 0);
lean_dec(x_71);
x_72 = !lean_is_exclusive(x_55);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; 
x_73 = lean_ctor_get(x_55, 0);
x_74 = lean_ctor_get(x_55, 1);
x_75 = lean_ctor_get(x_55, 2);
x_76 = lean_ctor_get(x_55, 3);
x_77 = 1;
lean_ctor_set(x_55, 3, x_54);
lean_ctor_set(x_55, 2, x_44);
lean_ctor_set(x_55, 1, x_43);
lean_ctor_set(x_55, 0, x_42);
lean_ctor_set_uint8(x_55, sizeof(void*)*4, x_77);
lean_ctor_set(x_53, 3, x_76);
lean_ctor_set(x_53, 2, x_75);
lean_ctor_set(x_53, 1, x_74);
lean_ctor_set(x_53, 0, x_73);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_77);
x_78 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_55);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_78);
return x_1;
}
else
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; 
x_79 = lean_ctor_get(x_55, 0);
x_80 = lean_ctor_get(x_55, 1);
x_81 = lean_ctor_get(x_55, 2);
x_82 = lean_ctor_get(x_55, 3);
lean_inc(x_82);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_dec(x_55);
x_83 = 1;
x_84 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_84, 0, x_42);
lean_ctor_set(x_84, 1, x_43);
lean_ctor_set(x_84, 2, x_44);
lean_ctor_set(x_84, 3, x_54);
lean_ctor_set_uint8(x_84, sizeof(void*)*4, x_83);
lean_ctor_set(x_53, 3, x_82);
lean_ctor_set(x_53, 2, x_81);
lean_ctor_set(x_53, 1, x_80);
lean_ctor_set(x_53, 0, x_79);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_83);
x_85 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_84);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_85);
return x_1;
}
}
else
{
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; uint8_t x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_86 = lean_ctor_get(x_53, 1);
x_87 = lean_ctor_get(x_53, 2);
lean_inc(x_87);
lean_inc(x_86);
lean_dec(x_53);
x_88 = lean_ctor_get(x_55, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_55, 1);
lean_inc(x_89);
x_90 = lean_ctor_get(x_55, 2);
lean_inc(x_90);
x_91 = lean_ctor_get(x_55, 3);
lean_inc(x_91);
if (lean_is_exclusive(x_55)) {
 lean_ctor_release(x_55, 0);
 lean_ctor_release(x_55, 1);
 lean_ctor_release(x_55, 2);
 lean_ctor_release(x_55, 3);
 x_92 = x_55;
} else {
 lean_dec_ref(x_55);
 x_92 = lean_box(0);
}
x_93 = 1;
if (lean_is_scalar(x_92)) {
 x_94 = lean_alloc_ctor(1, 4, 1);
} else {
 x_94 = x_92;
}
lean_ctor_set(x_94, 0, x_42);
lean_ctor_set(x_94, 1, x_43);
lean_ctor_set(x_94, 2, x_44);
lean_ctor_set(x_94, 3, x_54);
lean_ctor_set_uint8(x_94, sizeof(void*)*4, x_93);
x_95 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_95, 0, x_88);
lean_ctor_set(x_95, 1, x_89);
lean_ctor_set(x_95, 2, x_90);
lean_ctor_set(x_95, 3, x_91);
lean_ctor_set_uint8(x_95, sizeof(void*)*4, x_93);
x_96 = 0;
lean_ctor_set(x_1, 3, x_95);
lean_ctor_set(x_1, 2, x_87);
lean_ctor_set(x_1, 1, x_86);
lean_ctor_set(x_1, 0, x_94);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_96);
return x_1;
}
}
else
{
uint8_t x_97; 
x_97 = !lean_is_exclusive(x_53);
if (x_97 == 0)
{
lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; 
x_98 = lean_ctor_get(x_53, 3);
lean_dec(x_98);
x_99 = lean_ctor_get(x_53, 0);
lean_dec(x_99);
x_100 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_100);
x_101 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_101);
return x_1;
}
else
{
lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; uint8_t x_106; 
x_102 = lean_ctor_get(x_53, 1);
x_103 = lean_ctor_get(x_53, 2);
lean_inc(x_103);
lean_inc(x_102);
lean_dec(x_53);
x_104 = 0;
x_105 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_105, 0, x_54);
lean_ctor_set(x_105, 1, x_102);
lean_ctor_set(x_105, 2, x_103);
lean_ctor_set(x_105, 3, x_55);
lean_ctor_set_uint8(x_105, sizeof(void*)*4, x_104);
x_106 = 1;
lean_ctor_set(x_1, 3, x_105);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_106);
return x_1;
}
}
}
}
else
{
uint8_t x_107; 
x_107 = lean_ctor_get_uint8(x_54, sizeof(void*)*4);
if (x_107 == 0)
{
uint8_t x_108; 
x_108 = !lean_is_exclusive(x_53);
if (x_108 == 0)
{
lean_object* x_109; uint8_t x_110; 
x_109 = lean_ctor_get(x_53, 0);
lean_dec(x_109);
x_110 = !lean_is_exclusive(x_54);
if (x_110 == 0)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; 
x_111 = lean_ctor_get(x_54, 0);
x_112 = lean_ctor_get(x_54, 1);
x_113 = lean_ctor_get(x_54, 2);
x_114 = lean_ctor_get(x_54, 3);
x_115 = 1;
lean_ctor_set(x_54, 3, x_111);
lean_ctor_set(x_54, 2, x_44);
lean_ctor_set(x_54, 1, x_43);
lean_ctor_set(x_54, 0, x_42);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_115);
lean_ctor_set(x_53, 0, x_114);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_115);
x_116 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_113);
lean_ctor_set(x_1, 1, x_112);
lean_ctor_set(x_1, 0, x_54);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_116);
return x_1;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; 
x_117 = lean_ctor_get(x_54, 0);
x_118 = lean_ctor_get(x_54, 1);
x_119 = lean_ctor_get(x_54, 2);
x_120 = lean_ctor_get(x_54, 3);
lean_inc(x_120);
lean_inc(x_119);
lean_inc(x_118);
lean_inc(x_117);
lean_dec(x_54);
x_121 = 1;
x_122 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_122, 0, x_42);
lean_ctor_set(x_122, 1, x_43);
lean_ctor_set(x_122, 2, x_44);
lean_ctor_set(x_122, 3, x_117);
lean_ctor_set_uint8(x_122, sizeof(void*)*4, x_121);
lean_ctor_set(x_53, 0, x_120);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_121);
x_123 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_119);
lean_ctor_set(x_1, 1, x_118);
lean_ctor_set(x_1, 0, x_122);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_123);
return x_1;
}
}
else
{
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; uint8_t x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; 
x_124 = lean_ctor_get(x_53, 1);
x_125 = lean_ctor_get(x_53, 2);
x_126 = lean_ctor_get(x_53, 3);
lean_inc(x_126);
lean_inc(x_125);
lean_inc(x_124);
lean_dec(x_53);
x_127 = lean_ctor_get(x_54, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_54, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_54, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_54, 3);
lean_inc(x_130);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_131 = x_54;
} else {
 lean_dec_ref(x_54);
 x_131 = lean_box(0);
}
x_132 = 1;
if (lean_is_scalar(x_131)) {
 x_133 = lean_alloc_ctor(1, 4, 1);
} else {
 x_133 = x_131;
}
lean_ctor_set(x_133, 0, x_42);
lean_ctor_set(x_133, 1, x_43);
lean_ctor_set(x_133, 2, x_44);
lean_ctor_set(x_133, 3, x_127);
lean_ctor_set_uint8(x_133, sizeof(void*)*4, x_132);
x_134 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_134, 0, x_130);
lean_ctor_set(x_134, 1, x_124);
lean_ctor_set(x_134, 2, x_125);
lean_ctor_set(x_134, 3, x_126);
lean_ctor_set_uint8(x_134, sizeof(void*)*4, x_132);
x_135 = 0;
lean_ctor_set(x_1, 3, x_134);
lean_ctor_set(x_1, 2, x_129);
lean_ctor_set(x_1, 1, x_128);
lean_ctor_set(x_1, 0, x_133);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_135);
return x_1;
}
}
else
{
lean_object* x_136; 
x_136 = lean_ctor_get(x_53, 3);
lean_inc(x_136);
if (lean_obj_tag(x_136) == 0)
{
uint8_t x_137; 
x_137 = !lean_is_exclusive(x_53);
if (x_137 == 0)
{
lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; 
x_138 = lean_ctor_get(x_53, 3);
lean_dec(x_138);
x_139 = lean_ctor_get(x_53, 0);
lean_dec(x_139);
x_140 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_140);
x_141 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_141);
return x_1;
}
else
{
lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; uint8_t x_146; 
x_142 = lean_ctor_get(x_53, 1);
x_143 = lean_ctor_get(x_53, 2);
lean_inc(x_143);
lean_inc(x_142);
lean_dec(x_53);
x_144 = 0;
x_145 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_145, 0, x_54);
lean_ctor_set(x_145, 1, x_142);
lean_ctor_set(x_145, 2, x_143);
lean_ctor_set(x_145, 3, x_136);
lean_ctor_set_uint8(x_145, sizeof(void*)*4, x_144);
x_146 = 1;
lean_ctor_set(x_1, 3, x_145);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_146);
return x_1;
}
}
else
{
uint8_t x_147; 
x_147 = lean_ctor_get_uint8(x_136, sizeof(void*)*4);
if (x_147 == 0)
{
uint8_t x_148; 
lean_free_object(x_1);
x_148 = !lean_is_exclusive(x_53);
if (x_148 == 0)
{
lean_object* x_149; lean_object* x_150; uint8_t x_151; 
x_149 = lean_ctor_get(x_53, 3);
lean_dec(x_149);
x_150 = lean_ctor_get(x_53, 0);
lean_dec(x_150);
x_151 = !lean_is_exclusive(x_136);
if (x_151 == 0)
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; uint8_t x_157; 
x_152 = lean_ctor_get(x_136, 0);
x_153 = lean_ctor_get(x_136, 1);
x_154 = lean_ctor_get(x_136, 2);
x_155 = lean_ctor_get(x_136, 3);
x_156 = 1;
lean_inc(x_54);
lean_ctor_set(x_136, 3, x_54);
lean_ctor_set(x_136, 2, x_44);
lean_ctor_set(x_136, 1, x_43);
lean_ctor_set(x_136, 0, x_42);
x_157 = !lean_is_exclusive(x_54);
if (x_157 == 0)
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; 
x_158 = lean_ctor_get(x_54, 3);
lean_dec(x_158);
x_159 = lean_ctor_get(x_54, 2);
lean_dec(x_159);
x_160 = lean_ctor_get(x_54, 1);
lean_dec(x_160);
x_161 = lean_ctor_get(x_54, 0);
lean_dec(x_161);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
lean_ctor_set(x_54, 3, x_155);
lean_ctor_set(x_54, 2, x_154);
lean_ctor_set(x_54, 1, x_153);
lean_ctor_set(x_54, 0, x_152);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_156);
x_162 = 0;
lean_ctor_set(x_53, 3, x_54);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_162);
return x_53;
}
else
{
lean_object* x_163; uint8_t x_164; 
lean_dec(x_54);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
x_163 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_163, 0, x_152);
lean_ctor_set(x_163, 1, x_153);
lean_ctor_set(x_163, 2, x_154);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set_uint8(x_163, sizeof(void*)*4, x_156);
x_164 = 0;
lean_ctor_set(x_53, 3, x_163);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_164);
return x_53;
}
}
else
{
lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; 
x_165 = lean_ctor_get(x_136, 0);
x_166 = lean_ctor_get(x_136, 1);
x_167 = lean_ctor_get(x_136, 2);
x_168 = lean_ctor_get(x_136, 3);
lean_inc(x_168);
lean_inc(x_167);
lean_inc(x_166);
lean_inc(x_165);
lean_dec(x_136);
x_169 = 1;
lean_inc(x_54);
x_170 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_170, 0, x_42);
lean_ctor_set(x_170, 1, x_43);
lean_ctor_set(x_170, 2, x_44);
lean_ctor_set(x_170, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_171 = x_54;
} else {
 lean_dec_ref(x_54);
 x_171 = lean_box(0);
}
lean_ctor_set_uint8(x_170, sizeof(void*)*4, x_169);
if (lean_is_scalar(x_171)) {
 x_172 = lean_alloc_ctor(1, 4, 1);
} else {
 x_172 = x_171;
}
lean_ctor_set(x_172, 0, x_165);
lean_ctor_set(x_172, 1, x_166);
lean_ctor_set(x_172, 2, x_167);
lean_ctor_set(x_172, 3, x_168);
lean_ctor_set_uint8(x_172, sizeof(void*)*4, x_169);
x_173 = 0;
lean_ctor_set(x_53, 3, x_172);
lean_ctor_set(x_53, 0, x_170);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_173);
return x_53;
}
}
else
{
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; uint8_t x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; 
x_174 = lean_ctor_get(x_53, 1);
x_175 = lean_ctor_get(x_53, 2);
lean_inc(x_175);
lean_inc(x_174);
lean_dec(x_53);
x_176 = lean_ctor_get(x_136, 0);
lean_inc(x_176);
x_177 = lean_ctor_get(x_136, 1);
lean_inc(x_177);
x_178 = lean_ctor_get(x_136, 2);
lean_inc(x_178);
x_179 = lean_ctor_get(x_136, 3);
lean_inc(x_179);
if (lean_is_exclusive(x_136)) {
 lean_ctor_release(x_136, 0);
 lean_ctor_release(x_136, 1);
 lean_ctor_release(x_136, 2);
 lean_ctor_release(x_136, 3);
 x_180 = x_136;
} else {
 lean_dec_ref(x_136);
 x_180 = lean_box(0);
}
x_181 = 1;
lean_inc(x_54);
if (lean_is_scalar(x_180)) {
 x_182 = lean_alloc_ctor(1, 4, 1);
} else {
 x_182 = x_180;
}
lean_ctor_set(x_182, 0, x_42);
lean_ctor_set(x_182, 1, x_43);
lean_ctor_set(x_182, 2, x_44);
lean_ctor_set(x_182, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_183 = x_54;
} else {
 lean_dec_ref(x_54);
 x_183 = lean_box(0);
}
lean_ctor_set_uint8(x_182, sizeof(void*)*4, x_181);
if (lean_is_scalar(x_183)) {
 x_184 = lean_alloc_ctor(1, 4, 1);
} else {
 x_184 = x_183;
}
lean_ctor_set(x_184, 0, x_176);
lean_ctor_set(x_184, 1, x_177);
lean_ctor_set(x_184, 2, x_178);
lean_ctor_set(x_184, 3, x_179);
lean_ctor_set_uint8(x_184, sizeof(void*)*4, x_181);
x_185 = 0;
x_186 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_186, 0, x_182);
lean_ctor_set(x_186, 1, x_174);
lean_ctor_set(x_186, 2, x_175);
lean_ctor_set(x_186, 3, x_184);
lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_185);
return x_186;
}
}
else
{
uint8_t x_187; 
x_187 = !lean_is_exclusive(x_53);
if (x_187 == 0)
{
lean_object* x_188; lean_object* x_189; uint8_t x_190; 
x_188 = lean_ctor_get(x_53, 3);
lean_dec(x_188);
x_189 = lean_ctor_get(x_53, 0);
lean_dec(x_189);
x_190 = !lean_is_exclusive(x_54);
if (x_190 == 0)
{
uint8_t x_191; uint8_t x_192; 
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_147);
x_191 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_191);
x_192 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_192);
return x_1;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; 
x_193 = lean_ctor_get(x_54, 0);
x_194 = lean_ctor_get(x_54, 1);
x_195 = lean_ctor_get(x_54, 2);
x_196 = lean_ctor_get(x_54, 3);
lean_inc(x_196);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_54);
x_197 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_197, 0, x_193);
lean_ctor_set(x_197, 1, x_194);
lean_ctor_set(x_197, 2, x_195);
lean_ctor_set(x_197, 3, x_196);
lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_147);
x_198 = 0;
lean_ctor_set(x_53, 0, x_197);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_198);
x_199 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199);
return x_1;
}
}
else
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; uint8_t x_210; 
x_200 = lean_ctor_get(x_53, 1);
x_201 = lean_ctor_get(x_53, 2);
lean_inc(x_201);
lean_inc(x_200);
lean_dec(x_53);
x_202 = lean_ctor_get(x_54, 0);
lean_inc(x_202);
x_203 = lean_ctor_get(x_54, 1);
lean_inc(x_203);
x_204 = lean_ctor_get(x_54, 2);
lean_inc(x_204);
x_205 = lean_ctor_get(x_54, 3);
lean_inc(x_205);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_206 = x_54;
} else {
 lean_dec_ref(x_54);
 x_206 = lean_box(0);
}
if (lean_is_scalar(x_206)) {
 x_207 = lean_alloc_ctor(1, 4, 1);
} else {
 x_207 = x_206;
}
lean_ctor_set(x_207, 0, x_202);
lean_ctor_set(x_207, 1, x_203);
lean_ctor_set(x_207, 2, x_204);
lean_ctor_set(x_207, 3, x_205);
lean_ctor_set_uint8(x_207, sizeof(void*)*4, x_147);
x_208 = 0;
x_209 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_209, 0, x_207);
lean_ctor_set(x_209, 1, x_200);
lean_ctor_set(x_209, 2, x_201);
lean_ctor_set(x_209, 3, x_136);
lean_ctor_set_uint8(x_209, sizeof(void*)*4, x_208);
x_210 = 1;
lean_ctor_set(x_1, 3, x_209);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_210);
return x_1;
}
}
}
}
}
}
}
else
{
uint8_t x_211; lean_object* x_212; 
lean_dec(x_44);
lean_dec(x_43);
x_211 = 1;
x_212 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_212);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211);
return x_1;
}
}
else
{
uint8_t x_213; 
x_213 = l_Std_RBNode_isRed___rarg(x_42);
if (x_213 == 0)
{
lean_object* x_214; uint8_t x_215; 
x_214 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_42, x_2, x_3);
x_215 = 1;
lean_ctor_set(x_1, 0, x_214);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_215);
return x_1;
}
else
{
lean_object* x_216; lean_object* x_217; 
x_216 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_42, x_2, x_3);
x_217 = lean_ctor_get(x_216, 0);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
lean_object* x_218; 
x_218 = lean_ctor_get(x_216, 3);
lean_inc(x_218);
if (lean_obj_tag(x_218) == 0)
{
uint8_t x_219; 
x_219 = !lean_is_exclusive(x_216);
if (x_219 == 0)
{
lean_object* x_220; lean_object* x_221; uint8_t x_222; uint8_t x_223; 
x_220 = lean_ctor_get(x_216, 3);
lean_dec(x_220);
x_221 = lean_ctor_get(x_216, 0);
lean_dec(x_221);
x_222 = 0;
lean_ctor_set(x_216, 0, x_218);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_222);
x_223 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_223);
return x_1;
}
else
{
lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; uint8_t x_228; 
x_224 = lean_ctor_get(x_216, 1);
x_225 = lean_ctor_get(x_216, 2);
lean_inc(x_225);
lean_inc(x_224);
lean_dec(x_216);
x_226 = 0;
x_227 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_227, 0, x_218);
lean_ctor_set(x_227, 1, x_224);
lean_ctor_set(x_227, 2, x_225);
lean_ctor_set(x_227, 3, x_218);
lean_ctor_set_uint8(x_227, sizeof(void*)*4, x_226);
x_228 = 1;
lean_ctor_set(x_1, 0, x_227);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_228);
return x_1;
}
}
else
{
uint8_t x_229; 
x_229 = lean_ctor_get_uint8(x_218, sizeof(void*)*4);
if (x_229 == 0)
{
uint8_t x_230; 
x_230 = !lean_is_exclusive(x_216);
if (x_230 == 0)
{
lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; 
x_231 = lean_ctor_get(x_216, 1);
x_232 = lean_ctor_get(x_216, 2);
x_233 = lean_ctor_get(x_216, 3);
lean_dec(x_233);
x_234 = lean_ctor_get(x_216, 0);
lean_dec(x_234);
x_235 = !lean_is_exclusive(x_218);
if (x_235 == 0)
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; uint8_t x_241; 
x_236 = lean_ctor_get(x_218, 0);
x_237 = lean_ctor_get(x_218, 1);
x_238 = lean_ctor_get(x_218, 2);
x_239 = lean_ctor_get(x_218, 3);
x_240 = 1;
lean_ctor_set(x_218, 3, x_236);
lean_ctor_set(x_218, 2, x_232);
lean_ctor_set(x_218, 1, x_231);
lean_ctor_set(x_218, 0, x_217);
lean_ctor_set_uint8(x_218, sizeof(void*)*4, x_240);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_239);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_240);
x_241 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_238);
lean_ctor_set(x_1, 1, x_237);
lean_ctor_set(x_1, 0, x_218);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_241);
return x_1;
}
else
{
lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; uint8_t x_246; lean_object* x_247; uint8_t x_248; 
x_242 = lean_ctor_get(x_218, 0);
x_243 = lean_ctor_get(x_218, 1);
x_244 = lean_ctor_get(x_218, 2);
x_245 = lean_ctor_get(x_218, 3);
lean_inc(x_245);
lean_inc(x_244);
lean_inc(x_243);
lean_inc(x_242);
lean_dec(x_218);
x_246 = 1;
x_247 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_247, 0, x_217);
lean_ctor_set(x_247, 1, x_231);
lean_ctor_set(x_247, 2, x_232);
lean_ctor_set(x_247, 3, x_242);
lean_ctor_set_uint8(x_247, sizeof(void*)*4, x_246);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_245);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_246);
x_248 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_244);
lean_ctor_set(x_1, 1, x_243);
lean_ctor_set(x_1, 0, x_247);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_248);
return x_1;
}
}
else
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; 
x_249 = lean_ctor_get(x_216, 1);
x_250 = lean_ctor_get(x_216, 2);
lean_inc(x_250);
lean_inc(x_249);
lean_dec(x_216);
x_251 = lean_ctor_get(x_218, 0);
lean_inc(x_251);
x_252 = lean_ctor_get(x_218, 1);
lean_inc(x_252);
x_253 = lean_ctor_get(x_218, 2);
lean_inc(x_253);
x_254 = lean_ctor_get(x_218, 3);
lean_inc(x_254);
if (lean_is_exclusive(x_218)) {
 lean_ctor_release(x_218, 0);
 lean_ctor_release(x_218, 1);
 lean_ctor_release(x_218, 2);
 lean_ctor_release(x_218, 3);
 x_255 = x_218;
} else {
 lean_dec_ref(x_218);
 x_255 = lean_box(0);
}
x_256 = 1;
if (lean_is_scalar(x_255)) {
 x_257 = lean_alloc_ctor(1, 4, 1);
} else {
 x_257 = x_255;
}
lean_ctor_set(x_257, 0, x_217);
lean_ctor_set(x_257, 1, x_249);
lean_ctor_set(x_257, 2, x_250);
lean_ctor_set(x_257, 3, x_251);
lean_ctor_set_uint8(x_257, sizeof(void*)*4, x_256);
x_258 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_258, 0, x_254);
lean_ctor_set(x_258, 1, x_43);
lean_ctor_set(x_258, 2, x_44);
lean_ctor_set(x_258, 3, x_45);
lean_ctor_set_uint8(x_258, sizeof(void*)*4, x_256);
x_259 = 0;
lean_ctor_set(x_1, 3, x_258);
lean_ctor_set(x_1, 2, x_253);
lean_ctor_set(x_1, 1, x_252);
lean_ctor_set(x_1, 0, x_257);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_259);
return x_1;
}
}
else
{
uint8_t x_260; 
x_260 = !lean_is_exclusive(x_216);
if (x_260 == 0)
{
lean_object* x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; 
x_261 = lean_ctor_get(x_216, 3);
lean_dec(x_261);
x_262 = lean_ctor_get(x_216, 0);
lean_dec(x_262);
x_263 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_263);
x_264 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_264);
return x_1;
}
else
{
lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; uint8_t x_269; 
x_265 = lean_ctor_get(x_216, 1);
x_266 = lean_ctor_get(x_216, 2);
lean_inc(x_266);
lean_inc(x_265);
lean_dec(x_216);
x_267 = 0;
x_268 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_268, 0, x_217);
lean_ctor_set(x_268, 1, x_265);
lean_ctor_set(x_268, 2, x_266);
lean_ctor_set(x_268, 3, x_218);
lean_ctor_set_uint8(x_268, sizeof(void*)*4, x_267);
x_269 = 1;
lean_ctor_set(x_1, 0, x_268);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_269);
return x_1;
}
}
}
}
else
{
uint8_t x_270; 
x_270 = lean_ctor_get_uint8(x_217, sizeof(void*)*4);
if (x_270 == 0)
{
uint8_t x_271; 
x_271 = !lean_is_exclusive(x_216);
if (x_271 == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; 
x_272 = lean_ctor_get(x_216, 1);
x_273 = lean_ctor_get(x_216, 2);
x_274 = lean_ctor_get(x_216, 3);
x_275 = lean_ctor_get(x_216, 0);
lean_dec(x_275);
x_276 = !lean_is_exclusive(x_217);
if (x_276 == 0)
{
uint8_t x_277; uint8_t x_278; 
x_277 = 1;
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_277);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_277);
x_278 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_217);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_278);
return x_1;
}
else
{
lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; uint8_t x_285; 
x_279 = lean_ctor_get(x_217, 0);
x_280 = lean_ctor_get(x_217, 1);
x_281 = lean_ctor_get(x_217, 2);
x_282 = lean_ctor_get(x_217, 3);
lean_inc(x_282);
lean_inc(x_281);
lean_inc(x_280);
lean_inc(x_279);
lean_dec(x_217);
x_283 = 1;
x_284 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_284, 0, x_279);
lean_ctor_set(x_284, 1, x_280);
lean_ctor_set(x_284, 2, x_281);
lean_ctor_set(x_284, 3, x_282);
lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_283);
x_285 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_284);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_285);
return x_1;
}
}
else
{
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; uint8_t x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_286 = lean_ctor_get(x_216, 1);
x_287 = lean_ctor_get(x_216, 2);
x_288 = lean_ctor_get(x_216, 3);
lean_inc(x_288);
lean_inc(x_287);
lean_inc(x_286);
lean_dec(x_216);
x_289 = lean_ctor_get(x_217, 0);
lean_inc(x_289);
x_290 = lean_ctor_get(x_217, 1);
lean_inc(x_290);
x_291 = lean_ctor_get(x_217, 2);
lean_inc(x_291);
x_292 = lean_ctor_get(x_217, 3);
lean_inc(x_292);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_293 = x_217;
} else {
 lean_dec_ref(x_217);
 x_293 = lean_box(0);
}
x_294 = 1;
if (lean_is_scalar(x_293)) {
 x_295 = lean_alloc_ctor(1, 4, 1);
} else {
 x_295 = x_293;
}
lean_ctor_set(x_295, 0, x_289);
lean_ctor_set(x_295, 1, x_290);
lean_ctor_set(x_295, 2, x_291);
lean_ctor_set(x_295, 3, x_292);
lean_ctor_set_uint8(x_295, sizeof(void*)*4, x_294);
x_296 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_296, 0, x_288);
lean_ctor_set(x_296, 1, x_43);
lean_ctor_set(x_296, 2, x_44);
lean_ctor_set(x_296, 3, x_45);
lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_294);
x_297 = 0;
lean_ctor_set(x_1, 3, x_296);
lean_ctor_set(x_1, 2, x_287);
lean_ctor_set(x_1, 1, x_286);
lean_ctor_set(x_1, 0, x_295);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297);
return x_1;
}
}
else
{
lean_object* x_298; 
x_298 = lean_ctor_get(x_216, 3);
lean_inc(x_298);
if (lean_obj_tag(x_298) == 0)
{
uint8_t x_299; 
x_299 = !lean_is_exclusive(x_216);
if (x_299 == 0)
{
lean_object* x_300; lean_object* x_301; uint8_t x_302; uint8_t x_303; 
x_300 = lean_ctor_get(x_216, 3);
lean_dec(x_300);
x_301 = lean_ctor_get(x_216, 0);
lean_dec(x_301);
x_302 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_302);
x_303 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_303);
return x_1;
}
else
{
lean_object* x_304; lean_object* x_305; uint8_t x_306; lean_object* x_307; uint8_t x_308; 
x_304 = lean_ctor_get(x_216, 1);
x_305 = lean_ctor_get(x_216, 2);
lean_inc(x_305);
lean_inc(x_304);
lean_dec(x_216);
x_306 = 0;
x_307 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_307, 0, x_217);
lean_ctor_set(x_307, 1, x_304);
lean_ctor_set(x_307, 2, x_305);
lean_ctor_set(x_307, 3, x_298);
lean_ctor_set_uint8(x_307, sizeof(void*)*4, x_306);
x_308 = 1;
lean_ctor_set(x_1, 0, x_307);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_308);
return x_1;
}
}
else
{
uint8_t x_309; 
x_309 = lean_ctor_get_uint8(x_298, sizeof(void*)*4);
if (x_309 == 0)
{
uint8_t x_310; 
lean_free_object(x_1);
x_310 = !lean_is_exclusive(x_216);
if (x_310 == 0)
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; 
x_311 = lean_ctor_get(x_216, 1);
x_312 = lean_ctor_get(x_216, 2);
x_313 = lean_ctor_get(x_216, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_216, 0);
lean_dec(x_314);
x_315 = !lean_is_exclusive(x_298);
if (x_315 == 0)
{
lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; uint8_t x_321; 
x_316 = lean_ctor_get(x_298, 0);
x_317 = lean_ctor_get(x_298, 1);
x_318 = lean_ctor_get(x_298, 2);
x_319 = lean_ctor_get(x_298, 3);
x_320 = 1;
lean_inc(x_217);
lean_ctor_set(x_298, 3, x_316);
lean_ctor_set(x_298, 2, x_312);
lean_ctor_set(x_298, 1, x_311);
lean_ctor_set(x_298, 0, x_217);
x_321 = !lean_is_exclusive(x_217);
if (x_321 == 0)
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; 
x_322 = lean_ctor_get(x_217, 3);
lean_dec(x_322);
x_323 = lean_ctor_get(x_217, 2);
lean_dec(x_323);
x_324 = lean_ctor_get(x_217, 1);
lean_dec(x_324);
x_325 = lean_ctor_get(x_217, 0);
lean_dec(x_325);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
lean_ctor_set(x_217, 3, x_45);
lean_ctor_set(x_217, 2, x_44);
lean_ctor_set(x_217, 1, x_43);
lean_ctor_set(x_217, 0, x_319);
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_320);
x_326 = 0;
lean_ctor_set(x_216, 3, x_217);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_326);
return x_216;
}
else
{
lean_object* x_327; uint8_t x_328; 
lean_dec(x_217);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
x_327 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_327, 0, x_319);
lean_ctor_set(x_327, 1, x_43);
lean_ctor_set(x_327, 2, x_44);
lean_ctor_set(x_327, 3, x_45);
lean_ctor_set_uint8(x_327, sizeof(void*)*4, x_320);
x_328 = 0;
lean_ctor_set(x_216, 3, x_327);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_328);
return x_216;
}
}
else
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; 
x_329 = lean_ctor_get(x_298, 0);
x_330 = lean_ctor_get(x_298, 1);
x_331 = lean_ctor_get(x_298, 2);
x_332 = lean_ctor_get(x_298, 3);
lean_inc(x_332);
lean_inc(x_331);
lean_inc(x_330);
lean_inc(x_329);
lean_dec(x_298);
x_333 = 1;
lean_inc(x_217);
x_334 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_334, 0, x_217);
lean_ctor_set(x_334, 1, x_311);
lean_ctor_set(x_334, 2, x_312);
lean_ctor_set(x_334, 3, x_329);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_335 = x_217;
} else {
 lean_dec_ref(x_217);
 x_335 = lean_box(0);
}
lean_ctor_set_uint8(x_334, sizeof(void*)*4, x_333);
if (lean_is_scalar(x_335)) {
 x_336 = lean_alloc_ctor(1, 4, 1);
} else {
 x_336 = x_335;
}
lean_ctor_set(x_336, 0, x_332);
lean_ctor_set(x_336, 1, x_43);
lean_ctor_set(x_336, 2, x_44);
lean_ctor_set(x_336, 3, x_45);
lean_ctor_set_uint8(x_336, sizeof(void*)*4, x_333);
x_337 = 0;
lean_ctor_set(x_216, 3, x_336);
lean_ctor_set(x_216, 2, x_331);
lean_ctor_set(x_216, 1, x_330);
lean_ctor_set(x_216, 0, x_334);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_337);
return x_216;
}
}
else
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; lean_object* x_350; 
x_338 = lean_ctor_get(x_216, 1);
x_339 = lean_ctor_get(x_216, 2);
lean_inc(x_339);
lean_inc(x_338);
lean_dec(x_216);
x_340 = lean_ctor_get(x_298, 0);
lean_inc(x_340);
x_341 = lean_ctor_get(x_298, 1);
lean_inc(x_341);
x_342 = lean_ctor_get(x_298, 2);
lean_inc(x_342);
x_343 = lean_ctor_get(x_298, 3);
lean_inc(x_343);
if (lean_is_exclusive(x_298)) {
 lean_ctor_release(x_298, 0);
 lean_ctor_release(x_298, 1);
 lean_ctor_release(x_298, 2);
 lean_ctor_release(x_298, 3);
 x_344 = x_298;
} else {
 lean_dec_ref(x_298);
 x_344 = lean_box(0);
}
x_345 = 1;
lean_inc(x_217);
if (lean_is_scalar(x_344)) {
 x_346 = lean_alloc_ctor(1, 4, 1);
} else {
 x_346 = x_344;
}
lean_ctor_set(x_346, 0, x_217);
lean_ctor_set(x_346, 1, x_338);
lean_ctor_set(x_346, 2, x_339);
lean_ctor_set(x_346, 3, x_340);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_347 = x_217;
} else {
 lean_dec_ref(x_217);
 x_347 = lean_box(0);
}
lean_ctor_set_uint8(x_346, sizeof(void*)*4, x_345);
if (lean_is_scalar(x_347)) {
 x_348 = lean_alloc_ctor(1, 4, 1);
} else {
 x_348 = x_347;
}
lean_ctor_set(x_348, 0, x_343);
lean_ctor_set(x_348, 1, x_43);
lean_ctor_set(x_348, 2, x_44);
lean_ctor_set(x_348, 3, x_45);
lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_345);
x_349 = 0;
x_350 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_350, 0, x_346);
lean_ctor_set(x_350, 1, x_341);
lean_ctor_set(x_350, 2, x_342);
lean_ctor_set(x_350, 3, x_348);
lean_ctor_set_uint8(x_350, sizeof(void*)*4, x_349);
return x_350;
}
}
else
{
uint8_t x_351; 
x_351 = !lean_is_exclusive(x_216);
if (x_351 == 0)
{
lean_object* x_352; lean_object* x_353; uint8_t x_354; 
x_352 = lean_ctor_get(x_216, 3);
lean_dec(x_352);
x_353 = lean_ctor_get(x_216, 0);
lean_dec(x_353);
x_354 = !lean_is_exclusive(x_217);
if (x_354 == 0)
{
uint8_t x_355; uint8_t x_356; 
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_309);
x_355 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_355);
x_356 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_356);
return x_1;
}
else
{
lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; uint8_t x_362; uint8_t x_363; 
x_357 = lean_ctor_get(x_217, 0);
x_358 = lean_ctor_get(x_217, 1);
x_359 = lean_ctor_get(x_217, 2);
x_360 = lean_ctor_get(x_217, 3);
lean_inc(x_360);
lean_inc(x_359);
lean_inc(x_358);
lean_inc(x_357);
lean_dec(x_217);
x_361 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_361, 0, x_357);
lean_ctor_set(x_361, 1, x_358);
lean_ctor_set(x_361, 2, x_359);
lean_ctor_set(x_361, 3, x_360);
lean_ctor_set_uint8(x_361, sizeof(void*)*4, x_309);
x_362 = 0;
lean_ctor_set(x_216, 0, x_361);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_362);
x_363 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_363);
return x_1;
}
}
else
{
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; uint8_t x_372; lean_object* x_373; uint8_t x_374; 
x_364 = lean_ctor_get(x_216, 1);
x_365 = lean_ctor_get(x_216, 2);
lean_inc(x_365);
lean_inc(x_364);
lean_dec(x_216);
x_366 = lean_ctor_get(x_217, 0);
lean_inc(x_366);
x_367 = lean_ctor_get(x_217, 1);
lean_inc(x_367);
x_368 = lean_ctor_get(x_217, 2);
lean_inc(x_368);
x_369 = lean_ctor_get(x_217, 3);
lean_inc(x_369);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_370 = x_217;
} else {
 lean_dec_ref(x_217);
 x_370 = lean_box(0);
}
if (lean_is_scalar(x_370)) {
 x_371 = lean_alloc_ctor(1, 4, 1);
} else {
 x_371 = x_370;
}
lean_ctor_set(x_371, 0, x_366);
lean_ctor_set(x_371, 1, x_367);
lean_ctor_set(x_371, 2, x_368);
lean_ctor_set(x_371, 3, x_369);
lean_ctor_set_uint8(x_371, sizeof(void*)*4, x_309);
x_372 = 0;
x_373 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_373, 0, x_371);
lean_ctor_set(x_373, 1, x_364);
lean_ctor_set(x_373, 2, x_365);
lean_ctor_set(x_373, 3, x_298);
lean_ctor_set_uint8(x_373, sizeof(void*)*4, x_372);
x_374 = 1;
lean_ctor_set(x_1, 0, x_373);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_374);
return x_1;
}
}
}
}
}
}
}
}
else
{
lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint32_t x_379; uint8_t x_380; 
x_375 = lean_ctor_get(x_1, 0);
x_376 = lean_ctor_get(x_1, 1);
x_377 = lean_ctor_get(x_1, 2);
x_378 = lean_ctor_get(x_1, 3);
lean_inc(x_378);
lean_inc(x_377);
lean_inc(x_376);
lean_inc(x_375);
lean_dec(x_1);
x_379 = lean_unbox_uint32(x_376);
x_380 = lean_uint32_dec_lt(x_2, x_379);
if (x_380 == 0)
{
uint32_t x_381; uint8_t x_382; 
x_381 = lean_unbox_uint32(x_376);
x_382 = lean_uint32_dec_eq(x_2, x_381);
if (x_382 == 0)
{
uint8_t x_383; 
x_383 = l_Std_RBNode_isRed___rarg(x_378);
if (x_383 == 0)
{
lean_object* x_384; uint8_t x_385; lean_object* x_386; 
x_384 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_378, x_2, x_3);
x_385 = 1;
x_386 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_386, 0, x_375);
lean_ctor_set(x_386, 1, x_376);
lean_ctor_set(x_386, 2, x_377);
lean_ctor_set(x_386, 3, x_384);
lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_385);
return x_386;
}
else
{
lean_object* x_387; lean_object* x_388; 
x_387 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_378, x_2, x_3);
x_388 = lean_ctor_get(x_387, 0);
lean_inc(x_388);
if (lean_obj_tag(x_388) == 0)
{
lean_object* x_389; 
x_389 = lean_ctor_get(x_387, 3);
lean_inc(x_389);
if (lean_obj_tag(x_389) == 0)
{
lean_object* x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; uint8_t x_395; lean_object* x_396; 
x_390 = lean_ctor_get(x_387, 1);
lean_inc(x_390);
x_391 = lean_ctor_get(x_387, 2);
lean_inc(x_391);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_392 = x_387;
} else {
 lean_dec_ref(x_387);
 x_392 = lean_box(0);
}
x_393 = 0;
if (lean_is_scalar(x_392)) {
 x_394 = lean_alloc_ctor(1, 4, 1);
} else {
 x_394 = x_392;
}
lean_ctor_set(x_394, 0, x_389);
lean_ctor_set(x_394, 1, x_390);
lean_ctor_set(x_394, 2, x_391);
lean_ctor_set(x_394, 3, x_389);
lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393);
x_395 = 1;
x_396 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_376);
lean_ctor_set(x_396, 2, x_377);
lean_ctor_set(x_396, 3, x_394);
lean_ctor_set_uint8(x_396, sizeof(void*)*4, x_395);
return x_396;
}
else
{
uint8_t x_397; 
x_397 = lean_ctor_get_uint8(x_389, sizeof(void*)*4);
if (x_397 == 0)
{
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; uint8_t x_406; lean_object* x_407; lean_object* x_408; uint8_t x_409; lean_object* x_410; 
x_398 = lean_ctor_get(x_387, 1);
lean_inc(x_398);
x_399 = lean_ctor_get(x_387, 2);
lean_inc(x_399);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_400 = x_387;
} else {
 lean_dec_ref(x_387);
 x_400 = lean_box(0);
}
x_401 = lean_ctor_get(x_389, 0);
lean_inc(x_401);
x_402 = lean_ctor_get(x_389, 1);
lean_inc(x_402);
x_403 = lean_ctor_get(x_389, 2);
lean_inc(x_403);
x_404 = lean_ctor_get(x_389, 3);
lean_inc(x_404);
if (lean_is_exclusive(x_389)) {
 lean_ctor_release(x_389, 0);
 lean_ctor_release(x_389, 1);
 lean_ctor_release(x_389, 2);
 lean_ctor_release(x_389, 3);
 x_405 = x_389;
} else {
 lean_dec_ref(x_389);
 x_405 = lean_box(0);
}
x_406 = 1;
if (lean_is_scalar(x_405)) {
 x_407 = lean_alloc_ctor(1, 4, 1);
} else {
 x_407 = x_405;
}
lean_ctor_set(x_407, 0, x_375);
lean_ctor_set(x_407, 1, x_376);
lean_ctor_set(x_407, 2, x_377);
lean_ctor_set(x_407, 3, x_388);
lean_ctor_set_uint8(x_407, sizeof(void*)*4, x_406);
if (lean_is_scalar(x_400)) {
 x_408 = lean_alloc_ctor(1, 4, 1);
} else {
 x_408 = x_400;
}
lean_ctor_set(x_408, 0, x_401);
lean_ctor_set(x_408, 1, x_402);
lean_ctor_set(x_408, 2, x_403);
lean_ctor_set(x_408, 3, x_404);
lean_ctor_set_uint8(x_408, sizeof(void*)*4, x_406);
x_409 = 0;
x_410 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_410, 0, x_407);
lean_ctor_set(x_410, 1, x_398);
lean_ctor_set(x_410, 2, x_399);
lean_ctor_set(x_410, 3, x_408);
lean_ctor_set_uint8(x_410, sizeof(void*)*4, x_409);
return x_410;
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; lean_object* x_415; uint8_t x_416; lean_object* x_417; 
x_411 = lean_ctor_get(x_387, 1);
lean_inc(x_411);
x_412 = lean_ctor_get(x_387, 2);
lean_inc(x_412);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_413 = x_387;
} else {
 lean_dec_ref(x_387);
 x_413 = lean_box(0);
}
x_414 = 0;
if (lean_is_scalar(x_413)) {
 x_415 = lean_alloc_ctor(1, 4, 1);
} else {
 x_415 = x_413;
}
lean_ctor_set(x_415, 0, x_388);
lean_ctor_set(x_415, 1, x_411);
lean_ctor_set(x_415, 2, x_412);
lean_ctor_set(x_415, 3, x_389);
lean_ctor_set_uint8(x_415, sizeof(void*)*4, x_414);
x_416 = 1;
x_417 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_417, 0, x_375);
lean_ctor_set(x_417, 1, x_376);
lean_ctor_set(x_417, 2, x_377);
lean_ctor_set(x_417, 3, x_415);
lean_ctor_set_uint8(x_417, sizeof(void*)*4, x_416);
return x_417;
}
}
}
else
{
uint8_t x_418; 
x_418 = lean_ctor_get_uint8(x_388, sizeof(void*)*4);
if (x_418 == 0)
{
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; uint8_t x_428; lean_object* x_429; lean_object* x_430; uint8_t x_431; lean_object* x_432; 
x_419 = lean_ctor_get(x_387, 1);
lean_inc(x_419);
x_420 = lean_ctor_get(x_387, 2);
lean_inc(x_420);
x_421 = lean_ctor_get(x_387, 3);
lean_inc(x_421);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_422 = x_387;
} else {
 lean_dec_ref(x_387);
 x_422 = lean_box(0);
}
x_423 = lean_ctor_get(x_388, 0);
lean_inc(x_423);
x_424 = lean_ctor_get(x_388, 1);
lean_inc(x_424);
x_425 = lean_ctor_get(x_388, 2);
lean_inc(x_425);
x_426 = lean_ctor_get(x_388, 3);
lean_inc(x_426);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_427 = x_388;
} else {
 lean_dec_ref(x_388);
 x_427 = lean_box(0);
}
x_428 = 1;
if (lean_is_scalar(x_427)) {
 x_429 = lean_alloc_ctor(1, 4, 1);
} else {
 x_429 = x_427;
}
lean_ctor_set(x_429, 0, x_375);
lean_ctor_set(x_429, 1, x_376);
lean_ctor_set(x_429, 2, x_377);
lean_ctor_set(x_429, 3, x_423);
lean_ctor_set_uint8(x_429, sizeof(void*)*4, x_428);
if (lean_is_scalar(x_422)) {
 x_430 = lean_alloc_ctor(1, 4, 1);
} else {
 x_430 = x_422;
}
lean_ctor_set(x_430, 0, x_426);
lean_ctor_set(x_430, 1, x_419);
lean_ctor_set(x_430, 2, x_420);
lean_ctor_set(x_430, 3, x_421);
lean_ctor_set_uint8(x_430, sizeof(void*)*4, x_428);
x_431 = 0;
x_432 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_432, 0, x_429);
lean_ctor_set(x_432, 1, x_424);
lean_ctor_set(x_432, 2, x_425);
lean_ctor_set(x_432, 3, x_430);
lean_ctor_set_uint8(x_432, sizeof(void*)*4, x_431);
return x_432;
}
else
{
lean_object* x_433; 
x_433 = lean_ctor_get(x_387, 3);
lean_inc(x_433);
if (lean_obj_tag(x_433) == 0)
{
lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; lean_object* x_438; uint8_t x_439; lean_object* x_440; 
x_434 = lean_ctor_get(x_387, 1);
lean_inc(x_434);
x_435 = lean_ctor_get(x_387, 2);
lean_inc(x_435);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_436 = x_387;
} else {
 lean_dec_ref(x_387);
 x_436 = lean_box(0);
}
x_437 = 0;
if (lean_is_scalar(x_436)) {
 x_438 = lean_alloc_ctor(1, 4, 1);
} else {
 x_438 = x_436;
}
lean_ctor_set(x_438, 0, x_388);
lean_ctor_set(x_438, 1, x_434);
lean_ctor_set(x_438, 2, x_435);
lean_ctor_set(x_438, 3, x_433);
lean_ctor_set_uint8(x_438, sizeof(void*)*4, x_437);
x_439 = 1;
x_440 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_440, 0, x_375);
lean_ctor_set(x_440, 1, x_376);
lean_ctor_set(x_440, 2, x_377);
lean_ctor_set(x_440, 3, x_438);
lean_ctor_set_uint8(x_440, sizeof(void*)*4, x_439);
return x_440;
}
else
{
uint8_t x_441; 
x_441 = lean_ctor_get_uint8(x_433, sizeof(void*)*4);
if (x_441 == 0)
{
lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; lean_object* x_455; 
x_442 = lean_ctor_get(x_387, 1);
lean_inc(x_442);
x_443 = lean_ctor_get(x_387, 2);
lean_inc(x_443);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_444 = x_387;
} else {
 lean_dec_ref(x_387);
 x_444 = lean_box(0);
}
x_445 = lean_ctor_get(x_433, 0);
lean_inc(x_445);
x_446 = lean_ctor_get(x_433, 1);
lean_inc(x_446);
x_447 = lean_ctor_get(x_433, 2);
lean_inc(x_447);
x_448 = lean_ctor_get(x_433, 3);
lean_inc(x_448);
if (lean_is_exclusive(x_433)) {
 lean_ctor_release(x_433, 0);
 lean_ctor_release(x_433, 1);
 lean_ctor_release(x_433, 2);
 lean_ctor_release(x_433, 3);
 x_449 = x_433;
} else {
 lean_dec_ref(x_433);
 x_449 = lean_box(0);
}
x_450 = 1;
lean_inc(x_388);
if (lean_is_scalar(x_449)) {
 x_451 = lean_alloc_ctor(1, 4, 1);
} else {
 x_451 = x_449;
}
lean_ctor_set(x_451, 0, x_375);
lean_ctor_set(x_451, 1, x_376);
lean_ctor_set(x_451, 2, x_377);
lean_ctor_set(x_451, 3, x_388);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_452 = x_388;
} else {
 lean_dec_ref(x_388);
 x_452 = lean_box(0);
}
lean_ctor_set_uint8(x_451, sizeof(void*)*4, x_450);
if (lean_is_scalar(x_452)) {
 x_453 = lean_alloc_ctor(1, 4, 1);
} else {
 x_453 = x_452;
}
lean_ctor_set(x_453, 0, x_445);
lean_ctor_set(x_453, 1, x_446);
lean_ctor_set(x_453, 2, x_447);
lean_ctor_set(x_453, 3, x_448);
lean_ctor_set_uint8(x_453, sizeof(void*)*4, x_450);
x_454 = 0;
if (lean_is_scalar(x_444)) {
 x_455 = lean_alloc_ctor(1, 4, 1);
} else {
 x_455 = x_444;
}
lean_ctor_set(x_455, 0, x_451);
lean_ctor_set(x_455, 1, x_442);
lean_ctor_set(x_455, 2, x_443);
lean_ctor_set(x_455, 3, x_453);
lean_ctor_set_uint8(x_455, sizeof(void*)*4, x_454);
return x_455;
}
else
{
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; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; 
x_456 = lean_ctor_get(x_387, 1);
lean_inc(x_456);
x_457 = lean_ctor_get(x_387, 2);
lean_inc(x_457);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_458 = x_387;
} else {
 lean_dec_ref(x_387);
 x_458 = lean_box(0);
}
x_459 = lean_ctor_get(x_388, 0);
lean_inc(x_459);
x_460 = lean_ctor_get(x_388, 1);
lean_inc(x_460);
x_461 = lean_ctor_get(x_388, 2);
lean_inc(x_461);
x_462 = lean_ctor_get(x_388, 3);
lean_inc(x_462);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_463 = x_388;
} else {
 lean_dec_ref(x_388);
 x_463 = lean_box(0);
}
if (lean_is_scalar(x_463)) {
 x_464 = lean_alloc_ctor(1, 4, 1);
} else {
 x_464 = x_463;
}
lean_ctor_set(x_464, 0, x_459);
lean_ctor_set(x_464, 1, x_460);
lean_ctor_set(x_464, 2, x_461);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set_uint8(x_464, sizeof(void*)*4, x_441);
x_465 = 0;
if (lean_is_scalar(x_458)) {
 x_466 = lean_alloc_ctor(1, 4, 1);
} else {
 x_466 = x_458;
}
lean_ctor_set(x_466, 0, x_464);
lean_ctor_set(x_466, 1, x_456);
lean_ctor_set(x_466, 2, x_457);
lean_ctor_set(x_466, 3, x_433);
lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465);
x_467 = 1;
x_468 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_468, 0, x_375);
lean_ctor_set(x_468, 1, x_376);
lean_ctor_set(x_468, 2, x_377);
lean_ctor_set(x_468, 3, x_466);
lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467);
return x_468;
}
}
}
}
}
}
else
{
uint8_t x_469; lean_object* x_470; lean_object* x_471; 
lean_dec(x_377);
lean_dec(x_376);
x_469 = 1;
x_470 = lean_box_uint32(x_2);
x_471 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_471, 0, x_375);
lean_ctor_set(x_471, 1, x_470);
lean_ctor_set(x_471, 2, x_3);
lean_ctor_set(x_471, 3, x_378);
lean_ctor_set_uint8(x_471, sizeof(void*)*4, x_469);
return x_471;
}
}
else
{
uint8_t x_472; 
x_472 = l_Std_RBNode_isRed___rarg(x_375);
if (x_472 == 0)
{
lean_object* x_473; uint8_t x_474; lean_object* x_475; 
x_473 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_375, x_2, x_3);
x_474 = 1;
x_475 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_475, 0, x_473);
lean_ctor_set(x_475, 1, x_376);
lean_ctor_set(x_475, 2, x_377);
lean_ctor_set(x_475, 3, x_378);
lean_ctor_set_uint8(x_475, sizeof(void*)*4, x_474);
return x_475;
}
else
{
lean_object* x_476; lean_object* x_477; 
x_476 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_375, x_2, x_3);
x_477 = lean_ctor_get(x_476, 0);
lean_inc(x_477);
if (lean_obj_tag(x_477) == 0)
{
lean_object* x_478; 
x_478 = lean_ctor_get(x_476, 3);
lean_inc(x_478);
if (lean_obj_tag(x_478) == 0)
{
lean_object* x_479; lean_object* x_480; lean_object* x_481; uint8_t x_482; lean_object* x_483; uint8_t x_484; lean_object* x_485; 
x_479 = lean_ctor_get(x_476, 1);
lean_inc(x_479);
x_480 = lean_ctor_get(x_476, 2);
lean_inc(x_480);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_481 = x_476;
} else {
 lean_dec_ref(x_476);
 x_481 = lean_box(0);
}
x_482 = 0;
if (lean_is_scalar(x_481)) {
 x_483 = lean_alloc_ctor(1, 4, 1);
} else {
 x_483 = x_481;
}
lean_ctor_set(x_483, 0, x_478);
lean_ctor_set(x_483, 1, x_479);
lean_ctor_set(x_483, 2, x_480);
lean_ctor_set(x_483, 3, x_478);
lean_ctor_set_uint8(x_483, sizeof(void*)*4, x_482);
x_484 = 1;
x_485 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_485, 0, x_483);
lean_ctor_set(x_485, 1, x_376);
lean_ctor_set(x_485, 2, x_377);
lean_ctor_set(x_485, 3, x_378);
lean_ctor_set_uint8(x_485, sizeof(void*)*4, x_484);
return x_485;
}
else
{
uint8_t x_486; 
x_486 = lean_ctor_get_uint8(x_478, sizeof(void*)*4);
if (x_486 == 0)
{
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; uint8_t x_495; lean_object* x_496; lean_object* x_497; uint8_t x_498; lean_object* x_499; 
x_487 = lean_ctor_get(x_476, 1);
lean_inc(x_487);
x_488 = lean_ctor_get(x_476, 2);
lean_inc(x_488);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_489 = x_476;
} else {
 lean_dec_ref(x_476);
 x_489 = lean_box(0);
}
x_490 = lean_ctor_get(x_478, 0);
lean_inc(x_490);
x_491 = lean_ctor_get(x_478, 1);
lean_inc(x_491);
x_492 = lean_ctor_get(x_478, 2);
lean_inc(x_492);
x_493 = lean_ctor_get(x_478, 3);
lean_inc(x_493);
if (lean_is_exclusive(x_478)) {
 lean_ctor_release(x_478, 0);
 lean_ctor_release(x_478, 1);
 lean_ctor_release(x_478, 2);
 lean_ctor_release(x_478, 3);
 x_494 = x_478;
} else {
 lean_dec_ref(x_478);
 x_494 = lean_box(0);
}
x_495 = 1;
if (lean_is_scalar(x_494)) {
 x_496 = lean_alloc_ctor(1, 4, 1);
} else {
 x_496 = x_494;
}
lean_ctor_set(x_496, 0, x_477);
lean_ctor_set(x_496, 1, x_487);
lean_ctor_set(x_496, 2, x_488);
lean_ctor_set(x_496, 3, x_490);
lean_ctor_set_uint8(x_496, sizeof(void*)*4, x_495);
if (lean_is_scalar(x_489)) {
 x_497 = lean_alloc_ctor(1, 4, 1);
} else {
 x_497 = x_489;
}
lean_ctor_set(x_497, 0, x_493);
lean_ctor_set(x_497, 1, x_376);
lean_ctor_set(x_497, 2, x_377);
lean_ctor_set(x_497, 3, x_378);
lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_495);
x_498 = 0;
x_499 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_499, 0, x_496);
lean_ctor_set(x_499, 1, x_491);
lean_ctor_set(x_499, 2, x_492);
lean_ctor_set(x_499, 3, x_497);
lean_ctor_set_uint8(x_499, sizeof(void*)*4, x_498);
return x_499;
}
else
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; uint8_t x_505; lean_object* x_506; 
x_500 = lean_ctor_get(x_476, 1);
lean_inc(x_500);
x_501 = lean_ctor_get(x_476, 2);
lean_inc(x_501);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_502 = x_476;
} else {
 lean_dec_ref(x_476);
 x_502 = lean_box(0);
}
x_503 = 0;
if (lean_is_scalar(x_502)) {
 x_504 = lean_alloc_ctor(1, 4, 1);
} else {
 x_504 = x_502;
}
lean_ctor_set(x_504, 0, x_477);
lean_ctor_set(x_504, 1, x_500);
lean_ctor_set(x_504, 2, x_501);
lean_ctor_set(x_504, 3, x_478);
lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503);
x_505 = 1;
x_506 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_506, 0, x_504);
lean_ctor_set(x_506, 1, x_376);
lean_ctor_set(x_506, 2, x_377);
lean_ctor_set(x_506, 3, x_378);
lean_ctor_set_uint8(x_506, sizeof(void*)*4, x_505);
return x_506;
}
}
}
else
{
uint8_t x_507; 
x_507 = lean_ctor_get_uint8(x_477, sizeof(void*)*4);
if (x_507 == 0)
{
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; uint8_t x_517; lean_object* x_518; lean_object* x_519; uint8_t x_520; lean_object* x_521; 
x_508 = lean_ctor_get(x_476, 1);
lean_inc(x_508);
x_509 = lean_ctor_get(x_476, 2);
lean_inc(x_509);
x_510 = lean_ctor_get(x_476, 3);
lean_inc(x_510);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_511 = x_476;
} else {
 lean_dec_ref(x_476);
 x_511 = lean_box(0);
}
x_512 = lean_ctor_get(x_477, 0);
lean_inc(x_512);
x_513 = lean_ctor_get(x_477, 1);
lean_inc(x_513);
x_514 = lean_ctor_get(x_477, 2);
lean_inc(x_514);
x_515 = lean_ctor_get(x_477, 3);
lean_inc(x_515);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_516 = x_477;
} else {
 lean_dec_ref(x_477);
 x_516 = lean_box(0);
}
x_517 = 1;
if (lean_is_scalar(x_516)) {
 x_518 = lean_alloc_ctor(1, 4, 1);
} else {
 x_518 = x_516;
}
lean_ctor_set(x_518, 0, x_512);
lean_ctor_set(x_518, 1, x_513);
lean_ctor_set(x_518, 2, x_514);
lean_ctor_set(x_518, 3, x_515);
lean_ctor_set_uint8(x_518, sizeof(void*)*4, x_517);
if (lean_is_scalar(x_511)) {
 x_519 = lean_alloc_ctor(1, 4, 1);
} else {
 x_519 = x_511;
}
lean_ctor_set(x_519, 0, x_510);
lean_ctor_set(x_519, 1, x_376);
lean_ctor_set(x_519, 2, x_377);
lean_ctor_set(x_519, 3, x_378);
lean_ctor_set_uint8(x_519, sizeof(void*)*4, x_517);
x_520 = 0;
x_521 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_521, 0, x_518);
lean_ctor_set(x_521, 1, x_508);
lean_ctor_set(x_521, 2, x_509);
lean_ctor_set(x_521, 3, x_519);
lean_ctor_set_uint8(x_521, sizeof(void*)*4, x_520);
return x_521;
}
else
{
lean_object* x_522; 
x_522 = lean_ctor_get(x_476, 3);
lean_inc(x_522);
if (lean_obj_tag(x_522) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; uint8_t x_528; lean_object* x_529; 
x_523 = lean_ctor_get(x_476, 1);
lean_inc(x_523);
x_524 = lean_ctor_get(x_476, 2);
lean_inc(x_524);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_525 = x_476;
} else {
 lean_dec_ref(x_476);
 x_525 = lean_box(0);
}
x_526 = 0;
if (lean_is_scalar(x_525)) {
 x_527 = lean_alloc_ctor(1, 4, 1);
} else {
 x_527 = x_525;
}
lean_ctor_set(x_527, 0, x_477);
lean_ctor_set(x_527, 1, x_523);
lean_ctor_set(x_527, 2, x_524);
lean_ctor_set(x_527, 3, x_522);
lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526);
x_528 = 1;
x_529 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_529, 0, x_527);
lean_ctor_set(x_529, 1, x_376);
lean_ctor_set(x_529, 2, x_377);
lean_ctor_set(x_529, 3, x_378);
lean_ctor_set_uint8(x_529, sizeof(void*)*4, x_528);
return x_529;
}
else
{
uint8_t x_530; 
x_530 = lean_ctor_get_uint8(x_522, sizeof(void*)*4);
if (x_530 == 0)
{
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; uint8_t x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; uint8_t x_543; lean_object* x_544; 
x_531 = lean_ctor_get(x_476, 1);
lean_inc(x_531);
x_532 = lean_ctor_get(x_476, 2);
lean_inc(x_532);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_533 = x_476;
} else {
 lean_dec_ref(x_476);
 x_533 = lean_box(0);
}
x_534 = lean_ctor_get(x_522, 0);
lean_inc(x_534);
x_535 = lean_ctor_get(x_522, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_522, 2);
lean_inc(x_536);
x_537 = lean_ctor_get(x_522, 3);
lean_inc(x_537);
if (lean_is_exclusive(x_522)) {
 lean_ctor_release(x_522, 0);
 lean_ctor_release(x_522, 1);
 lean_ctor_release(x_522, 2);
 lean_ctor_release(x_522, 3);
 x_538 = x_522;
} else {
 lean_dec_ref(x_522);
 x_538 = lean_box(0);
}
x_539 = 1;
lean_inc(x_477);
if (lean_is_scalar(x_538)) {
 x_540 = lean_alloc_ctor(1, 4, 1);
} else {
 x_540 = x_538;
}
lean_ctor_set(x_540, 0, x_477);
lean_ctor_set(x_540, 1, x_531);
lean_ctor_set(x_540, 2, x_532);
lean_ctor_set(x_540, 3, x_534);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_541 = x_477;
} else {
 lean_dec_ref(x_477);
 x_541 = lean_box(0);
}
lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539);
if (lean_is_scalar(x_541)) {
 x_542 = lean_alloc_ctor(1, 4, 1);
} else {
 x_542 = x_541;
}
lean_ctor_set(x_542, 0, x_537);
lean_ctor_set(x_542, 1, x_376);
lean_ctor_set(x_542, 2, x_377);
lean_ctor_set(x_542, 3, x_378);
lean_ctor_set_uint8(x_542, sizeof(void*)*4, x_539);
x_543 = 0;
if (lean_is_scalar(x_533)) {
 x_544 = lean_alloc_ctor(1, 4, 1);
} else {
 x_544 = x_533;
}
lean_ctor_set(x_544, 0, x_540);
lean_ctor_set(x_544, 1, x_535);
lean_ctor_set(x_544, 2, x_536);
lean_ctor_set(x_544, 3, x_542);
lean_ctor_set_uint8(x_544, sizeof(void*)*4, x_543);
return x_544;
}
else
{
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; uint8_t x_554; lean_object* x_555; uint8_t x_556; lean_object* x_557; 
x_545 = lean_ctor_get(x_476, 1);
lean_inc(x_545);
x_546 = lean_ctor_get(x_476, 2);
lean_inc(x_546);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_547 = x_476;
} else {
 lean_dec_ref(x_476);
 x_547 = lean_box(0);
}
x_548 = lean_ctor_get(x_477, 0);
lean_inc(x_548);
x_549 = lean_ctor_get(x_477, 1);
lean_inc(x_549);
x_550 = lean_ctor_get(x_477, 2);
lean_inc(x_550);
x_551 = lean_ctor_get(x_477, 3);
lean_inc(x_551);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_552 = x_477;
} else {
 lean_dec_ref(x_477);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(1, 4, 1);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_549);
lean_ctor_set(x_553, 2, x_550);
lean_ctor_set(x_553, 3, x_551);
lean_ctor_set_uint8(x_553, sizeof(void*)*4, x_530);
x_554 = 0;
if (lean_is_scalar(x_547)) {
 x_555 = lean_alloc_ctor(1, 4, 1);
} else {
 x_555 = x_547;
}
lean_ctor_set(x_555, 0, x_553);
lean_ctor_set(x_555, 1, x_545);
lean_ctor_set(x_555, 2, x_546);
lean_ctor_set(x_555, 3, x_522);
lean_ctor_set_uint8(x_555, sizeof(void*)*4, x_554);
x_556 = 1;
x_557 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_557, 0, x_555);
lean_ctor_set(x_557, 1, x_376);
lean_ctor_set(x_557, 2, x_377);
lean_ctor_set(x_557, 3, x_378);
lean_ctor_set_uint8(x_557, sizeof(void*)*4, x_556);
return x_557;
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Std_RBNode_isRed___rarg(x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_1, x_2, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_1, x_2, x_3);
x_7 = l_Std_RBNode_setBlack___rarg(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_box(0);
x_5 = 0;
x_6 = lean_box_uint32(x_2);
x_7 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*4, x_5);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint32_t x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_1, 2);
x_13 = lean_ctor_get(x_1, 3);
x_14 = lean_unbox_uint32(x_11);
x_15 = lean_uint32_dec_lt(x_2, x_14);
if (x_15 == 0)
{
uint32_t x_16; uint8_t x_17; 
x_16 = lean_unbox_uint32(x_11);
x_17 = lean_uint32_dec_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_13, x_2, x_3);
x_19 = 0;
lean_ctor_set(x_1, 3, x_18);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19);
return x_1;
}
else
{
uint8_t x_20; lean_object* x_21; 
lean_dec(x_12);
lean_dec(x_11);
x_20 = 0;
x_21 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_21);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_20);
return x_1;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_10, x_2, x_3);
x_23 = 0;
lean_ctor_set(x_1, 0, x_22);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_23);
return x_1;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint32_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_1, 0);
x_25 = lean_ctor_get(x_1, 1);
x_26 = lean_ctor_get(x_1, 2);
x_27 = lean_ctor_get(x_1, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_1);
x_28 = lean_unbox_uint32(x_25);
x_29 = lean_uint32_dec_lt(x_2, x_28);
if (x_29 == 0)
{
uint32_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint32(x_25);
x_31 = lean_uint32_dec_eq(x_2, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_32 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_27, x_2, x_3);
x_33 = 0;
x_34 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_25);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_33);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_26);
lean_dec(x_25);
x_35 = 0;
x_36 = lean_box_uint32(x_2);
x_37 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_37, 0, x_24);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_3);
lean_ctor_set(x_37, 3, x_27);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_35);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; lean_object* x_40; 
x_38 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_24, x_2, x_3);
x_39 = 0;
x_40 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_26);
lean_ctor_set(x_40, 3, x_27);
lean_ctor_set_uint8(x_40, sizeof(void*)*4, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
x_41 = !lean_is_exclusive(x_1);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint32_t x_46; uint8_t x_47; 
x_42 = lean_ctor_get(x_1, 0);
x_43 = lean_ctor_get(x_1, 1);
x_44 = lean_ctor_get(x_1, 2);
x_45 = lean_ctor_get(x_1, 3);
x_46 = lean_unbox_uint32(x_43);
x_47 = lean_uint32_dec_lt(x_2, x_46);
if (x_47 == 0)
{
uint32_t x_48; uint8_t x_49; 
x_48 = lean_unbox_uint32(x_43);
x_49 = lean_uint32_dec_eq(x_2, x_48);
if (x_49 == 0)
{
uint8_t x_50; 
x_50 = l_Std_RBNode_isRed___rarg(x_45);
if (x_50 == 0)
{
lean_object* x_51; uint8_t x_52; 
x_51 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_45, x_2, x_3);
x_52 = 1;
lean_ctor_set(x_1, 3, x_51);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_52);
return x_1;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_45, x_2, x_3);
x_54 = lean_ctor_get(x_53, 0);
lean_inc(x_54);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55; 
x_55 = lean_ctor_get(x_53, 3);
lean_inc(x_55);
if (lean_obj_tag(x_55) == 0)
{
uint8_t x_56; 
x_56 = !lean_is_exclusive(x_53);
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; 
x_57 = lean_ctor_get(x_53, 3);
lean_dec(x_57);
x_58 = lean_ctor_get(x_53, 0);
lean_dec(x_58);
x_59 = 0;
lean_ctor_set(x_53, 0, x_55);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_59);
x_60 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_60);
return x_1;
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; 
x_61 = lean_ctor_get(x_53, 1);
x_62 = lean_ctor_get(x_53, 2);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_53);
x_63 = 0;
x_64 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_64, 0, x_55);
lean_ctor_set(x_64, 1, x_61);
lean_ctor_set(x_64, 2, x_62);
lean_ctor_set(x_64, 3, x_55);
lean_ctor_set_uint8(x_64, sizeof(void*)*4, x_63);
x_65 = 1;
lean_ctor_set(x_1, 3, x_64);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_65);
return x_1;
}
}
else
{
uint8_t x_66; 
x_66 = lean_ctor_get_uint8(x_55, sizeof(void*)*4);
if (x_66 == 0)
{
uint8_t x_67; 
x_67 = !lean_is_exclusive(x_53);
if (x_67 == 0)
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_68 = lean_ctor_get(x_53, 1);
x_69 = lean_ctor_get(x_53, 2);
x_70 = lean_ctor_get(x_53, 3);
lean_dec(x_70);
x_71 = lean_ctor_get(x_53, 0);
lean_dec(x_71);
x_72 = !lean_is_exclusive(x_55);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; 
x_73 = lean_ctor_get(x_55, 0);
x_74 = lean_ctor_get(x_55, 1);
x_75 = lean_ctor_get(x_55, 2);
x_76 = lean_ctor_get(x_55, 3);
x_77 = 1;
lean_ctor_set(x_55, 3, x_54);
lean_ctor_set(x_55, 2, x_44);
lean_ctor_set(x_55, 1, x_43);
lean_ctor_set(x_55, 0, x_42);
lean_ctor_set_uint8(x_55, sizeof(void*)*4, x_77);
lean_ctor_set(x_53, 3, x_76);
lean_ctor_set(x_53, 2, x_75);
lean_ctor_set(x_53, 1, x_74);
lean_ctor_set(x_53, 0, x_73);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_77);
x_78 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_55);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_78);
return x_1;
}
else
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; 
x_79 = lean_ctor_get(x_55, 0);
x_80 = lean_ctor_get(x_55, 1);
x_81 = lean_ctor_get(x_55, 2);
x_82 = lean_ctor_get(x_55, 3);
lean_inc(x_82);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_dec(x_55);
x_83 = 1;
x_84 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_84, 0, x_42);
lean_ctor_set(x_84, 1, x_43);
lean_ctor_set(x_84, 2, x_44);
lean_ctor_set(x_84, 3, x_54);
lean_ctor_set_uint8(x_84, sizeof(void*)*4, x_83);
lean_ctor_set(x_53, 3, x_82);
lean_ctor_set(x_53, 2, x_81);
lean_ctor_set(x_53, 1, x_80);
lean_ctor_set(x_53, 0, x_79);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_83);
x_85 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_84);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_85);
return x_1;
}
}
else
{
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; uint8_t x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_86 = lean_ctor_get(x_53, 1);
x_87 = lean_ctor_get(x_53, 2);
lean_inc(x_87);
lean_inc(x_86);
lean_dec(x_53);
x_88 = lean_ctor_get(x_55, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_55, 1);
lean_inc(x_89);
x_90 = lean_ctor_get(x_55, 2);
lean_inc(x_90);
x_91 = lean_ctor_get(x_55, 3);
lean_inc(x_91);
if (lean_is_exclusive(x_55)) {
 lean_ctor_release(x_55, 0);
 lean_ctor_release(x_55, 1);
 lean_ctor_release(x_55, 2);
 lean_ctor_release(x_55, 3);
 x_92 = x_55;
} else {
 lean_dec_ref(x_55);
 x_92 = lean_box(0);
}
x_93 = 1;
if (lean_is_scalar(x_92)) {
 x_94 = lean_alloc_ctor(1, 4, 1);
} else {
 x_94 = x_92;
}
lean_ctor_set(x_94, 0, x_42);
lean_ctor_set(x_94, 1, x_43);
lean_ctor_set(x_94, 2, x_44);
lean_ctor_set(x_94, 3, x_54);
lean_ctor_set_uint8(x_94, sizeof(void*)*4, x_93);
x_95 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_95, 0, x_88);
lean_ctor_set(x_95, 1, x_89);
lean_ctor_set(x_95, 2, x_90);
lean_ctor_set(x_95, 3, x_91);
lean_ctor_set_uint8(x_95, sizeof(void*)*4, x_93);
x_96 = 0;
lean_ctor_set(x_1, 3, x_95);
lean_ctor_set(x_1, 2, x_87);
lean_ctor_set(x_1, 1, x_86);
lean_ctor_set(x_1, 0, x_94);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_96);
return x_1;
}
}
else
{
uint8_t x_97; 
x_97 = !lean_is_exclusive(x_53);
if (x_97 == 0)
{
lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; 
x_98 = lean_ctor_get(x_53, 3);
lean_dec(x_98);
x_99 = lean_ctor_get(x_53, 0);
lean_dec(x_99);
x_100 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_100);
x_101 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_101);
return x_1;
}
else
{
lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; uint8_t x_106; 
x_102 = lean_ctor_get(x_53, 1);
x_103 = lean_ctor_get(x_53, 2);
lean_inc(x_103);
lean_inc(x_102);
lean_dec(x_53);
x_104 = 0;
x_105 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_105, 0, x_54);
lean_ctor_set(x_105, 1, x_102);
lean_ctor_set(x_105, 2, x_103);
lean_ctor_set(x_105, 3, x_55);
lean_ctor_set_uint8(x_105, sizeof(void*)*4, x_104);
x_106 = 1;
lean_ctor_set(x_1, 3, x_105);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_106);
return x_1;
}
}
}
}
else
{
uint8_t x_107; 
x_107 = lean_ctor_get_uint8(x_54, sizeof(void*)*4);
if (x_107 == 0)
{
uint8_t x_108; 
x_108 = !lean_is_exclusive(x_53);
if (x_108 == 0)
{
lean_object* x_109; uint8_t x_110; 
x_109 = lean_ctor_get(x_53, 0);
lean_dec(x_109);
x_110 = !lean_is_exclusive(x_54);
if (x_110 == 0)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; 
x_111 = lean_ctor_get(x_54, 0);
x_112 = lean_ctor_get(x_54, 1);
x_113 = lean_ctor_get(x_54, 2);
x_114 = lean_ctor_get(x_54, 3);
x_115 = 1;
lean_ctor_set(x_54, 3, x_111);
lean_ctor_set(x_54, 2, x_44);
lean_ctor_set(x_54, 1, x_43);
lean_ctor_set(x_54, 0, x_42);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_115);
lean_ctor_set(x_53, 0, x_114);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_115);
x_116 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_113);
lean_ctor_set(x_1, 1, x_112);
lean_ctor_set(x_1, 0, x_54);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_116);
return x_1;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; 
x_117 = lean_ctor_get(x_54, 0);
x_118 = lean_ctor_get(x_54, 1);
x_119 = lean_ctor_get(x_54, 2);
x_120 = lean_ctor_get(x_54, 3);
lean_inc(x_120);
lean_inc(x_119);
lean_inc(x_118);
lean_inc(x_117);
lean_dec(x_54);
x_121 = 1;
x_122 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_122, 0, x_42);
lean_ctor_set(x_122, 1, x_43);
lean_ctor_set(x_122, 2, x_44);
lean_ctor_set(x_122, 3, x_117);
lean_ctor_set_uint8(x_122, sizeof(void*)*4, x_121);
lean_ctor_set(x_53, 0, x_120);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_121);
x_123 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_119);
lean_ctor_set(x_1, 1, x_118);
lean_ctor_set(x_1, 0, x_122);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_123);
return x_1;
}
}
else
{
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; uint8_t x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; 
x_124 = lean_ctor_get(x_53, 1);
x_125 = lean_ctor_get(x_53, 2);
x_126 = lean_ctor_get(x_53, 3);
lean_inc(x_126);
lean_inc(x_125);
lean_inc(x_124);
lean_dec(x_53);
x_127 = lean_ctor_get(x_54, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_54, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_54, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_54, 3);
lean_inc(x_130);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_131 = x_54;
} else {
 lean_dec_ref(x_54);
 x_131 = lean_box(0);
}
x_132 = 1;
if (lean_is_scalar(x_131)) {
 x_133 = lean_alloc_ctor(1, 4, 1);
} else {
 x_133 = x_131;
}
lean_ctor_set(x_133, 0, x_42);
lean_ctor_set(x_133, 1, x_43);
lean_ctor_set(x_133, 2, x_44);
lean_ctor_set(x_133, 3, x_127);
lean_ctor_set_uint8(x_133, sizeof(void*)*4, x_132);
x_134 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_134, 0, x_130);
lean_ctor_set(x_134, 1, x_124);
lean_ctor_set(x_134, 2, x_125);
lean_ctor_set(x_134, 3, x_126);
lean_ctor_set_uint8(x_134, sizeof(void*)*4, x_132);
x_135 = 0;
lean_ctor_set(x_1, 3, x_134);
lean_ctor_set(x_1, 2, x_129);
lean_ctor_set(x_1, 1, x_128);
lean_ctor_set(x_1, 0, x_133);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_135);
return x_1;
}
}
else
{
lean_object* x_136; 
x_136 = lean_ctor_get(x_53, 3);
lean_inc(x_136);
if (lean_obj_tag(x_136) == 0)
{
uint8_t x_137; 
x_137 = !lean_is_exclusive(x_53);
if (x_137 == 0)
{
lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; 
x_138 = lean_ctor_get(x_53, 3);
lean_dec(x_138);
x_139 = lean_ctor_get(x_53, 0);
lean_dec(x_139);
x_140 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_140);
x_141 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_141);
return x_1;
}
else
{
lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; uint8_t x_146; 
x_142 = lean_ctor_get(x_53, 1);
x_143 = lean_ctor_get(x_53, 2);
lean_inc(x_143);
lean_inc(x_142);
lean_dec(x_53);
x_144 = 0;
x_145 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_145, 0, x_54);
lean_ctor_set(x_145, 1, x_142);
lean_ctor_set(x_145, 2, x_143);
lean_ctor_set(x_145, 3, x_136);
lean_ctor_set_uint8(x_145, sizeof(void*)*4, x_144);
x_146 = 1;
lean_ctor_set(x_1, 3, x_145);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_146);
return x_1;
}
}
else
{
uint8_t x_147; 
x_147 = lean_ctor_get_uint8(x_136, sizeof(void*)*4);
if (x_147 == 0)
{
uint8_t x_148; 
lean_free_object(x_1);
x_148 = !lean_is_exclusive(x_53);
if (x_148 == 0)
{
lean_object* x_149; lean_object* x_150; uint8_t x_151; 
x_149 = lean_ctor_get(x_53, 3);
lean_dec(x_149);
x_150 = lean_ctor_get(x_53, 0);
lean_dec(x_150);
x_151 = !lean_is_exclusive(x_136);
if (x_151 == 0)
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; uint8_t x_157; 
x_152 = lean_ctor_get(x_136, 0);
x_153 = lean_ctor_get(x_136, 1);
x_154 = lean_ctor_get(x_136, 2);
x_155 = lean_ctor_get(x_136, 3);
x_156 = 1;
lean_inc(x_54);
lean_ctor_set(x_136, 3, x_54);
lean_ctor_set(x_136, 2, x_44);
lean_ctor_set(x_136, 1, x_43);
lean_ctor_set(x_136, 0, x_42);
x_157 = !lean_is_exclusive(x_54);
if (x_157 == 0)
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; 
x_158 = lean_ctor_get(x_54, 3);
lean_dec(x_158);
x_159 = lean_ctor_get(x_54, 2);
lean_dec(x_159);
x_160 = lean_ctor_get(x_54, 1);
lean_dec(x_160);
x_161 = lean_ctor_get(x_54, 0);
lean_dec(x_161);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
lean_ctor_set(x_54, 3, x_155);
lean_ctor_set(x_54, 2, x_154);
lean_ctor_set(x_54, 1, x_153);
lean_ctor_set(x_54, 0, x_152);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_156);
x_162 = 0;
lean_ctor_set(x_53, 3, x_54);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_162);
return x_53;
}
else
{
lean_object* x_163; uint8_t x_164; 
lean_dec(x_54);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
x_163 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_163, 0, x_152);
lean_ctor_set(x_163, 1, x_153);
lean_ctor_set(x_163, 2, x_154);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set_uint8(x_163, sizeof(void*)*4, x_156);
x_164 = 0;
lean_ctor_set(x_53, 3, x_163);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_164);
return x_53;
}
}
else
{
lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; 
x_165 = lean_ctor_get(x_136, 0);
x_166 = lean_ctor_get(x_136, 1);
x_167 = lean_ctor_get(x_136, 2);
x_168 = lean_ctor_get(x_136, 3);
lean_inc(x_168);
lean_inc(x_167);
lean_inc(x_166);
lean_inc(x_165);
lean_dec(x_136);
x_169 = 1;
lean_inc(x_54);
x_170 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_170, 0, x_42);
lean_ctor_set(x_170, 1, x_43);
lean_ctor_set(x_170, 2, x_44);
lean_ctor_set(x_170, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_171 = x_54;
} else {
 lean_dec_ref(x_54);
 x_171 = lean_box(0);
}
lean_ctor_set_uint8(x_170, sizeof(void*)*4, x_169);
if (lean_is_scalar(x_171)) {
 x_172 = lean_alloc_ctor(1, 4, 1);
} else {
 x_172 = x_171;
}
lean_ctor_set(x_172, 0, x_165);
lean_ctor_set(x_172, 1, x_166);
lean_ctor_set(x_172, 2, x_167);
lean_ctor_set(x_172, 3, x_168);
lean_ctor_set_uint8(x_172, sizeof(void*)*4, x_169);
x_173 = 0;
lean_ctor_set(x_53, 3, x_172);
lean_ctor_set(x_53, 0, x_170);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_173);
return x_53;
}
}
else
{
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; uint8_t x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; 
x_174 = lean_ctor_get(x_53, 1);
x_175 = lean_ctor_get(x_53, 2);
lean_inc(x_175);
lean_inc(x_174);
lean_dec(x_53);
x_176 = lean_ctor_get(x_136, 0);
lean_inc(x_176);
x_177 = lean_ctor_get(x_136, 1);
lean_inc(x_177);
x_178 = lean_ctor_get(x_136, 2);
lean_inc(x_178);
x_179 = lean_ctor_get(x_136, 3);
lean_inc(x_179);
if (lean_is_exclusive(x_136)) {
 lean_ctor_release(x_136, 0);
 lean_ctor_release(x_136, 1);
 lean_ctor_release(x_136, 2);
 lean_ctor_release(x_136, 3);
 x_180 = x_136;
} else {
 lean_dec_ref(x_136);
 x_180 = lean_box(0);
}
x_181 = 1;
lean_inc(x_54);
if (lean_is_scalar(x_180)) {
 x_182 = lean_alloc_ctor(1, 4, 1);
} else {
 x_182 = x_180;
}
lean_ctor_set(x_182, 0, x_42);
lean_ctor_set(x_182, 1, x_43);
lean_ctor_set(x_182, 2, x_44);
lean_ctor_set(x_182, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_183 = x_54;
} else {
 lean_dec_ref(x_54);
 x_183 = lean_box(0);
}
lean_ctor_set_uint8(x_182, sizeof(void*)*4, x_181);
if (lean_is_scalar(x_183)) {
 x_184 = lean_alloc_ctor(1, 4, 1);
} else {
 x_184 = x_183;
}
lean_ctor_set(x_184, 0, x_176);
lean_ctor_set(x_184, 1, x_177);
lean_ctor_set(x_184, 2, x_178);
lean_ctor_set(x_184, 3, x_179);
lean_ctor_set_uint8(x_184, sizeof(void*)*4, x_181);
x_185 = 0;
x_186 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_186, 0, x_182);
lean_ctor_set(x_186, 1, x_174);
lean_ctor_set(x_186, 2, x_175);
lean_ctor_set(x_186, 3, x_184);
lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_185);
return x_186;
}
}
else
{
uint8_t x_187; 
x_187 = !lean_is_exclusive(x_53);
if (x_187 == 0)
{
lean_object* x_188; lean_object* x_189; uint8_t x_190; 
x_188 = lean_ctor_get(x_53, 3);
lean_dec(x_188);
x_189 = lean_ctor_get(x_53, 0);
lean_dec(x_189);
x_190 = !lean_is_exclusive(x_54);
if (x_190 == 0)
{
uint8_t x_191; uint8_t x_192; 
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_147);
x_191 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_191);
x_192 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_192);
return x_1;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; 
x_193 = lean_ctor_get(x_54, 0);
x_194 = lean_ctor_get(x_54, 1);
x_195 = lean_ctor_get(x_54, 2);
x_196 = lean_ctor_get(x_54, 3);
lean_inc(x_196);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_54);
x_197 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_197, 0, x_193);
lean_ctor_set(x_197, 1, x_194);
lean_ctor_set(x_197, 2, x_195);
lean_ctor_set(x_197, 3, x_196);
lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_147);
x_198 = 0;
lean_ctor_set(x_53, 0, x_197);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_198);
x_199 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199);
return x_1;
}
}
else
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; uint8_t x_210; 
x_200 = lean_ctor_get(x_53, 1);
x_201 = lean_ctor_get(x_53, 2);
lean_inc(x_201);
lean_inc(x_200);
lean_dec(x_53);
x_202 = lean_ctor_get(x_54, 0);
lean_inc(x_202);
x_203 = lean_ctor_get(x_54, 1);
lean_inc(x_203);
x_204 = lean_ctor_get(x_54, 2);
lean_inc(x_204);
x_205 = lean_ctor_get(x_54, 3);
lean_inc(x_205);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_206 = x_54;
} else {
 lean_dec_ref(x_54);
 x_206 = lean_box(0);
}
if (lean_is_scalar(x_206)) {
 x_207 = lean_alloc_ctor(1, 4, 1);
} else {
 x_207 = x_206;
}
lean_ctor_set(x_207, 0, x_202);
lean_ctor_set(x_207, 1, x_203);
lean_ctor_set(x_207, 2, x_204);
lean_ctor_set(x_207, 3, x_205);
lean_ctor_set_uint8(x_207, sizeof(void*)*4, x_147);
x_208 = 0;
x_209 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_209, 0, x_207);
lean_ctor_set(x_209, 1, x_200);
lean_ctor_set(x_209, 2, x_201);
lean_ctor_set(x_209, 3, x_136);
lean_ctor_set_uint8(x_209, sizeof(void*)*4, x_208);
x_210 = 1;
lean_ctor_set(x_1, 3, x_209);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_210);
return x_1;
}
}
}
}
}
}
}
else
{
uint8_t x_211; lean_object* x_212; 
lean_dec(x_44);
lean_dec(x_43);
x_211 = 1;
x_212 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_212);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211);
return x_1;
}
}
else
{
uint8_t x_213; 
x_213 = l_Std_RBNode_isRed___rarg(x_42);
if (x_213 == 0)
{
lean_object* x_214; uint8_t x_215; 
x_214 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_42, x_2, x_3);
x_215 = 1;
lean_ctor_set(x_1, 0, x_214);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_215);
return x_1;
}
else
{
lean_object* x_216; lean_object* x_217; 
x_216 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_42, x_2, x_3);
x_217 = lean_ctor_get(x_216, 0);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
lean_object* x_218; 
x_218 = lean_ctor_get(x_216, 3);
lean_inc(x_218);
if (lean_obj_tag(x_218) == 0)
{
uint8_t x_219; 
x_219 = !lean_is_exclusive(x_216);
if (x_219 == 0)
{
lean_object* x_220; lean_object* x_221; uint8_t x_222; uint8_t x_223; 
x_220 = lean_ctor_get(x_216, 3);
lean_dec(x_220);
x_221 = lean_ctor_get(x_216, 0);
lean_dec(x_221);
x_222 = 0;
lean_ctor_set(x_216, 0, x_218);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_222);
x_223 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_223);
return x_1;
}
else
{
lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; uint8_t x_228; 
x_224 = lean_ctor_get(x_216, 1);
x_225 = lean_ctor_get(x_216, 2);
lean_inc(x_225);
lean_inc(x_224);
lean_dec(x_216);
x_226 = 0;
x_227 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_227, 0, x_218);
lean_ctor_set(x_227, 1, x_224);
lean_ctor_set(x_227, 2, x_225);
lean_ctor_set(x_227, 3, x_218);
lean_ctor_set_uint8(x_227, sizeof(void*)*4, x_226);
x_228 = 1;
lean_ctor_set(x_1, 0, x_227);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_228);
return x_1;
}
}
else
{
uint8_t x_229; 
x_229 = lean_ctor_get_uint8(x_218, sizeof(void*)*4);
if (x_229 == 0)
{
uint8_t x_230; 
x_230 = !lean_is_exclusive(x_216);
if (x_230 == 0)
{
lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; 
x_231 = lean_ctor_get(x_216, 1);
x_232 = lean_ctor_get(x_216, 2);
x_233 = lean_ctor_get(x_216, 3);
lean_dec(x_233);
x_234 = lean_ctor_get(x_216, 0);
lean_dec(x_234);
x_235 = !lean_is_exclusive(x_218);
if (x_235 == 0)
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; uint8_t x_241; 
x_236 = lean_ctor_get(x_218, 0);
x_237 = lean_ctor_get(x_218, 1);
x_238 = lean_ctor_get(x_218, 2);
x_239 = lean_ctor_get(x_218, 3);
x_240 = 1;
lean_ctor_set(x_218, 3, x_236);
lean_ctor_set(x_218, 2, x_232);
lean_ctor_set(x_218, 1, x_231);
lean_ctor_set(x_218, 0, x_217);
lean_ctor_set_uint8(x_218, sizeof(void*)*4, x_240);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_239);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_240);
x_241 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_238);
lean_ctor_set(x_1, 1, x_237);
lean_ctor_set(x_1, 0, x_218);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_241);
return x_1;
}
else
{
lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; uint8_t x_246; lean_object* x_247; uint8_t x_248; 
x_242 = lean_ctor_get(x_218, 0);
x_243 = lean_ctor_get(x_218, 1);
x_244 = lean_ctor_get(x_218, 2);
x_245 = lean_ctor_get(x_218, 3);
lean_inc(x_245);
lean_inc(x_244);
lean_inc(x_243);
lean_inc(x_242);
lean_dec(x_218);
x_246 = 1;
x_247 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_247, 0, x_217);
lean_ctor_set(x_247, 1, x_231);
lean_ctor_set(x_247, 2, x_232);
lean_ctor_set(x_247, 3, x_242);
lean_ctor_set_uint8(x_247, sizeof(void*)*4, x_246);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_245);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_246);
x_248 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_244);
lean_ctor_set(x_1, 1, x_243);
lean_ctor_set(x_1, 0, x_247);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_248);
return x_1;
}
}
else
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; 
x_249 = lean_ctor_get(x_216, 1);
x_250 = lean_ctor_get(x_216, 2);
lean_inc(x_250);
lean_inc(x_249);
lean_dec(x_216);
x_251 = lean_ctor_get(x_218, 0);
lean_inc(x_251);
x_252 = lean_ctor_get(x_218, 1);
lean_inc(x_252);
x_253 = lean_ctor_get(x_218, 2);
lean_inc(x_253);
x_254 = lean_ctor_get(x_218, 3);
lean_inc(x_254);
if (lean_is_exclusive(x_218)) {
 lean_ctor_release(x_218, 0);
 lean_ctor_release(x_218, 1);
 lean_ctor_release(x_218, 2);
 lean_ctor_release(x_218, 3);
 x_255 = x_218;
} else {
 lean_dec_ref(x_218);
 x_255 = lean_box(0);
}
x_256 = 1;
if (lean_is_scalar(x_255)) {
 x_257 = lean_alloc_ctor(1, 4, 1);
} else {
 x_257 = x_255;
}
lean_ctor_set(x_257, 0, x_217);
lean_ctor_set(x_257, 1, x_249);
lean_ctor_set(x_257, 2, x_250);
lean_ctor_set(x_257, 3, x_251);
lean_ctor_set_uint8(x_257, sizeof(void*)*4, x_256);
x_258 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_258, 0, x_254);
lean_ctor_set(x_258, 1, x_43);
lean_ctor_set(x_258, 2, x_44);
lean_ctor_set(x_258, 3, x_45);
lean_ctor_set_uint8(x_258, sizeof(void*)*4, x_256);
x_259 = 0;
lean_ctor_set(x_1, 3, x_258);
lean_ctor_set(x_1, 2, x_253);
lean_ctor_set(x_1, 1, x_252);
lean_ctor_set(x_1, 0, x_257);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_259);
return x_1;
}
}
else
{
uint8_t x_260; 
x_260 = !lean_is_exclusive(x_216);
if (x_260 == 0)
{
lean_object* x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; 
x_261 = lean_ctor_get(x_216, 3);
lean_dec(x_261);
x_262 = lean_ctor_get(x_216, 0);
lean_dec(x_262);
x_263 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_263);
x_264 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_264);
return x_1;
}
else
{
lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; uint8_t x_269; 
x_265 = lean_ctor_get(x_216, 1);
x_266 = lean_ctor_get(x_216, 2);
lean_inc(x_266);
lean_inc(x_265);
lean_dec(x_216);
x_267 = 0;
x_268 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_268, 0, x_217);
lean_ctor_set(x_268, 1, x_265);
lean_ctor_set(x_268, 2, x_266);
lean_ctor_set(x_268, 3, x_218);
lean_ctor_set_uint8(x_268, sizeof(void*)*4, x_267);
x_269 = 1;
lean_ctor_set(x_1, 0, x_268);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_269);
return x_1;
}
}
}
}
else
{
uint8_t x_270; 
x_270 = lean_ctor_get_uint8(x_217, sizeof(void*)*4);
if (x_270 == 0)
{
uint8_t x_271; 
x_271 = !lean_is_exclusive(x_216);
if (x_271 == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; 
x_272 = lean_ctor_get(x_216, 1);
x_273 = lean_ctor_get(x_216, 2);
x_274 = lean_ctor_get(x_216, 3);
x_275 = lean_ctor_get(x_216, 0);
lean_dec(x_275);
x_276 = !lean_is_exclusive(x_217);
if (x_276 == 0)
{
uint8_t x_277; uint8_t x_278; 
x_277 = 1;
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_277);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_277);
x_278 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_217);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_278);
return x_1;
}
else
{
lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; uint8_t x_285; 
x_279 = lean_ctor_get(x_217, 0);
x_280 = lean_ctor_get(x_217, 1);
x_281 = lean_ctor_get(x_217, 2);
x_282 = lean_ctor_get(x_217, 3);
lean_inc(x_282);
lean_inc(x_281);
lean_inc(x_280);
lean_inc(x_279);
lean_dec(x_217);
x_283 = 1;
x_284 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_284, 0, x_279);
lean_ctor_set(x_284, 1, x_280);
lean_ctor_set(x_284, 2, x_281);
lean_ctor_set(x_284, 3, x_282);
lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_283);
x_285 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_284);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_285);
return x_1;
}
}
else
{
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; uint8_t x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_286 = lean_ctor_get(x_216, 1);
x_287 = lean_ctor_get(x_216, 2);
x_288 = lean_ctor_get(x_216, 3);
lean_inc(x_288);
lean_inc(x_287);
lean_inc(x_286);
lean_dec(x_216);
x_289 = lean_ctor_get(x_217, 0);
lean_inc(x_289);
x_290 = lean_ctor_get(x_217, 1);
lean_inc(x_290);
x_291 = lean_ctor_get(x_217, 2);
lean_inc(x_291);
x_292 = lean_ctor_get(x_217, 3);
lean_inc(x_292);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_293 = x_217;
} else {
 lean_dec_ref(x_217);
 x_293 = lean_box(0);
}
x_294 = 1;
if (lean_is_scalar(x_293)) {
 x_295 = lean_alloc_ctor(1, 4, 1);
} else {
 x_295 = x_293;
}
lean_ctor_set(x_295, 0, x_289);
lean_ctor_set(x_295, 1, x_290);
lean_ctor_set(x_295, 2, x_291);
lean_ctor_set(x_295, 3, x_292);
lean_ctor_set_uint8(x_295, sizeof(void*)*4, x_294);
x_296 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_296, 0, x_288);
lean_ctor_set(x_296, 1, x_43);
lean_ctor_set(x_296, 2, x_44);
lean_ctor_set(x_296, 3, x_45);
lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_294);
x_297 = 0;
lean_ctor_set(x_1, 3, x_296);
lean_ctor_set(x_1, 2, x_287);
lean_ctor_set(x_1, 1, x_286);
lean_ctor_set(x_1, 0, x_295);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297);
return x_1;
}
}
else
{
lean_object* x_298; 
x_298 = lean_ctor_get(x_216, 3);
lean_inc(x_298);
if (lean_obj_tag(x_298) == 0)
{
uint8_t x_299; 
x_299 = !lean_is_exclusive(x_216);
if (x_299 == 0)
{
lean_object* x_300; lean_object* x_301; uint8_t x_302; uint8_t x_303; 
x_300 = lean_ctor_get(x_216, 3);
lean_dec(x_300);
x_301 = lean_ctor_get(x_216, 0);
lean_dec(x_301);
x_302 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_302);
x_303 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_303);
return x_1;
}
else
{
lean_object* x_304; lean_object* x_305; uint8_t x_306; lean_object* x_307; uint8_t x_308; 
x_304 = lean_ctor_get(x_216, 1);
x_305 = lean_ctor_get(x_216, 2);
lean_inc(x_305);
lean_inc(x_304);
lean_dec(x_216);
x_306 = 0;
x_307 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_307, 0, x_217);
lean_ctor_set(x_307, 1, x_304);
lean_ctor_set(x_307, 2, x_305);
lean_ctor_set(x_307, 3, x_298);
lean_ctor_set_uint8(x_307, sizeof(void*)*4, x_306);
x_308 = 1;
lean_ctor_set(x_1, 0, x_307);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_308);
return x_1;
}
}
else
{
uint8_t x_309; 
x_309 = lean_ctor_get_uint8(x_298, sizeof(void*)*4);
if (x_309 == 0)
{
uint8_t x_310; 
lean_free_object(x_1);
x_310 = !lean_is_exclusive(x_216);
if (x_310 == 0)
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; 
x_311 = lean_ctor_get(x_216, 1);
x_312 = lean_ctor_get(x_216, 2);
x_313 = lean_ctor_get(x_216, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_216, 0);
lean_dec(x_314);
x_315 = !lean_is_exclusive(x_298);
if (x_315 == 0)
{
lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; uint8_t x_321; 
x_316 = lean_ctor_get(x_298, 0);
x_317 = lean_ctor_get(x_298, 1);
x_318 = lean_ctor_get(x_298, 2);
x_319 = lean_ctor_get(x_298, 3);
x_320 = 1;
lean_inc(x_217);
lean_ctor_set(x_298, 3, x_316);
lean_ctor_set(x_298, 2, x_312);
lean_ctor_set(x_298, 1, x_311);
lean_ctor_set(x_298, 0, x_217);
x_321 = !lean_is_exclusive(x_217);
if (x_321 == 0)
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; 
x_322 = lean_ctor_get(x_217, 3);
lean_dec(x_322);
x_323 = lean_ctor_get(x_217, 2);
lean_dec(x_323);
x_324 = lean_ctor_get(x_217, 1);
lean_dec(x_324);
x_325 = lean_ctor_get(x_217, 0);
lean_dec(x_325);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
lean_ctor_set(x_217, 3, x_45);
lean_ctor_set(x_217, 2, x_44);
lean_ctor_set(x_217, 1, x_43);
lean_ctor_set(x_217, 0, x_319);
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_320);
x_326 = 0;
lean_ctor_set(x_216, 3, x_217);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_326);
return x_216;
}
else
{
lean_object* x_327; uint8_t x_328; 
lean_dec(x_217);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
x_327 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_327, 0, x_319);
lean_ctor_set(x_327, 1, x_43);
lean_ctor_set(x_327, 2, x_44);
lean_ctor_set(x_327, 3, x_45);
lean_ctor_set_uint8(x_327, sizeof(void*)*4, x_320);
x_328 = 0;
lean_ctor_set(x_216, 3, x_327);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_328);
return x_216;
}
}
else
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; 
x_329 = lean_ctor_get(x_298, 0);
x_330 = lean_ctor_get(x_298, 1);
x_331 = lean_ctor_get(x_298, 2);
x_332 = lean_ctor_get(x_298, 3);
lean_inc(x_332);
lean_inc(x_331);
lean_inc(x_330);
lean_inc(x_329);
lean_dec(x_298);
x_333 = 1;
lean_inc(x_217);
x_334 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_334, 0, x_217);
lean_ctor_set(x_334, 1, x_311);
lean_ctor_set(x_334, 2, x_312);
lean_ctor_set(x_334, 3, x_329);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_335 = x_217;
} else {
 lean_dec_ref(x_217);
 x_335 = lean_box(0);
}
lean_ctor_set_uint8(x_334, sizeof(void*)*4, x_333);
if (lean_is_scalar(x_335)) {
 x_336 = lean_alloc_ctor(1, 4, 1);
} else {
 x_336 = x_335;
}
lean_ctor_set(x_336, 0, x_332);
lean_ctor_set(x_336, 1, x_43);
lean_ctor_set(x_336, 2, x_44);
lean_ctor_set(x_336, 3, x_45);
lean_ctor_set_uint8(x_336, sizeof(void*)*4, x_333);
x_337 = 0;
lean_ctor_set(x_216, 3, x_336);
lean_ctor_set(x_216, 2, x_331);
lean_ctor_set(x_216, 1, x_330);
lean_ctor_set(x_216, 0, x_334);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_337);
return x_216;
}
}
else
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; lean_object* x_350; 
x_338 = lean_ctor_get(x_216, 1);
x_339 = lean_ctor_get(x_216, 2);
lean_inc(x_339);
lean_inc(x_338);
lean_dec(x_216);
x_340 = lean_ctor_get(x_298, 0);
lean_inc(x_340);
x_341 = lean_ctor_get(x_298, 1);
lean_inc(x_341);
x_342 = lean_ctor_get(x_298, 2);
lean_inc(x_342);
x_343 = lean_ctor_get(x_298, 3);
lean_inc(x_343);
if (lean_is_exclusive(x_298)) {
 lean_ctor_release(x_298, 0);
 lean_ctor_release(x_298, 1);
 lean_ctor_release(x_298, 2);
 lean_ctor_release(x_298, 3);
 x_344 = x_298;
} else {
 lean_dec_ref(x_298);
 x_344 = lean_box(0);
}
x_345 = 1;
lean_inc(x_217);
if (lean_is_scalar(x_344)) {
 x_346 = lean_alloc_ctor(1, 4, 1);
} else {
 x_346 = x_344;
}
lean_ctor_set(x_346, 0, x_217);
lean_ctor_set(x_346, 1, x_338);
lean_ctor_set(x_346, 2, x_339);
lean_ctor_set(x_346, 3, x_340);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_347 = x_217;
} else {
 lean_dec_ref(x_217);
 x_347 = lean_box(0);
}
lean_ctor_set_uint8(x_346, sizeof(void*)*4, x_345);
if (lean_is_scalar(x_347)) {
 x_348 = lean_alloc_ctor(1, 4, 1);
} else {
 x_348 = x_347;
}
lean_ctor_set(x_348, 0, x_343);
lean_ctor_set(x_348, 1, x_43);
lean_ctor_set(x_348, 2, x_44);
lean_ctor_set(x_348, 3, x_45);
lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_345);
x_349 = 0;
x_350 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_350, 0, x_346);
lean_ctor_set(x_350, 1, x_341);
lean_ctor_set(x_350, 2, x_342);
lean_ctor_set(x_350, 3, x_348);
lean_ctor_set_uint8(x_350, sizeof(void*)*4, x_349);
return x_350;
}
}
else
{
uint8_t x_351; 
x_351 = !lean_is_exclusive(x_216);
if (x_351 == 0)
{
lean_object* x_352; lean_object* x_353; uint8_t x_354; 
x_352 = lean_ctor_get(x_216, 3);
lean_dec(x_352);
x_353 = lean_ctor_get(x_216, 0);
lean_dec(x_353);
x_354 = !lean_is_exclusive(x_217);
if (x_354 == 0)
{
uint8_t x_355; uint8_t x_356; 
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_309);
x_355 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_355);
x_356 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_356);
return x_1;
}
else
{
lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; uint8_t x_362; uint8_t x_363; 
x_357 = lean_ctor_get(x_217, 0);
x_358 = lean_ctor_get(x_217, 1);
x_359 = lean_ctor_get(x_217, 2);
x_360 = lean_ctor_get(x_217, 3);
lean_inc(x_360);
lean_inc(x_359);
lean_inc(x_358);
lean_inc(x_357);
lean_dec(x_217);
x_361 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_361, 0, x_357);
lean_ctor_set(x_361, 1, x_358);
lean_ctor_set(x_361, 2, x_359);
lean_ctor_set(x_361, 3, x_360);
lean_ctor_set_uint8(x_361, sizeof(void*)*4, x_309);
x_362 = 0;
lean_ctor_set(x_216, 0, x_361);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_362);
x_363 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_363);
return x_1;
}
}
else
{
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; uint8_t x_372; lean_object* x_373; uint8_t x_374; 
x_364 = lean_ctor_get(x_216, 1);
x_365 = lean_ctor_get(x_216, 2);
lean_inc(x_365);
lean_inc(x_364);
lean_dec(x_216);
x_366 = lean_ctor_get(x_217, 0);
lean_inc(x_366);
x_367 = lean_ctor_get(x_217, 1);
lean_inc(x_367);
x_368 = lean_ctor_get(x_217, 2);
lean_inc(x_368);
x_369 = lean_ctor_get(x_217, 3);
lean_inc(x_369);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_370 = x_217;
} else {
 lean_dec_ref(x_217);
 x_370 = lean_box(0);
}
if (lean_is_scalar(x_370)) {
 x_371 = lean_alloc_ctor(1, 4, 1);
} else {
 x_371 = x_370;
}
lean_ctor_set(x_371, 0, x_366);
lean_ctor_set(x_371, 1, x_367);
lean_ctor_set(x_371, 2, x_368);
lean_ctor_set(x_371, 3, x_369);
lean_ctor_set_uint8(x_371, sizeof(void*)*4, x_309);
x_372 = 0;
x_373 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_373, 0, x_371);
lean_ctor_set(x_373, 1, x_364);
lean_ctor_set(x_373, 2, x_365);
lean_ctor_set(x_373, 3, x_298);
lean_ctor_set_uint8(x_373, sizeof(void*)*4, x_372);
x_374 = 1;
lean_ctor_set(x_1, 0, x_373);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_374);
return x_1;
}
}
}
}
}
}
}
}
else
{
lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint32_t x_379; uint8_t x_380; 
x_375 = lean_ctor_get(x_1, 0);
x_376 = lean_ctor_get(x_1, 1);
x_377 = lean_ctor_get(x_1, 2);
x_378 = lean_ctor_get(x_1, 3);
lean_inc(x_378);
lean_inc(x_377);
lean_inc(x_376);
lean_inc(x_375);
lean_dec(x_1);
x_379 = lean_unbox_uint32(x_376);
x_380 = lean_uint32_dec_lt(x_2, x_379);
if (x_380 == 0)
{
uint32_t x_381; uint8_t x_382; 
x_381 = lean_unbox_uint32(x_376);
x_382 = lean_uint32_dec_eq(x_2, x_381);
if (x_382 == 0)
{
uint8_t x_383; 
x_383 = l_Std_RBNode_isRed___rarg(x_378);
if (x_383 == 0)
{
lean_object* x_384; uint8_t x_385; lean_object* x_386; 
x_384 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_378, x_2, x_3);
x_385 = 1;
x_386 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_386, 0, x_375);
lean_ctor_set(x_386, 1, x_376);
lean_ctor_set(x_386, 2, x_377);
lean_ctor_set(x_386, 3, x_384);
lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_385);
return x_386;
}
else
{
lean_object* x_387; lean_object* x_388; 
x_387 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_378, x_2, x_3);
x_388 = lean_ctor_get(x_387, 0);
lean_inc(x_388);
if (lean_obj_tag(x_388) == 0)
{
lean_object* x_389; 
x_389 = lean_ctor_get(x_387, 3);
lean_inc(x_389);
if (lean_obj_tag(x_389) == 0)
{
lean_object* x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; uint8_t x_395; lean_object* x_396; 
x_390 = lean_ctor_get(x_387, 1);
lean_inc(x_390);
x_391 = lean_ctor_get(x_387, 2);
lean_inc(x_391);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_392 = x_387;
} else {
 lean_dec_ref(x_387);
 x_392 = lean_box(0);
}
x_393 = 0;
if (lean_is_scalar(x_392)) {
 x_394 = lean_alloc_ctor(1, 4, 1);
} else {
 x_394 = x_392;
}
lean_ctor_set(x_394, 0, x_389);
lean_ctor_set(x_394, 1, x_390);
lean_ctor_set(x_394, 2, x_391);
lean_ctor_set(x_394, 3, x_389);
lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393);
x_395 = 1;
x_396 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_376);
lean_ctor_set(x_396, 2, x_377);
lean_ctor_set(x_396, 3, x_394);
lean_ctor_set_uint8(x_396, sizeof(void*)*4, x_395);
return x_396;
}
else
{
uint8_t x_397; 
x_397 = lean_ctor_get_uint8(x_389, sizeof(void*)*4);
if (x_397 == 0)
{
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; uint8_t x_406; lean_object* x_407; lean_object* x_408; uint8_t x_409; lean_object* x_410; 
x_398 = lean_ctor_get(x_387, 1);
lean_inc(x_398);
x_399 = lean_ctor_get(x_387, 2);
lean_inc(x_399);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_400 = x_387;
} else {
 lean_dec_ref(x_387);
 x_400 = lean_box(0);
}
x_401 = lean_ctor_get(x_389, 0);
lean_inc(x_401);
x_402 = lean_ctor_get(x_389, 1);
lean_inc(x_402);
x_403 = lean_ctor_get(x_389, 2);
lean_inc(x_403);
x_404 = lean_ctor_get(x_389, 3);
lean_inc(x_404);
if (lean_is_exclusive(x_389)) {
 lean_ctor_release(x_389, 0);
 lean_ctor_release(x_389, 1);
 lean_ctor_release(x_389, 2);
 lean_ctor_release(x_389, 3);
 x_405 = x_389;
} else {
 lean_dec_ref(x_389);
 x_405 = lean_box(0);
}
x_406 = 1;
if (lean_is_scalar(x_405)) {
 x_407 = lean_alloc_ctor(1, 4, 1);
} else {
 x_407 = x_405;
}
lean_ctor_set(x_407, 0, x_375);
lean_ctor_set(x_407, 1, x_376);
lean_ctor_set(x_407, 2, x_377);
lean_ctor_set(x_407, 3, x_388);
lean_ctor_set_uint8(x_407, sizeof(void*)*4, x_406);
if (lean_is_scalar(x_400)) {
 x_408 = lean_alloc_ctor(1, 4, 1);
} else {
 x_408 = x_400;
}
lean_ctor_set(x_408, 0, x_401);
lean_ctor_set(x_408, 1, x_402);
lean_ctor_set(x_408, 2, x_403);
lean_ctor_set(x_408, 3, x_404);
lean_ctor_set_uint8(x_408, sizeof(void*)*4, x_406);
x_409 = 0;
x_410 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_410, 0, x_407);
lean_ctor_set(x_410, 1, x_398);
lean_ctor_set(x_410, 2, x_399);
lean_ctor_set(x_410, 3, x_408);
lean_ctor_set_uint8(x_410, sizeof(void*)*4, x_409);
return x_410;
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; lean_object* x_415; uint8_t x_416; lean_object* x_417; 
x_411 = lean_ctor_get(x_387, 1);
lean_inc(x_411);
x_412 = lean_ctor_get(x_387, 2);
lean_inc(x_412);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_413 = x_387;
} else {
 lean_dec_ref(x_387);
 x_413 = lean_box(0);
}
x_414 = 0;
if (lean_is_scalar(x_413)) {
 x_415 = lean_alloc_ctor(1, 4, 1);
} else {
 x_415 = x_413;
}
lean_ctor_set(x_415, 0, x_388);
lean_ctor_set(x_415, 1, x_411);
lean_ctor_set(x_415, 2, x_412);
lean_ctor_set(x_415, 3, x_389);
lean_ctor_set_uint8(x_415, sizeof(void*)*4, x_414);
x_416 = 1;
x_417 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_417, 0, x_375);
lean_ctor_set(x_417, 1, x_376);
lean_ctor_set(x_417, 2, x_377);
lean_ctor_set(x_417, 3, x_415);
lean_ctor_set_uint8(x_417, sizeof(void*)*4, x_416);
return x_417;
}
}
}
else
{
uint8_t x_418; 
x_418 = lean_ctor_get_uint8(x_388, sizeof(void*)*4);
if (x_418 == 0)
{
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; uint8_t x_428; lean_object* x_429; lean_object* x_430; uint8_t x_431; lean_object* x_432; 
x_419 = lean_ctor_get(x_387, 1);
lean_inc(x_419);
x_420 = lean_ctor_get(x_387, 2);
lean_inc(x_420);
x_421 = lean_ctor_get(x_387, 3);
lean_inc(x_421);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_422 = x_387;
} else {
 lean_dec_ref(x_387);
 x_422 = lean_box(0);
}
x_423 = lean_ctor_get(x_388, 0);
lean_inc(x_423);
x_424 = lean_ctor_get(x_388, 1);
lean_inc(x_424);
x_425 = lean_ctor_get(x_388, 2);
lean_inc(x_425);
x_426 = lean_ctor_get(x_388, 3);
lean_inc(x_426);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_427 = x_388;
} else {
 lean_dec_ref(x_388);
 x_427 = lean_box(0);
}
x_428 = 1;
if (lean_is_scalar(x_427)) {
 x_429 = lean_alloc_ctor(1, 4, 1);
} else {
 x_429 = x_427;
}
lean_ctor_set(x_429, 0, x_375);
lean_ctor_set(x_429, 1, x_376);
lean_ctor_set(x_429, 2, x_377);
lean_ctor_set(x_429, 3, x_423);
lean_ctor_set_uint8(x_429, sizeof(void*)*4, x_428);
if (lean_is_scalar(x_422)) {
 x_430 = lean_alloc_ctor(1, 4, 1);
} else {
 x_430 = x_422;
}
lean_ctor_set(x_430, 0, x_426);
lean_ctor_set(x_430, 1, x_419);
lean_ctor_set(x_430, 2, x_420);
lean_ctor_set(x_430, 3, x_421);
lean_ctor_set_uint8(x_430, sizeof(void*)*4, x_428);
x_431 = 0;
x_432 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_432, 0, x_429);
lean_ctor_set(x_432, 1, x_424);
lean_ctor_set(x_432, 2, x_425);
lean_ctor_set(x_432, 3, x_430);
lean_ctor_set_uint8(x_432, sizeof(void*)*4, x_431);
return x_432;
}
else
{
lean_object* x_433; 
x_433 = lean_ctor_get(x_387, 3);
lean_inc(x_433);
if (lean_obj_tag(x_433) == 0)
{
lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; lean_object* x_438; uint8_t x_439; lean_object* x_440; 
x_434 = lean_ctor_get(x_387, 1);
lean_inc(x_434);
x_435 = lean_ctor_get(x_387, 2);
lean_inc(x_435);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_436 = x_387;
} else {
 lean_dec_ref(x_387);
 x_436 = lean_box(0);
}
x_437 = 0;
if (lean_is_scalar(x_436)) {
 x_438 = lean_alloc_ctor(1, 4, 1);
} else {
 x_438 = x_436;
}
lean_ctor_set(x_438, 0, x_388);
lean_ctor_set(x_438, 1, x_434);
lean_ctor_set(x_438, 2, x_435);
lean_ctor_set(x_438, 3, x_433);
lean_ctor_set_uint8(x_438, sizeof(void*)*4, x_437);
x_439 = 1;
x_440 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_440, 0, x_375);
lean_ctor_set(x_440, 1, x_376);
lean_ctor_set(x_440, 2, x_377);
lean_ctor_set(x_440, 3, x_438);
lean_ctor_set_uint8(x_440, sizeof(void*)*4, x_439);
return x_440;
}
else
{
uint8_t x_441; 
x_441 = lean_ctor_get_uint8(x_433, sizeof(void*)*4);
if (x_441 == 0)
{
lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; lean_object* x_455; 
x_442 = lean_ctor_get(x_387, 1);
lean_inc(x_442);
x_443 = lean_ctor_get(x_387, 2);
lean_inc(x_443);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_444 = x_387;
} else {
 lean_dec_ref(x_387);
 x_444 = lean_box(0);
}
x_445 = lean_ctor_get(x_433, 0);
lean_inc(x_445);
x_446 = lean_ctor_get(x_433, 1);
lean_inc(x_446);
x_447 = lean_ctor_get(x_433, 2);
lean_inc(x_447);
x_448 = lean_ctor_get(x_433, 3);
lean_inc(x_448);
if (lean_is_exclusive(x_433)) {
 lean_ctor_release(x_433, 0);
 lean_ctor_release(x_433, 1);
 lean_ctor_release(x_433, 2);
 lean_ctor_release(x_433, 3);
 x_449 = x_433;
} else {
 lean_dec_ref(x_433);
 x_449 = lean_box(0);
}
x_450 = 1;
lean_inc(x_388);
if (lean_is_scalar(x_449)) {
 x_451 = lean_alloc_ctor(1, 4, 1);
} else {
 x_451 = x_449;
}
lean_ctor_set(x_451, 0, x_375);
lean_ctor_set(x_451, 1, x_376);
lean_ctor_set(x_451, 2, x_377);
lean_ctor_set(x_451, 3, x_388);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_452 = x_388;
} else {
 lean_dec_ref(x_388);
 x_452 = lean_box(0);
}
lean_ctor_set_uint8(x_451, sizeof(void*)*4, x_450);
if (lean_is_scalar(x_452)) {
 x_453 = lean_alloc_ctor(1, 4, 1);
} else {
 x_453 = x_452;
}
lean_ctor_set(x_453, 0, x_445);
lean_ctor_set(x_453, 1, x_446);
lean_ctor_set(x_453, 2, x_447);
lean_ctor_set(x_453, 3, x_448);
lean_ctor_set_uint8(x_453, sizeof(void*)*4, x_450);
x_454 = 0;
if (lean_is_scalar(x_444)) {
 x_455 = lean_alloc_ctor(1, 4, 1);
} else {
 x_455 = x_444;
}
lean_ctor_set(x_455, 0, x_451);
lean_ctor_set(x_455, 1, x_442);
lean_ctor_set(x_455, 2, x_443);
lean_ctor_set(x_455, 3, x_453);
lean_ctor_set_uint8(x_455, sizeof(void*)*4, x_454);
return x_455;
}
else
{
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; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; 
x_456 = lean_ctor_get(x_387, 1);
lean_inc(x_456);
x_457 = lean_ctor_get(x_387, 2);
lean_inc(x_457);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_458 = x_387;
} else {
 lean_dec_ref(x_387);
 x_458 = lean_box(0);
}
x_459 = lean_ctor_get(x_388, 0);
lean_inc(x_459);
x_460 = lean_ctor_get(x_388, 1);
lean_inc(x_460);
x_461 = lean_ctor_get(x_388, 2);
lean_inc(x_461);
x_462 = lean_ctor_get(x_388, 3);
lean_inc(x_462);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_463 = x_388;
} else {
 lean_dec_ref(x_388);
 x_463 = lean_box(0);
}
if (lean_is_scalar(x_463)) {
 x_464 = lean_alloc_ctor(1, 4, 1);
} else {
 x_464 = x_463;
}
lean_ctor_set(x_464, 0, x_459);
lean_ctor_set(x_464, 1, x_460);
lean_ctor_set(x_464, 2, x_461);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set_uint8(x_464, sizeof(void*)*4, x_441);
x_465 = 0;
if (lean_is_scalar(x_458)) {
 x_466 = lean_alloc_ctor(1, 4, 1);
} else {
 x_466 = x_458;
}
lean_ctor_set(x_466, 0, x_464);
lean_ctor_set(x_466, 1, x_456);
lean_ctor_set(x_466, 2, x_457);
lean_ctor_set(x_466, 3, x_433);
lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465);
x_467 = 1;
x_468 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_468, 0, x_375);
lean_ctor_set(x_468, 1, x_376);
lean_ctor_set(x_468, 2, x_377);
lean_ctor_set(x_468, 3, x_466);
lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467);
return x_468;
}
}
}
}
}
}
else
{
uint8_t x_469; lean_object* x_470; lean_object* x_471; 
lean_dec(x_377);
lean_dec(x_376);
x_469 = 1;
x_470 = lean_box_uint32(x_2);
x_471 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_471, 0, x_375);
lean_ctor_set(x_471, 1, x_470);
lean_ctor_set(x_471, 2, x_3);
lean_ctor_set(x_471, 3, x_378);
lean_ctor_set_uint8(x_471, sizeof(void*)*4, x_469);
return x_471;
}
}
else
{
uint8_t x_472; 
x_472 = l_Std_RBNode_isRed___rarg(x_375);
if (x_472 == 0)
{
lean_object* x_473; uint8_t x_474; lean_object* x_475; 
x_473 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_375, x_2, x_3);
x_474 = 1;
x_475 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_475, 0, x_473);
lean_ctor_set(x_475, 1, x_376);
lean_ctor_set(x_475, 2, x_377);
lean_ctor_set(x_475, 3, x_378);
lean_ctor_set_uint8(x_475, sizeof(void*)*4, x_474);
return x_475;
}
else
{
lean_object* x_476; lean_object* x_477; 
x_476 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_375, x_2, x_3);
x_477 = lean_ctor_get(x_476, 0);
lean_inc(x_477);
if (lean_obj_tag(x_477) == 0)
{
lean_object* x_478; 
x_478 = lean_ctor_get(x_476, 3);
lean_inc(x_478);
if (lean_obj_tag(x_478) == 0)
{
lean_object* x_479; lean_object* x_480; lean_object* x_481; uint8_t x_482; lean_object* x_483; uint8_t x_484; lean_object* x_485; 
x_479 = lean_ctor_get(x_476, 1);
lean_inc(x_479);
x_480 = lean_ctor_get(x_476, 2);
lean_inc(x_480);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_481 = x_476;
} else {
 lean_dec_ref(x_476);
 x_481 = lean_box(0);
}
x_482 = 0;
if (lean_is_scalar(x_481)) {
 x_483 = lean_alloc_ctor(1, 4, 1);
} else {
 x_483 = x_481;
}
lean_ctor_set(x_483, 0, x_478);
lean_ctor_set(x_483, 1, x_479);
lean_ctor_set(x_483, 2, x_480);
lean_ctor_set(x_483, 3, x_478);
lean_ctor_set_uint8(x_483, sizeof(void*)*4, x_482);
x_484 = 1;
x_485 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_485, 0, x_483);
lean_ctor_set(x_485, 1, x_376);
lean_ctor_set(x_485, 2, x_377);
lean_ctor_set(x_485, 3, x_378);
lean_ctor_set_uint8(x_485, sizeof(void*)*4, x_484);
return x_485;
}
else
{
uint8_t x_486; 
x_486 = lean_ctor_get_uint8(x_478, sizeof(void*)*4);
if (x_486 == 0)
{
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; uint8_t x_495; lean_object* x_496; lean_object* x_497; uint8_t x_498; lean_object* x_499; 
x_487 = lean_ctor_get(x_476, 1);
lean_inc(x_487);
x_488 = lean_ctor_get(x_476, 2);
lean_inc(x_488);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_489 = x_476;
} else {
 lean_dec_ref(x_476);
 x_489 = lean_box(0);
}
x_490 = lean_ctor_get(x_478, 0);
lean_inc(x_490);
x_491 = lean_ctor_get(x_478, 1);
lean_inc(x_491);
x_492 = lean_ctor_get(x_478, 2);
lean_inc(x_492);
x_493 = lean_ctor_get(x_478, 3);
lean_inc(x_493);
if (lean_is_exclusive(x_478)) {
 lean_ctor_release(x_478, 0);
 lean_ctor_release(x_478, 1);
 lean_ctor_release(x_478, 2);
 lean_ctor_release(x_478, 3);
 x_494 = x_478;
} else {
 lean_dec_ref(x_478);
 x_494 = lean_box(0);
}
x_495 = 1;
if (lean_is_scalar(x_494)) {
 x_496 = lean_alloc_ctor(1, 4, 1);
} else {
 x_496 = x_494;
}
lean_ctor_set(x_496, 0, x_477);
lean_ctor_set(x_496, 1, x_487);
lean_ctor_set(x_496, 2, x_488);
lean_ctor_set(x_496, 3, x_490);
lean_ctor_set_uint8(x_496, sizeof(void*)*4, x_495);
if (lean_is_scalar(x_489)) {
 x_497 = lean_alloc_ctor(1, 4, 1);
} else {
 x_497 = x_489;
}
lean_ctor_set(x_497, 0, x_493);
lean_ctor_set(x_497, 1, x_376);
lean_ctor_set(x_497, 2, x_377);
lean_ctor_set(x_497, 3, x_378);
lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_495);
x_498 = 0;
x_499 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_499, 0, x_496);
lean_ctor_set(x_499, 1, x_491);
lean_ctor_set(x_499, 2, x_492);
lean_ctor_set(x_499, 3, x_497);
lean_ctor_set_uint8(x_499, sizeof(void*)*4, x_498);
return x_499;
}
else
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; uint8_t x_505; lean_object* x_506; 
x_500 = lean_ctor_get(x_476, 1);
lean_inc(x_500);
x_501 = lean_ctor_get(x_476, 2);
lean_inc(x_501);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_502 = x_476;
} else {
 lean_dec_ref(x_476);
 x_502 = lean_box(0);
}
x_503 = 0;
if (lean_is_scalar(x_502)) {
 x_504 = lean_alloc_ctor(1, 4, 1);
} else {
 x_504 = x_502;
}
lean_ctor_set(x_504, 0, x_477);
lean_ctor_set(x_504, 1, x_500);
lean_ctor_set(x_504, 2, x_501);
lean_ctor_set(x_504, 3, x_478);
lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503);
x_505 = 1;
x_506 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_506, 0, x_504);
lean_ctor_set(x_506, 1, x_376);
lean_ctor_set(x_506, 2, x_377);
lean_ctor_set(x_506, 3, x_378);
lean_ctor_set_uint8(x_506, sizeof(void*)*4, x_505);
return x_506;
}
}
}
else
{
uint8_t x_507; 
x_507 = lean_ctor_get_uint8(x_477, sizeof(void*)*4);
if (x_507 == 0)
{
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; uint8_t x_517; lean_object* x_518; lean_object* x_519; uint8_t x_520; lean_object* x_521; 
x_508 = lean_ctor_get(x_476, 1);
lean_inc(x_508);
x_509 = lean_ctor_get(x_476, 2);
lean_inc(x_509);
x_510 = lean_ctor_get(x_476, 3);
lean_inc(x_510);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_511 = x_476;
} else {
 lean_dec_ref(x_476);
 x_511 = lean_box(0);
}
x_512 = lean_ctor_get(x_477, 0);
lean_inc(x_512);
x_513 = lean_ctor_get(x_477, 1);
lean_inc(x_513);
x_514 = lean_ctor_get(x_477, 2);
lean_inc(x_514);
x_515 = lean_ctor_get(x_477, 3);
lean_inc(x_515);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_516 = x_477;
} else {
 lean_dec_ref(x_477);
 x_516 = lean_box(0);
}
x_517 = 1;
if (lean_is_scalar(x_516)) {
 x_518 = lean_alloc_ctor(1, 4, 1);
} else {
 x_518 = x_516;
}
lean_ctor_set(x_518, 0, x_512);
lean_ctor_set(x_518, 1, x_513);
lean_ctor_set(x_518, 2, x_514);
lean_ctor_set(x_518, 3, x_515);
lean_ctor_set_uint8(x_518, sizeof(void*)*4, x_517);
if (lean_is_scalar(x_511)) {
 x_519 = lean_alloc_ctor(1, 4, 1);
} else {
 x_519 = x_511;
}
lean_ctor_set(x_519, 0, x_510);
lean_ctor_set(x_519, 1, x_376);
lean_ctor_set(x_519, 2, x_377);
lean_ctor_set(x_519, 3, x_378);
lean_ctor_set_uint8(x_519, sizeof(void*)*4, x_517);
x_520 = 0;
x_521 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_521, 0, x_518);
lean_ctor_set(x_521, 1, x_508);
lean_ctor_set(x_521, 2, x_509);
lean_ctor_set(x_521, 3, x_519);
lean_ctor_set_uint8(x_521, sizeof(void*)*4, x_520);
return x_521;
}
else
{
lean_object* x_522; 
x_522 = lean_ctor_get(x_476, 3);
lean_inc(x_522);
if (lean_obj_tag(x_522) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; uint8_t x_528; lean_object* x_529; 
x_523 = lean_ctor_get(x_476, 1);
lean_inc(x_523);
x_524 = lean_ctor_get(x_476, 2);
lean_inc(x_524);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_525 = x_476;
} else {
 lean_dec_ref(x_476);
 x_525 = lean_box(0);
}
x_526 = 0;
if (lean_is_scalar(x_525)) {
 x_527 = lean_alloc_ctor(1, 4, 1);
} else {
 x_527 = x_525;
}
lean_ctor_set(x_527, 0, x_477);
lean_ctor_set(x_527, 1, x_523);
lean_ctor_set(x_527, 2, x_524);
lean_ctor_set(x_527, 3, x_522);
lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526);
x_528 = 1;
x_529 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_529, 0, x_527);
lean_ctor_set(x_529, 1, x_376);
lean_ctor_set(x_529, 2, x_377);
lean_ctor_set(x_529, 3, x_378);
lean_ctor_set_uint8(x_529, sizeof(void*)*4, x_528);
return x_529;
}
else
{
uint8_t x_530; 
x_530 = lean_ctor_get_uint8(x_522, sizeof(void*)*4);
if (x_530 == 0)
{
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; uint8_t x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; uint8_t x_543; lean_object* x_544; 
x_531 = lean_ctor_get(x_476, 1);
lean_inc(x_531);
x_532 = lean_ctor_get(x_476, 2);
lean_inc(x_532);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_533 = x_476;
} else {
 lean_dec_ref(x_476);
 x_533 = lean_box(0);
}
x_534 = lean_ctor_get(x_522, 0);
lean_inc(x_534);
x_535 = lean_ctor_get(x_522, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_522, 2);
lean_inc(x_536);
x_537 = lean_ctor_get(x_522, 3);
lean_inc(x_537);
if (lean_is_exclusive(x_522)) {
 lean_ctor_release(x_522, 0);
 lean_ctor_release(x_522, 1);
 lean_ctor_release(x_522, 2);
 lean_ctor_release(x_522, 3);
 x_538 = x_522;
} else {
 lean_dec_ref(x_522);
 x_538 = lean_box(0);
}
x_539 = 1;
lean_inc(x_477);
if (lean_is_scalar(x_538)) {
 x_540 = lean_alloc_ctor(1, 4, 1);
} else {
 x_540 = x_538;
}
lean_ctor_set(x_540, 0, x_477);
lean_ctor_set(x_540, 1, x_531);
lean_ctor_set(x_540, 2, x_532);
lean_ctor_set(x_540, 3, x_534);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_541 = x_477;
} else {
 lean_dec_ref(x_477);
 x_541 = lean_box(0);
}
lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539);
if (lean_is_scalar(x_541)) {
 x_542 = lean_alloc_ctor(1, 4, 1);
} else {
 x_542 = x_541;
}
lean_ctor_set(x_542, 0, x_537);
lean_ctor_set(x_542, 1, x_376);
lean_ctor_set(x_542, 2, x_377);
lean_ctor_set(x_542, 3, x_378);
lean_ctor_set_uint8(x_542, sizeof(void*)*4, x_539);
x_543 = 0;
if (lean_is_scalar(x_533)) {
 x_544 = lean_alloc_ctor(1, 4, 1);
} else {
 x_544 = x_533;
}
lean_ctor_set(x_544, 0, x_540);
lean_ctor_set(x_544, 1, x_535);
lean_ctor_set(x_544, 2, x_536);
lean_ctor_set(x_544, 3, x_542);
lean_ctor_set_uint8(x_544, sizeof(void*)*4, x_543);
return x_544;
}
else
{
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; uint8_t x_554; lean_object* x_555; uint8_t x_556; lean_object* x_557; 
x_545 = lean_ctor_get(x_476, 1);
lean_inc(x_545);
x_546 = lean_ctor_get(x_476, 2);
lean_inc(x_546);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_547 = x_476;
} else {
 lean_dec_ref(x_476);
 x_547 = lean_box(0);
}
x_548 = lean_ctor_get(x_477, 0);
lean_inc(x_548);
x_549 = lean_ctor_get(x_477, 1);
lean_inc(x_549);
x_550 = lean_ctor_get(x_477, 2);
lean_inc(x_550);
x_551 = lean_ctor_get(x_477, 3);
lean_inc(x_551);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_552 = x_477;
} else {
 lean_dec_ref(x_477);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(1, 4, 1);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_549);
lean_ctor_set(x_553, 2, x_550);
lean_ctor_set(x_553, 3, x_551);
lean_ctor_set_uint8(x_553, sizeof(void*)*4, x_530);
x_554 = 0;
if (lean_is_scalar(x_547)) {
 x_555 = lean_alloc_ctor(1, 4, 1);
} else {
 x_555 = x_547;
}
lean_ctor_set(x_555, 0, x_553);
lean_ctor_set(x_555, 1, x_545);
lean_ctor_set(x_555, 2, x_546);
lean_ctor_set(x_555, 3, x_522);
lean_ctor_set_uint8(x_555, sizeof(void*)*4, x_554);
x_556 = 1;
x_557 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_557, 0, x_555);
lean_ctor_set(x_557, 1, x_376);
lean_ctor_set(x_557, 2, x_377);
lean_ctor_set(x_557, 3, x_378);
lean_ctor_set_uint8(x_557, sizeof(void*)*4, x_556);
return x_557;
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_box(0);
x_5 = 0;
x_6 = lean_box_uint32(x_2);
x_7 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_7, 0, x_4);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*4, x_5);
return x_7;
}
else
{
uint8_t x_8; 
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*4);
if (x_8 == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_1);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint32_t x_14; uint8_t x_15; 
x_10 = lean_ctor_get(x_1, 0);
x_11 = lean_ctor_get(x_1, 1);
x_12 = lean_ctor_get(x_1, 2);
x_13 = lean_ctor_get(x_1, 3);
x_14 = lean_unbox_uint32(x_11);
x_15 = lean_uint32_dec_lt(x_2, x_14);
if (x_15 == 0)
{
uint32_t x_16; uint8_t x_17; 
x_16 = lean_unbox_uint32(x_11);
x_17 = lean_uint32_dec_eq(x_2, x_16);
if (x_17 == 0)
{
lean_object* x_18; uint8_t x_19; 
x_18 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_13, x_2, x_3);
x_19 = 0;
lean_ctor_set(x_1, 3, x_18);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_19);
return x_1;
}
else
{
uint8_t x_20; lean_object* x_21; 
lean_dec(x_12);
lean_dec(x_11);
x_20 = 0;
x_21 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_21);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_20);
return x_1;
}
}
else
{
lean_object* x_22; uint8_t x_23; 
x_22 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_10, x_2, x_3);
x_23 = 0;
lean_ctor_set(x_1, 0, x_22);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_23);
return x_1;
}
}
else
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint32_t x_28; uint8_t x_29; 
x_24 = lean_ctor_get(x_1, 0);
x_25 = lean_ctor_get(x_1, 1);
x_26 = lean_ctor_get(x_1, 2);
x_27 = lean_ctor_get(x_1, 3);
lean_inc(x_27);
lean_inc(x_26);
lean_inc(x_25);
lean_inc(x_24);
lean_dec(x_1);
x_28 = lean_unbox_uint32(x_25);
x_29 = lean_uint32_dec_lt(x_2, x_28);
if (x_29 == 0)
{
uint32_t x_30; uint8_t x_31; 
x_30 = lean_unbox_uint32(x_25);
x_31 = lean_uint32_dec_eq(x_2, x_30);
if (x_31 == 0)
{
lean_object* x_32; uint8_t x_33; lean_object* x_34; 
x_32 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_27, x_2, x_3);
x_33 = 0;
x_34 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_34, 0, x_24);
lean_ctor_set(x_34, 1, x_25);
lean_ctor_set(x_34, 2, x_26);
lean_ctor_set(x_34, 3, x_32);
lean_ctor_set_uint8(x_34, sizeof(void*)*4, x_33);
return x_34;
}
else
{
uint8_t x_35; lean_object* x_36; lean_object* x_37; 
lean_dec(x_26);
lean_dec(x_25);
x_35 = 0;
x_36 = lean_box_uint32(x_2);
x_37 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_37, 0, x_24);
lean_ctor_set(x_37, 1, x_36);
lean_ctor_set(x_37, 2, x_3);
lean_ctor_set(x_37, 3, x_27);
lean_ctor_set_uint8(x_37, sizeof(void*)*4, x_35);
return x_37;
}
}
else
{
lean_object* x_38; uint8_t x_39; lean_object* x_40; 
x_38 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_24, x_2, x_3);
x_39 = 0;
x_40 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_25);
lean_ctor_set(x_40, 2, x_26);
lean_ctor_set(x_40, 3, x_27);
lean_ctor_set_uint8(x_40, sizeof(void*)*4, x_39);
return x_40;
}
}
}
else
{
uint8_t x_41; 
x_41 = !lean_is_exclusive(x_1);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint32_t x_46; uint8_t x_47; 
x_42 = lean_ctor_get(x_1, 0);
x_43 = lean_ctor_get(x_1, 1);
x_44 = lean_ctor_get(x_1, 2);
x_45 = lean_ctor_get(x_1, 3);
x_46 = lean_unbox_uint32(x_43);
x_47 = lean_uint32_dec_lt(x_2, x_46);
if (x_47 == 0)
{
uint32_t x_48; uint8_t x_49; 
x_48 = lean_unbox_uint32(x_43);
x_49 = lean_uint32_dec_eq(x_2, x_48);
if (x_49 == 0)
{
uint8_t x_50; 
x_50 = l_Std_RBNode_isRed___rarg(x_45);
if (x_50 == 0)
{
lean_object* x_51; uint8_t x_52; 
x_51 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_45, x_2, x_3);
x_52 = 1;
lean_ctor_set(x_1, 3, x_51);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_52);
return x_1;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_45, x_2, x_3);
x_54 = lean_ctor_get(x_53, 0);
lean_inc(x_54);
if (lean_obj_tag(x_54) == 0)
{
lean_object* x_55; 
x_55 = lean_ctor_get(x_53, 3);
lean_inc(x_55);
if (lean_obj_tag(x_55) == 0)
{
uint8_t x_56; 
x_56 = !lean_is_exclusive(x_53);
if (x_56 == 0)
{
lean_object* x_57; lean_object* x_58; uint8_t x_59; uint8_t x_60; 
x_57 = lean_ctor_get(x_53, 3);
lean_dec(x_57);
x_58 = lean_ctor_get(x_53, 0);
lean_dec(x_58);
x_59 = 0;
lean_ctor_set(x_53, 0, x_55);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_59);
x_60 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_60);
return x_1;
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; uint8_t x_65; 
x_61 = lean_ctor_get(x_53, 1);
x_62 = lean_ctor_get(x_53, 2);
lean_inc(x_62);
lean_inc(x_61);
lean_dec(x_53);
x_63 = 0;
x_64 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_64, 0, x_55);
lean_ctor_set(x_64, 1, x_61);
lean_ctor_set(x_64, 2, x_62);
lean_ctor_set(x_64, 3, x_55);
lean_ctor_set_uint8(x_64, sizeof(void*)*4, x_63);
x_65 = 1;
lean_ctor_set(x_1, 3, x_64);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_65);
return x_1;
}
}
else
{
uint8_t x_66; 
x_66 = lean_ctor_get_uint8(x_55, sizeof(void*)*4);
if (x_66 == 0)
{
uint8_t x_67; 
x_67 = !lean_is_exclusive(x_53);
if (x_67 == 0)
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_68 = lean_ctor_get(x_53, 1);
x_69 = lean_ctor_get(x_53, 2);
x_70 = lean_ctor_get(x_53, 3);
lean_dec(x_70);
x_71 = lean_ctor_get(x_53, 0);
lean_dec(x_71);
x_72 = !lean_is_exclusive(x_55);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; uint8_t x_77; uint8_t x_78; 
x_73 = lean_ctor_get(x_55, 0);
x_74 = lean_ctor_get(x_55, 1);
x_75 = lean_ctor_get(x_55, 2);
x_76 = lean_ctor_get(x_55, 3);
x_77 = 1;
lean_ctor_set(x_55, 3, x_54);
lean_ctor_set(x_55, 2, x_44);
lean_ctor_set(x_55, 1, x_43);
lean_ctor_set(x_55, 0, x_42);
lean_ctor_set_uint8(x_55, sizeof(void*)*4, x_77);
lean_ctor_set(x_53, 3, x_76);
lean_ctor_set(x_53, 2, x_75);
lean_ctor_set(x_53, 1, x_74);
lean_ctor_set(x_53, 0, x_73);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_77);
x_78 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_55);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_78);
return x_1;
}
else
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; uint8_t x_83; lean_object* x_84; uint8_t x_85; 
x_79 = lean_ctor_get(x_55, 0);
x_80 = lean_ctor_get(x_55, 1);
x_81 = lean_ctor_get(x_55, 2);
x_82 = lean_ctor_get(x_55, 3);
lean_inc(x_82);
lean_inc(x_81);
lean_inc(x_80);
lean_inc(x_79);
lean_dec(x_55);
x_83 = 1;
x_84 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_84, 0, x_42);
lean_ctor_set(x_84, 1, x_43);
lean_ctor_set(x_84, 2, x_44);
lean_ctor_set(x_84, 3, x_54);
lean_ctor_set_uint8(x_84, sizeof(void*)*4, x_83);
lean_ctor_set(x_53, 3, x_82);
lean_ctor_set(x_53, 2, x_81);
lean_ctor_set(x_53, 1, x_80);
lean_ctor_set(x_53, 0, x_79);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_83);
x_85 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_69);
lean_ctor_set(x_1, 1, x_68);
lean_ctor_set(x_1, 0, x_84);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_85);
return x_1;
}
}
else
{
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; uint8_t x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_86 = lean_ctor_get(x_53, 1);
x_87 = lean_ctor_get(x_53, 2);
lean_inc(x_87);
lean_inc(x_86);
lean_dec(x_53);
x_88 = lean_ctor_get(x_55, 0);
lean_inc(x_88);
x_89 = lean_ctor_get(x_55, 1);
lean_inc(x_89);
x_90 = lean_ctor_get(x_55, 2);
lean_inc(x_90);
x_91 = lean_ctor_get(x_55, 3);
lean_inc(x_91);
if (lean_is_exclusive(x_55)) {
 lean_ctor_release(x_55, 0);
 lean_ctor_release(x_55, 1);
 lean_ctor_release(x_55, 2);
 lean_ctor_release(x_55, 3);
 x_92 = x_55;
} else {
 lean_dec_ref(x_55);
 x_92 = lean_box(0);
}
x_93 = 1;
if (lean_is_scalar(x_92)) {
 x_94 = lean_alloc_ctor(1, 4, 1);
} else {
 x_94 = x_92;
}
lean_ctor_set(x_94, 0, x_42);
lean_ctor_set(x_94, 1, x_43);
lean_ctor_set(x_94, 2, x_44);
lean_ctor_set(x_94, 3, x_54);
lean_ctor_set_uint8(x_94, sizeof(void*)*4, x_93);
x_95 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_95, 0, x_88);
lean_ctor_set(x_95, 1, x_89);
lean_ctor_set(x_95, 2, x_90);
lean_ctor_set(x_95, 3, x_91);
lean_ctor_set_uint8(x_95, sizeof(void*)*4, x_93);
x_96 = 0;
lean_ctor_set(x_1, 3, x_95);
lean_ctor_set(x_1, 2, x_87);
lean_ctor_set(x_1, 1, x_86);
lean_ctor_set(x_1, 0, x_94);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_96);
return x_1;
}
}
else
{
uint8_t x_97; 
x_97 = !lean_is_exclusive(x_53);
if (x_97 == 0)
{
lean_object* x_98; lean_object* x_99; uint8_t x_100; uint8_t x_101; 
x_98 = lean_ctor_get(x_53, 3);
lean_dec(x_98);
x_99 = lean_ctor_get(x_53, 0);
lean_dec(x_99);
x_100 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_100);
x_101 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_101);
return x_1;
}
else
{
lean_object* x_102; lean_object* x_103; uint8_t x_104; lean_object* x_105; uint8_t x_106; 
x_102 = lean_ctor_get(x_53, 1);
x_103 = lean_ctor_get(x_53, 2);
lean_inc(x_103);
lean_inc(x_102);
lean_dec(x_53);
x_104 = 0;
x_105 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_105, 0, x_54);
lean_ctor_set(x_105, 1, x_102);
lean_ctor_set(x_105, 2, x_103);
lean_ctor_set(x_105, 3, x_55);
lean_ctor_set_uint8(x_105, sizeof(void*)*4, x_104);
x_106 = 1;
lean_ctor_set(x_1, 3, x_105);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_106);
return x_1;
}
}
}
}
else
{
uint8_t x_107; 
x_107 = lean_ctor_get_uint8(x_54, sizeof(void*)*4);
if (x_107 == 0)
{
uint8_t x_108; 
x_108 = !lean_is_exclusive(x_53);
if (x_108 == 0)
{
lean_object* x_109; uint8_t x_110; 
x_109 = lean_ctor_get(x_53, 0);
lean_dec(x_109);
x_110 = !lean_is_exclusive(x_54);
if (x_110 == 0)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; uint8_t x_116; 
x_111 = lean_ctor_get(x_54, 0);
x_112 = lean_ctor_get(x_54, 1);
x_113 = lean_ctor_get(x_54, 2);
x_114 = lean_ctor_get(x_54, 3);
x_115 = 1;
lean_ctor_set(x_54, 3, x_111);
lean_ctor_set(x_54, 2, x_44);
lean_ctor_set(x_54, 1, x_43);
lean_ctor_set(x_54, 0, x_42);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_115);
lean_ctor_set(x_53, 0, x_114);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_115);
x_116 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_113);
lean_ctor_set(x_1, 1, x_112);
lean_ctor_set(x_1, 0, x_54);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_116);
return x_1;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; uint8_t x_121; lean_object* x_122; uint8_t x_123; 
x_117 = lean_ctor_get(x_54, 0);
x_118 = lean_ctor_get(x_54, 1);
x_119 = lean_ctor_get(x_54, 2);
x_120 = lean_ctor_get(x_54, 3);
lean_inc(x_120);
lean_inc(x_119);
lean_inc(x_118);
lean_inc(x_117);
lean_dec(x_54);
x_121 = 1;
x_122 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_122, 0, x_42);
lean_ctor_set(x_122, 1, x_43);
lean_ctor_set(x_122, 2, x_44);
lean_ctor_set(x_122, 3, x_117);
lean_ctor_set_uint8(x_122, sizeof(void*)*4, x_121);
lean_ctor_set(x_53, 0, x_120);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_121);
x_123 = 0;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set(x_1, 2, x_119);
lean_ctor_set(x_1, 1, x_118);
lean_ctor_set(x_1, 0, x_122);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_123);
return x_1;
}
}
else
{
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; uint8_t x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; 
x_124 = lean_ctor_get(x_53, 1);
x_125 = lean_ctor_get(x_53, 2);
x_126 = lean_ctor_get(x_53, 3);
lean_inc(x_126);
lean_inc(x_125);
lean_inc(x_124);
lean_dec(x_53);
x_127 = lean_ctor_get(x_54, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_54, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_54, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_54, 3);
lean_inc(x_130);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_131 = x_54;
} else {
 lean_dec_ref(x_54);
 x_131 = lean_box(0);
}
x_132 = 1;
if (lean_is_scalar(x_131)) {
 x_133 = lean_alloc_ctor(1, 4, 1);
} else {
 x_133 = x_131;
}
lean_ctor_set(x_133, 0, x_42);
lean_ctor_set(x_133, 1, x_43);
lean_ctor_set(x_133, 2, x_44);
lean_ctor_set(x_133, 3, x_127);
lean_ctor_set_uint8(x_133, sizeof(void*)*4, x_132);
x_134 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_134, 0, x_130);
lean_ctor_set(x_134, 1, x_124);
lean_ctor_set(x_134, 2, x_125);
lean_ctor_set(x_134, 3, x_126);
lean_ctor_set_uint8(x_134, sizeof(void*)*4, x_132);
x_135 = 0;
lean_ctor_set(x_1, 3, x_134);
lean_ctor_set(x_1, 2, x_129);
lean_ctor_set(x_1, 1, x_128);
lean_ctor_set(x_1, 0, x_133);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_135);
return x_1;
}
}
else
{
lean_object* x_136; 
x_136 = lean_ctor_get(x_53, 3);
lean_inc(x_136);
if (lean_obj_tag(x_136) == 0)
{
uint8_t x_137; 
x_137 = !lean_is_exclusive(x_53);
if (x_137 == 0)
{
lean_object* x_138; lean_object* x_139; uint8_t x_140; uint8_t x_141; 
x_138 = lean_ctor_get(x_53, 3);
lean_dec(x_138);
x_139 = lean_ctor_get(x_53, 0);
lean_dec(x_139);
x_140 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_140);
x_141 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_141);
return x_1;
}
else
{
lean_object* x_142; lean_object* x_143; uint8_t x_144; lean_object* x_145; uint8_t x_146; 
x_142 = lean_ctor_get(x_53, 1);
x_143 = lean_ctor_get(x_53, 2);
lean_inc(x_143);
lean_inc(x_142);
lean_dec(x_53);
x_144 = 0;
x_145 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_145, 0, x_54);
lean_ctor_set(x_145, 1, x_142);
lean_ctor_set(x_145, 2, x_143);
lean_ctor_set(x_145, 3, x_136);
lean_ctor_set_uint8(x_145, sizeof(void*)*4, x_144);
x_146 = 1;
lean_ctor_set(x_1, 3, x_145);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_146);
return x_1;
}
}
else
{
uint8_t x_147; 
x_147 = lean_ctor_get_uint8(x_136, sizeof(void*)*4);
if (x_147 == 0)
{
uint8_t x_148; 
lean_free_object(x_1);
x_148 = !lean_is_exclusive(x_53);
if (x_148 == 0)
{
lean_object* x_149; lean_object* x_150; uint8_t x_151; 
x_149 = lean_ctor_get(x_53, 3);
lean_dec(x_149);
x_150 = lean_ctor_get(x_53, 0);
lean_dec(x_150);
x_151 = !lean_is_exclusive(x_136);
if (x_151 == 0)
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; uint8_t x_156; uint8_t x_157; 
x_152 = lean_ctor_get(x_136, 0);
x_153 = lean_ctor_get(x_136, 1);
x_154 = lean_ctor_get(x_136, 2);
x_155 = lean_ctor_get(x_136, 3);
x_156 = 1;
lean_inc(x_54);
lean_ctor_set(x_136, 3, x_54);
lean_ctor_set(x_136, 2, x_44);
lean_ctor_set(x_136, 1, x_43);
lean_ctor_set(x_136, 0, x_42);
x_157 = !lean_is_exclusive(x_54);
if (x_157 == 0)
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; uint8_t x_162; 
x_158 = lean_ctor_get(x_54, 3);
lean_dec(x_158);
x_159 = lean_ctor_get(x_54, 2);
lean_dec(x_159);
x_160 = lean_ctor_get(x_54, 1);
lean_dec(x_160);
x_161 = lean_ctor_get(x_54, 0);
lean_dec(x_161);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
lean_ctor_set(x_54, 3, x_155);
lean_ctor_set(x_54, 2, x_154);
lean_ctor_set(x_54, 1, x_153);
lean_ctor_set(x_54, 0, x_152);
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_156);
x_162 = 0;
lean_ctor_set(x_53, 3, x_54);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_162);
return x_53;
}
else
{
lean_object* x_163; uint8_t x_164; 
lean_dec(x_54);
lean_ctor_set_uint8(x_136, sizeof(void*)*4, x_156);
x_163 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_163, 0, x_152);
lean_ctor_set(x_163, 1, x_153);
lean_ctor_set(x_163, 2, x_154);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set_uint8(x_163, sizeof(void*)*4, x_156);
x_164 = 0;
lean_ctor_set(x_53, 3, x_163);
lean_ctor_set(x_53, 0, x_136);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_164);
return x_53;
}
}
else
{
lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; uint8_t x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; uint8_t x_173; 
x_165 = lean_ctor_get(x_136, 0);
x_166 = lean_ctor_get(x_136, 1);
x_167 = lean_ctor_get(x_136, 2);
x_168 = lean_ctor_get(x_136, 3);
lean_inc(x_168);
lean_inc(x_167);
lean_inc(x_166);
lean_inc(x_165);
lean_dec(x_136);
x_169 = 1;
lean_inc(x_54);
x_170 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_170, 0, x_42);
lean_ctor_set(x_170, 1, x_43);
lean_ctor_set(x_170, 2, x_44);
lean_ctor_set(x_170, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_171 = x_54;
} else {
 lean_dec_ref(x_54);
 x_171 = lean_box(0);
}
lean_ctor_set_uint8(x_170, sizeof(void*)*4, x_169);
if (lean_is_scalar(x_171)) {
 x_172 = lean_alloc_ctor(1, 4, 1);
} else {
 x_172 = x_171;
}
lean_ctor_set(x_172, 0, x_165);
lean_ctor_set(x_172, 1, x_166);
lean_ctor_set(x_172, 2, x_167);
lean_ctor_set(x_172, 3, x_168);
lean_ctor_set_uint8(x_172, sizeof(void*)*4, x_169);
x_173 = 0;
lean_ctor_set(x_53, 3, x_172);
lean_ctor_set(x_53, 0, x_170);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_173);
return x_53;
}
}
else
{
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; uint8_t x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; uint8_t x_185; lean_object* x_186; 
x_174 = lean_ctor_get(x_53, 1);
x_175 = lean_ctor_get(x_53, 2);
lean_inc(x_175);
lean_inc(x_174);
lean_dec(x_53);
x_176 = lean_ctor_get(x_136, 0);
lean_inc(x_176);
x_177 = lean_ctor_get(x_136, 1);
lean_inc(x_177);
x_178 = lean_ctor_get(x_136, 2);
lean_inc(x_178);
x_179 = lean_ctor_get(x_136, 3);
lean_inc(x_179);
if (lean_is_exclusive(x_136)) {
 lean_ctor_release(x_136, 0);
 lean_ctor_release(x_136, 1);
 lean_ctor_release(x_136, 2);
 lean_ctor_release(x_136, 3);
 x_180 = x_136;
} else {
 lean_dec_ref(x_136);
 x_180 = lean_box(0);
}
x_181 = 1;
lean_inc(x_54);
if (lean_is_scalar(x_180)) {
 x_182 = lean_alloc_ctor(1, 4, 1);
} else {
 x_182 = x_180;
}
lean_ctor_set(x_182, 0, x_42);
lean_ctor_set(x_182, 1, x_43);
lean_ctor_set(x_182, 2, x_44);
lean_ctor_set(x_182, 3, x_54);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_183 = x_54;
} else {
 lean_dec_ref(x_54);
 x_183 = lean_box(0);
}
lean_ctor_set_uint8(x_182, sizeof(void*)*4, x_181);
if (lean_is_scalar(x_183)) {
 x_184 = lean_alloc_ctor(1, 4, 1);
} else {
 x_184 = x_183;
}
lean_ctor_set(x_184, 0, x_176);
lean_ctor_set(x_184, 1, x_177);
lean_ctor_set(x_184, 2, x_178);
lean_ctor_set(x_184, 3, x_179);
lean_ctor_set_uint8(x_184, sizeof(void*)*4, x_181);
x_185 = 0;
x_186 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_186, 0, x_182);
lean_ctor_set(x_186, 1, x_174);
lean_ctor_set(x_186, 2, x_175);
lean_ctor_set(x_186, 3, x_184);
lean_ctor_set_uint8(x_186, sizeof(void*)*4, x_185);
return x_186;
}
}
else
{
uint8_t x_187; 
x_187 = !lean_is_exclusive(x_53);
if (x_187 == 0)
{
lean_object* x_188; lean_object* x_189; uint8_t x_190; 
x_188 = lean_ctor_get(x_53, 3);
lean_dec(x_188);
x_189 = lean_ctor_get(x_53, 0);
lean_dec(x_189);
x_190 = !lean_is_exclusive(x_54);
if (x_190 == 0)
{
uint8_t x_191; uint8_t x_192; 
lean_ctor_set_uint8(x_54, sizeof(void*)*4, x_147);
x_191 = 0;
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_191);
x_192 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_192);
return x_1;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; uint8_t x_198; uint8_t x_199; 
x_193 = lean_ctor_get(x_54, 0);
x_194 = lean_ctor_get(x_54, 1);
x_195 = lean_ctor_get(x_54, 2);
x_196 = lean_ctor_get(x_54, 3);
lean_inc(x_196);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_54);
x_197 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_197, 0, x_193);
lean_ctor_set(x_197, 1, x_194);
lean_ctor_set(x_197, 2, x_195);
lean_ctor_set(x_197, 3, x_196);
lean_ctor_set_uint8(x_197, sizeof(void*)*4, x_147);
x_198 = 0;
lean_ctor_set(x_53, 0, x_197);
lean_ctor_set_uint8(x_53, sizeof(void*)*4, x_198);
x_199 = 1;
lean_ctor_set(x_1, 3, x_53);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_199);
return x_1;
}
}
else
{
lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; uint8_t x_208; lean_object* x_209; uint8_t x_210; 
x_200 = lean_ctor_get(x_53, 1);
x_201 = lean_ctor_get(x_53, 2);
lean_inc(x_201);
lean_inc(x_200);
lean_dec(x_53);
x_202 = lean_ctor_get(x_54, 0);
lean_inc(x_202);
x_203 = lean_ctor_get(x_54, 1);
lean_inc(x_203);
x_204 = lean_ctor_get(x_54, 2);
lean_inc(x_204);
x_205 = lean_ctor_get(x_54, 3);
lean_inc(x_205);
if (lean_is_exclusive(x_54)) {
 lean_ctor_release(x_54, 0);
 lean_ctor_release(x_54, 1);
 lean_ctor_release(x_54, 2);
 lean_ctor_release(x_54, 3);
 x_206 = x_54;
} else {
 lean_dec_ref(x_54);
 x_206 = lean_box(0);
}
if (lean_is_scalar(x_206)) {
 x_207 = lean_alloc_ctor(1, 4, 1);
} else {
 x_207 = x_206;
}
lean_ctor_set(x_207, 0, x_202);
lean_ctor_set(x_207, 1, x_203);
lean_ctor_set(x_207, 2, x_204);
lean_ctor_set(x_207, 3, x_205);
lean_ctor_set_uint8(x_207, sizeof(void*)*4, x_147);
x_208 = 0;
x_209 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_209, 0, x_207);
lean_ctor_set(x_209, 1, x_200);
lean_ctor_set(x_209, 2, x_201);
lean_ctor_set(x_209, 3, x_136);
lean_ctor_set_uint8(x_209, sizeof(void*)*4, x_208);
x_210 = 1;
lean_ctor_set(x_1, 3, x_209);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_210);
return x_1;
}
}
}
}
}
}
}
else
{
uint8_t x_211; lean_object* x_212; 
lean_dec(x_44);
lean_dec(x_43);
x_211 = 1;
x_212 = lean_box_uint32(x_2);
lean_ctor_set(x_1, 2, x_3);
lean_ctor_set(x_1, 1, x_212);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_211);
return x_1;
}
}
else
{
uint8_t x_213; 
x_213 = l_Std_RBNode_isRed___rarg(x_42);
if (x_213 == 0)
{
lean_object* x_214; uint8_t x_215; 
x_214 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_42, x_2, x_3);
x_215 = 1;
lean_ctor_set(x_1, 0, x_214);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_215);
return x_1;
}
else
{
lean_object* x_216; lean_object* x_217; 
x_216 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_42, x_2, x_3);
x_217 = lean_ctor_get(x_216, 0);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
lean_object* x_218; 
x_218 = lean_ctor_get(x_216, 3);
lean_inc(x_218);
if (lean_obj_tag(x_218) == 0)
{
uint8_t x_219; 
x_219 = !lean_is_exclusive(x_216);
if (x_219 == 0)
{
lean_object* x_220; lean_object* x_221; uint8_t x_222; uint8_t x_223; 
x_220 = lean_ctor_get(x_216, 3);
lean_dec(x_220);
x_221 = lean_ctor_get(x_216, 0);
lean_dec(x_221);
x_222 = 0;
lean_ctor_set(x_216, 0, x_218);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_222);
x_223 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_223);
return x_1;
}
else
{
lean_object* x_224; lean_object* x_225; uint8_t x_226; lean_object* x_227; uint8_t x_228; 
x_224 = lean_ctor_get(x_216, 1);
x_225 = lean_ctor_get(x_216, 2);
lean_inc(x_225);
lean_inc(x_224);
lean_dec(x_216);
x_226 = 0;
x_227 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_227, 0, x_218);
lean_ctor_set(x_227, 1, x_224);
lean_ctor_set(x_227, 2, x_225);
lean_ctor_set(x_227, 3, x_218);
lean_ctor_set_uint8(x_227, sizeof(void*)*4, x_226);
x_228 = 1;
lean_ctor_set(x_1, 0, x_227);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_228);
return x_1;
}
}
else
{
uint8_t x_229; 
x_229 = lean_ctor_get_uint8(x_218, sizeof(void*)*4);
if (x_229 == 0)
{
uint8_t x_230; 
x_230 = !lean_is_exclusive(x_216);
if (x_230 == 0)
{
lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; uint8_t x_235; 
x_231 = lean_ctor_get(x_216, 1);
x_232 = lean_ctor_get(x_216, 2);
x_233 = lean_ctor_get(x_216, 3);
lean_dec(x_233);
x_234 = lean_ctor_get(x_216, 0);
lean_dec(x_234);
x_235 = !lean_is_exclusive(x_218);
if (x_235 == 0)
{
lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; uint8_t x_240; uint8_t x_241; 
x_236 = lean_ctor_get(x_218, 0);
x_237 = lean_ctor_get(x_218, 1);
x_238 = lean_ctor_get(x_218, 2);
x_239 = lean_ctor_get(x_218, 3);
x_240 = 1;
lean_ctor_set(x_218, 3, x_236);
lean_ctor_set(x_218, 2, x_232);
lean_ctor_set(x_218, 1, x_231);
lean_ctor_set(x_218, 0, x_217);
lean_ctor_set_uint8(x_218, sizeof(void*)*4, x_240);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_239);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_240);
x_241 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_238);
lean_ctor_set(x_1, 1, x_237);
lean_ctor_set(x_1, 0, x_218);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_241);
return x_1;
}
else
{
lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; uint8_t x_246; lean_object* x_247; uint8_t x_248; 
x_242 = lean_ctor_get(x_218, 0);
x_243 = lean_ctor_get(x_218, 1);
x_244 = lean_ctor_get(x_218, 2);
x_245 = lean_ctor_get(x_218, 3);
lean_inc(x_245);
lean_inc(x_244);
lean_inc(x_243);
lean_inc(x_242);
lean_dec(x_218);
x_246 = 1;
x_247 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_247, 0, x_217);
lean_ctor_set(x_247, 1, x_231);
lean_ctor_set(x_247, 2, x_232);
lean_ctor_set(x_247, 3, x_242);
lean_ctor_set_uint8(x_247, sizeof(void*)*4, x_246);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_245);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_246);
x_248 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_244);
lean_ctor_set(x_1, 1, x_243);
lean_ctor_set(x_1, 0, x_247);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_248);
return x_1;
}
}
else
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; lean_object* x_255; uint8_t x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; 
x_249 = lean_ctor_get(x_216, 1);
x_250 = lean_ctor_get(x_216, 2);
lean_inc(x_250);
lean_inc(x_249);
lean_dec(x_216);
x_251 = lean_ctor_get(x_218, 0);
lean_inc(x_251);
x_252 = lean_ctor_get(x_218, 1);
lean_inc(x_252);
x_253 = lean_ctor_get(x_218, 2);
lean_inc(x_253);
x_254 = lean_ctor_get(x_218, 3);
lean_inc(x_254);
if (lean_is_exclusive(x_218)) {
 lean_ctor_release(x_218, 0);
 lean_ctor_release(x_218, 1);
 lean_ctor_release(x_218, 2);
 lean_ctor_release(x_218, 3);
 x_255 = x_218;
} else {
 lean_dec_ref(x_218);
 x_255 = lean_box(0);
}
x_256 = 1;
if (lean_is_scalar(x_255)) {
 x_257 = lean_alloc_ctor(1, 4, 1);
} else {
 x_257 = x_255;
}
lean_ctor_set(x_257, 0, x_217);
lean_ctor_set(x_257, 1, x_249);
lean_ctor_set(x_257, 2, x_250);
lean_ctor_set(x_257, 3, x_251);
lean_ctor_set_uint8(x_257, sizeof(void*)*4, x_256);
x_258 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_258, 0, x_254);
lean_ctor_set(x_258, 1, x_43);
lean_ctor_set(x_258, 2, x_44);
lean_ctor_set(x_258, 3, x_45);
lean_ctor_set_uint8(x_258, sizeof(void*)*4, x_256);
x_259 = 0;
lean_ctor_set(x_1, 3, x_258);
lean_ctor_set(x_1, 2, x_253);
lean_ctor_set(x_1, 1, x_252);
lean_ctor_set(x_1, 0, x_257);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_259);
return x_1;
}
}
else
{
uint8_t x_260; 
x_260 = !lean_is_exclusive(x_216);
if (x_260 == 0)
{
lean_object* x_261; lean_object* x_262; uint8_t x_263; uint8_t x_264; 
x_261 = lean_ctor_get(x_216, 3);
lean_dec(x_261);
x_262 = lean_ctor_get(x_216, 0);
lean_dec(x_262);
x_263 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_263);
x_264 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_264);
return x_1;
}
else
{
lean_object* x_265; lean_object* x_266; uint8_t x_267; lean_object* x_268; uint8_t x_269; 
x_265 = lean_ctor_get(x_216, 1);
x_266 = lean_ctor_get(x_216, 2);
lean_inc(x_266);
lean_inc(x_265);
lean_dec(x_216);
x_267 = 0;
x_268 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_268, 0, x_217);
lean_ctor_set(x_268, 1, x_265);
lean_ctor_set(x_268, 2, x_266);
lean_ctor_set(x_268, 3, x_218);
lean_ctor_set_uint8(x_268, sizeof(void*)*4, x_267);
x_269 = 1;
lean_ctor_set(x_1, 0, x_268);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_269);
return x_1;
}
}
}
}
else
{
uint8_t x_270; 
x_270 = lean_ctor_get_uint8(x_217, sizeof(void*)*4);
if (x_270 == 0)
{
uint8_t x_271; 
x_271 = !lean_is_exclusive(x_216);
if (x_271 == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; uint8_t x_276; 
x_272 = lean_ctor_get(x_216, 1);
x_273 = lean_ctor_get(x_216, 2);
x_274 = lean_ctor_get(x_216, 3);
x_275 = lean_ctor_get(x_216, 0);
lean_dec(x_275);
x_276 = !lean_is_exclusive(x_217);
if (x_276 == 0)
{
uint8_t x_277; uint8_t x_278; 
x_277 = 1;
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_277);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_277);
x_278 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_217);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_278);
return x_1;
}
else
{
lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; uint8_t x_283; lean_object* x_284; uint8_t x_285; 
x_279 = lean_ctor_get(x_217, 0);
x_280 = lean_ctor_get(x_217, 1);
x_281 = lean_ctor_get(x_217, 2);
x_282 = lean_ctor_get(x_217, 3);
lean_inc(x_282);
lean_inc(x_281);
lean_inc(x_280);
lean_inc(x_279);
lean_dec(x_217);
x_283 = 1;
x_284 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_284, 0, x_279);
lean_ctor_set(x_284, 1, x_280);
lean_ctor_set(x_284, 2, x_281);
lean_ctor_set(x_284, 3, x_282);
lean_ctor_set_uint8(x_284, sizeof(void*)*4, x_283);
lean_ctor_set(x_216, 3, x_45);
lean_ctor_set(x_216, 2, x_44);
lean_ctor_set(x_216, 1, x_43);
lean_ctor_set(x_216, 0, x_274);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_283);
x_285 = 0;
lean_ctor_set(x_1, 3, x_216);
lean_ctor_set(x_1, 2, x_273);
lean_ctor_set(x_1, 1, x_272);
lean_ctor_set(x_1, 0, x_284);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_285);
return x_1;
}
}
else
{
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; uint8_t x_294; lean_object* x_295; lean_object* x_296; uint8_t x_297; 
x_286 = lean_ctor_get(x_216, 1);
x_287 = lean_ctor_get(x_216, 2);
x_288 = lean_ctor_get(x_216, 3);
lean_inc(x_288);
lean_inc(x_287);
lean_inc(x_286);
lean_dec(x_216);
x_289 = lean_ctor_get(x_217, 0);
lean_inc(x_289);
x_290 = lean_ctor_get(x_217, 1);
lean_inc(x_290);
x_291 = lean_ctor_get(x_217, 2);
lean_inc(x_291);
x_292 = lean_ctor_get(x_217, 3);
lean_inc(x_292);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_293 = x_217;
} else {
 lean_dec_ref(x_217);
 x_293 = lean_box(0);
}
x_294 = 1;
if (lean_is_scalar(x_293)) {
 x_295 = lean_alloc_ctor(1, 4, 1);
} else {
 x_295 = x_293;
}
lean_ctor_set(x_295, 0, x_289);
lean_ctor_set(x_295, 1, x_290);
lean_ctor_set(x_295, 2, x_291);
lean_ctor_set(x_295, 3, x_292);
lean_ctor_set_uint8(x_295, sizeof(void*)*4, x_294);
x_296 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_296, 0, x_288);
lean_ctor_set(x_296, 1, x_43);
lean_ctor_set(x_296, 2, x_44);
lean_ctor_set(x_296, 3, x_45);
lean_ctor_set_uint8(x_296, sizeof(void*)*4, x_294);
x_297 = 0;
lean_ctor_set(x_1, 3, x_296);
lean_ctor_set(x_1, 2, x_287);
lean_ctor_set(x_1, 1, x_286);
lean_ctor_set(x_1, 0, x_295);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_297);
return x_1;
}
}
else
{
lean_object* x_298; 
x_298 = lean_ctor_get(x_216, 3);
lean_inc(x_298);
if (lean_obj_tag(x_298) == 0)
{
uint8_t x_299; 
x_299 = !lean_is_exclusive(x_216);
if (x_299 == 0)
{
lean_object* x_300; lean_object* x_301; uint8_t x_302; uint8_t x_303; 
x_300 = lean_ctor_get(x_216, 3);
lean_dec(x_300);
x_301 = lean_ctor_get(x_216, 0);
lean_dec(x_301);
x_302 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_302);
x_303 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_303);
return x_1;
}
else
{
lean_object* x_304; lean_object* x_305; uint8_t x_306; lean_object* x_307; uint8_t x_308; 
x_304 = lean_ctor_get(x_216, 1);
x_305 = lean_ctor_get(x_216, 2);
lean_inc(x_305);
lean_inc(x_304);
lean_dec(x_216);
x_306 = 0;
x_307 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_307, 0, x_217);
lean_ctor_set(x_307, 1, x_304);
lean_ctor_set(x_307, 2, x_305);
lean_ctor_set(x_307, 3, x_298);
lean_ctor_set_uint8(x_307, sizeof(void*)*4, x_306);
x_308 = 1;
lean_ctor_set(x_1, 0, x_307);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_308);
return x_1;
}
}
else
{
uint8_t x_309; 
x_309 = lean_ctor_get_uint8(x_298, sizeof(void*)*4);
if (x_309 == 0)
{
uint8_t x_310; 
lean_free_object(x_1);
x_310 = !lean_is_exclusive(x_216);
if (x_310 == 0)
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; uint8_t x_315; 
x_311 = lean_ctor_get(x_216, 1);
x_312 = lean_ctor_get(x_216, 2);
x_313 = lean_ctor_get(x_216, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_216, 0);
lean_dec(x_314);
x_315 = !lean_is_exclusive(x_298);
if (x_315 == 0)
{
lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; uint8_t x_320; uint8_t x_321; 
x_316 = lean_ctor_get(x_298, 0);
x_317 = lean_ctor_get(x_298, 1);
x_318 = lean_ctor_get(x_298, 2);
x_319 = lean_ctor_get(x_298, 3);
x_320 = 1;
lean_inc(x_217);
lean_ctor_set(x_298, 3, x_316);
lean_ctor_set(x_298, 2, x_312);
lean_ctor_set(x_298, 1, x_311);
lean_ctor_set(x_298, 0, x_217);
x_321 = !lean_is_exclusive(x_217);
if (x_321 == 0)
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; uint8_t x_326; 
x_322 = lean_ctor_get(x_217, 3);
lean_dec(x_322);
x_323 = lean_ctor_get(x_217, 2);
lean_dec(x_323);
x_324 = lean_ctor_get(x_217, 1);
lean_dec(x_324);
x_325 = lean_ctor_get(x_217, 0);
lean_dec(x_325);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
lean_ctor_set(x_217, 3, x_45);
lean_ctor_set(x_217, 2, x_44);
lean_ctor_set(x_217, 1, x_43);
lean_ctor_set(x_217, 0, x_319);
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_320);
x_326 = 0;
lean_ctor_set(x_216, 3, x_217);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_326);
return x_216;
}
else
{
lean_object* x_327; uint8_t x_328; 
lean_dec(x_217);
lean_ctor_set_uint8(x_298, sizeof(void*)*4, x_320);
x_327 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_327, 0, x_319);
lean_ctor_set(x_327, 1, x_43);
lean_ctor_set(x_327, 2, x_44);
lean_ctor_set(x_327, 3, x_45);
lean_ctor_set_uint8(x_327, sizeof(void*)*4, x_320);
x_328 = 0;
lean_ctor_set(x_216, 3, x_327);
lean_ctor_set(x_216, 2, x_318);
lean_ctor_set(x_216, 1, x_317);
lean_ctor_set(x_216, 0, x_298);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_328);
return x_216;
}
}
else
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; uint8_t x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; uint8_t x_337; 
x_329 = lean_ctor_get(x_298, 0);
x_330 = lean_ctor_get(x_298, 1);
x_331 = lean_ctor_get(x_298, 2);
x_332 = lean_ctor_get(x_298, 3);
lean_inc(x_332);
lean_inc(x_331);
lean_inc(x_330);
lean_inc(x_329);
lean_dec(x_298);
x_333 = 1;
lean_inc(x_217);
x_334 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_334, 0, x_217);
lean_ctor_set(x_334, 1, x_311);
lean_ctor_set(x_334, 2, x_312);
lean_ctor_set(x_334, 3, x_329);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_335 = x_217;
} else {
 lean_dec_ref(x_217);
 x_335 = lean_box(0);
}
lean_ctor_set_uint8(x_334, sizeof(void*)*4, x_333);
if (lean_is_scalar(x_335)) {
 x_336 = lean_alloc_ctor(1, 4, 1);
} else {
 x_336 = x_335;
}
lean_ctor_set(x_336, 0, x_332);
lean_ctor_set(x_336, 1, x_43);
lean_ctor_set(x_336, 2, x_44);
lean_ctor_set(x_336, 3, x_45);
lean_ctor_set_uint8(x_336, sizeof(void*)*4, x_333);
x_337 = 0;
lean_ctor_set(x_216, 3, x_336);
lean_ctor_set(x_216, 2, x_331);
lean_ctor_set(x_216, 1, x_330);
lean_ctor_set(x_216, 0, x_334);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_337);
return x_216;
}
}
else
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; uint8_t x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; uint8_t x_349; lean_object* x_350; 
x_338 = lean_ctor_get(x_216, 1);
x_339 = lean_ctor_get(x_216, 2);
lean_inc(x_339);
lean_inc(x_338);
lean_dec(x_216);
x_340 = lean_ctor_get(x_298, 0);
lean_inc(x_340);
x_341 = lean_ctor_get(x_298, 1);
lean_inc(x_341);
x_342 = lean_ctor_get(x_298, 2);
lean_inc(x_342);
x_343 = lean_ctor_get(x_298, 3);
lean_inc(x_343);
if (lean_is_exclusive(x_298)) {
 lean_ctor_release(x_298, 0);
 lean_ctor_release(x_298, 1);
 lean_ctor_release(x_298, 2);
 lean_ctor_release(x_298, 3);
 x_344 = x_298;
} else {
 lean_dec_ref(x_298);
 x_344 = lean_box(0);
}
x_345 = 1;
lean_inc(x_217);
if (lean_is_scalar(x_344)) {
 x_346 = lean_alloc_ctor(1, 4, 1);
} else {
 x_346 = x_344;
}
lean_ctor_set(x_346, 0, x_217);
lean_ctor_set(x_346, 1, x_338);
lean_ctor_set(x_346, 2, x_339);
lean_ctor_set(x_346, 3, x_340);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_347 = x_217;
} else {
 lean_dec_ref(x_217);
 x_347 = lean_box(0);
}
lean_ctor_set_uint8(x_346, sizeof(void*)*4, x_345);
if (lean_is_scalar(x_347)) {
 x_348 = lean_alloc_ctor(1, 4, 1);
} else {
 x_348 = x_347;
}
lean_ctor_set(x_348, 0, x_343);
lean_ctor_set(x_348, 1, x_43);
lean_ctor_set(x_348, 2, x_44);
lean_ctor_set(x_348, 3, x_45);
lean_ctor_set_uint8(x_348, sizeof(void*)*4, x_345);
x_349 = 0;
x_350 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_350, 0, x_346);
lean_ctor_set(x_350, 1, x_341);
lean_ctor_set(x_350, 2, x_342);
lean_ctor_set(x_350, 3, x_348);
lean_ctor_set_uint8(x_350, sizeof(void*)*4, x_349);
return x_350;
}
}
else
{
uint8_t x_351; 
x_351 = !lean_is_exclusive(x_216);
if (x_351 == 0)
{
lean_object* x_352; lean_object* x_353; uint8_t x_354; 
x_352 = lean_ctor_get(x_216, 3);
lean_dec(x_352);
x_353 = lean_ctor_get(x_216, 0);
lean_dec(x_353);
x_354 = !lean_is_exclusive(x_217);
if (x_354 == 0)
{
uint8_t x_355; uint8_t x_356; 
lean_ctor_set_uint8(x_217, sizeof(void*)*4, x_309);
x_355 = 0;
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_355);
x_356 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_356);
return x_1;
}
else
{
lean_object* x_357; lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; uint8_t x_362; uint8_t x_363; 
x_357 = lean_ctor_get(x_217, 0);
x_358 = lean_ctor_get(x_217, 1);
x_359 = lean_ctor_get(x_217, 2);
x_360 = lean_ctor_get(x_217, 3);
lean_inc(x_360);
lean_inc(x_359);
lean_inc(x_358);
lean_inc(x_357);
lean_dec(x_217);
x_361 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_361, 0, x_357);
lean_ctor_set(x_361, 1, x_358);
lean_ctor_set(x_361, 2, x_359);
lean_ctor_set(x_361, 3, x_360);
lean_ctor_set_uint8(x_361, sizeof(void*)*4, x_309);
x_362 = 0;
lean_ctor_set(x_216, 0, x_361);
lean_ctor_set_uint8(x_216, sizeof(void*)*4, x_362);
x_363 = 1;
lean_ctor_set(x_1, 0, x_216);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_363);
return x_1;
}
}
else
{
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; uint8_t x_372; lean_object* x_373; uint8_t x_374; 
x_364 = lean_ctor_get(x_216, 1);
x_365 = lean_ctor_get(x_216, 2);
lean_inc(x_365);
lean_inc(x_364);
lean_dec(x_216);
x_366 = lean_ctor_get(x_217, 0);
lean_inc(x_366);
x_367 = lean_ctor_get(x_217, 1);
lean_inc(x_367);
x_368 = lean_ctor_get(x_217, 2);
lean_inc(x_368);
x_369 = lean_ctor_get(x_217, 3);
lean_inc(x_369);
if (lean_is_exclusive(x_217)) {
 lean_ctor_release(x_217, 0);
 lean_ctor_release(x_217, 1);
 lean_ctor_release(x_217, 2);
 lean_ctor_release(x_217, 3);
 x_370 = x_217;
} else {
 lean_dec_ref(x_217);
 x_370 = lean_box(0);
}
if (lean_is_scalar(x_370)) {
 x_371 = lean_alloc_ctor(1, 4, 1);
} else {
 x_371 = x_370;
}
lean_ctor_set(x_371, 0, x_366);
lean_ctor_set(x_371, 1, x_367);
lean_ctor_set(x_371, 2, x_368);
lean_ctor_set(x_371, 3, x_369);
lean_ctor_set_uint8(x_371, sizeof(void*)*4, x_309);
x_372 = 0;
x_373 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_373, 0, x_371);
lean_ctor_set(x_373, 1, x_364);
lean_ctor_set(x_373, 2, x_365);
lean_ctor_set(x_373, 3, x_298);
lean_ctor_set_uint8(x_373, sizeof(void*)*4, x_372);
x_374 = 1;
lean_ctor_set(x_1, 0, x_373);
lean_ctor_set_uint8(x_1, sizeof(void*)*4, x_374);
return x_1;
}
}
}
}
}
}
}
}
else
{
lean_object* x_375; lean_object* x_376; lean_object* x_377; lean_object* x_378; uint32_t x_379; uint8_t x_380; 
x_375 = lean_ctor_get(x_1, 0);
x_376 = lean_ctor_get(x_1, 1);
x_377 = lean_ctor_get(x_1, 2);
x_378 = lean_ctor_get(x_1, 3);
lean_inc(x_378);
lean_inc(x_377);
lean_inc(x_376);
lean_inc(x_375);
lean_dec(x_1);
x_379 = lean_unbox_uint32(x_376);
x_380 = lean_uint32_dec_lt(x_2, x_379);
if (x_380 == 0)
{
uint32_t x_381; uint8_t x_382; 
x_381 = lean_unbox_uint32(x_376);
x_382 = lean_uint32_dec_eq(x_2, x_381);
if (x_382 == 0)
{
uint8_t x_383; 
x_383 = l_Std_RBNode_isRed___rarg(x_378);
if (x_383 == 0)
{
lean_object* x_384; uint8_t x_385; lean_object* x_386; 
x_384 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_378, x_2, x_3);
x_385 = 1;
x_386 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_386, 0, x_375);
lean_ctor_set(x_386, 1, x_376);
lean_ctor_set(x_386, 2, x_377);
lean_ctor_set(x_386, 3, x_384);
lean_ctor_set_uint8(x_386, sizeof(void*)*4, x_385);
return x_386;
}
else
{
lean_object* x_387; lean_object* x_388; 
x_387 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_378, x_2, x_3);
x_388 = lean_ctor_get(x_387, 0);
lean_inc(x_388);
if (lean_obj_tag(x_388) == 0)
{
lean_object* x_389; 
x_389 = lean_ctor_get(x_387, 3);
lean_inc(x_389);
if (lean_obj_tag(x_389) == 0)
{
lean_object* x_390; lean_object* x_391; lean_object* x_392; uint8_t x_393; lean_object* x_394; uint8_t x_395; lean_object* x_396; 
x_390 = lean_ctor_get(x_387, 1);
lean_inc(x_390);
x_391 = lean_ctor_get(x_387, 2);
lean_inc(x_391);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_392 = x_387;
} else {
 lean_dec_ref(x_387);
 x_392 = lean_box(0);
}
x_393 = 0;
if (lean_is_scalar(x_392)) {
 x_394 = lean_alloc_ctor(1, 4, 1);
} else {
 x_394 = x_392;
}
lean_ctor_set(x_394, 0, x_389);
lean_ctor_set(x_394, 1, x_390);
lean_ctor_set(x_394, 2, x_391);
lean_ctor_set(x_394, 3, x_389);
lean_ctor_set_uint8(x_394, sizeof(void*)*4, x_393);
x_395 = 1;
x_396 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_376);
lean_ctor_set(x_396, 2, x_377);
lean_ctor_set(x_396, 3, x_394);
lean_ctor_set_uint8(x_396, sizeof(void*)*4, x_395);
return x_396;
}
else
{
uint8_t x_397; 
x_397 = lean_ctor_get_uint8(x_389, sizeof(void*)*4);
if (x_397 == 0)
{
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; uint8_t x_406; lean_object* x_407; lean_object* x_408; uint8_t x_409; lean_object* x_410; 
x_398 = lean_ctor_get(x_387, 1);
lean_inc(x_398);
x_399 = lean_ctor_get(x_387, 2);
lean_inc(x_399);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_400 = x_387;
} else {
 lean_dec_ref(x_387);
 x_400 = lean_box(0);
}
x_401 = lean_ctor_get(x_389, 0);
lean_inc(x_401);
x_402 = lean_ctor_get(x_389, 1);
lean_inc(x_402);
x_403 = lean_ctor_get(x_389, 2);
lean_inc(x_403);
x_404 = lean_ctor_get(x_389, 3);
lean_inc(x_404);
if (lean_is_exclusive(x_389)) {
 lean_ctor_release(x_389, 0);
 lean_ctor_release(x_389, 1);
 lean_ctor_release(x_389, 2);
 lean_ctor_release(x_389, 3);
 x_405 = x_389;
} else {
 lean_dec_ref(x_389);
 x_405 = lean_box(0);
}
x_406 = 1;
if (lean_is_scalar(x_405)) {
 x_407 = lean_alloc_ctor(1, 4, 1);
} else {
 x_407 = x_405;
}
lean_ctor_set(x_407, 0, x_375);
lean_ctor_set(x_407, 1, x_376);
lean_ctor_set(x_407, 2, x_377);
lean_ctor_set(x_407, 3, x_388);
lean_ctor_set_uint8(x_407, sizeof(void*)*4, x_406);
if (lean_is_scalar(x_400)) {
 x_408 = lean_alloc_ctor(1, 4, 1);
} else {
 x_408 = x_400;
}
lean_ctor_set(x_408, 0, x_401);
lean_ctor_set(x_408, 1, x_402);
lean_ctor_set(x_408, 2, x_403);
lean_ctor_set(x_408, 3, x_404);
lean_ctor_set_uint8(x_408, sizeof(void*)*4, x_406);
x_409 = 0;
x_410 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_410, 0, x_407);
lean_ctor_set(x_410, 1, x_398);
lean_ctor_set(x_410, 2, x_399);
lean_ctor_set(x_410, 3, x_408);
lean_ctor_set_uint8(x_410, sizeof(void*)*4, x_409);
return x_410;
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; uint8_t x_414; lean_object* x_415; uint8_t x_416; lean_object* x_417; 
x_411 = lean_ctor_get(x_387, 1);
lean_inc(x_411);
x_412 = lean_ctor_get(x_387, 2);
lean_inc(x_412);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_413 = x_387;
} else {
 lean_dec_ref(x_387);
 x_413 = lean_box(0);
}
x_414 = 0;
if (lean_is_scalar(x_413)) {
 x_415 = lean_alloc_ctor(1, 4, 1);
} else {
 x_415 = x_413;
}
lean_ctor_set(x_415, 0, x_388);
lean_ctor_set(x_415, 1, x_411);
lean_ctor_set(x_415, 2, x_412);
lean_ctor_set(x_415, 3, x_389);
lean_ctor_set_uint8(x_415, sizeof(void*)*4, x_414);
x_416 = 1;
x_417 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_417, 0, x_375);
lean_ctor_set(x_417, 1, x_376);
lean_ctor_set(x_417, 2, x_377);
lean_ctor_set(x_417, 3, x_415);
lean_ctor_set_uint8(x_417, sizeof(void*)*4, x_416);
return x_417;
}
}
}
else
{
uint8_t x_418; 
x_418 = lean_ctor_get_uint8(x_388, sizeof(void*)*4);
if (x_418 == 0)
{
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; uint8_t x_428; lean_object* x_429; lean_object* x_430; uint8_t x_431; lean_object* x_432; 
x_419 = lean_ctor_get(x_387, 1);
lean_inc(x_419);
x_420 = lean_ctor_get(x_387, 2);
lean_inc(x_420);
x_421 = lean_ctor_get(x_387, 3);
lean_inc(x_421);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_422 = x_387;
} else {
 lean_dec_ref(x_387);
 x_422 = lean_box(0);
}
x_423 = lean_ctor_get(x_388, 0);
lean_inc(x_423);
x_424 = lean_ctor_get(x_388, 1);
lean_inc(x_424);
x_425 = lean_ctor_get(x_388, 2);
lean_inc(x_425);
x_426 = lean_ctor_get(x_388, 3);
lean_inc(x_426);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_427 = x_388;
} else {
 lean_dec_ref(x_388);
 x_427 = lean_box(0);
}
x_428 = 1;
if (lean_is_scalar(x_427)) {
 x_429 = lean_alloc_ctor(1, 4, 1);
} else {
 x_429 = x_427;
}
lean_ctor_set(x_429, 0, x_375);
lean_ctor_set(x_429, 1, x_376);
lean_ctor_set(x_429, 2, x_377);
lean_ctor_set(x_429, 3, x_423);
lean_ctor_set_uint8(x_429, sizeof(void*)*4, x_428);
if (lean_is_scalar(x_422)) {
 x_430 = lean_alloc_ctor(1, 4, 1);
} else {
 x_430 = x_422;
}
lean_ctor_set(x_430, 0, x_426);
lean_ctor_set(x_430, 1, x_419);
lean_ctor_set(x_430, 2, x_420);
lean_ctor_set(x_430, 3, x_421);
lean_ctor_set_uint8(x_430, sizeof(void*)*4, x_428);
x_431 = 0;
x_432 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_432, 0, x_429);
lean_ctor_set(x_432, 1, x_424);
lean_ctor_set(x_432, 2, x_425);
lean_ctor_set(x_432, 3, x_430);
lean_ctor_set_uint8(x_432, sizeof(void*)*4, x_431);
return x_432;
}
else
{
lean_object* x_433; 
x_433 = lean_ctor_get(x_387, 3);
lean_inc(x_433);
if (lean_obj_tag(x_433) == 0)
{
lean_object* x_434; lean_object* x_435; lean_object* x_436; uint8_t x_437; lean_object* x_438; uint8_t x_439; lean_object* x_440; 
x_434 = lean_ctor_get(x_387, 1);
lean_inc(x_434);
x_435 = lean_ctor_get(x_387, 2);
lean_inc(x_435);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_436 = x_387;
} else {
 lean_dec_ref(x_387);
 x_436 = lean_box(0);
}
x_437 = 0;
if (lean_is_scalar(x_436)) {
 x_438 = lean_alloc_ctor(1, 4, 1);
} else {
 x_438 = x_436;
}
lean_ctor_set(x_438, 0, x_388);
lean_ctor_set(x_438, 1, x_434);
lean_ctor_set(x_438, 2, x_435);
lean_ctor_set(x_438, 3, x_433);
lean_ctor_set_uint8(x_438, sizeof(void*)*4, x_437);
x_439 = 1;
x_440 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_440, 0, x_375);
lean_ctor_set(x_440, 1, x_376);
lean_ctor_set(x_440, 2, x_377);
lean_ctor_set(x_440, 3, x_438);
lean_ctor_set_uint8(x_440, sizeof(void*)*4, x_439);
return x_440;
}
else
{
uint8_t x_441; 
x_441 = lean_ctor_get_uint8(x_433, sizeof(void*)*4);
if (x_441 == 0)
{
lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; lean_object* x_449; uint8_t x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; uint8_t x_454; lean_object* x_455; 
x_442 = lean_ctor_get(x_387, 1);
lean_inc(x_442);
x_443 = lean_ctor_get(x_387, 2);
lean_inc(x_443);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_444 = x_387;
} else {
 lean_dec_ref(x_387);
 x_444 = lean_box(0);
}
x_445 = lean_ctor_get(x_433, 0);
lean_inc(x_445);
x_446 = lean_ctor_get(x_433, 1);
lean_inc(x_446);
x_447 = lean_ctor_get(x_433, 2);
lean_inc(x_447);
x_448 = lean_ctor_get(x_433, 3);
lean_inc(x_448);
if (lean_is_exclusive(x_433)) {
 lean_ctor_release(x_433, 0);
 lean_ctor_release(x_433, 1);
 lean_ctor_release(x_433, 2);
 lean_ctor_release(x_433, 3);
 x_449 = x_433;
} else {
 lean_dec_ref(x_433);
 x_449 = lean_box(0);
}
x_450 = 1;
lean_inc(x_388);
if (lean_is_scalar(x_449)) {
 x_451 = lean_alloc_ctor(1, 4, 1);
} else {
 x_451 = x_449;
}
lean_ctor_set(x_451, 0, x_375);
lean_ctor_set(x_451, 1, x_376);
lean_ctor_set(x_451, 2, x_377);
lean_ctor_set(x_451, 3, x_388);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_452 = x_388;
} else {
 lean_dec_ref(x_388);
 x_452 = lean_box(0);
}
lean_ctor_set_uint8(x_451, sizeof(void*)*4, x_450);
if (lean_is_scalar(x_452)) {
 x_453 = lean_alloc_ctor(1, 4, 1);
} else {
 x_453 = x_452;
}
lean_ctor_set(x_453, 0, x_445);
lean_ctor_set(x_453, 1, x_446);
lean_ctor_set(x_453, 2, x_447);
lean_ctor_set(x_453, 3, x_448);
lean_ctor_set_uint8(x_453, sizeof(void*)*4, x_450);
x_454 = 0;
if (lean_is_scalar(x_444)) {
 x_455 = lean_alloc_ctor(1, 4, 1);
} else {
 x_455 = x_444;
}
lean_ctor_set(x_455, 0, x_451);
lean_ctor_set(x_455, 1, x_442);
lean_ctor_set(x_455, 2, x_443);
lean_ctor_set(x_455, 3, x_453);
lean_ctor_set_uint8(x_455, sizeof(void*)*4, x_454);
return x_455;
}
else
{
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; uint8_t x_465; lean_object* x_466; uint8_t x_467; lean_object* x_468; 
x_456 = lean_ctor_get(x_387, 1);
lean_inc(x_456);
x_457 = lean_ctor_get(x_387, 2);
lean_inc(x_457);
if (lean_is_exclusive(x_387)) {
 lean_ctor_release(x_387, 0);
 lean_ctor_release(x_387, 1);
 lean_ctor_release(x_387, 2);
 lean_ctor_release(x_387, 3);
 x_458 = x_387;
} else {
 lean_dec_ref(x_387);
 x_458 = lean_box(0);
}
x_459 = lean_ctor_get(x_388, 0);
lean_inc(x_459);
x_460 = lean_ctor_get(x_388, 1);
lean_inc(x_460);
x_461 = lean_ctor_get(x_388, 2);
lean_inc(x_461);
x_462 = lean_ctor_get(x_388, 3);
lean_inc(x_462);
if (lean_is_exclusive(x_388)) {
 lean_ctor_release(x_388, 0);
 lean_ctor_release(x_388, 1);
 lean_ctor_release(x_388, 2);
 lean_ctor_release(x_388, 3);
 x_463 = x_388;
} else {
 lean_dec_ref(x_388);
 x_463 = lean_box(0);
}
if (lean_is_scalar(x_463)) {
 x_464 = lean_alloc_ctor(1, 4, 1);
} else {
 x_464 = x_463;
}
lean_ctor_set(x_464, 0, x_459);
lean_ctor_set(x_464, 1, x_460);
lean_ctor_set(x_464, 2, x_461);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set_uint8(x_464, sizeof(void*)*4, x_441);
x_465 = 0;
if (lean_is_scalar(x_458)) {
 x_466 = lean_alloc_ctor(1, 4, 1);
} else {
 x_466 = x_458;
}
lean_ctor_set(x_466, 0, x_464);
lean_ctor_set(x_466, 1, x_456);
lean_ctor_set(x_466, 2, x_457);
lean_ctor_set(x_466, 3, x_433);
lean_ctor_set_uint8(x_466, sizeof(void*)*4, x_465);
x_467 = 1;
x_468 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_468, 0, x_375);
lean_ctor_set(x_468, 1, x_376);
lean_ctor_set(x_468, 2, x_377);
lean_ctor_set(x_468, 3, x_466);
lean_ctor_set_uint8(x_468, sizeof(void*)*4, x_467);
return x_468;
}
}
}
}
}
}
else
{
uint8_t x_469; lean_object* x_470; lean_object* x_471; 
lean_dec(x_377);
lean_dec(x_376);
x_469 = 1;
x_470 = lean_box_uint32(x_2);
x_471 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_471, 0, x_375);
lean_ctor_set(x_471, 1, x_470);
lean_ctor_set(x_471, 2, x_3);
lean_ctor_set(x_471, 3, x_378);
lean_ctor_set_uint8(x_471, sizeof(void*)*4, x_469);
return x_471;
}
}
else
{
uint8_t x_472; 
x_472 = l_Std_RBNode_isRed___rarg(x_375);
if (x_472 == 0)
{
lean_object* x_473; uint8_t x_474; lean_object* x_475; 
x_473 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_375, x_2, x_3);
x_474 = 1;
x_475 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_475, 0, x_473);
lean_ctor_set(x_475, 1, x_376);
lean_ctor_set(x_475, 2, x_377);
lean_ctor_set(x_475, 3, x_378);
lean_ctor_set_uint8(x_475, sizeof(void*)*4, x_474);
return x_475;
}
else
{
lean_object* x_476; lean_object* x_477; 
x_476 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_375, x_2, x_3);
x_477 = lean_ctor_get(x_476, 0);
lean_inc(x_477);
if (lean_obj_tag(x_477) == 0)
{
lean_object* x_478; 
x_478 = lean_ctor_get(x_476, 3);
lean_inc(x_478);
if (lean_obj_tag(x_478) == 0)
{
lean_object* x_479; lean_object* x_480; lean_object* x_481; uint8_t x_482; lean_object* x_483; uint8_t x_484; lean_object* x_485; 
x_479 = lean_ctor_get(x_476, 1);
lean_inc(x_479);
x_480 = lean_ctor_get(x_476, 2);
lean_inc(x_480);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_481 = x_476;
} else {
 lean_dec_ref(x_476);
 x_481 = lean_box(0);
}
x_482 = 0;
if (lean_is_scalar(x_481)) {
 x_483 = lean_alloc_ctor(1, 4, 1);
} else {
 x_483 = x_481;
}
lean_ctor_set(x_483, 0, x_478);
lean_ctor_set(x_483, 1, x_479);
lean_ctor_set(x_483, 2, x_480);
lean_ctor_set(x_483, 3, x_478);
lean_ctor_set_uint8(x_483, sizeof(void*)*4, x_482);
x_484 = 1;
x_485 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_485, 0, x_483);
lean_ctor_set(x_485, 1, x_376);
lean_ctor_set(x_485, 2, x_377);
lean_ctor_set(x_485, 3, x_378);
lean_ctor_set_uint8(x_485, sizeof(void*)*4, x_484);
return x_485;
}
else
{
uint8_t x_486; 
x_486 = lean_ctor_get_uint8(x_478, sizeof(void*)*4);
if (x_486 == 0)
{
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; uint8_t x_495; lean_object* x_496; lean_object* x_497; uint8_t x_498; lean_object* x_499; 
x_487 = lean_ctor_get(x_476, 1);
lean_inc(x_487);
x_488 = lean_ctor_get(x_476, 2);
lean_inc(x_488);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_489 = x_476;
} else {
 lean_dec_ref(x_476);
 x_489 = lean_box(0);
}
x_490 = lean_ctor_get(x_478, 0);
lean_inc(x_490);
x_491 = lean_ctor_get(x_478, 1);
lean_inc(x_491);
x_492 = lean_ctor_get(x_478, 2);
lean_inc(x_492);
x_493 = lean_ctor_get(x_478, 3);
lean_inc(x_493);
if (lean_is_exclusive(x_478)) {
 lean_ctor_release(x_478, 0);
 lean_ctor_release(x_478, 1);
 lean_ctor_release(x_478, 2);
 lean_ctor_release(x_478, 3);
 x_494 = x_478;
} else {
 lean_dec_ref(x_478);
 x_494 = lean_box(0);
}
x_495 = 1;
if (lean_is_scalar(x_494)) {
 x_496 = lean_alloc_ctor(1, 4, 1);
} else {
 x_496 = x_494;
}
lean_ctor_set(x_496, 0, x_477);
lean_ctor_set(x_496, 1, x_487);
lean_ctor_set(x_496, 2, x_488);
lean_ctor_set(x_496, 3, x_490);
lean_ctor_set_uint8(x_496, sizeof(void*)*4, x_495);
if (lean_is_scalar(x_489)) {
 x_497 = lean_alloc_ctor(1, 4, 1);
} else {
 x_497 = x_489;
}
lean_ctor_set(x_497, 0, x_493);
lean_ctor_set(x_497, 1, x_376);
lean_ctor_set(x_497, 2, x_377);
lean_ctor_set(x_497, 3, x_378);
lean_ctor_set_uint8(x_497, sizeof(void*)*4, x_495);
x_498 = 0;
x_499 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_499, 0, x_496);
lean_ctor_set(x_499, 1, x_491);
lean_ctor_set(x_499, 2, x_492);
lean_ctor_set(x_499, 3, x_497);
lean_ctor_set_uint8(x_499, sizeof(void*)*4, x_498);
return x_499;
}
else
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; lean_object* x_504; uint8_t x_505; lean_object* x_506; 
x_500 = lean_ctor_get(x_476, 1);
lean_inc(x_500);
x_501 = lean_ctor_get(x_476, 2);
lean_inc(x_501);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_502 = x_476;
} else {
 lean_dec_ref(x_476);
 x_502 = lean_box(0);
}
x_503 = 0;
if (lean_is_scalar(x_502)) {
 x_504 = lean_alloc_ctor(1, 4, 1);
} else {
 x_504 = x_502;
}
lean_ctor_set(x_504, 0, x_477);
lean_ctor_set(x_504, 1, x_500);
lean_ctor_set(x_504, 2, x_501);
lean_ctor_set(x_504, 3, x_478);
lean_ctor_set_uint8(x_504, sizeof(void*)*4, x_503);
x_505 = 1;
x_506 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_506, 0, x_504);
lean_ctor_set(x_506, 1, x_376);
lean_ctor_set(x_506, 2, x_377);
lean_ctor_set(x_506, 3, x_378);
lean_ctor_set_uint8(x_506, sizeof(void*)*4, x_505);
return x_506;
}
}
}
else
{
uint8_t x_507; 
x_507 = lean_ctor_get_uint8(x_477, sizeof(void*)*4);
if (x_507 == 0)
{
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; uint8_t x_517; lean_object* x_518; lean_object* x_519; uint8_t x_520; lean_object* x_521; 
x_508 = lean_ctor_get(x_476, 1);
lean_inc(x_508);
x_509 = lean_ctor_get(x_476, 2);
lean_inc(x_509);
x_510 = lean_ctor_get(x_476, 3);
lean_inc(x_510);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_511 = x_476;
} else {
 lean_dec_ref(x_476);
 x_511 = lean_box(0);
}
x_512 = lean_ctor_get(x_477, 0);
lean_inc(x_512);
x_513 = lean_ctor_get(x_477, 1);
lean_inc(x_513);
x_514 = lean_ctor_get(x_477, 2);
lean_inc(x_514);
x_515 = lean_ctor_get(x_477, 3);
lean_inc(x_515);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_516 = x_477;
} else {
 lean_dec_ref(x_477);
 x_516 = lean_box(0);
}
x_517 = 1;
if (lean_is_scalar(x_516)) {
 x_518 = lean_alloc_ctor(1, 4, 1);
} else {
 x_518 = x_516;
}
lean_ctor_set(x_518, 0, x_512);
lean_ctor_set(x_518, 1, x_513);
lean_ctor_set(x_518, 2, x_514);
lean_ctor_set(x_518, 3, x_515);
lean_ctor_set_uint8(x_518, sizeof(void*)*4, x_517);
if (lean_is_scalar(x_511)) {
 x_519 = lean_alloc_ctor(1, 4, 1);
} else {
 x_519 = x_511;
}
lean_ctor_set(x_519, 0, x_510);
lean_ctor_set(x_519, 1, x_376);
lean_ctor_set(x_519, 2, x_377);
lean_ctor_set(x_519, 3, x_378);
lean_ctor_set_uint8(x_519, sizeof(void*)*4, x_517);
x_520 = 0;
x_521 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_521, 0, x_518);
lean_ctor_set(x_521, 1, x_508);
lean_ctor_set(x_521, 2, x_509);
lean_ctor_set(x_521, 3, x_519);
lean_ctor_set_uint8(x_521, sizeof(void*)*4, x_520);
return x_521;
}
else
{
lean_object* x_522; 
x_522 = lean_ctor_get(x_476, 3);
lean_inc(x_522);
if (lean_obj_tag(x_522) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; uint8_t x_526; lean_object* x_527; uint8_t x_528; lean_object* x_529; 
x_523 = lean_ctor_get(x_476, 1);
lean_inc(x_523);
x_524 = lean_ctor_get(x_476, 2);
lean_inc(x_524);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_525 = x_476;
} else {
 lean_dec_ref(x_476);
 x_525 = lean_box(0);
}
x_526 = 0;
if (lean_is_scalar(x_525)) {
 x_527 = lean_alloc_ctor(1, 4, 1);
} else {
 x_527 = x_525;
}
lean_ctor_set(x_527, 0, x_477);
lean_ctor_set(x_527, 1, x_523);
lean_ctor_set(x_527, 2, x_524);
lean_ctor_set(x_527, 3, x_522);
lean_ctor_set_uint8(x_527, sizeof(void*)*4, x_526);
x_528 = 1;
x_529 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_529, 0, x_527);
lean_ctor_set(x_529, 1, x_376);
lean_ctor_set(x_529, 2, x_377);
lean_ctor_set(x_529, 3, x_378);
lean_ctor_set_uint8(x_529, sizeof(void*)*4, x_528);
return x_529;
}
else
{
uint8_t x_530; 
x_530 = lean_ctor_get_uint8(x_522, sizeof(void*)*4);
if (x_530 == 0)
{
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; uint8_t x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; uint8_t x_543; lean_object* x_544; 
x_531 = lean_ctor_get(x_476, 1);
lean_inc(x_531);
x_532 = lean_ctor_get(x_476, 2);
lean_inc(x_532);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_533 = x_476;
} else {
 lean_dec_ref(x_476);
 x_533 = lean_box(0);
}
x_534 = lean_ctor_get(x_522, 0);
lean_inc(x_534);
x_535 = lean_ctor_get(x_522, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_522, 2);
lean_inc(x_536);
x_537 = lean_ctor_get(x_522, 3);
lean_inc(x_537);
if (lean_is_exclusive(x_522)) {
 lean_ctor_release(x_522, 0);
 lean_ctor_release(x_522, 1);
 lean_ctor_release(x_522, 2);
 lean_ctor_release(x_522, 3);
 x_538 = x_522;
} else {
 lean_dec_ref(x_522);
 x_538 = lean_box(0);
}
x_539 = 1;
lean_inc(x_477);
if (lean_is_scalar(x_538)) {
 x_540 = lean_alloc_ctor(1, 4, 1);
} else {
 x_540 = x_538;
}
lean_ctor_set(x_540, 0, x_477);
lean_ctor_set(x_540, 1, x_531);
lean_ctor_set(x_540, 2, x_532);
lean_ctor_set(x_540, 3, x_534);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_541 = x_477;
} else {
 lean_dec_ref(x_477);
 x_541 = lean_box(0);
}
lean_ctor_set_uint8(x_540, sizeof(void*)*4, x_539);
if (lean_is_scalar(x_541)) {
 x_542 = lean_alloc_ctor(1, 4, 1);
} else {
 x_542 = x_541;
}
lean_ctor_set(x_542, 0, x_537);
lean_ctor_set(x_542, 1, x_376);
lean_ctor_set(x_542, 2, x_377);
lean_ctor_set(x_542, 3, x_378);
lean_ctor_set_uint8(x_542, sizeof(void*)*4, x_539);
x_543 = 0;
if (lean_is_scalar(x_533)) {
 x_544 = lean_alloc_ctor(1, 4, 1);
} else {
 x_544 = x_533;
}
lean_ctor_set(x_544, 0, x_540);
lean_ctor_set(x_544, 1, x_535);
lean_ctor_set(x_544, 2, x_536);
lean_ctor_set(x_544, 3, x_542);
lean_ctor_set_uint8(x_544, sizeof(void*)*4, x_543);
return x_544;
}
else
{
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; uint8_t x_554; lean_object* x_555; uint8_t x_556; lean_object* x_557; 
x_545 = lean_ctor_get(x_476, 1);
lean_inc(x_545);
x_546 = lean_ctor_get(x_476, 2);
lean_inc(x_546);
if (lean_is_exclusive(x_476)) {
 lean_ctor_release(x_476, 0);
 lean_ctor_release(x_476, 1);
 lean_ctor_release(x_476, 2);
 lean_ctor_release(x_476, 3);
 x_547 = x_476;
} else {
 lean_dec_ref(x_476);
 x_547 = lean_box(0);
}
x_548 = lean_ctor_get(x_477, 0);
lean_inc(x_548);
x_549 = lean_ctor_get(x_477, 1);
lean_inc(x_549);
x_550 = lean_ctor_get(x_477, 2);
lean_inc(x_550);
x_551 = lean_ctor_get(x_477, 3);
lean_inc(x_551);
if (lean_is_exclusive(x_477)) {
 lean_ctor_release(x_477, 0);
 lean_ctor_release(x_477, 1);
 lean_ctor_release(x_477, 2);
 lean_ctor_release(x_477, 3);
 x_552 = x_477;
} else {
 lean_dec_ref(x_477);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(1, 4, 1);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_549);
lean_ctor_set(x_553, 2, x_550);
lean_ctor_set(x_553, 3, x_551);
lean_ctor_set_uint8(x_553, sizeof(void*)*4, x_530);
x_554 = 0;
if (lean_is_scalar(x_547)) {
 x_555 = lean_alloc_ctor(1, 4, 1);
} else {
 x_555 = x_547;
}
lean_ctor_set(x_555, 0, x_553);
lean_ctor_set(x_555, 1, x_545);
lean_ctor_set(x_555, 2, x_546);
lean_ctor_set(x_555, 3, x_522);
lean_ctor_set_uint8(x_555, sizeof(void*)*4, x_554);
x_556 = 1;
x_557 = lean_alloc_ctor(1, 4, 1);
lean_ctor_set(x_557, 0, x_555);
lean_ctor_set(x_557, 1, x_376);
lean_ctor_set(x_557, 2, x_377);
lean_ctor_set(x_557, 3, x_378);
lean_ctor_set_uint8(x_557, sizeof(void*)*4, x_556);
return x_557;
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg(lean_object* x_1, uint32_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Std_RBNode_isRed___rarg(x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_1, x_2, x_3);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_1, x_2, x_3);
x_7 = l_Std_RBNode_setBlack___rarg(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_loop___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_ctor_get(x_3, 0);
x_7 = lean_ctor_get(x_3, 1);
x_8 = lean_string_utf8_at_end(x_1, x_4);
if (x_8 == 0)
{
uint32_t x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_string_utf8_get(x_1, x_4);
x_10 = lean_string_utf8_next(x_1, x_4);
lean_inc(x_7);
x_11 = l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg(x_7, x_9);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = l_Lean_Parser_Trie_insert_insertEmpty___rarg(x_1, x_2, x_10);
lean_dec(x_10);
x_13 = l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg(x_7, x_9, x_12);
lean_ctor_set(x_3, 1, x_13);
return x_3;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_11, 0);
lean_inc(x_14);
lean_dec(x_11);
x_15 = l_Lean_Parser_Trie_insert_loop___rarg(x_1, x_2, x_14, x_10);
lean_dec(x_10);
x_16 = l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg(x_7, x_9, x_15);
lean_ctor_set(x_3, 1, x_16);
return x_3;
}
}
else
{
lean_object* x_17; 
lean_dec(x_6);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_2);
lean_ctor_set(x_3, 0, x_17);
return x_3;
}
}
else
{
lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_18 = lean_ctor_get(x_3, 0);
x_19 = lean_ctor_get(x_3, 1);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_3);
x_20 = lean_string_utf8_at_end(x_1, x_4);
if (x_20 == 0)
{
uint32_t x_21; lean_object* x_22; lean_object* x_23; 
x_21 = lean_string_utf8_get(x_1, x_4);
x_22 = lean_string_utf8_next(x_1, x_4);
lean_inc(x_19);
x_23 = l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg(x_19, x_21);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_24 = l_Lean_Parser_Trie_insert_insertEmpty___rarg(x_1, x_2, x_22);
lean_dec(x_22);
x_25 = l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg(x_19, x_21, x_24);
x_26 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_26, 0, x_18);
lean_ctor_set(x_26, 1, x_25);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_27 = lean_ctor_get(x_23, 0);
lean_inc(x_27);
lean_dec(x_23);
x_28 = l_Lean_Parser_Trie_insert_loop___rarg(x_1, x_2, x_27, x_22);
lean_dec(x_22);
x_29 = l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg(x_19, x_21, x_28);
x_30 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_30, 0, x_18);
lean_ctor_set(x_30, 1, x_29);
return x_30;
}
}
else
{
lean_object* x_31; lean_object* x_32; 
lean_dec(x_18);
x_31 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_31, 0, x_2);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_19);
return x_32;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_loop(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_insert_loop___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint32_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_4 = l_Std_RBNode_find___at_Lean_Parser_Trie_insert_loop___spec__1___rarg(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__3___rarg(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__4___rarg(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__2___rarg(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__6___rarg(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Std_RBNode_ins___at_Lean_Parser_Trie_insert_loop___spec__7___rarg(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint32_t x_4; lean_object* x_5; 
x_4 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_5 = l_Std_RBNode_insert___at_Lean_Parser_Trie_insert_loop___spec__5___rarg(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert_loop___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Parser_Trie_insert_loop___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = l_Lean_Parser_Trie_insert_loop___rarg(x_2, x_3, x_1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_insert___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_insert___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Parser_Trie_insert___rarg(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1___rarg(lean_object* x_1, uint32_t x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint32_t x_8; uint8_t x_9; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_unbox_uint32(x_5);
x_9 = lean_uint32_dec_lt(x_2, x_8);
if (x_9 == 0)
{
uint32_t x_10; uint8_t x_11; 
lean_dec(x_4);
x_10 = lean_unbox_uint32(x_5);
lean_dec(x_5);
x_11 = lean_uint32_dec_eq(x_2, x_10);
if (x_11 == 0)
{
lean_dec(x_6);
x_1 = x_7;
goto _start;
}
else
{
lean_object* x_13; 
lean_dec(x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_6);
return x_13;
}
}
else
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_1 = x_4;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1___rarg___boxed), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f_loop___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
lean_dec(x_2);
x_6 = lean_string_utf8_at_end(x_1, x_3);
if (x_6 == 0)
{
uint32_t x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
x_7 = lean_string_utf8_get(x_1, x_3);
x_8 = lean_string_utf8_next(x_1, x_3);
lean_dec(x_3);
x_9 = l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1___rarg(x_5, x_7);
if (lean_obj_tag(x_9) == 0)
{
lean_object* x_10; 
lean_dec(x_8);
x_10 = lean_box(0);
return x_10;
}
else
{
lean_object* x_11; 
x_11 = lean_ctor_get(x_9, 0);
lean_inc(x_11);
lean_dec(x_9);
x_2 = x_11;
x_3 = x_8;
goto _start;
}
}
else
{
lean_dec(x_5);
lean_dec(x_3);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f_loop(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_find_x3f_loop___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint32_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_4 = l_Std_RBNode_find___at_Lean_Parser_Trie_find_x3f_loop___spec__1___rarg(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f_loop___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Parser_Trie_find_x3f_loop___rarg(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_unsigned_to_nat(0u);
x_4 = l_Lean_Parser_Trie_find_x3f_loop___rarg(x_2, x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_find_x3f___rarg___boxed), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_find_x3f___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Parser_Trie_find_x3f___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_box(0);
x_4 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
else
{
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; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc(x_7);
lean_dec(x_1);
x_8 = l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1___rarg(x_5, x_2);
x_9 = lean_ctor_get(x_8, 1);
lean_inc(x_9);
lean_dec(x_8);
x_10 = l_Lean_Parser_Trie_findPrefix_collect___rarg(x_6, x_9);
x_11 = lean_ctor_get(x_10, 1);
lean_inc(x_11);
lean_dec(x_10);
x_1 = x_7;
x_2 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1___rarg), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_collect___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
lean_dec(x_2);
x_4 = l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1___rarg(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_collect___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_1, 1);
lean_inc(x_4);
lean_dec(x_1);
x_5 = l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1___rarg(x_4, x_2);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec(x_3);
x_8 = lean_array_push(x_2, x_7);
x_9 = l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_collect___spec__1___rarg(x_6, x_8);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_collect(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_findPrefix_collect___rarg), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg(lean_object* x_1, uint32_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec(x_3);
x_6 = lean_box(0);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_5);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint32_t x_14; uint8_t x_15; 
x_8 = lean_ctor_get(x_4, 0);
lean_inc(x_8);
x_9 = lean_ctor_get(x_4, 1);
lean_inc(x_9);
x_10 = lean_ctor_get(x_4, 2);
lean_inc(x_10);
x_11 = lean_ctor_get(x_4, 3);
lean_inc(x_11);
lean_dec(x_4);
lean_inc(x_3);
x_12 = l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg(x_1, x_2, x_3, x_8, x_5);
x_13 = lean_ctor_get(x_12, 1);
lean_inc(x_13);
lean_dec(x_12);
x_14 = lean_unbox_uint32(x_9);
lean_dec(x_9);
x_15 = lean_uint32_dec_eq(x_2, x_14);
if (x_15 == 0)
{
lean_dec(x_10);
x_4 = x_11;
x_5 = x_13;
goto _start;
}
else
{
lean_object* x_17; lean_object* x_18; 
lean_inc(x_3);
x_17 = l_Lean_Parser_Trie_findPrefix_go___rarg(x_1, x_10, x_3, x_13);
x_18 = lean_ctor_get(x_17, 1);
lean_inc(x_18);
lean_dec(x_17);
x_4 = x_11;
x_5 = x_18;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_go___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_string_utf8_at_end(x_1, x_3);
if (x_5 == 0)
{
uint32_t x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_string_utf8_get(x_1, x_3);
x_7 = lean_string_utf8_next(x_1, x_3);
lean_dec(x_3);
x_8 = lean_ctor_get(x_2, 1);
lean_inc(x_8);
lean_dec(x_2);
x_9 = l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg(x_1, x_6, x_7, x_8, x_4);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_3);
x_10 = l_Lean_Parser_Trie_findPrefix_collect___rarg(x_2, x_4);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_go(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_findPrefix_go___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint32_t x_6; lean_object* x_7; 
x_6 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_7 = l_Std_RBNode_forM___at_Lean_Parser_Trie_findPrefix_go___spec__1___rarg(x_1, x_6, x_3, x_4, x_5);
lean_dec(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix_go___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Parser_Trie_findPrefix_go___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Parser_Trie_findPrefix___rarg___closed__1() {
_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;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_unsigned_to_nat(0u);
x_4 = l_Lean_Parser_Trie_findPrefix___rarg___closed__1;
x_5 = l_Lean_Parser_Trie_findPrefix_go___rarg(x_2, x_1, x_3, x_4);
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_findPrefix___rarg___boxed), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_findPrefix___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Parser_Trie_findPrefix___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_dec(x_2);
lean_inc(x_3);
return x_3;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_1);
if (x_4 == 0)
{
lean_object* x_5; 
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_1);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec(x_1);
x_7 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_7, 0, x_6);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_2);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1___rarg(lean_object* x_1, uint32_t x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint32_t x_8; uint8_t x_9; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_unbox_uint32(x_5);
x_9 = lean_uint32_dec_lt(x_2, x_8);
if (x_9 == 0)
{
uint32_t x_10; uint8_t x_11; 
lean_dec(x_4);
x_10 = lean_unbox_uint32(x_5);
lean_dec(x_5);
x_11 = lean_uint32_dec_eq(x_2, x_10);
if (x_11 == 0)
{
lean_dec(x_6);
x_1 = x_7;
goto _start;
}
else
{
lean_object* x_13; 
lean_dec(x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_6);
return x_13;
}
}
else
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_1 = x_4;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1___rarg___boxed), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix_loop___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_ctor_get(x_2, 0);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 1);
lean_inc(x_6);
lean_dec(x_2);
x_7 = lean_string_utf8_at_end(x_1, x_3);
if (x_7 == 0)
{
lean_object* x_8; uint32_t x_9; lean_object* x_10; lean_object* x_11; 
lean_inc(x_3);
x_8 = l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg(x_5, x_3, x_4);
lean_dec(x_4);
x_9 = lean_string_utf8_get(x_1, x_3);
x_10 = lean_string_utf8_next(x_1, x_3);
lean_dec(x_3);
x_11 = l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1___rarg(x_6, x_9);
if (lean_obj_tag(x_11) == 0)
{
lean_dec(x_10);
return x_8;
}
else
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
lean_dec(x_11);
x_2 = x_12;
x_3 = x_10;
x_4 = x_8;
goto _start;
}
}
else
{
lean_object* x_14; 
lean_dec(x_6);
x_14 = l___private_Lean_Data_Trie_0__Lean_Parser_Trie_updtAcc___rarg(x_5, x_3, x_4);
lean_dec(x_4);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix_loop(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_matchPrefix_loop___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint32_t x_3; lean_object* x_4; 
x_3 = lean_unbox_uint32(x_2);
lean_dec(x_2);
x_4 = l_Std_RBNode_find___at_Lean_Parser_Trie_matchPrefix_loop___spec__1___rarg(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix_loop___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Parser_Trie_matchPrefix_loop___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_box(0);
lean_inc(x_3);
x_5 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
x_6 = l_Lean_Parser_Trie_matchPrefix_loop___rarg(x_1, x_2, x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_matchPrefix___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_matchPrefix___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Parser_Trie_matchPrefix___rarg(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
static lean_object* _init_l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
return x_1;
}
else
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint32_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; uint8_t x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 3);
lean_inc(x_6);
lean_dec(x_2);
x_7 = l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg(x_1, x_3);
x_8 = lean_unbox_uint32(x_4);
lean_dec(x_4);
x_9 = l_Char_quote(x_8);
x_10 = lean_alloc_ctor(2, 1, 0);
lean_ctor_set(x_10, 0, x_9);
x_11 = l___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___rarg(x_5);
x_12 = lean_box(1);
x_13 = l_Std_Format_joinSep___at_instReprProd___spec__1(x_11, x_12);
lean_dec(x_11);
x_14 = l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg___closed__1;
x_15 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_15, 0, x_14);
lean_ctor_set(x_15, 1, x_13);
x_16 = 0;
x_17 = lean_alloc_ctor(5, 1, 1);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set_uint8(x_17, sizeof(void*)*1, x_16);
x_18 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_18, 0, x_17);
lean_ctor_set(x_18, 1, x_7);
x_19 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_19, 0, x_10);
lean_ctor_set(x_19, 1, x_18);
x_1 = x_19;
x_2 = x_6;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc(x_2);
lean_dec(x_1);
x_3 = lean_box(0);
x_4 = l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg(x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instToStringTrie___rarg(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___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___rarg(x_1);
x_3 = lean_box(1);
x_4 = l_Std_Format_joinSep___at_instReprProd___spec__1(x_2, x_3);
lean_dec(x_2);
x_5 = l_Std_Format_defWidth;
x_6 = lean_format_pretty(x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Parser_Trie_instToStringTrie(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_Parser_Trie_instToStringTrie___rarg), 1, 0);
return x_2;
}
}
lean_object* initialize_Init(lean_object*);
lean_object* initialize_Lean_Data_Format(lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Data_Trie(lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_Format(lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Parser_Trie_empty___closed__1 = _init_l_Lean_Parser_Trie_empty___closed__1();
lean_mark_persistent(l_Lean_Parser_Trie_empty___closed__1);
l_Lean_Parser_Trie_instEmptyCollectionTrie___closed__1 = _init_l_Lean_Parser_Trie_instEmptyCollectionTrie___closed__1();
lean_mark_persistent(l_Lean_Parser_Trie_instEmptyCollectionTrie___closed__1);
l_Lean_Parser_Trie_findPrefix___rarg___closed__1 = _init_l_Lean_Parser_Trie_findPrefix___rarg___closed__1();
lean_mark_persistent(l_Lean_Parser_Trie_findPrefix___rarg___closed__1);
l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg___closed__1 = _init_l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg___closed__1();
lean_mark_persistent(l_Std_RBNode_fold___at___private_Lean_Data_Trie_0__Lean_Parser_Trie_toStringAux___spec__1___rarg___closed__1);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
