// Lean compiler output
// Module: Std.Data.DTreeMap.Raw.Basic
// Imports: Std.Data.DTreeMap.Internal.WF.Defs Std.Data.DTreeMap.Basic
#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_Std_DTreeMap_Raw_Const_toList___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6___rarg(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__19;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGED___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofList___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeWith___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldlM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__4;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_get_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertIfNew___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_minKey_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeWith___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLED___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x21(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_partition___spec__11___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forM(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeBy___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_modify___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofArray___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromList___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_entryAtIdxD___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGED___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_partition___spec__11(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_revFold___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x3f___at_Std_DTreeMap_Raw_getKey_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGED(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f___rarg(lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_any___rarg___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__3___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x3f___spec__1(lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_findD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofList(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfArray___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInsertSigma(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x21___spec__1(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_entryAtIdx_x3f___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_maxEntry_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeBy(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_modify(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertMany___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__9(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeWith___spec__2(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldr(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_contains___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_revFold___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forM___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeWith(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_minKey_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_find_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey___at_Std_DTreeMap_Raw_getKey___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_findD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__22;
lean_object* l_Std_DTreeMap_Internal_Impl_Const_minEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldr___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__4;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGTD___spec__1(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size(lean_object*, lean_object*, lean_object*);
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x21(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instMembership(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInhabited(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__6;
lean_object* l_Std_DTreeMap_Internal_Impl_minEntry_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_link_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGTD(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLED___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_erase(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfList(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGED___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_find_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn___rarg___lambda__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_find_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6327_;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_findD(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f___rarg(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_keyAtIdx_x21___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_contains___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_valuesArray___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_get_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGED(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLTD(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_minEntry_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Std_Data_DTreeMap_Raw_Basic_0__instCoeTypeForall__std(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGED___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_maxEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2(lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1(lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instCoeWFWFInner(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_minKeyD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5___rarg(lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__6;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyD(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forInUncurried___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromArray___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLTD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x3f___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1___rarg(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_keyAtIdxD___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__3;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLED___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_alter(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_isEmpty___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertMany(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4___rarg(lean_object*);
static lean_object* l_Std_DTreeMap_Raw_instRepr___rarg___closed__2;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__6(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldlM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_keyAtIdx_x3f___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__8___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeWith___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_empty(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_minEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_all___rarg___lambda__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forM___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_panic___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLED___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__12;
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Std_DTreeMap_Raw_instRepr___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__8(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_isEmpty(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_revFold(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toList___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7___rarg(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__26;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeWith___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldl___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLED___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGTD___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLTD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__2;
lean_object* l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_alter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldl___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofList(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLTD___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGTD(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_to_int(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fold(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__7;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get___at_Std_DTreeMap_Raw_Const_get___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3(lean_object*);
static lean_object* l_Std_DTreeMap_Raw_all___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f___rarg(lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f___rarg(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__21;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeBy___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGTD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg___boxed(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_link2_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get___at_Std_DTreeMap_Raw_get___spec__1(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_maxEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD___rarg___boxed(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__7;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__3___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x3f___spec__1(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3___rarg(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_any___rarg___closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__9;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGED___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6240_;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGTD___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_get_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromArray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeWith(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldrM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_partition(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21___rarg___boxed(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_any___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForInSigma(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofArray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLED___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forMUncurried___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__25;
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2___rarg(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__24;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_findD(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfList___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forMUncurried(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x21___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLTD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any___rarg___lambda__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertMany___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_partition___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x21___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instDecidableMem(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
lean_object* l_Std_DTreeMap_Internal_Impl_minEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_find_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_find_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fold___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromArray___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keysArray(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGED(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_eraseMany___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x21(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLED___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGTD___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5835_;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofArray___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_instDecidableMem___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forMUncurried___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x21(lean_object*, lean_object*);
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instSingletonSigma___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_foldr___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGED___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_valuesArray___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_repr___at_Std_DTreeMap_Raw_instRepr___spec__3___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertMany(lean_object*, lean_object*);
lean_object* l___private_Init_Util_0__mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_maxKey_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__7___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofList___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_find_x21___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromList(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInsertSigma___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_eraseMany___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__8___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey___at_Std_DTreeMap_Raw_getKey___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeBy___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__7___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__7(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_modify___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instCoeWFWFInner___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__1;
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_eraseMany(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyD___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLED___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_isEmpty___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_entryAtIdxD___rarg(lean_object*, lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_all___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__9___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLTD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instEmptyCollection___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofArray___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_empty___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instDecidableMem___rarg___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_minEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_foldr___spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get(lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__10;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__9___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLED(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_contains(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLTD(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21(lean_object*, lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__4;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__23;
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForMSigma(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLTD___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg___boxed(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_maxKeyD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instMembership___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getD(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLED(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGTD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__10(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForInSigma___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLED___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x3f___spec__1(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1;
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__14;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_revFold___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldrM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofArray___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_valuesArray(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forInUncurried___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeBy___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all___rarg___lambda__1___boxed(lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__7;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_string_length(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__1;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__11;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__2(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__17;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x3f(lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertMany___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGTD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values___rarg___boxed(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__18;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_revFold___spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsert___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLTD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLED___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldr___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x3f___at_Std_DTreeMap_Raw_getKey_x3f___spec__1(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get___at_Std_DTreeMap_Raw_get___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3___rarg(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_entryAtIdx_x21___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLTD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGTD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6374_;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x21(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instEmptyCollection(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_erase___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_findD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_find_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsertIfNew___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f___rarg___boxed(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__10;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForMSigma___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLED___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x21___spec__1(lean_object*, lean_object*);
extern lean_object* l_Id_instMonad;
lean_object* l_Std_DTreeMap_Internal_Impl_entryAtIdx_x21___rarg(lean_object*, lean_object*, lean_object*);
lean_object* l_Repr_addAppParen(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__1(lean_object*, lean_object*);
lean_object* lean_panic_fn(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGED___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeBy___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGED___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForInSigma___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__10___rarg(lean_object*);
static lean_object* l_Std_DTreeMap_Raw_any___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_nat_mul(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGTD___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toList___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInhabited___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x21___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x3f___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getThenInsertIfNew_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeBy(lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__4___rarg(lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_alter(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__4(lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__11;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_modify(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsertIfNew(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21(lean_object*, lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__13;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insert(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_partition___rarg___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instSingletonSigma(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGED___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLTD___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsert(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_find_x3f___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fold___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__8(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForMSigma___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofArray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__6___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLTD___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get___at_Std_DTreeMap_Raw_Const_get___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeWith___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f___rarg___boxed(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__9;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLTD___spec__1(lean_object*, lean_object*);
size_t lean_usize_add(size_t, size_t);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_entryAtIdx_x3f___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x21(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray(lean_object*, lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__5;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__7(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f___boxed(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_maxEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uget(lean_object*, size_t);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2___rarg(lean_object*);
size_t lean_array_size(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGTD___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69_;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_maxEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGTD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6193_;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x3f___spec__1(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_maxEntry_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldl(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_get_x3f___spec__1(lean_object*);
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x21(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7___rarg(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__20;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3___rarg___boxed(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toList(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGTD(lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_maxKey_x21___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGED___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x3f___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5700_;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLTD(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keysArray___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfArray___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keysArray___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLTD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forInUncurried(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__4(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__5;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f(lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__2;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGED___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Std_DTreeMap_Raw_instRepr___spec__4___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD___rarg(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__1;
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGED___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_repr___at_Std_DTreeMap_Raw_instRepr___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1(lean_object*, lean_object*);
static lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__8;
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x21___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_filter(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2___rarg(lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__2;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertIfNew(lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_instRepr___rarg___closed__1;
LEAN_EXPORT lean_object* l_List_foldl___at_Std_DTreeMap_Raw_instRepr___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x21___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__3___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x21(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_findD___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3___rarg(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f___rarg(lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__16;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x21___spec__1(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_containsThenInsert_x21_size___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLED(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x3f___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldrM___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeBy___spec__2(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD___boxed(lean_object*, lean_object*, lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2___rarg(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_filter___rarg___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_isEmpty___rarg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertMany___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfArray(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg___boxed(lean_object*, lean_object*);
static lean_object* l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__8;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__9(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getD(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_filter___rarg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_List_foldl___at_Std_DTreeMap_Raw_instRepr___spec__5___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLED___spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys___rarg(lean_object*);
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_alter___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGTD___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldlM___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3___rarg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x3f___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__3;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x21___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21___rarg(lean_object*, lean_object*);
lean_object* l_Sigma_repr___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Std_Data_DTreeMap_Raw_Basic_0__instCoeTypeForall__std(lean_object* x_1) {
_start:
{
return lean_box(0);
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2;
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3;
x_4 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__4;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2;
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3;
x_4 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__7;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__9;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("exact", 5, 5);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2;
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3;
x_4 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__11;
x_5 = l_Lean_Name_mkStr4(x_1, x_2, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(2);
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__11;
x_3 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__13;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("compare", 7, 7);
return x_1;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15;
x_2 = lean_string_utf8_byte_size(x_1);
return x_2;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__16;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = lean_box(0);
x_2 = lean_box(2);
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__17;
x_4 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__18;
x_5 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_5, 0, x_2);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_4);
lean_ctor_set(x_5, 3, x_1);
return x_5;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__14;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__19;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__12;
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__20;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__21;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__10;
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__22;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__23;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__8;
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__24;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__25;
x_3 = lean_array_push(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(2);
x_2 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__5;
x_3 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__26;
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instCoeWFWFInner(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
return lean_box(0);
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instCoeWFWFInner___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_Std_DTreeMap_Raw_instCoeWFWFInner(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_empty(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_box(1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_empty___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_empty(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instEmptyCollection(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_box(1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instEmptyCollection___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_instEmptyCollection(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInhabited(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_box(1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInhabited___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_instInhabited(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insert___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insert___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insert___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insert___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insert___spec__5___rarg), 1, 0);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.Data.DTreeMap.Internal.Balancing", 36, 36);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.DTreeMap.Internal.Impl.balanceL!", 36, 36);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("balanceL! input was not balanced", 32, 32);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1;
x_2 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__2;
x_3 = lean_unsigned_to_nat(174u);
x_4 = lean_unsigned_to_nat(35u);
x_5 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1;
x_2 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__2;
x_3 = lean_unsigned_to_nat(175u);
x_4 = lean_unsigned_to_nat(21u);
x_5 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.DTreeMap.Internal.Impl.balanceR!", 36, 36);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("balanceR! input was not balanced", 32, 32);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1;
x_2 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__6;
x_3 = lean_unsigned_to_nat(268u);
x_4 = lean_unsigned_to_nat(35u);
x_5 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__7;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1;
x_2 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__6;
x_3 = lean_unsigned_to_nat(269u);
x_4 = lean_unsigned_to_nat(21u);
x_5 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__7;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_insert___spec__2___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_insert___spec__3___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_insert___spec__2___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_insert___spec__3___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_insert___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_insert___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_insert___spec__4___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_insert___spec__5___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_insert___spec__2___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_insert___spec__3___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_insert___spec__4___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_insert___spec__5___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insert___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insert(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_insert___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__2___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__3___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__4___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_instSingletonSigma___spec__5___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instSingletonSigma___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_box(1);
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 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instSingletonSigma___spec__1___rarg(x_1, x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instSingletonSigma(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_instSingletonSigma___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__2___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__3___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__4___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_instInsertSigma___spec__5___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInsertSigma___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_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 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_instInsertSigma___spec__1___rarg(x_1, x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instInsertSigma(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_instInsertSigma___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__3___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__4___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__5___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_insertIfNew___spec__6___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertIfNew___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
lean_inc(x_2);
lean_inc(x_3);
lean_inc(x_1);
x_5 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1___rarg(x_1, x_3, x_2);
if (x_5 == 0)
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertIfNew___spec__2___rarg(x_1, x_3, x_4, x_2);
return x_6;
}
else
{
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_2;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertIfNew(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_insertIfNew___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_insertIfNew___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__2___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__3___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__4___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_containsThenInsert___spec__5___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsert___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; 
x_5 = l_Std_DTreeMap_Internal_Impl_containsThenInsert_x21_size___rarg(x_2);
x_6 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsert___spec__1___rarg(x_1, x_3, x_4, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
x_8 = lean_nat_dec_eq(x_5, x_7);
lean_dec(x_7);
lean_dec(x_5);
x_9 = lean_box(x_8);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_6);
return x_10;
}
else
{
lean_object* x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; 
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_nat_dec_eq(x_5, x_11);
lean_dec(x_5);
x_13 = lean_box(x_12);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_6);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsert(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_containsThenInsert___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__3___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__4___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__5___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__6___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsertIfNew___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
lean_inc(x_2);
lean_inc(x_3);
lean_inc(x_1);
x_5 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1___rarg(x_1, x_3, x_2);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; 
x_6 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__2___rarg(x_1, x_3, x_4, x_2);
x_7 = 0;
x_8 = lean_box(x_7);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_6);
return x_9;
}
else
{
uint8_t x_10; lean_object* x_11; lean_object* x_12; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_10 = 1;
x_11 = lean_box(x_10);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_2);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_containsThenInsertIfNew(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_containsThenInsertIfNew___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_containsThenInsertIfNew___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 4);
lean_inc(x_8);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_9 = lean_apply_2(x_1, x_4, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_6);
return x_12;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
}
}
else
{
lean_object* x_14; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = lean_box(0);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__4___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__5___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__6___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__7___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_6 = l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__1___rarg(x_1, lean_box(0), x_3, x_4);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_box(0);
lean_inc(x_3);
lean_inc(x_4);
lean_inc(x_1);
x_8 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2___rarg(x_1, x_4, x_3);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; 
x_9 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__3___rarg(x_1, x_4, x_5, x_3);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
return x_10;
}
else
{
lean_object* x_11; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_3);
return x_11;
}
}
else
{
uint8_t x_12; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_6);
if (x_12 == 0)
{
lean_object* x_13; 
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_3);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_6, 0);
lean_inc(x_14);
lean_dec(x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_3);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getThenInsertIfNew_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_getThenInsertIfNew_x3f___spec__2___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_contains___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1___rarg(x_1, x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_contains(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_contains___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_contains___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_contains___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Raw_contains___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instMembership(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_box(0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instMembership___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_instMembership(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_instDecidableMem___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1___rarg(x_1, x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instDecidableMem(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_instDecidableMem___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_instDecidableMem___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instDecidableMem___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Raw_instDecidableMem___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size___rarg(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
return x_2;
}
else
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(0u);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_size___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_size___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_size___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_size(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_isEmpty___rarg(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_2; 
x_2 = 0;
return x_2;
}
else
{
uint8_t x_3; 
x_3 = 1;
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_isEmpty(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_isEmpty___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_isEmpty___rarg___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Std_DTreeMap_Raw_isEmpty___rarg(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_isEmpty___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_isEmpty(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__6___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__6___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__7___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__7(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__7___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__8___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__8(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__8___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__9___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_erase___spec__9(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_erase___spec__9___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_5 = lean_ctor_get(x_3, 1);
x_6 = lean_ctor_get(x_3, 2);
x_7 = lean_ctor_get(x_3, 3);
x_8 = lean_ctor_get(x_3, 4);
x_9 = lean_ctor_get(x_3, 0);
lean_dec(x_9);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_10 = lean_apply_2(x_1, x_2, x_5);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_object* x_12; 
x_12 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg(x_1, x_2, x_7);
if (lean_obj_tag(x_12) == 0)
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_8, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_8, 1);
lean_inc(x_15);
x_16 = lean_ctor_get(x_8, 2);
lean_inc(x_16);
x_17 = lean_ctor_get(x_8, 3);
lean_inc(x_17);
x_18 = lean_ctor_get(x_8, 4);
lean_inc(x_18);
x_19 = lean_unsigned_to_nat(3u);
x_20 = lean_nat_mul(x_19, x_13);
x_21 = lean_nat_dec_lt(x_20, x_14);
lean_dec(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
x_22 = lean_unsigned_to_nat(1u);
x_23 = lean_nat_add(x_22, x_13);
lean_dec(x_13);
x_24 = lean_nat_add(x_23, x_14);
lean_dec(x_14);
lean_dec(x_23);
lean_ctor_set(x_3, 3, x_12);
lean_ctor_set(x_3, 0, x_24);
return x_3;
}
else
{
uint8_t x_25; 
lean_free_object(x_3);
x_25 = !lean_is_exclusive(x_8);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_26 = lean_ctor_get(x_8, 4);
lean_dec(x_26);
x_27 = lean_ctor_get(x_8, 3);
lean_dec(x_27);
x_28 = lean_ctor_get(x_8, 2);
lean_dec(x_28);
x_29 = lean_ctor_get(x_8, 1);
lean_dec(x_29);
x_30 = lean_ctor_get(x_8, 0);
lean_dec(x_30);
if (lean_obj_tag(x_17) == 0)
{
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; 
x_31 = lean_ctor_get(x_17, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_17, 1);
lean_inc(x_32);
x_33 = lean_ctor_get(x_17, 2);
lean_inc(x_33);
x_34 = lean_ctor_get(x_17, 3);
lean_inc(x_34);
x_35 = lean_ctor_get(x_17, 4);
lean_inc(x_35);
x_36 = lean_ctor_get(x_18, 0);
lean_inc(x_36);
x_37 = lean_unsigned_to_nat(2u);
x_38 = lean_nat_mul(x_37, x_36);
x_39 = lean_nat_dec_lt(x_31, x_38);
lean_dec(x_38);
if (x_39 == 0)
{
uint8_t x_40; 
lean_dec(x_31);
x_40 = !lean_is_exclusive(x_17);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_41 = lean_ctor_get(x_17, 4);
lean_dec(x_41);
x_42 = lean_ctor_get(x_17, 3);
lean_dec(x_42);
x_43 = lean_ctor_get(x_17, 2);
lean_dec(x_43);
x_44 = lean_ctor_get(x_17, 1);
lean_dec(x_44);
x_45 = lean_ctor_get(x_17, 0);
lean_dec(x_45);
x_46 = lean_unsigned_to_nat(1u);
x_47 = lean_nat_add(x_46, x_13);
lean_dec(x_13);
x_48 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
x_49 = lean_nat_add(x_46, x_36);
lean_dec(x_36);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_50; lean_object* x_51; uint8_t x_52; 
x_50 = lean_ctor_get(x_34, 0);
lean_inc(x_50);
x_51 = lean_nat_add(x_47, x_50);
lean_dec(x_50);
lean_dec(x_47);
lean_inc(x_12);
lean_ctor_set(x_17, 4, x_34);
lean_ctor_set(x_17, 3, x_12);
lean_ctor_set(x_17, 2, x_6);
lean_ctor_set(x_17, 1, x_5);
lean_ctor_set(x_17, 0, x_51);
x_52 = !lean_is_exclusive(x_12);
if (x_52 == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_53 = lean_ctor_get(x_12, 4);
lean_dec(x_53);
x_54 = lean_ctor_get(x_12, 3);
lean_dec(x_54);
x_55 = lean_ctor_get(x_12, 2);
lean_dec(x_55);
x_56 = lean_ctor_get(x_12, 1);
lean_dec(x_56);
x_57 = lean_ctor_get(x_12, 0);
lean_dec(x_57);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_58; lean_object* x_59; 
x_58 = lean_ctor_get(x_35, 0);
lean_inc(x_58);
x_59 = lean_nat_add(x_49, x_58);
lean_dec(x_58);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_59);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
else
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_unsigned_to_nat(0u);
x_61 = lean_nat_add(x_49, x_60);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_61);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
}
else
{
lean_dec(x_12);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_62 = lean_ctor_get(x_35, 0);
lean_inc(x_62);
x_63 = lean_nat_add(x_49, x_62);
lean_dec(x_62);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_63);
x_64 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_64, 0, x_48);
lean_ctor_set(x_64, 1, x_32);
lean_ctor_set(x_64, 2, x_33);
lean_ctor_set(x_64, 3, x_17);
lean_ctor_set(x_64, 4, x_8);
return x_64;
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_65 = lean_unsigned_to_nat(0u);
x_66 = lean_nat_add(x_49, x_65);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_66);
x_67 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_67, 0, x_48);
lean_ctor_set(x_67, 1, x_32);
lean_ctor_set(x_67, 2, x_33);
lean_ctor_set(x_67, 3, x_17);
lean_ctor_set(x_67, 4, x_8);
return x_67;
}
}
}
else
{
lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_68 = lean_unsigned_to_nat(0u);
x_69 = lean_nat_add(x_47, x_68);
lean_dec(x_47);
lean_inc(x_12);
lean_ctor_set(x_17, 4, x_34);
lean_ctor_set(x_17, 3, x_12);
lean_ctor_set(x_17, 2, x_6);
lean_ctor_set(x_17, 1, x_5);
lean_ctor_set(x_17, 0, x_69);
x_70 = !lean_is_exclusive(x_12);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
x_71 = lean_ctor_get(x_12, 4);
lean_dec(x_71);
x_72 = lean_ctor_get(x_12, 3);
lean_dec(x_72);
x_73 = lean_ctor_get(x_12, 2);
lean_dec(x_73);
x_74 = lean_ctor_get(x_12, 1);
lean_dec(x_74);
x_75 = lean_ctor_get(x_12, 0);
lean_dec(x_75);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_35, 0);
lean_inc(x_76);
x_77 = lean_nat_add(x_49, x_76);
lean_dec(x_76);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_77);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
else
{
lean_object* x_78; 
x_78 = lean_nat_add(x_49, x_68);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_78);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
}
else
{
lean_dec(x_12);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_79 = lean_ctor_get(x_35, 0);
lean_inc(x_79);
x_80 = lean_nat_add(x_49, x_79);
lean_dec(x_79);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_80);
x_81 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_81, 0, x_48);
lean_ctor_set(x_81, 1, x_32);
lean_ctor_set(x_81, 2, x_33);
lean_ctor_set(x_81, 3, x_17);
lean_ctor_set(x_81, 4, x_8);
return x_81;
}
else
{
lean_object* x_82; lean_object* x_83; 
x_82 = lean_nat_add(x_49, x_68);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_82);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_48);
lean_ctor_set(x_83, 1, x_32);
lean_ctor_set(x_83, 2, x_33);
lean_ctor_set(x_83, 3, x_17);
lean_ctor_set(x_83, 4, x_8);
return x_83;
}
}
}
}
else
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
lean_dec(x_17);
x_84 = lean_unsigned_to_nat(1u);
x_85 = lean_nat_add(x_84, x_13);
lean_dec(x_13);
x_86 = lean_nat_add(x_85, x_14);
lean_dec(x_14);
x_87 = lean_nat_add(x_84, x_36);
lean_dec(x_36);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
x_88 = lean_ctor_get(x_34, 0);
lean_inc(x_88);
x_89 = lean_nat_add(x_85, x_88);
lean_dec(x_88);
lean_dec(x_85);
lean_inc(x_12);
x_90 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_90, 0, x_89);
lean_ctor_set(x_90, 1, x_5);
lean_ctor_set(x_90, 2, x_6);
lean_ctor_set(x_90, 3, x_12);
lean_ctor_set(x_90, 4, x_34);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_91 = x_12;
} else {
 lean_dec_ref(x_12);
 x_91 = lean_box(0);
}
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_92 = lean_ctor_get(x_35, 0);
lean_inc(x_92);
x_93 = lean_nat_add(x_87, x_92);
lean_dec(x_92);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_93);
if (lean_is_scalar(x_91)) {
 x_94 = lean_alloc_ctor(0, 5, 0);
} else {
 x_94 = x_91;
}
lean_ctor_set(x_94, 0, x_86);
lean_ctor_set(x_94, 1, x_32);
lean_ctor_set(x_94, 2, x_33);
lean_ctor_set(x_94, 3, x_90);
lean_ctor_set(x_94, 4, x_8);
return x_94;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_unsigned_to_nat(0u);
x_96 = lean_nat_add(x_87, x_95);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_96);
if (lean_is_scalar(x_91)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_91;
}
lean_ctor_set(x_97, 0, x_86);
lean_ctor_set(x_97, 1, x_32);
lean_ctor_set(x_97, 2, x_33);
lean_ctor_set(x_97, 3, x_90);
lean_ctor_set(x_97, 4, x_8);
return x_97;
}
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_85, x_98);
lean_dec(x_85);
lean_inc(x_12);
x_100 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_5);
lean_ctor_set(x_100, 2, x_6);
lean_ctor_set(x_100, 3, x_12);
lean_ctor_set(x_100, 4, x_34);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_101 = x_12;
} else {
 lean_dec_ref(x_12);
 x_101 = lean_box(0);
}
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_102 = lean_ctor_get(x_35, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_87, x_102);
lean_dec(x_102);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_103);
if (lean_is_scalar(x_101)) {
 x_104 = lean_alloc_ctor(0, 5, 0);
} else {
 x_104 = x_101;
}
lean_ctor_set(x_104, 0, x_86);
lean_ctor_set(x_104, 1, x_32);
lean_ctor_set(x_104, 2, x_33);
lean_ctor_set(x_104, 3, x_100);
lean_ctor_set(x_104, 4, x_8);
return x_104;
}
else
{
lean_object* x_105; lean_object* x_106; 
x_105 = lean_nat_add(x_87, x_98);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_105);
if (lean_is_scalar(x_101)) {
 x_106 = lean_alloc_ctor(0, 5, 0);
} else {
 x_106 = x_101;
}
lean_ctor_set(x_106, 0, x_86);
lean_ctor_set(x_106, 1, x_32);
lean_ctor_set(x_106, 2, x_33);
lean_ctor_set(x_106, 3, x_100);
lean_ctor_set(x_106, 4, x_8);
return x_106;
}
}
}
}
else
{
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; 
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_33);
lean_dec(x_32);
x_107 = lean_unsigned_to_nat(1u);
x_108 = lean_nat_add(x_107, x_13);
lean_dec(x_13);
x_109 = lean_nat_add(x_108, x_14);
lean_dec(x_14);
x_110 = lean_nat_add(x_108, x_31);
lean_dec(x_31);
lean_dec(x_108);
lean_inc(x_12);
lean_ctor_set(x_8, 4, x_17);
lean_ctor_set(x_8, 3, x_12);
lean_ctor_set(x_8, 2, x_6);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set(x_8, 0, x_110);
x_111 = !lean_is_exclusive(x_12);
if (x_111 == 0)
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; 
x_112 = lean_ctor_get(x_12, 4);
lean_dec(x_112);
x_113 = lean_ctor_get(x_12, 3);
lean_dec(x_113);
x_114 = lean_ctor_get(x_12, 2);
lean_dec(x_114);
x_115 = lean_ctor_get(x_12, 1);
lean_dec(x_115);
x_116 = lean_ctor_get(x_12, 0);
lean_dec(x_116);
lean_ctor_set(x_12, 4, x_18);
lean_ctor_set(x_12, 3, x_8);
lean_ctor_set(x_12, 2, x_16);
lean_ctor_set(x_12, 1, x_15);
lean_ctor_set(x_12, 0, x_109);
return x_12;
}
else
{
lean_object* x_117; 
lean_dec(x_12);
x_117 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_117, 0, x_109);
lean_ctor_set(x_117, 1, x_15);
lean_ctor_set(x_117, 2, x_16);
lean_ctor_set(x_117, 3, x_8);
lean_ctor_set(x_117, 4, x_18);
return x_117;
}
}
}
else
{
lean_object* x_118; lean_object* x_119; 
lean_free_object(x_8);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_118 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_119 = l_panic___at_Std_DTreeMap_Raw_erase___spec__2___rarg(x_118);
return x_119;
}
}
else
{
lean_object* x_120; lean_object* x_121; 
lean_free_object(x_8);
lean_dec(x_18);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_120 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_121 = l_panic___at_Std_DTreeMap_Raw_erase___spec__3___rarg(x_120);
return x_121;
}
}
else
{
lean_dec(x_8);
if (lean_obj_tag(x_17) == 0)
{
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; 
x_122 = lean_ctor_get(x_17, 0);
lean_inc(x_122);
x_123 = lean_ctor_get(x_17, 1);
lean_inc(x_123);
x_124 = lean_ctor_get(x_17, 2);
lean_inc(x_124);
x_125 = lean_ctor_get(x_17, 3);
lean_inc(x_125);
x_126 = lean_ctor_get(x_17, 4);
lean_inc(x_126);
x_127 = lean_ctor_get(x_18, 0);
lean_inc(x_127);
x_128 = lean_unsigned_to_nat(2u);
x_129 = lean_nat_mul(x_128, x_127);
x_130 = lean_nat_dec_lt(x_122, x_129);
lean_dec(x_129);
if (x_130 == 0)
{
lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; 
lean_dec(x_122);
if (lean_is_exclusive(x_17)) {
 lean_ctor_release(x_17, 0);
 lean_ctor_release(x_17, 1);
 lean_ctor_release(x_17, 2);
 lean_ctor_release(x_17, 3);
 lean_ctor_release(x_17, 4);
 x_131 = x_17;
} else {
 lean_dec_ref(x_17);
 x_131 = lean_box(0);
}
x_132 = lean_unsigned_to_nat(1u);
x_133 = lean_nat_add(x_132, x_13);
lean_dec(x_13);
x_134 = lean_nat_add(x_133, x_14);
lean_dec(x_14);
x_135 = lean_nat_add(x_132, x_127);
lean_dec(x_127);
if (lean_obj_tag(x_125) == 0)
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; 
x_136 = lean_ctor_get(x_125, 0);
lean_inc(x_136);
x_137 = lean_nat_add(x_133, x_136);
lean_dec(x_136);
lean_dec(x_133);
lean_inc(x_12);
if (lean_is_scalar(x_131)) {
 x_138 = lean_alloc_ctor(0, 5, 0);
} else {
 x_138 = x_131;
}
lean_ctor_set(x_138, 0, x_137);
lean_ctor_set(x_138, 1, x_5);
lean_ctor_set(x_138, 2, x_6);
lean_ctor_set(x_138, 3, x_12);
lean_ctor_set(x_138, 4, x_125);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_139 = x_12;
} else {
 lean_dec_ref(x_12);
 x_139 = lean_box(0);
}
if (lean_obj_tag(x_126) == 0)
{
lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_140 = lean_ctor_get(x_126, 0);
lean_inc(x_140);
x_141 = lean_nat_add(x_135, x_140);
lean_dec(x_140);
lean_dec(x_135);
x_142 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_142, 0, x_141);
lean_ctor_set(x_142, 1, x_15);
lean_ctor_set(x_142, 2, x_16);
lean_ctor_set(x_142, 3, x_126);
lean_ctor_set(x_142, 4, x_18);
if (lean_is_scalar(x_139)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_139;
}
lean_ctor_set(x_143, 0, x_134);
lean_ctor_set(x_143, 1, x_123);
lean_ctor_set(x_143, 2, x_124);
lean_ctor_set(x_143, 3, x_138);
lean_ctor_set(x_143, 4, x_142);
return x_143;
}
else
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; 
x_144 = lean_unsigned_to_nat(0u);
x_145 = lean_nat_add(x_135, x_144);
lean_dec(x_135);
x_146 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_146, 0, x_145);
lean_ctor_set(x_146, 1, x_15);
lean_ctor_set(x_146, 2, x_16);
lean_ctor_set(x_146, 3, x_126);
lean_ctor_set(x_146, 4, x_18);
if (lean_is_scalar(x_139)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_139;
}
lean_ctor_set(x_147, 0, x_134);
lean_ctor_set(x_147, 1, x_123);
lean_ctor_set(x_147, 2, x_124);
lean_ctor_set(x_147, 3, x_138);
lean_ctor_set(x_147, 4, x_146);
return x_147;
}
}
else
{
lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; 
x_148 = lean_unsigned_to_nat(0u);
x_149 = lean_nat_add(x_133, x_148);
lean_dec(x_133);
lean_inc(x_12);
if (lean_is_scalar(x_131)) {
 x_150 = lean_alloc_ctor(0, 5, 0);
} else {
 x_150 = x_131;
}
lean_ctor_set(x_150, 0, x_149);
lean_ctor_set(x_150, 1, x_5);
lean_ctor_set(x_150, 2, x_6);
lean_ctor_set(x_150, 3, x_12);
lean_ctor_set(x_150, 4, x_125);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_151 = x_12;
} else {
 lean_dec_ref(x_12);
 x_151 = lean_box(0);
}
if (lean_obj_tag(x_126) == 0)
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
x_152 = lean_ctor_get(x_126, 0);
lean_inc(x_152);
x_153 = lean_nat_add(x_135, x_152);
lean_dec(x_152);
lean_dec(x_135);
x_154 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_154, 0, x_153);
lean_ctor_set(x_154, 1, x_15);
lean_ctor_set(x_154, 2, x_16);
lean_ctor_set(x_154, 3, x_126);
lean_ctor_set(x_154, 4, x_18);
if (lean_is_scalar(x_151)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_151;
}
lean_ctor_set(x_155, 0, x_134);
lean_ctor_set(x_155, 1, x_123);
lean_ctor_set(x_155, 2, x_124);
lean_ctor_set(x_155, 3, x_150);
lean_ctor_set(x_155, 4, x_154);
return x_155;
}
else
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; 
x_156 = lean_nat_add(x_135, x_148);
lean_dec(x_135);
x_157 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_157, 0, x_156);
lean_ctor_set(x_157, 1, x_15);
lean_ctor_set(x_157, 2, x_16);
lean_ctor_set(x_157, 3, x_126);
lean_ctor_set(x_157, 4, x_18);
if (lean_is_scalar(x_151)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_151;
}
lean_ctor_set(x_158, 0, x_134);
lean_ctor_set(x_158, 1, x_123);
lean_ctor_set(x_158, 2, x_124);
lean_ctor_set(x_158, 3, x_150);
lean_ctor_set(x_158, 4, x_157);
return x_158;
}
}
}
else
{
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 
lean_dec(x_127);
lean_dec(x_126);
lean_dec(x_125);
lean_dec(x_124);
lean_dec(x_123);
x_159 = lean_unsigned_to_nat(1u);
x_160 = lean_nat_add(x_159, x_13);
lean_dec(x_13);
x_161 = lean_nat_add(x_160, x_14);
lean_dec(x_14);
x_162 = lean_nat_add(x_160, x_122);
lean_dec(x_122);
lean_dec(x_160);
lean_inc(x_12);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_162);
lean_ctor_set(x_163, 1, x_5);
lean_ctor_set(x_163, 2, x_6);
lean_ctor_set(x_163, 3, x_12);
lean_ctor_set(x_163, 4, x_17);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_164 = x_12;
} else {
 lean_dec_ref(x_12);
 x_164 = lean_box(0);
}
if (lean_is_scalar(x_164)) {
 x_165 = lean_alloc_ctor(0, 5, 0);
} else {
 x_165 = x_164;
}
lean_ctor_set(x_165, 0, x_161);
lean_ctor_set(x_165, 1, x_15);
lean_ctor_set(x_165, 2, x_16);
lean_ctor_set(x_165, 3, x_163);
lean_ctor_set(x_165, 4, x_18);
return x_165;
}
}
else
{
lean_object* x_166; lean_object* x_167; 
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_166 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_167 = l_panic___at_Std_DTreeMap_Raw_erase___spec__2___rarg(x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; 
lean_dec(x_18);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_168 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_169 = l_panic___at_Std_DTreeMap_Raw_erase___spec__3___rarg(x_168);
return x_169;
}
}
}
}
else
{
lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; 
x_170 = lean_ctor_get(x_12, 0);
lean_inc(x_170);
x_171 = lean_unsigned_to_nat(1u);
x_172 = lean_nat_add(x_171, x_170);
lean_dec(x_170);
x_173 = lean_box(1);
lean_ctor_set(x_3, 4, x_173);
lean_ctor_set(x_3, 3, x_12);
lean_ctor_set(x_3, 0, x_172);
return x_3;
}
}
else
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_174; 
x_174 = lean_ctor_get(x_8, 3);
lean_inc(x_174);
if (lean_obj_tag(x_174) == 0)
{
lean_object* x_175; 
x_175 = lean_ctor_get(x_8, 4);
lean_inc(x_175);
if (lean_obj_tag(x_175) == 0)
{
uint8_t x_176; 
x_176 = !lean_is_exclusive(x_8);
if (x_176 == 0)
{
lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; 
x_177 = lean_ctor_get(x_8, 0);
x_178 = lean_ctor_get(x_8, 1);
x_179 = lean_ctor_get(x_8, 2);
x_180 = lean_ctor_get(x_8, 4);
lean_dec(x_180);
x_181 = lean_ctor_get(x_8, 3);
lean_dec(x_181);
x_182 = lean_ctor_get(x_174, 0);
lean_inc(x_182);
x_183 = lean_unsigned_to_nat(1u);
x_184 = lean_nat_add(x_183, x_177);
lean_dec(x_177);
x_185 = lean_nat_add(x_183, x_182);
lean_dec(x_182);
x_186 = lean_box(1);
lean_ctor_set(x_8, 4, x_174);
lean_ctor_set(x_8, 3, x_186);
lean_ctor_set(x_8, 2, x_6);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set(x_8, 0, x_185);
lean_ctor_set(x_3, 4, x_175);
lean_ctor_set(x_3, 3, x_8);
lean_ctor_set(x_3, 2, x_179);
lean_ctor_set(x_3, 1, x_178);
lean_ctor_set(x_3, 0, x_184);
return x_3;
}
else
{
lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; 
x_187 = lean_ctor_get(x_8, 0);
x_188 = lean_ctor_get(x_8, 1);
x_189 = lean_ctor_get(x_8, 2);
lean_inc(x_189);
lean_inc(x_188);
lean_inc(x_187);
lean_dec(x_8);
x_190 = lean_ctor_get(x_174, 0);
lean_inc(x_190);
x_191 = lean_unsigned_to_nat(1u);
x_192 = lean_nat_add(x_191, x_187);
lean_dec(x_187);
x_193 = lean_nat_add(x_191, x_190);
lean_dec(x_190);
x_194 = lean_box(1);
x_195 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_195, 0, x_193);
lean_ctor_set(x_195, 1, x_5);
lean_ctor_set(x_195, 2, x_6);
lean_ctor_set(x_195, 3, x_194);
lean_ctor_set(x_195, 4, x_174);
lean_ctor_set(x_3, 4, x_175);
lean_ctor_set(x_3, 3, x_195);
lean_ctor_set(x_3, 2, x_189);
lean_ctor_set(x_3, 1, x_188);
lean_ctor_set(x_3, 0, x_192);
return x_3;
}
}
else
{
uint8_t x_196; 
x_196 = !lean_is_exclusive(x_8);
if (x_196 == 0)
{
lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; 
x_197 = lean_ctor_get(x_8, 4);
lean_dec(x_197);
x_198 = lean_ctor_get(x_8, 3);
lean_dec(x_198);
x_199 = lean_ctor_get(x_8, 0);
lean_dec(x_199);
x_200 = !lean_is_exclusive(x_174);
if (x_200 == 0)
{
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; lean_object* x_208; 
x_201 = lean_ctor_get(x_174, 1);
x_202 = lean_ctor_get(x_174, 2);
x_203 = lean_ctor_get(x_174, 4);
lean_dec(x_203);
x_204 = lean_ctor_get(x_174, 3);
lean_dec(x_204);
x_205 = lean_ctor_get(x_174, 0);
lean_dec(x_205);
x_206 = lean_box(1);
x_207 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_174, 4, x_206);
lean_ctor_set(x_174, 3, x_206);
lean_ctor_set(x_174, 2, x_6);
lean_ctor_set(x_174, 1, x_5);
lean_ctor_set(x_174, 0, x_207);
lean_ctor_set(x_8, 4, x_206);
lean_ctor_set(x_8, 3, x_206);
lean_ctor_set(x_8, 0, x_207);
x_208 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 3, x_174);
lean_ctor_set(x_3, 2, x_202);
lean_ctor_set(x_3, 1, x_201);
lean_ctor_set(x_3, 0, x_208);
return x_3;
}
else
{
lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; 
x_209 = lean_ctor_get(x_174, 1);
x_210 = lean_ctor_get(x_174, 2);
lean_inc(x_210);
lean_inc(x_209);
lean_dec(x_174);
x_211 = lean_box(1);
x_212 = lean_unsigned_to_nat(1u);
x_213 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_213, 0, x_212);
lean_ctor_set(x_213, 1, x_5);
lean_ctor_set(x_213, 2, x_6);
lean_ctor_set(x_213, 3, x_211);
lean_ctor_set(x_213, 4, x_211);
lean_ctor_set(x_8, 4, x_211);
lean_ctor_set(x_8, 3, x_211);
lean_ctor_set(x_8, 0, x_212);
x_214 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 3, x_213);
lean_ctor_set(x_3, 2, x_210);
lean_ctor_set(x_3, 1, x_209);
lean_ctor_set(x_3, 0, x_214);
return x_3;
}
}
else
{
lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; 
x_215 = lean_ctor_get(x_8, 1);
x_216 = lean_ctor_get(x_8, 2);
lean_inc(x_216);
lean_inc(x_215);
lean_dec(x_8);
x_217 = lean_ctor_get(x_174, 1);
lean_inc(x_217);
x_218 = lean_ctor_get(x_174, 2);
lean_inc(x_218);
if (lean_is_exclusive(x_174)) {
 lean_ctor_release(x_174, 0);
 lean_ctor_release(x_174, 1);
 lean_ctor_release(x_174, 2);
 lean_ctor_release(x_174, 3);
 lean_ctor_release(x_174, 4);
 x_219 = x_174;
} else {
 lean_dec_ref(x_174);
 x_219 = lean_box(0);
}
x_220 = lean_box(1);
x_221 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_219)) {
 x_222 = lean_alloc_ctor(0, 5, 0);
} else {
 x_222 = x_219;
}
lean_ctor_set(x_222, 0, x_221);
lean_ctor_set(x_222, 1, x_5);
lean_ctor_set(x_222, 2, x_6);
lean_ctor_set(x_222, 3, x_220);
lean_ctor_set(x_222, 4, x_220);
x_223 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_223, 0, x_221);
lean_ctor_set(x_223, 1, x_215);
lean_ctor_set(x_223, 2, x_216);
lean_ctor_set(x_223, 3, x_220);
lean_ctor_set(x_223, 4, x_220);
x_224 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_223);
lean_ctor_set(x_3, 3, x_222);
lean_ctor_set(x_3, 2, x_218);
lean_ctor_set(x_3, 1, x_217);
lean_ctor_set(x_3, 0, x_224);
return x_3;
}
}
}
else
{
lean_object* x_225; 
x_225 = lean_ctor_get(x_8, 4);
lean_inc(x_225);
if (lean_obj_tag(x_225) == 0)
{
uint8_t x_226; 
x_226 = !lean_is_exclusive(x_8);
if (x_226 == 0)
{
lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; 
x_227 = lean_ctor_get(x_8, 1);
x_228 = lean_ctor_get(x_8, 2);
x_229 = lean_ctor_get(x_8, 4);
lean_dec(x_229);
x_230 = lean_ctor_get(x_8, 3);
lean_dec(x_230);
x_231 = lean_ctor_get(x_8, 0);
lean_dec(x_231);
x_232 = lean_box(1);
x_233 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_232);
lean_ctor_set(x_8, 3, x_232);
lean_ctor_set(x_8, 2, x_6);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set(x_8, 0, x_233);
x_234 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_225);
lean_ctor_set(x_3, 3, x_8);
lean_ctor_set(x_3, 2, x_228);
lean_ctor_set(x_3, 1, x_227);
lean_ctor_set(x_3, 0, x_234);
return x_3;
}
else
{
lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; 
x_235 = lean_ctor_get(x_8, 1);
x_236 = lean_ctor_get(x_8, 2);
lean_inc(x_236);
lean_inc(x_235);
lean_dec(x_8);
x_237 = lean_box(1);
x_238 = lean_unsigned_to_nat(1u);
x_239 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_239, 0, x_238);
lean_ctor_set(x_239, 1, x_5);
lean_ctor_set(x_239, 2, x_6);
lean_ctor_set(x_239, 3, x_237);
lean_ctor_set(x_239, 4, x_237);
x_240 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_225);
lean_ctor_set(x_3, 3, x_239);
lean_ctor_set(x_3, 2, x_236);
lean_ctor_set(x_3, 1, x_235);
lean_ctor_set(x_3, 0, x_240);
return x_3;
}
}
else
{
lean_object* x_241; lean_object* x_242; 
x_241 = lean_box(1);
x_242 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_3, 3, x_241);
lean_ctor_set(x_3, 0, x_242);
return x_3;
}
}
}
else
{
lean_object* x_243; lean_object* x_244; 
x_243 = lean_box(1);
x_244 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_3, 4, x_243);
lean_ctor_set(x_3, 3, x_243);
lean_ctor_set(x_3, 0, x_244);
return x_3;
}
}
}
case 1:
{
lean_free_object(x_3);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
if (lean_obj_tag(x_7) == 0)
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; 
x_245 = lean_ctor_get(x_7, 0);
lean_inc(x_245);
x_246 = lean_ctor_get(x_7, 1);
lean_inc(x_246);
x_247 = lean_ctor_get(x_7, 2);
lean_inc(x_247);
x_248 = lean_ctor_get(x_7, 3);
lean_inc(x_248);
x_249 = lean_ctor_get(x_7, 4);
lean_inc(x_249);
x_250 = lean_ctor_get(x_8, 0);
lean_inc(x_250);
x_251 = lean_ctor_get(x_8, 1);
lean_inc(x_251);
x_252 = lean_ctor_get(x_8, 2);
lean_inc(x_252);
x_253 = lean_ctor_get(x_8, 3);
lean_inc(x_253);
x_254 = lean_ctor_get(x_8, 4);
lean_inc(x_254);
x_255 = lean_nat_dec_lt(x_245, x_250);
if (x_255 == 0)
{
uint8_t x_256; 
lean_dec(x_245);
x_256 = !lean_is_exclusive(x_7);
if (x_256 == 0)
{
lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; 
x_257 = lean_ctor_get(x_7, 4);
lean_dec(x_257);
x_258 = lean_ctor_get(x_7, 3);
lean_dec(x_258);
x_259 = lean_ctor_get(x_7, 2);
lean_dec(x_259);
x_260 = lean_ctor_get(x_7, 1);
lean_dec(x_260);
x_261 = lean_ctor_get(x_7, 0);
lean_dec(x_261);
x_262 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_246, x_247, x_248, x_249);
x_263 = lean_ctor_get(x_262, 2);
lean_inc(x_263);
if (lean_obj_tag(x_263) == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; 
x_264 = lean_ctor_get(x_262, 0);
lean_inc(x_264);
x_265 = lean_ctor_get(x_262, 1);
lean_inc(x_265);
lean_dec(x_262);
x_266 = lean_ctor_get(x_263, 0);
lean_inc(x_266);
x_267 = lean_unsigned_to_nat(3u);
x_268 = lean_nat_mul(x_267, x_266);
x_269 = lean_nat_dec_lt(x_268, x_250);
lean_dec(x_268);
if (x_269 == 0)
{
lean_object* x_270; lean_object* x_271; lean_object* x_272; 
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
x_270 = lean_unsigned_to_nat(1u);
x_271 = lean_nat_add(x_270, x_266);
lean_dec(x_266);
x_272 = lean_nat_add(x_271, x_250);
lean_dec(x_250);
lean_dec(x_271);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_263);
lean_ctor_set(x_7, 2, x_265);
lean_ctor_set(x_7, 1, x_264);
lean_ctor_set(x_7, 0, x_272);
return x_7;
}
else
{
uint8_t x_273; 
x_273 = !lean_is_exclusive(x_8);
if (x_273 == 0)
{
lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; 
x_274 = lean_ctor_get(x_8, 4);
lean_dec(x_274);
x_275 = lean_ctor_get(x_8, 3);
lean_dec(x_275);
x_276 = lean_ctor_get(x_8, 2);
lean_dec(x_276);
x_277 = lean_ctor_get(x_8, 1);
lean_dec(x_277);
x_278 = lean_ctor_get(x_8, 0);
lean_dec(x_278);
if (lean_obj_tag(x_253) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; 
x_279 = lean_ctor_get(x_253, 0);
lean_inc(x_279);
x_280 = lean_ctor_get(x_253, 1);
lean_inc(x_280);
x_281 = lean_ctor_get(x_253, 2);
lean_inc(x_281);
x_282 = lean_ctor_get(x_253, 3);
lean_inc(x_282);
x_283 = lean_ctor_get(x_253, 4);
lean_inc(x_283);
x_284 = lean_ctor_get(x_254, 0);
lean_inc(x_284);
x_285 = lean_unsigned_to_nat(2u);
x_286 = lean_nat_mul(x_285, x_284);
x_287 = lean_nat_dec_lt(x_279, x_286);
lean_dec(x_286);
if (x_287 == 0)
{
uint8_t x_288; 
lean_dec(x_279);
lean_free_object(x_7);
x_288 = !lean_is_exclusive(x_253);
if (x_288 == 0)
{
lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_289 = lean_ctor_get(x_253, 4);
lean_dec(x_289);
x_290 = lean_ctor_get(x_253, 3);
lean_dec(x_290);
x_291 = lean_ctor_get(x_253, 2);
lean_dec(x_291);
x_292 = lean_ctor_get(x_253, 1);
lean_dec(x_292);
x_293 = lean_ctor_get(x_253, 0);
lean_dec(x_293);
x_294 = lean_unsigned_to_nat(1u);
x_295 = lean_nat_add(x_294, x_266);
lean_dec(x_266);
x_296 = lean_nat_add(x_295, x_250);
lean_dec(x_250);
x_297 = lean_nat_add(x_294, x_284);
lean_dec(x_284);
if (lean_obj_tag(x_282) == 0)
{
lean_object* x_298; lean_object* x_299; uint8_t x_300; 
x_298 = lean_ctor_get(x_282, 0);
lean_inc(x_298);
x_299 = lean_nat_add(x_295, x_298);
lean_dec(x_298);
lean_dec(x_295);
lean_inc(x_263);
lean_ctor_set(x_253, 4, x_282);
lean_ctor_set(x_253, 3, x_263);
lean_ctor_set(x_253, 2, x_265);
lean_ctor_set(x_253, 1, x_264);
lean_ctor_set(x_253, 0, x_299);
x_300 = !lean_is_exclusive(x_263);
if (x_300 == 0)
{
lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_301 = lean_ctor_get(x_263, 4);
lean_dec(x_301);
x_302 = lean_ctor_get(x_263, 3);
lean_dec(x_302);
x_303 = lean_ctor_get(x_263, 2);
lean_dec(x_303);
x_304 = lean_ctor_get(x_263, 1);
lean_dec(x_304);
x_305 = lean_ctor_get(x_263, 0);
lean_dec(x_305);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_306; lean_object* x_307; 
x_306 = lean_ctor_get(x_283, 0);
lean_inc(x_306);
x_307 = lean_nat_add(x_297, x_306);
lean_dec(x_306);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_307);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_308; lean_object* x_309; 
x_308 = lean_unsigned_to_nat(0u);
x_309 = lean_nat_add(x_297, x_308);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_309);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
else
{
lean_dec(x_263);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_310; lean_object* x_311; lean_object* x_312; 
x_310 = lean_ctor_get(x_283, 0);
lean_inc(x_310);
x_311 = lean_nat_add(x_297, x_310);
lean_dec(x_310);
lean_dec(x_297);
x_312 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_312, 0, x_311);
lean_ctor_set(x_312, 1, x_251);
lean_ctor_set(x_312, 2, x_252);
lean_ctor_set(x_312, 3, x_283);
lean_ctor_set(x_312, 4, x_254);
lean_ctor_set(x_8, 4, x_312);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; 
x_313 = lean_unsigned_to_nat(0u);
x_314 = lean_nat_add(x_297, x_313);
lean_dec(x_297);
x_315 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_315, 0, x_314);
lean_ctor_set(x_315, 1, x_251);
lean_ctor_set(x_315, 2, x_252);
lean_ctor_set(x_315, 3, x_283);
lean_ctor_set(x_315, 4, x_254);
lean_ctor_set(x_8, 4, x_315);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
}
else
{
lean_object* x_316; lean_object* x_317; uint8_t x_318; 
x_316 = lean_unsigned_to_nat(0u);
x_317 = lean_nat_add(x_295, x_316);
lean_dec(x_295);
lean_inc(x_263);
lean_ctor_set(x_253, 4, x_282);
lean_ctor_set(x_253, 3, x_263);
lean_ctor_set(x_253, 2, x_265);
lean_ctor_set(x_253, 1, x_264);
lean_ctor_set(x_253, 0, x_317);
x_318 = !lean_is_exclusive(x_263);
if (x_318 == 0)
{
lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
x_319 = lean_ctor_get(x_263, 4);
lean_dec(x_319);
x_320 = lean_ctor_get(x_263, 3);
lean_dec(x_320);
x_321 = lean_ctor_get(x_263, 2);
lean_dec(x_321);
x_322 = lean_ctor_get(x_263, 1);
lean_dec(x_322);
x_323 = lean_ctor_get(x_263, 0);
lean_dec(x_323);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_324; lean_object* x_325; 
x_324 = lean_ctor_get(x_283, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_297, x_324);
lean_dec(x_324);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_325);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_326; 
x_326 = lean_nat_add(x_297, x_316);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_326);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
else
{
lean_dec(x_263);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_327; lean_object* x_328; lean_object* x_329; 
x_327 = lean_ctor_get(x_283, 0);
lean_inc(x_327);
x_328 = lean_nat_add(x_297, x_327);
lean_dec(x_327);
lean_dec(x_297);
x_329 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_329, 0, x_328);
lean_ctor_set(x_329, 1, x_251);
lean_ctor_set(x_329, 2, x_252);
lean_ctor_set(x_329, 3, x_283);
lean_ctor_set(x_329, 4, x_254);
lean_ctor_set(x_8, 4, x_329);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_330; lean_object* x_331; 
x_330 = lean_nat_add(x_297, x_316);
lean_dec(x_297);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_251);
lean_ctor_set(x_331, 2, x_252);
lean_ctor_set(x_331, 3, x_283);
lean_ctor_set(x_331, 4, x_254);
lean_ctor_set(x_8, 4, x_331);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
}
}
else
{
lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; 
lean_dec(x_253);
x_332 = lean_unsigned_to_nat(1u);
x_333 = lean_nat_add(x_332, x_266);
lean_dec(x_266);
x_334 = lean_nat_add(x_333, x_250);
lean_dec(x_250);
x_335 = lean_nat_add(x_332, x_284);
lean_dec(x_284);
if (lean_obj_tag(x_282) == 0)
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; 
x_336 = lean_ctor_get(x_282, 0);
lean_inc(x_336);
x_337 = lean_nat_add(x_333, x_336);
lean_dec(x_336);
lean_dec(x_333);
lean_inc(x_263);
x_338 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_338, 0, x_337);
lean_ctor_set(x_338, 1, x_264);
lean_ctor_set(x_338, 2, x_265);
lean_ctor_set(x_338, 3, x_263);
lean_ctor_set(x_338, 4, x_282);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_339 = x_263;
} else {
 lean_dec_ref(x_263);
 x_339 = lean_box(0);
}
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_340 = lean_ctor_get(x_283, 0);
lean_inc(x_340);
x_341 = lean_nat_add(x_335, x_340);
lean_dec(x_340);
lean_dec(x_335);
if (lean_is_scalar(x_339)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_339;
}
lean_ctor_set(x_342, 0, x_341);
lean_ctor_set(x_342, 1, x_251);
lean_ctor_set(x_342, 2, x_252);
lean_ctor_set(x_342, 3, x_283);
lean_ctor_set(x_342, 4, x_254);
lean_ctor_set(x_8, 4, x_342);
lean_ctor_set(x_8, 3, x_338);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_unsigned_to_nat(0u);
x_344 = lean_nat_add(x_335, x_343);
lean_dec(x_335);
if (lean_is_scalar(x_339)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_339;
}
lean_ctor_set(x_345, 0, x_344);
lean_ctor_set(x_345, 1, x_251);
lean_ctor_set(x_345, 2, x_252);
lean_ctor_set(x_345, 3, x_283);
lean_ctor_set(x_345, 4, x_254);
lean_ctor_set(x_8, 4, x_345);
lean_ctor_set(x_8, 3, x_338);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
}
else
{
lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
x_346 = lean_unsigned_to_nat(0u);
x_347 = lean_nat_add(x_333, x_346);
lean_dec(x_333);
lean_inc(x_263);
x_348 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_348, 0, x_347);
lean_ctor_set(x_348, 1, x_264);
lean_ctor_set(x_348, 2, x_265);
lean_ctor_set(x_348, 3, x_263);
lean_ctor_set(x_348, 4, x_282);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_349 = x_263;
} else {
 lean_dec_ref(x_263);
 x_349 = lean_box(0);
}
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; 
x_350 = lean_ctor_get(x_283, 0);
lean_inc(x_350);
x_351 = lean_nat_add(x_335, x_350);
lean_dec(x_350);
lean_dec(x_335);
if (lean_is_scalar(x_349)) {
 x_352 = lean_alloc_ctor(0, 5, 0);
} else {
 x_352 = x_349;
}
lean_ctor_set(x_352, 0, x_351);
lean_ctor_set(x_352, 1, x_251);
lean_ctor_set(x_352, 2, x_252);
lean_ctor_set(x_352, 3, x_283);
lean_ctor_set(x_352, 4, x_254);
lean_ctor_set(x_8, 4, x_352);
lean_ctor_set(x_8, 3, x_348);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
else
{
lean_object* x_353; lean_object* x_354; 
x_353 = lean_nat_add(x_335, x_346);
lean_dec(x_335);
if (lean_is_scalar(x_349)) {
 x_354 = lean_alloc_ctor(0, 5, 0);
} else {
 x_354 = x_349;
}
lean_ctor_set(x_354, 0, x_353);
lean_ctor_set(x_354, 1, x_251);
lean_ctor_set(x_354, 2, x_252);
lean_ctor_set(x_354, 3, x_283);
lean_ctor_set(x_354, 4, x_254);
lean_ctor_set(x_8, 4, x_354);
lean_ctor_set(x_8, 3, x_348);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
}
}
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; 
lean_dec(x_284);
lean_dec(x_283);
lean_dec(x_282);
lean_dec(x_281);
lean_dec(x_280);
x_355 = lean_unsigned_to_nat(1u);
x_356 = lean_nat_add(x_355, x_266);
lean_dec(x_266);
x_357 = lean_nat_add(x_356, x_250);
lean_dec(x_250);
x_358 = lean_nat_add(x_356, x_279);
lean_dec(x_279);
lean_dec(x_356);
lean_ctor_set(x_8, 4, x_253);
lean_ctor_set(x_8, 3, x_263);
lean_ctor_set(x_8, 2, x_265);
lean_ctor_set(x_8, 1, x_264);
lean_ctor_set(x_8, 0, x_358);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_8);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_357);
return x_7;
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_8);
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_erase___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_8);
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_254);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_erase___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_8);
if (lean_obj_tag(x_253) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_253, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_253, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_253, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_253, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_253, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_254, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
lean_free_object(x_7);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_372 = x_253;
} else {
 lean_dec_ref(x_253);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_266);
lean_dec(x_266);
x_375 = lean_nat_add(x_374, x_250);
lean_dec(x_250);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_263);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_264);
lean_ctor_set(x_379, 2, x_265);
lean_ctor_set(x_379, 3, x_263);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_380 = x_263;
} else {
 lean_dec_ref(x_263);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
if (lean_is_scalar(x_380)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_380;
}
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_251);
lean_ctor_set(x_383, 2, x_252);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_254);
x_384 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
if (lean_is_scalar(x_380)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_380;
}
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_251);
lean_ctor_set(x_387, 2, x_252);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_254);
x_388 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_263);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_264);
lean_ctor_set(x_391, 2, x_265);
lean_ctor_set(x_391, 3, x_263);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_392 = x_263;
} else {
 lean_dec_ref(x_263);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
if (lean_is_scalar(x_392)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_392;
}
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_251);
lean_ctor_set(x_395, 2, x_252);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_254);
x_396 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
if (lean_is_scalar(x_392)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_392;
}
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_251);
lean_ctor_set(x_398, 2, x_252);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_254);
x_399 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_266);
lean_dec(x_266);
x_402 = lean_nat_add(x_401, x_250);
lean_dec(x_250);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_264);
lean_ctor_set(x_404, 2, x_265);
lean_ctor_set(x_404, 3, x_263);
lean_ctor_set(x_404, 4, x_253);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_404);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_402);
return x_7;
}
}
else
{
lean_object* x_405; lean_object* x_406; 
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_405 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_406 = l_panic___at_Std_DTreeMap_Raw_erase___spec__4___rarg(x_405);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_254);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_408 = l_panic___at_Std_DTreeMap_Raw_erase___spec__5___rarg(x_407);
return x_408;
}
}
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
uint8_t x_409; 
x_409 = !lean_is_exclusive(x_8);
if (x_409 == 0)
{
lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_410 = lean_ctor_get(x_8, 4);
lean_dec(x_410);
x_411 = lean_ctor_get(x_8, 3);
lean_dec(x_411);
x_412 = lean_ctor_get(x_8, 2);
lean_dec(x_412);
x_413 = lean_ctor_get(x_8, 1);
lean_dec(x_413);
x_414 = lean_ctor_get(x_8, 0);
lean_dec(x_414);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; 
x_415 = lean_ctor_get(x_262, 0);
lean_inc(x_415);
x_416 = lean_ctor_get(x_262, 1);
lean_inc(x_416);
lean_dec(x_262);
x_417 = lean_ctor_get(x_253, 0);
lean_inc(x_417);
x_418 = lean_unsigned_to_nat(1u);
x_419 = lean_nat_add(x_418, x_250);
lean_dec(x_250);
x_420 = lean_nat_add(x_418, x_417);
lean_dec(x_417);
x_421 = lean_box(1);
lean_ctor_set(x_8, 4, x_253);
lean_ctor_set(x_8, 3, x_421);
lean_ctor_set(x_8, 2, x_416);
lean_ctor_set(x_8, 1, x_415);
lean_ctor_set(x_8, 0, x_420);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_8);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_419);
return x_7;
}
else
{
lean_object* x_422; lean_object* x_423; uint8_t x_424; 
lean_dec(x_250);
x_422 = lean_ctor_get(x_262, 0);
lean_inc(x_422);
x_423 = lean_ctor_get(x_262, 1);
lean_inc(x_423);
lean_dec(x_262);
x_424 = !lean_is_exclusive(x_253);
if (x_424 == 0)
{
lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; 
x_425 = lean_ctor_get(x_253, 1);
x_426 = lean_ctor_get(x_253, 2);
x_427 = lean_ctor_get(x_253, 4);
lean_dec(x_427);
x_428 = lean_ctor_get(x_253, 3);
lean_dec(x_428);
x_429 = lean_ctor_get(x_253, 0);
lean_dec(x_429);
x_430 = lean_box(1);
x_431 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_430);
lean_ctor_set(x_253, 3, x_430);
lean_ctor_set(x_253, 2, x_423);
lean_ctor_set(x_253, 1, x_422);
lean_ctor_set(x_253, 0, x_431);
lean_ctor_set(x_8, 4, x_430);
lean_ctor_set(x_8, 3, x_430);
lean_ctor_set(x_8, 0, x_431);
x_432 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_253);
lean_ctor_set(x_7, 2, x_426);
lean_ctor_set(x_7, 1, x_425);
lean_ctor_set(x_7, 0, x_432);
return x_7;
}
else
{
lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; 
x_433 = lean_ctor_get(x_253, 1);
x_434 = lean_ctor_get(x_253, 2);
lean_inc(x_434);
lean_inc(x_433);
lean_dec(x_253);
x_435 = lean_box(1);
x_436 = lean_unsigned_to_nat(1u);
x_437 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_437, 0, x_436);
lean_ctor_set(x_437, 1, x_422);
lean_ctor_set(x_437, 2, x_423);
lean_ctor_set(x_437, 3, x_435);
lean_ctor_set(x_437, 4, x_435);
lean_ctor_set(x_8, 4, x_435);
lean_ctor_set(x_8, 3, x_435);
lean_ctor_set(x_8, 0, x_436);
x_438 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_437);
lean_ctor_set(x_7, 2, x_434);
lean_ctor_set(x_7, 1, x_433);
lean_ctor_set(x_7, 0, x_438);
return x_7;
}
}
}
else
{
lean_dec(x_8);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_262, 0);
lean_inc(x_439);
x_440 = lean_ctor_get(x_262, 1);
lean_inc(x_440);
lean_dec(x_262);
x_441 = lean_ctor_get(x_253, 0);
lean_inc(x_441);
x_442 = lean_unsigned_to_nat(1u);
x_443 = lean_nat_add(x_442, x_250);
lean_dec(x_250);
x_444 = lean_nat_add(x_442, x_441);
lean_dec(x_441);
x_445 = lean_box(1);
x_446 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_446, 0, x_444);
lean_ctor_set(x_446, 1, x_439);
lean_ctor_set(x_446, 2, x_440);
lean_ctor_set(x_446, 3, x_445);
lean_ctor_set(x_446, 4, x_253);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_446);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_443);
return x_7;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; 
lean_dec(x_250);
x_447 = lean_ctor_get(x_262, 0);
lean_inc(x_447);
x_448 = lean_ctor_get(x_262, 1);
lean_inc(x_448);
lean_dec(x_262);
x_449 = lean_ctor_get(x_253, 1);
lean_inc(x_449);
x_450 = lean_ctor_get(x_253, 2);
lean_inc(x_450);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_451 = x_253;
} else {
 lean_dec_ref(x_253);
 x_451 = lean_box(0);
}
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_451)) {
 x_454 = lean_alloc_ctor(0, 5, 0);
} else {
 x_454 = x_451;
}
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_447);
lean_ctor_set(x_454, 2, x_448);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
x_455 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_455, 0, x_453);
lean_ctor_set(x_455, 1, x_251);
lean_ctor_set(x_455, 2, x_252);
lean_ctor_set(x_455, 3, x_452);
lean_ctor_set(x_455, 4, x_452);
x_456 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_455);
lean_ctor_set(x_7, 3, x_454);
lean_ctor_set(x_7, 2, x_450);
lean_ctor_set(x_7, 1, x_449);
lean_ctor_set(x_7, 0, x_456);
return x_7;
}
}
}
else
{
lean_dec(x_250);
if (lean_obj_tag(x_254) == 0)
{
uint8_t x_457; 
x_457 = !lean_is_exclusive(x_8);
if (x_457 == 0)
{
lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; 
x_458 = lean_ctor_get(x_8, 4);
lean_dec(x_458);
x_459 = lean_ctor_get(x_8, 3);
lean_dec(x_459);
x_460 = lean_ctor_get(x_8, 2);
lean_dec(x_460);
x_461 = lean_ctor_get(x_8, 1);
lean_dec(x_461);
x_462 = lean_ctor_get(x_8, 0);
lean_dec(x_462);
x_463 = lean_ctor_get(x_262, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_262, 1);
lean_inc(x_464);
lean_dec(x_262);
x_465 = lean_box(1);
x_466 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_465);
lean_ctor_set(x_8, 3, x_465);
lean_ctor_set(x_8, 2, x_464);
lean_ctor_set(x_8, 1, x_463);
lean_ctor_set(x_8, 0, x_466);
x_467 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_8);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_467);
return x_7;
}
else
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; 
lean_dec(x_8);
x_468 = lean_ctor_get(x_262, 0);
lean_inc(x_468);
x_469 = lean_ctor_get(x_262, 1);
lean_inc(x_469);
lean_dec(x_262);
x_470 = lean_box(1);
x_471 = lean_unsigned_to_nat(1u);
x_472 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_472, 0, x_471);
lean_ctor_set(x_472, 1, x_468);
lean_ctor_set(x_472, 2, x_469);
lean_ctor_set(x_472, 3, x_470);
lean_ctor_set(x_472, 4, x_470);
x_473 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_472);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_473);
return x_7;
}
}
else
{
lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
lean_dec(x_252);
lean_dec(x_251);
x_474 = lean_ctor_get(x_262, 0);
lean_inc(x_474);
x_475 = lean_ctor_get(x_262, 1);
lean_inc(x_475);
lean_dec(x_262);
x_476 = lean_box(1);
x_477 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_476);
lean_ctor_set(x_7, 2, x_475);
lean_ctor_set(x_7, 1, x_474);
lean_ctor_set(x_7, 0, x_477);
return x_7;
}
}
}
}
else
{
lean_object* x_478; lean_object* x_479; 
lean_dec(x_7);
x_478 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_246, x_247, x_248, x_249);
x_479 = lean_ctor_get(x_478, 2);
lean_inc(x_479);
if (lean_obj_tag(x_479) == 0)
{
lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; uint8_t x_485; 
x_480 = lean_ctor_get(x_478, 0);
lean_inc(x_480);
x_481 = lean_ctor_get(x_478, 1);
lean_inc(x_481);
lean_dec(x_478);
x_482 = lean_ctor_get(x_479, 0);
lean_inc(x_482);
x_483 = lean_unsigned_to_nat(3u);
x_484 = lean_nat_mul(x_483, x_482);
x_485 = lean_nat_dec_lt(x_484, x_250);
lean_dec(x_484);
if (x_485 == 0)
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; 
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
x_486 = lean_unsigned_to_nat(1u);
x_487 = lean_nat_add(x_486, x_482);
lean_dec(x_482);
x_488 = lean_nat_add(x_487, x_250);
lean_dec(x_250);
lean_dec(x_487);
x_489 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_489, 0, x_488);
lean_ctor_set(x_489, 1, x_480);
lean_ctor_set(x_489, 2, x_481);
lean_ctor_set(x_489, 3, x_479);
lean_ctor_set(x_489, 4, x_8);
return x_489;
}
else
{
lean_object* x_490; 
if (lean_is_exclusive(x_8)) {
 lean_ctor_release(x_8, 0);
 lean_ctor_release(x_8, 1);
 lean_ctor_release(x_8, 2);
 lean_ctor_release(x_8, 3);
 lean_ctor_release(x_8, 4);
 x_490 = x_8;
} else {
 lean_dec_ref(x_8);
 x_490 = lean_box(0);
}
if (lean_obj_tag(x_253) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; uint8_t x_499; 
x_491 = lean_ctor_get(x_253, 0);
lean_inc(x_491);
x_492 = lean_ctor_get(x_253, 1);
lean_inc(x_492);
x_493 = lean_ctor_get(x_253, 2);
lean_inc(x_493);
x_494 = lean_ctor_get(x_253, 3);
lean_inc(x_494);
x_495 = lean_ctor_get(x_253, 4);
lean_inc(x_495);
x_496 = lean_ctor_get(x_254, 0);
lean_inc(x_496);
x_497 = lean_unsigned_to_nat(2u);
x_498 = lean_nat_mul(x_497, x_496);
x_499 = lean_nat_dec_lt(x_491, x_498);
lean_dec(x_498);
if (x_499 == 0)
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
lean_dec(x_491);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_500 = x_253;
} else {
 lean_dec_ref(x_253);
 x_500 = lean_box(0);
}
x_501 = lean_unsigned_to_nat(1u);
x_502 = lean_nat_add(x_501, x_482);
lean_dec(x_482);
x_503 = lean_nat_add(x_502, x_250);
lean_dec(x_250);
x_504 = lean_nat_add(x_501, x_496);
lean_dec(x_496);
if (lean_obj_tag(x_494) == 0)
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_ctor_get(x_494, 0);
lean_inc(x_505);
x_506 = lean_nat_add(x_502, x_505);
lean_dec(x_505);
lean_dec(x_502);
lean_inc(x_479);
if (lean_is_scalar(x_500)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_500;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_480);
lean_ctor_set(x_507, 2, x_481);
lean_ctor_set(x_507, 3, x_479);
lean_ctor_set(x_507, 4, x_494);
if (lean_is_exclusive(x_479)) {
 lean_ctor_release(x_479, 0);
 lean_ctor_release(x_479, 1);
 lean_ctor_release(x_479, 2);
 lean_ctor_release(x_479, 3);
 lean_ctor_release(x_479, 4);
 x_508 = x_479;
} else {
 lean_dec_ref(x_479);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_495) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_495, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_504, x_509);
lean_dec(x_509);
lean_dec(x_504);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_251);
lean_ctor_set(x_511, 2, x_252);
lean_ctor_set(x_511, 3, x_495);
lean_ctor_set(x_511, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_490;
}
lean_ctor_set(x_512, 0, x_503);
lean_ctor_set(x_512, 1, x_492);
lean_ctor_set(x_512, 2, x_493);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; 
x_513 = lean_unsigned_to_nat(0u);
x_514 = lean_nat_add(x_504, x_513);
lean_dec(x_504);
if (lean_is_scalar(x_508)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_508;
}
lean_ctor_set(x_515, 0, x_514);
lean_ctor_set(x_515, 1, x_251);
lean_ctor_set(x_515, 2, x_252);
lean_ctor_set(x_515, 3, x_495);
lean_ctor_set(x_515, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_516 = lean_alloc_ctor(0, 5, 0);
} else {
 x_516 = x_490;
}
lean_ctor_set(x_516, 0, x_503);
lean_ctor_set(x_516, 1, x_492);
lean_ctor_set(x_516, 2, x_493);
lean_ctor_set(x_516, 3, x_507);
lean_ctor_set(x_516, 4, x_515);
return x_516;
}
}
else
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; 
x_517 = lean_unsigned_to_nat(0u);
x_518 = lean_nat_add(x_502, x_517);
lean_dec(x_502);
lean_inc(x_479);
if (lean_is_scalar(x_500)) {
 x_519 = lean_alloc_ctor(0, 5, 0);
} else {
 x_519 = x_500;
}
lean_ctor_set(x_519, 0, x_518);
lean_ctor_set(x_519, 1, x_480);
lean_ctor_set(x_519, 2, x_481);
lean_ctor_set(x_519, 3, x_479);
lean_ctor_set(x_519, 4, x_494);
if (lean_is_exclusive(x_479)) {
 lean_ctor_release(x_479, 0);
 lean_ctor_release(x_479, 1);
 lean_ctor_release(x_479, 2);
 lean_ctor_release(x_479, 3);
 lean_ctor_release(x_479, 4);
 x_520 = x_479;
} else {
 lean_dec_ref(x_479);
 x_520 = lean_box(0);
}
if (lean_obj_tag(x_495) == 0)
{
lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
x_521 = lean_ctor_get(x_495, 0);
lean_inc(x_521);
x_522 = lean_nat_add(x_504, x_521);
lean_dec(x_521);
lean_dec(x_504);
if (lean_is_scalar(x_520)) {
 x_523 = lean_alloc_ctor(0, 5, 0);
} else {
 x_523 = x_520;
}
lean_ctor_set(x_523, 0, x_522);
lean_ctor_set(x_523, 1, x_251);
lean_ctor_set(x_523, 2, x_252);
lean_ctor_set(x_523, 3, x_495);
lean_ctor_set(x_523, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_490;
}
lean_ctor_set(x_524, 0, x_503);
lean_ctor_set(x_524, 1, x_492);
lean_ctor_set(x_524, 2, x_493);
lean_ctor_set(x_524, 3, x_519);
lean_ctor_set(x_524, 4, x_523);
return x_524;
}
else
{
lean_object* x_525; lean_object* x_526; lean_object* x_527; 
x_525 = lean_nat_add(x_504, x_517);
lean_dec(x_504);
if (lean_is_scalar(x_520)) {
 x_526 = lean_alloc_ctor(0, 5, 0);
} else {
 x_526 = x_520;
}
lean_ctor_set(x_526, 0, x_525);
lean_ctor_set(x_526, 1, x_251);
lean_ctor_set(x_526, 2, x_252);
lean_ctor_set(x_526, 3, x_495);
lean_ctor_set(x_526, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_527 = lean_alloc_ctor(0, 5, 0);
} else {
 x_527 = x_490;
}
lean_ctor_set(x_527, 0, x_503);
lean_ctor_set(x_527, 1, x_492);
lean_ctor_set(x_527, 2, x_493);
lean_ctor_set(x_527, 3, x_519);
lean_ctor_set(x_527, 4, x_526);
return x_527;
}
}
}
else
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_493);
lean_dec(x_492);
x_528 = lean_unsigned_to_nat(1u);
x_529 = lean_nat_add(x_528, x_482);
lean_dec(x_482);
x_530 = lean_nat_add(x_529, x_250);
lean_dec(x_250);
x_531 = lean_nat_add(x_529, x_491);
lean_dec(x_491);
lean_dec(x_529);
if (lean_is_scalar(x_490)) {
 x_532 = lean_alloc_ctor(0, 5, 0);
} else {
 x_532 = x_490;
}
lean_ctor_set(x_532, 0, x_531);
lean_ctor_set(x_532, 1, x_480);
lean_ctor_set(x_532, 2, x_481);
lean_ctor_set(x_532, 3, x_479);
lean_ctor_set(x_532, 4, x_253);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_530);
lean_ctor_set(x_533, 1, x_251);
lean_ctor_set(x_533, 2, x_252);
lean_ctor_set(x_533, 3, x_532);
lean_ctor_set(x_533, 4, x_254);
return x_533;
}
}
else
{
lean_object* x_534; lean_object* x_535; 
lean_dec(x_490);
lean_dec(x_482);
lean_dec(x_481);
lean_dec(x_480);
lean_dec(x_479);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_534 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_535 = l_panic___at_Std_DTreeMap_Raw_erase___spec__4___rarg(x_534);
return x_535;
}
}
else
{
lean_object* x_536; lean_object* x_537; 
lean_dec(x_490);
lean_dec(x_482);
lean_dec(x_481);
lean_dec(x_480);
lean_dec(x_479);
lean_dec(x_254);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_536 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_537 = l_panic___at_Std_DTreeMap_Raw_erase___spec__5___rarg(x_536);
return x_537;
}
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_538; 
if (lean_is_exclusive(x_8)) {
 lean_ctor_release(x_8, 0);
 lean_ctor_release(x_8, 1);
 lean_ctor_release(x_8, 2);
 lean_ctor_release(x_8, 3);
 lean_ctor_release(x_8, 4);
 x_538 = x_8;
} else {
 lean_dec_ref(x_8);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; 
x_539 = lean_ctor_get(x_478, 0);
lean_inc(x_539);
x_540 = lean_ctor_get(x_478, 1);
lean_inc(x_540);
lean_dec(x_478);
x_541 = lean_ctor_get(x_253, 0);
lean_inc(x_541);
x_542 = lean_unsigned_to_nat(1u);
x_543 = lean_nat_add(x_542, x_250);
lean_dec(x_250);
x_544 = lean_nat_add(x_542, x_541);
lean_dec(x_541);
x_545 = lean_box(1);
if (lean_is_scalar(x_538)) {
 x_546 = lean_alloc_ctor(0, 5, 0);
} else {
 x_546 = x_538;
}
lean_ctor_set(x_546, 0, x_544);
lean_ctor_set(x_546, 1, x_539);
lean_ctor_set(x_546, 2, x_540);
lean_ctor_set(x_546, 3, x_545);
lean_ctor_set(x_546, 4, x_253);
x_547 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_547, 0, x_543);
lean_ctor_set(x_547, 1, x_251);
lean_ctor_set(x_547, 2, x_252);
lean_ctor_set(x_547, 3, x_546);
lean_ctor_set(x_547, 4, x_254);
return x_547;
}
else
{
lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; 
lean_dec(x_250);
x_548 = lean_ctor_get(x_478, 0);
lean_inc(x_548);
x_549 = lean_ctor_get(x_478, 1);
lean_inc(x_549);
lean_dec(x_478);
x_550 = lean_ctor_get(x_253, 1);
lean_inc(x_550);
x_551 = lean_ctor_get(x_253, 2);
lean_inc(x_551);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_552 = x_253;
} else {
 lean_dec_ref(x_253);
 x_552 = lean_box(0);
}
x_553 = lean_box(1);
x_554 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_552)) {
 x_555 = lean_alloc_ctor(0, 5, 0);
} else {
 x_555 = x_552;
}
lean_ctor_set(x_555, 0, x_554);
lean_ctor_set(x_555, 1, x_548);
lean_ctor_set(x_555, 2, x_549);
lean_ctor_set(x_555, 3, x_553);
lean_ctor_set(x_555, 4, x_553);
if (lean_is_scalar(x_538)) {
 x_556 = lean_alloc_ctor(0, 5, 0);
} else {
 x_556 = x_538;
}
lean_ctor_set(x_556, 0, x_554);
lean_ctor_set(x_556, 1, x_251);
lean_ctor_set(x_556, 2, x_252);
lean_ctor_set(x_556, 3, x_553);
lean_ctor_set(x_556, 4, x_553);
x_557 = lean_unsigned_to_nat(3u);
x_558 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_558, 0, x_557);
lean_ctor_set(x_558, 1, x_550);
lean_ctor_set(x_558, 2, x_551);
lean_ctor_set(x_558, 3, x_555);
lean_ctor_set(x_558, 4, x_556);
return x_558;
}
}
else
{
lean_dec(x_250);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
if (lean_is_exclusive(x_8)) {
 lean_ctor_release(x_8, 0);
 lean_ctor_release(x_8, 1);
 lean_ctor_release(x_8, 2);
 lean_ctor_release(x_8, 3);
 lean_ctor_release(x_8, 4);
 x_559 = x_8;
} else {
 lean_dec_ref(x_8);
 x_559 = lean_box(0);
}
x_560 = lean_ctor_get(x_478, 0);
lean_inc(x_560);
x_561 = lean_ctor_get(x_478, 1);
lean_inc(x_561);
lean_dec(x_478);
x_562 = lean_box(1);
x_563 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_559)) {
 x_564 = lean_alloc_ctor(0, 5, 0);
} else {
 x_564 = x_559;
}
lean_ctor_set(x_564, 0, x_563);
lean_ctor_set(x_564, 1, x_560);
lean_ctor_set(x_564, 2, x_561);
lean_ctor_set(x_564, 3, x_562);
lean_ctor_set(x_564, 4, x_562);
x_565 = lean_unsigned_to_nat(3u);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_565);
lean_ctor_set(x_566, 1, x_251);
lean_ctor_set(x_566, 2, x_252);
lean_ctor_set(x_566, 3, x_564);
lean_ctor_set(x_566, 4, x_254);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; 
lean_dec(x_252);
lean_dec(x_251);
x_567 = lean_ctor_get(x_478, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_478, 1);
lean_inc(x_568);
lean_dec(x_478);
x_569 = lean_box(1);
x_570 = lean_unsigned_to_nat(2u);
x_571 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_571, 0, x_570);
lean_ctor_set(x_571, 1, x_567);
lean_ctor_set(x_571, 2, x_568);
lean_ctor_set(x_571, 3, x_569);
lean_ctor_set(x_571, 4, x_8);
return x_571;
}
}
}
}
}
else
{
uint8_t x_572; 
lean_dec(x_250);
x_572 = !lean_is_exclusive(x_8);
if (x_572 == 0)
{
lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; 
x_573 = lean_ctor_get(x_8, 4);
lean_dec(x_573);
x_574 = lean_ctor_get(x_8, 3);
lean_dec(x_574);
x_575 = lean_ctor_get(x_8, 2);
lean_dec(x_575);
x_576 = lean_ctor_get(x_8, 1);
lean_dec(x_576);
x_577 = lean_ctor_get(x_8, 0);
lean_dec(x_577);
x_578 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_251, x_252, x_253, x_254);
x_579 = lean_ctor_get(x_578, 2);
lean_inc(x_579);
if (lean_obj_tag(x_579) == 0)
{
lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; uint8_t x_585; 
x_580 = lean_ctor_get(x_578, 0);
lean_inc(x_580);
x_581 = lean_ctor_get(x_578, 1);
lean_inc(x_581);
lean_dec(x_578);
x_582 = lean_ctor_get(x_579, 0);
lean_inc(x_582);
x_583 = lean_unsigned_to_nat(3u);
x_584 = lean_nat_mul(x_583, x_582);
x_585 = lean_nat_dec_lt(x_584, x_245);
lean_dec(x_584);
if (x_585 == 0)
{
lean_object* x_586; lean_object* x_587; lean_object* x_588; 
lean_dec(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
x_586 = lean_unsigned_to_nat(1u);
x_587 = lean_nat_add(x_586, x_245);
lean_dec(x_245);
x_588 = lean_nat_add(x_587, x_582);
lean_dec(x_582);
lean_dec(x_587);
lean_ctor_set(x_8, 4, x_579);
lean_ctor_set(x_8, 3, x_7);
lean_ctor_set(x_8, 2, x_581);
lean_ctor_set(x_8, 1, x_580);
lean_ctor_set(x_8, 0, x_588);
return x_8;
}
else
{
uint8_t x_589; 
x_589 = !lean_is_exclusive(x_7);
if (x_589 == 0)
{
lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; 
x_590 = lean_ctor_get(x_7, 4);
lean_dec(x_590);
x_591 = lean_ctor_get(x_7, 3);
lean_dec(x_591);
x_592 = lean_ctor_get(x_7, 2);
lean_dec(x_592);
x_593 = lean_ctor_get(x_7, 1);
lean_dec(x_593);
x_594 = lean_ctor_get(x_7, 0);
lean_dec(x_594);
if (lean_obj_tag(x_248) == 0)
{
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; uint8_t x_603; 
x_595 = lean_ctor_get(x_248, 0);
lean_inc(x_595);
x_596 = lean_ctor_get(x_249, 0);
lean_inc(x_596);
x_597 = lean_ctor_get(x_249, 1);
lean_inc(x_597);
x_598 = lean_ctor_get(x_249, 2);
lean_inc(x_598);
x_599 = lean_ctor_get(x_249, 3);
lean_inc(x_599);
x_600 = lean_ctor_get(x_249, 4);
lean_inc(x_600);
x_601 = lean_unsigned_to_nat(2u);
x_602 = lean_nat_mul(x_601, x_595);
x_603 = lean_nat_dec_lt(x_596, x_602);
lean_dec(x_602);
if (x_603 == 0)
{
uint8_t x_604; 
lean_dec(x_596);
lean_free_object(x_7);
lean_free_object(x_8);
x_604 = !lean_is_exclusive(x_249);
if (x_604 == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; 
x_605 = lean_ctor_get(x_249, 4);
lean_dec(x_605);
x_606 = lean_ctor_get(x_249, 3);
lean_dec(x_606);
x_607 = lean_ctor_get(x_249, 2);
lean_dec(x_607);
x_608 = lean_ctor_get(x_249, 1);
lean_dec(x_608);
x_609 = lean_ctor_get(x_249, 0);
lean_dec(x_609);
x_610 = lean_unsigned_to_nat(1u);
x_611 = lean_nat_add(x_610, x_245);
lean_dec(x_245);
x_612 = lean_nat_add(x_611, x_582);
lean_dec(x_611);
x_613 = lean_nat_add(x_610, x_595);
lean_dec(x_595);
x_614 = lean_nat_add(x_610, x_582);
lean_dec(x_582);
if (lean_obj_tag(x_599) == 0)
{
lean_object* x_615; lean_object* x_616; uint8_t x_617; 
x_615 = lean_ctor_get(x_599, 0);
lean_inc(x_615);
x_616 = lean_nat_add(x_613, x_615);
lean_dec(x_615);
lean_dec(x_613);
lean_inc(x_248);
lean_ctor_set(x_249, 4, x_599);
lean_ctor_set(x_249, 3, x_248);
lean_ctor_set(x_249, 2, x_247);
lean_ctor_set(x_249, 1, x_246);
lean_ctor_set(x_249, 0, x_616);
x_617 = !lean_is_exclusive(x_248);
if (x_617 == 0)
{
lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; 
x_618 = lean_ctor_get(x_248, 4);
lean_dec(x_618);
x_619 = lean_ctor_get(x_248, 3);
lean_dec(x_619);
x_620 = lean_ctor_get(x_248, 2);
lean_dec(x_620);
x_621 = lean_ctor_get(x_248, 1);
lean_dec(x_621);
x_622 = lean_ctor_get(x_248, 0);
lean_dec(x_622);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_623; lean_object* x_624; uint8_t x_625; 
x_623 = lean_ctor_get(x_600, 0);
lean_inc(x_623);
x_624 = lean_nat_add(x_614, x_623);
lean_dec(x_623);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_624);
x_625 = !lean_is_exclusive(x_579);
if (x_625 == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; 
x_626 = lean_ctor_get(x_579, 4);
lean_dec(x_626);
x_627 = lean_ctor_get(x_579, 3);
lean_dec(x_627);
x_628 = lean_ctor_get(x_579, 2);
lean_dec(x_628);
x_629 = lean_ctor_get(x_579, 1);
lean_dec(x_629);
x_630 = lean_ctor_get(x_579, 0);
lean_dec(x_630);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_631; 
lean_dec(x_579);
x_631 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_631, 0, x_612);
lean_ctor_set(x_631, 1, x_597);
lean_ctor_set(x_631, 2, x_598);
lean_ctor_set(x_631, 3, x_249);
lean_ctor_set(x_631, 4, x_248);
return x_631;
}
}
else
{
lean_object* x_632; lean_object* x_633; uint8_t x_634; 
x_632 = lean_unsigned_to_nat(0u);
x_633 = lean_nat_add(x_614, x_632);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_633);
x_634 = !lean_is_exclusive(x_579);
if (x_634 == 0)
{
lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; 
x_635 = lean_ctor_get(x_579, 4);
lean_dec(x_635);
x_636 = lean_ctor_get(x_579, 3);
lean_dec(x_636);
x_637 = lean_ctor_get(x_579, 2);
lean_dec(x_637);
x_638 = lean_ctor_get(x_579, 1);
lean_dec(x_638);
x_639 = lean_ctor_get(x_579, 0);
lean_dec(x_639);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_640; 
lean_dec(x_579);
x_640 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_640, 0, x_612);
lean_ctor_set(x_640, 1, x_597);
lean_ctor_set(x_640, 2, x_598);
lean_ctor_set(x_640, 3, x_249);
lean_ctor_set(x_640, 4, x_248);
return x_640;
}
}
}
else
{
lean_dec(x_248);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; 
x_641 = lean_ctor_get(x_600, 0);
lean_inc(x_641);
x_642 = lean_nat_add(x_614, x_641);
lean_dec(x_641);
lean_dec(x_614);
lean_inc(x_579);
x_643 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_580);
lean_ctor_set(x_643, 2, x_581);
lean_ctor_set(x_643, 3, x_600);
lean_ctor_set(x_643, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_644 = x_579;
} else {
 lean_dec_ref(x_579);
 x_644 = lean_box(0);
}
if (lean_is_scalar(x_644)) {
 x_645 = lean_alloc_ctor(0, 5, 0);
} else {
 x_645 = x_644;
}
lean_ctor_set(x_645, 0, x_612);
lean_ctor_set(x_645, 1, x_597);
lean_ctor_set(x_645, 2, x_598);
lean_ctor_set(x_645, 3, x_249);
lean_ctor_set(x_645, 4, x_643);
return x_645;
}
else
{
lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; 
x_646 = lean_unsigned_to_nat(0u);
x_647 = lean_nat_add(x_614, x_646);
lean_dec(x_614);
lean_inc(x_579);
x_648 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_648, 0, x_647);
lean_ctor_set(x_648, 1, x_580);
lean_ctor_set(x_648, 2, x_581);
lean_ctor_set(x_648, 3, x_600);
lean_ctor_set(x_648, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_649 = x_579;
} else {
 lean_dec_ref(x_579);
 x_649 = lean_box(0);
}
if (lean_is_scalar(x_649)) {
 x_650 = lean_alloc_ctor(0, 5, 0);
} else {
 x_650 = x_649;
}
lean_ctor_set(x_650, 0, x_612);
lean_ctor_set(x_650, 1, x_597);
lean_ctor_set(x_650, 2, x_598);
lean_ctor_set(x_650, 3, x_249);
lean_ctor_set(x_650, 4, x_648);
return x_650;
}
}
}
else
{
lean_object* x_651; lean_object* x_652; uint8_t x_653; 
x_651 = lean_unsigned_to_nat(0u);
x_652 = lean_nat_add(x_613, x_651);
lean_dec(x_613);
lean_inc(x_248);
lean_ctor_set(x_249, 4, x_599);
lean_ctor_set(x_249, 3, x_248);
lean_ctor_set(x_249, 2, x_247);
lean_ctor_set(x_249, 1, x_246);
lean_ctor_set(x_249, 0, x_652);
x_653 = !lean_is_exclusive(x_248);
if (x_653 == 0)
{
lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; 
x_654 = lean_ctor_get(x_248, 4);
lean_dec(x_654);
x_655 = lean_ctor_get(x_248, 3);
lean_dec(x_655);
x_656 = lean_ctor_get(x_248, 2);
lean_dec(x_656);
x_657 = lean_ctor_get(x_248, 1);
lean_dec(x_657);
x_658 = lean_ctor_get(x_248, 0);
lean_dec(x_658);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_659; lean_object* x_660; uint8_t x_661; 
x_659 = lean_ctor_get(x_600, 0);
lean_inc(x_659);
x_660 = lean_nat_add(x_614, x_659);
lean_dec(x_659);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_660);
x_661 = !lean_is_exclusive(x_579);
if (x_661 == 0)
{
lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; 
x_662 = lean_ctor_get(x_579, 4);
lean_dec(x_662);
x_663 = lean_ctor_get(x_579, 3);
lean_dec(x_663);
x_664 = lean_ctor_get(x_579, 2);
lean_dec(x_664);
x_665 = lean_ctor_get(x_579, 1);
lean_dec(x_665);
x_666 = lean_ctor_get(x_579, 0);
lean_dec(x_666);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_667; 
lean_dec(x_579);
x_667 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_667, 0, x_612);
lean_ctor_set(x_667, 1, x_597);
lean_ctor_set(x_667, 2, x_598);
lean_ctor_set(x_667, 3, x_249);
lean_ctor_set(x_667, 4, x_248);
return x_667;
}
}
else
{
lean_object* x_668; uint8_t x_669; 
x_668 = lean_nat_add(x_614, x_651);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_668);
x_669 = !lean_is_exclusive(x_579);
if (x_669 == 0)
{
lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; 
x_670 = lean_ctor_get(x_579, 4);
lean_dec(x_670);
x_671 = lean_ctor_get(x_579, 3);
lean_dec(x_671);
x_672 = lean_ctor_get(x_579, 2);
lean_dec(x_672);
x_673 = lean_ctor_get(x_579, 1);
lean_dec(x_673);
x_674 = lean_ctor_get(x_579, 0);
lean_dec(x_674);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_675; 
lean_dec(x_579);
x_675 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_675, 0, x_612);
lean_ctor_set(x_675, 1, x_597);
lean_ctor_set(x_675, 2, x_598);
lean_ctor_set(x_675, 3, x_249);
lean_ctor_set(x_675, 4, x_248);
return x_675;
}
}
}
else
{
lean_dec(x_248);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; 
x_676 = lean_ctor_get(x_600, 0);
lean_inc(x_676);
x_677 = lean_nat_add(x_614, x_676);
lean_dec(x_676);
lean_dec(x_614);
lean_inc(x_579);
x_678 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_678, 0, x_677);
lean_ctor_set(x_678, 1, x_580);
lean_ctor_set(x_678, 2, x_581);
lean_ctor_set(x_678, 3, x_600);
lean_ctor_set(x_678, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_679 = x_579;
} else {
 lean_dec_ref(x_579);
 x_679 = lean_box(0);
}
if (lean_is_scalar(x_679)) {
 x_680 = lean_alloc_ctor(0, 5, 0);
} else {
 x_680 = x_679;
}
lean_ctor_set(x_680, 0, x_612);
lean_ctor_set(x_680, 1, x_597);
lean_ctor_set(x_680, 2, x_598);
lean_ctor_set(x_680, 3, x_249);
lean_ctor_set(x_680, 4, x_678);
return x_680;
}
else
{
lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_681 = lean_nat_add(x_614, x_651);
lean_dec(x_614);
lean_inc(x_579);
x_682 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_682, 0, x_681);
lean_ctor_set(x_682, 1, x_580);
lean_ctor_set(x_682, 2, x_581);
lean_ctor_set(x_682, 3, x_600);
lean_ctor_set(x_682, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_683 = x_579;
} else {
 lean_dec_ref(x_579);
 x_683 = lean_box(0);
}
if (lean_is_scalar(x_683)) {
 x_684 = lean_alloc_ctor(0, 5, 0);
} else {
 x_684 = x_683;
}
lean_ctor_set(x_684, 0, x_612);
lean_ctor_set(x_684, 1, x_597);
lean_ctor_set(x_684, 2, x_598);
lean_ctor_set(x_684, 3, x_249);
lean_ctor_set(x_684, 4, x_682);
return x_684;
}
}
}
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; 
lean_dec(x_249);
x_685 = lean_unsigned_to_nat(1u);
x_686 = lean_nat_add(x_685, x_245);
lean_dec(x_245);
x_687 = lean_nat_add(x_686, x_582);
lean_dec(x_686);
x_688 = lean_nat_add(x_685, x_595);
lean_dec(x_595);
x_689 = lean_nat_add(x_685, x_582);
lean_dec(x_582);
if (lean_obj_tag(x_599) == 0)
{
lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; 
x_690 = lean_ctor_get(x_599, 0);
lean_inc(x_690);
x_691 = lean_nat_add(x_688, x_690);
lean_dec(x_690);
lean_dec(x_688);
lean_inc(x_248);
x_692 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_692, 0, x_691);
lean_ctor_set(x_692, 1, x_246);
lean_ctor_set(x_692, 2, x_247);
lean_ctor_set(x_692, 3, x_248);
lean_ctor_set(x_692, 4, x_599);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_693 = x_248;
} else {
 lean_dec_ref(x_248);
 x_693 = lean_box(0);
}
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; 
x_694 = lean_ctor_get(x_600, 0);
lean_inc(x_694);
x_695 = lean_nat_add(x_689, x_694);
lean_dec(x_694);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_693)) {
 x_696 = lean_alloc_ctor(0, 5, 0);
} else {
 x_696 = x_693;
}
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_580);
lean_ctor_set(x_696, 2, x_581);
lean_ctor_set(x_696, 3, x_600);
lean_ctor_set(x_696, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_697 = x_579;
} else {
 lean_dec_ref(x_579);
 x_697 = lean_box(0);
}
if (lean_is_scalar(x_697)) {
 x_698 = lean_alloc_ctor(0, 5, 0);
} else {
 x_698 = x_697;
}
lean_ctor_set(x_698, 0, x_687);
lean_ctor_set(x_698, 1, x_597);
lean_ctor_set(x_698, 2, x_598);
lean_ctor_set(x_698, 3, x_692);
lean_ctor_set(x_698, 4, x_696);
return x_698;
}
else
{
lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; 
x_699 = lean_unsigned_to_nat(0u);
x_700 = lean_nat_add(x_689, x_699);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_693)) {
 x_701 = lean_alloc_ctor(0, 5, 0);
} else {
 x_701 = x_693;
}
lean_ctor_set(x_701, 0, x_700);
lean_ctor_set(x_701, 1, x_580);
lean_ctor_set(x_701, 2, x_581);
lean_ctor_set(x_701, 3, x_600);
lean_ctor_set(x_701, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_702 = x_579;
} else {
 lean_dec_ref(x_579);
 x_702 = lean_box(0);
}
if (lean_is_scalar(x_702)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_702;
}
lean_ctor_set(x_703, 0, x_687);
lean_ctor_set(x_703, 1, x_597);
lean_ctor_set(x_703, 2, x_598);
lean_ctor_set(x_703, 3, x_692);
lean_ctor_set(x_703, 4, x_701);
return x_703;
}
}
else
{
lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; 
x_704 = lean_unsigned_to_nat(0u);
x_705 = lean_nat_add(x_688, x_704);
lean_dec(x_688);
lean_inc(x_248);
x_706 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_706, 0, x_705);
lean_ctor_set(x_706, 1, x_246);
lean_ctor_set(x_706, 2, x_247);
lean_ctor_set(x_706, 3, x_248);
lean_ctor_set(x_706, 4, x_599);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_707 = x_248;
} else {
 lean_dec_ref(x_248);
 x_707 = lean_box(0);
}
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; 
x_708 = lean_ctor_get(x_600, 0);
lean_inc(x_708);
x_709 = lean_nat_add(x_689, x_708);
lean_dec(x_708);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_707)) {
 x_710 = lean_alloc_ctor(0, 5, 0);
} else {
 x_710 = x_707;
}
lean_ctor_set(x_710, 0, x_709);
lean_ctor_set(x_710, 1, x_580);
lean_ctor_set(x_710, 2, x_581);
lean_ctor_set(x_710, 3, x_600);
lean_ctor_set(x_710, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_711 = x_579;
} else {
 lean_dec_ref(x_579);
 x_711 = lean_box(0);
}
if (lean_is_scalar(x_711)) {
 x_712 = lean_alloc_ctor(0, 5, 0);
} else {
 x_712 = x_711;
}
lean_ctor_set(x_712, 0, x_687);
lean_ctor_set(x_712, 1, x_597);
lean_ctor_set(x_712, 2, x_598);
lean_ctor_set(x_712, 3, x_706);
lean_ctor_set(x_712, 4, x_710);
return x_712;
}
else
{
lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; 
x_713 = lean_nat_add(x_689, x_704);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_707)) {
 x_714 = lean_alloc_ctor(0, 5, 0);
} else {
 x_714 = x_707;
}
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_580);
lean_ctor_set(x_714, 2, x_581);
lean_ctor_set(x_714, 3, x_600);
lean_ctor_set(x_714, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_715 = x_579;
} else {
 lean_dec_ref(x_579);
 x_715 = lean_box(0);
}
if (lean_is_scalar(x_715)) {
 x_716 = lean_alloc_ctor(0, 5, 0);
} else {
 x_716 = x_715;
}
lean_ctor_set(x_716, 0, x_687);
lean_ctor_set(x_716, 1, x_597);
lean_ctor_set(x_716, 2, x_598);
lean_ctor_set(x_716, 3, x_706);
lean_ctor_set(x_716, 4, x_714);
return x_716;
}
}
}
}
else
{
lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; 
lean_dec(x_600);
lean_dec(x_599);
lean_dec(x_598);
lean_dec(x_597);
lean_dec(x_595);
x_717 = lean_unsigned_to_nat(1u);
x_718 = lean_nat_add(x_717, x_245);
lean_dec(x_245);
x_719 = lean_nat_add(x_718, x_582);
lean_dec(x_718);
x_720 = lean_nat_add(x_717, x_582);
lean_dec(x_582);
x_721 = lean_nat_add(x_720, x_596);
lean_dec(x_596);
lean_dec(x_720);
lean_ctor_set(x_8, 4, x_579);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_581);
lean_ctor_set(x_8, 1, x_580);
lean_ctor_set(x_8, 0, x_721);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 0, x_719);
return x_7;
}
}
else
{
lean_object* x_722; lean_object* x_723; 
lean_free_object(x_7);
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_722 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_723 = l_panic___at_Std_DTreeMap_Raw_erase___spec__6___rarg(x_722);
return x_723;
}
}
else
{
lean_object* x_724; lean_object* x_725; 
lean_free_object(x_7);
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_249);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_724 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_725 = l_panic___at_Std_DTreeMap_Raw_erase___spec__7___rarg(x_724);
return x_725;
}
}
else
{
lean_dec(x_7);
if (lean_obj_tag(x_248) == 0)
{
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; uint8_t x_734; 
x_726 = lean_ctor_get(x_248, 0);
lean_inc(x_726);
x_727 = lean_ctor_get(x_249, 0);
lean_inc(x_727);
x_728 = lean_ctor_get(x_249, 1);
lean_inc(x_728);
x_729 = lean_ctor_get(x_249, 2);
lean_inc(x_729);
x_730 = lean_ctor_get(x_249, 3);
lean_inc(x_730);
x_731 = lean_ctor_get(x_249, 4);
lean_inc(x_731);
x_732 = lean_unsigned_to_nat(2u);
x_733 = lean_nat_mul(x_732, x_726);
x_734 = lean_nat_dec_lt(x_727, x_733);
lean_dec(x_733);
if (x_734 == 0)
{
lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; 
lean_dec(x_727);
lean_free_object(x_8);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_735 = x_249;
} else {
 lean_dec_ref(x_249);
 x_735 = lean_box(0);
}
x_736 = lean_unsigned_to_nat(1u);
x_737 = lean_nat_add(x_736, x_245);
lean_dec(x_245);
x_738 = lean_nat_add(x_737, x_582);
lean_dec(x_737);
x_739 = lean_nat_add(x_736, x_726);
lean_dec(x_726);
x_740 = lean_nat_add(x_736, x_582);
lean_dec(x_582);
if (lean_obj_tag(x_730) == 0)
{
lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; 
x_741 = lean_ctor_get(x_730, 0);
lean_inc(x_741);
x_742 = lean_nat_add(x_739, x_741);
lean_dec(x_741);
lean_dec(x_739);
lean_inc(x_248);
if (lean_is_scalar(x_735)) {
 x_743 = lean_alloc_ctor(0, 5, 0);
} else {
 x_743 = x_735;
}
lean_ctor_set(x_743, 0, x_742);
lean_ctor_set(x_743, 1, x_246);
lean_ctor_set(x_743, 2, x_247);
lean_ctor_set(x_743, 3, x_248);
lean_ctor_set(x_743, 4, x_730);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_744 = x_248;
} else {
 lean_dec_ref(x_248);
 x_744 = lean_box(0);
}
if (lean_obj_tag(x_731) == 0)
{
lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; 
x_745 = lean_ctor_get(x_731, 0);
lean_inc(x_745);
x_746 = lean_nat_add(x_740, x_745);
lean_dec(x_745);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_744)) {
 x_747 = lean_alloc_ctor(0, 5, 0);
} else {
 x_747 = x_744;
}
lean_ctor_set(x_747, 0, x_746);
lean_ctor_set(x_747, 1, x_580);
lean_ctor_set(x_747, 2, x_581);
lean_ctor_set(x_747, 3, x_731);
lean_ctor_set(x_747, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_748 = x_579;
} else {
 lean_dec_ref(x_579);
 x_748 = lean_box(0);
}
if (lean_is_scalar(x_748)) {
 x_749 = lean_alloc_ctor(0, 5, 0);
} else {
 x_749 = x_748;
}
lean_ctor_set(x_749, 0, x_738);
lean_ctor_set(x_749, 1, x_728);
lean_ctor_set(x_749, 2, x_729);
lean_ctor_set(x_749, 3, x_743);
lean_ctor_set(x_749, 4, x_747);
return x_749;
}
else
{
lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; 
x_750 = lean_unsigned_to_nat(0u);
x_751 = lean_nat_add(x_740, x_750);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_744)) {
 x_752 = lean_alloc_ctor(0, 5, 0);
} else {
 x_752 = x_744;
}
lean_ctor_set(x_752, 0, x_751);
lean_ctor_set(x_752, 1, x_580);
lean_ctor_set(x_752, 2, x_581);
lean_ctor_set(x_752, 3, x_731);
lean_ctor_set(x_752, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_753 = x_579;
} else {
 lean_dec_ref(x_579);
 x_753 = lean_box(0);
}
if (lean_is_scalar(x_753)) {
 x_754 = lean_alloc_ctor(0, 5, 0);
} else {
 x_754 = x_753;
}
lean_ctor_set(x_754, 0, x_738);
lean_ctor_set(x_754, 1, x_728);
lean_ctor_set(x_754, 2, x_729);
lean_ctor_set(x_754, 3, x_743);
lean_ctor_set(x_754, 4, x_752);
return x_754;
}
}
else
{
lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; 
x_755 = lean_unsigned_to_nat(0u);
x_756 = lean_nat_add(x_739, x_755);
lean_dec(x_739);
lean_inc(x_248);
if (lean_is_scalar(x_735)) {
 x_757 = lean_alloc_ctor(0, 5, 0);
} else {
 x_757 = x_735;
}
lean_ctor_set(x_757, 0, x_756);
lean_ctor_set(x_757, 1, x_246);
lean_ctor_set(x_757, 2, x_247);
lean_ctor_set(x_757, 3, x_248);
lean_ctor_set(x_757, 4, x_730);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_758 = x_248;
} else {
 lean_dec_ref(x_248);
 x_758 = lean_box(0);
}
if (lean_obj_tag(x_731) == 0)
{
lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; 
x_759 = lean_ctor_get(x_731, 0);
lean_inc(x_759);
x_760 = lean_nat_add(x_740, x_759);
lean_dec(x_759);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_758)) {
 x_761 = lean_alloc_ctor(0, 5, 0);
} else {
 x_761 = x_758;
}
lean_ctor_set(x_761, 0, x_760);
lean_ctor_set(x_761, 1, x_580);
lean_ctor_set(x_761, 2, x_581);
lean_ctor_set(x_761, 3, x_731);
lean_ctor_set(x_761, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_762 = x_579;
} else {
 lean_dec_ref(x_579);
 x_762 = lean_box(0);
}
if (lean_is_scalar(x_762)) {
 x_763 = lean_alloc_ctor(0, 5, 0);
} else {
 x_763 = x_762;
}
lean_ctor_set(x_763, 0, x_738);
lean_ctor_set(x_763, 1, x_728);
lean_ctor_set(x_763, 2, x_729);
lean_ctor_set(x_763, 3, x_757);
lean_ctor_set(x_763, 4, x_761);
return x_763;
}
else
{
lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; 
x_764 = lean_nat_add(x_740, x_755);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_758)) {
 x_765 = lean_alloc_ctor(0, 5, 0);
} else {
 x_765 = x_758;
}
lean_ctor_set(x_765, 0, x_764);
lean_ctor_set(x_765, 1, x_580);
lean_ctor_set(x_765, 2, x_581);
lean_ctor_set(x_765, 3, x_731);
lean_ctor_set(x_765, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_766 = x_579;
} else {
 lean_dec_ref(x_579);
 x_766 = lean_box(0);
}
if (lean_is_scalar(x_766)) {
 x_767 = lean_alloc_ctor(0, 5, 0);
} else {
 x_767 = x_766;
}
lean_ctor_set(x_767, 0, x_738);
lean_ctor_set(x_767, 1, x_728);
lean_ctor_set(x_767, 2, x_729);
lean_ctor_set(x_767, 3, x_757);
lean_ctor_set(x_767, 4, x_765);
return x_767;
}
}
}
else
{
lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; 
lean_dec(x_731);
lean_dec(x_730);
lean_dec(x_729);
lean_dec(x_728);
lean_dec(x_726);
x_768 = lean_unsigned_to_nat(1u);
x_769 = lean_nat_add(x_768, x_245);
lean_dec(x_245);
x_770 = lean_nat_add(x_769, x_582);
lean_dec(x_769);
x_771 = lean_nat_add(x_768, x_582);
lean_dec(x_582);
x_772 = lean_nat_add(x_771, x_727);
lean_dec(x_727);
lean_dec(x_771);
lean_ctor_set(x_8, 4, x_579);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_581);
lean_ctor_set(x_8, 1, x_580);
lean_ctor_set(x_8, 0, x_772);
x_773 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_773, 0, x_770);
lean_ctor_set(x_773, 1, x_246);
lean_ctor_set(x_773, 2, x_247);
lean_ctor_set(x_773, 3, x_248);
lean_ctor_set(x_773, 4, x_8);
return x_773;
}
}
else
{
lean_object* x_774; lean_object* x_775; 
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_774 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_775 = l_panic___at_Std_DTreeMap_Raw_erase___spec__6___rarg(x_774);
return x_775;
}
}
else
{
lean_object* x_776; lean_object* x_777; 
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_249);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_776 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_777 = l_panic___at_Std_DTreeMap_Raw_erase___spec__7___rarg(x_776);
return x_777;
}
}
}
}
else
{
if (lean_obj_tag(x_248) == 0)
{
uint8_t x_778; 
x_778 = !lean_is_exclusive(x_7);
if (x_778 == 0)
{
lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; 
x_779 = lean_ctor_get(x_7, 4);
lean_dec(x_779);
x_780 = lean_ctor_get(x_7, 3);
lean_dec(x_780);
x_781 = lean_ctor_get(x_7, 2);
lean_dec(x_781);
x_782 = lean_ctor_get(x_7, 1);
lean_dec(x_782);
x_783 = lean_ctor_get(x_7, 0);
lean_dec(x_783);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; 
x_784 = lean_ctor_get(x_578, 0);
lean_inc(x_784);
x_785 = lean_ctor_get(x_578, 1);
lean_inc(x_785);
lean_dec(x_578);
x_786 = lean_ctor_get(x_249, 0);
lean_inc(x_786);
x_787 = lean_unsigned_to_nat(1u);
x_788 = lean_nat_add(x_787, x_245);
lean_dec(x_245);
x_789 = lean_nat_add(x_787, x_786);
lean_dec(x_786);
x_790 = lean_box(1);
lean_ctor_set(x_8, 4, x_790);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_785);
lean_ctor_set(x_8, 1, x_784);
lean_ctor_set(x_8, 0, x_789);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 0, x_788);
return x_7;
}
else
{
lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; 
lean_dec(x_245);
x_791 = lean_ctor_get(x_578, 0);
lean_inc(x_791);
x_792 = lean_ctor_get(x_578, 1);
lean_inc(x_792);
lean_dec(x_578);
x_793 = lean_box(1);
x_794 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_793);
lean_ctor_set(x_8, 3, x_793);
lean_ctor_set(x_8, 2, x_792);
lean_ctor_set(x_8, 1, x_791);
lean_ctor_set(x_8, 0, x_794);
x_795 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 0, x_795);
return x_7;
}
}
else
{
lean_dec(x_7);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; 
x_796 = lean_ctor_get(x_578, 0);
lean_inc(x_796);
x_797 = lean_ctor_get(x_578, 1);
lean_inc(x_797);
lean_dec(x_578);
x_798 = lean_ctor_get(x_249, 0);
lean_inc(x_798);
x_799 = lean_unsigned_to_nat(1u);
x_800 = lean_nat_add(x_799, x_245);
lean_dec(x_245);
x_801 = lean_nat_add(x_799, x_798);
lean_dec(x_798);
x_802 = lean_box(1);
lean_ctor_set(x_8, 4, x_802);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_797);
lean_ctor_set(x_8, 1, x_796);
lean_ctor_set(x_8, 0, x_801);
x_803 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_803, 0, x_800);
lean_ctor_set(x_803, 1, x_246);
lean_ctor_set(x_803, 2, x_247);
lean_ctor_set(x_803, 3, x_248);
lean_ctor_set(x_803, 4, x_8);
return x_803;
}
else
{
lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; 
lean_dec(x_245);
x_804 = lean_ctor_get(x_578, 0);
lean_inc(x_804);
x_805 = lean_ctor_get(x_578, 1);
lean_inc(x_805);
lean_dec(x_578);
x_806 = lean_box(1);
x_807 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_806);
lean_ctor_set(x_8, 3, x_806);
lean_ctor_set(x_8, 2, x_805);
lean_ctor_set(x_8, 1, x_804);
lean_ctor_set(x_8, 0, x_807);
x_808 = lean_unsigned_to_nat(3u);
x_809 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_809, 0, x_808);
lean_ctor_set(x_809, 1, x_246);
lean_ctor_set(x_809, 2, x_247);
lean_ctor_set(x_809, 3, x_248);
lean_ctor_set(x_809, 4, x_8);
return x_809;
}
}
}
else
{
lean_dec(x_245);
if (lean_obj_tag(x_249) == 0)
{
uint8_t x_810; 
x_810 = !lean_is_exclusive(x_7);
if (x_810 == 0)
{
lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; uint8_t x_818; 
x_811 = lean_ctor_get(x_7, 4);
lean_dec(x_811);
x_812 = lean_ctor_get(x_7, 3);
lean_dec(x_812);
x_813 = lean_ctor_get(x_7, 2);
lean_dec(x_813);
x_814 = lean_ctor_get(x_7, 1);
lean_dec(x_814);
x_815 = lean_ctor_get(x_7, 0);
lean_dec(x_815);
x_816 = lean_ctor_get(x_578, 0);
lean_inc(x_816);
x_817 = lean_ctor_get(x_578, 1);
lean_inc(x_817);
lean_dec(x_578);
x_818 = !lean_is_exclusive(x_249);
if (x_818 == 0)
{
lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; 
x_819 = lean_ctor_get(x_249, 1);
x_820 = lean_ctor_get(x_249, 2);
x_821 = lean_ctor_get(x_249, 4);
lean_dec(x_821);
x_822 = lean_ctor_get(x_249, 3);
lean_dec(x_822);
x_823 = lean_ctor_get(x_249, 0);
lean_dec(x_823);
x_824 = lean_box(1);
x_825 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_249, 4, x_824);
lean_ctor_set(x_249, 3, x_824);
lean_ctor_set(x_249, 2, x_247);
lean_ctor_set(x_249, 1, x_246);
lean_ctor_set(x_249, 0, x_825);
lean_ctor_set(x_8, 4, x_824);
lean_ctor_set(x_8, 3, x_824);
lean_ctor_set(x_8, 2, x_817);
lean_ctor_set(x_8, 1, x_816);
lean_ctor_set(x_8, 0, x_825);
x_826 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_249);
lean_ctor_set(x_7, 2, x_820);
lean_ctor_set(x_7, 1, x_819);
lean_ctor_set(x_7, 0, x_826);
return x_7;
}
else
{
lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; 
x_827 = lean_ctor_get(x_249, 1);
x_828 = lean_ctor_get(x_249, 2);
lean_inc(x_828);
lean_inc(x_827);
lean_dec(x_249);
x_829 = lean_box(1);
x_830 = lean_unsigned_to_nat(1u);
x_831 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_831, 0, x_830);
lean_ctor_set(x_831, 1, x_246);
lean_ctor_set(x_831, 2, x_247);
lean_ctor_set(x_831, 3, x_829);
lean_ctor_set(x_831, 4, x_829);
lean_ctor_set(x_8, 4, x_829);
lean_ctor_set(x_8, 3, x_829);
lean_ctor_set(x_8, 2, x_817);
lean_ctor_set(x_8, 1, x_816);
lean_ctor_set(x_8, 0, x_830);
x_832 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_831);
lean_ctor_set(x_7, 2, x_828);
lean_ctor_set(x_7, 1, x_827);
lean_ctor_set(x_7, 0, x_832);
return x_7;
}
}
else
{
lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; 
lean_dec(x_7);
x_833 = lean_ctor_get(x_578, 0);
lean_inc(x_833);
x_834 = lean_ctor_get(x_578, 1);
lean_inc(x_834);
lean_dec(x_578);
x_835 = lean_ctor_get(x_249, 1);
lean_inc(x_835);
x_836 = lean_ctor_get(x_249, 2);
lean_inc(x_836);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_837 = x_249;
} else {
 lean_dec_ref(x_249);
 x_837 = lean_box(0);
}
x_838 = lean_box(1);
x_839 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_837)) {
 x_840 = lean_alloc_ctor(0, 5, 0);
} else {
 x_840 = x_837;
}
lean_ctor_set(x_840, 0, x_839);
lean_ctor_set(x_840, 1, x_246);
lean_ctor_set(x_840, 2, x_247);
lean_ctor_set(x_840, 3, x_838);
lean_ctor_set(x_840, 4, x_838);
lean_ctor_set(x_8, 4, x_838);
lean_ctor_set(x_8, 3, x_838);
lean_ctor_set(x_8, 2, x_834);
lean_ctor_set(x_8, 1, x_833);
lean_ctor_set(x_8, 0, x_839);
x_841 = lean_unsigned_to_nat(3u);
x_842 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_842, 0, x_841);
lean_ctor_set(x_842, 1, x_835);
lean_ctor_set(x_842, 2, x_836);
lean_ctor_set(x_842, 3, x_840);
lean_ctor_set(x_842, 4, x_8);
return x_842;
}
}
else
{
lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; 
lean_dec(x_247);
lean_dec(x_246);
x_843 = lean_ctor_get(x_578, 0);
lean_inc(x_843);
x_844 = lean_ctor_get(x_578, 1);
lean_inc(x_844);
lean_dec(x_578);
x_845 = lean_box(1);
x_846 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_8, 4, x_845);
lean_ctor_set(x_8, 3, x_7);
lean_ctor_set(x_8, 2, x_844);
lean_ctor_set(x_8, 1, x_843);
lean_ctor_set(x_8, 0, x_846);
return x_8;
}
}
}
}
else
{
lean_object* x_847; lean_object* x_848; 
lean_dec(x_8);
x_847 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_251, x_252, x_253, x_254);
x_848 = lean_ctor_get(x_847, 2);
lean_inc(x_848);
if (lean_obj_tag(x_848) == 0)
{
lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; uint8_t x_854; 
x_849 = lean_ctor_get(x_847, 0);
lean_inc(x_849);
x_850 = lean_ctor_get(x_847, 1);
lean_inc(x_850);
lean_dec(x_847);
x_851 = lean_ctor_get(x_848, 0);
lean_inc(x_851);
x_852 = lean_unsigned_to_nat(3u);
x_853 = lean_nat_mul(x_852, x_851);
x_854 = lean_nat_dec_lt(x_853, x_245);
lean_dec(x_853);
if (x_854 == 0)
{
lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; 
lean_dec(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
x_855 = lean_unsigned_to_nat(1u);
x_856 = lean_nat_add(x_855, x_245);
lean_dec(x_245);
x_857 = lean_nat_add(x_856, x_851);
lean_dec(x_851);
lean_dec(x_856);
x_858 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_858, 0, x_857);
lean_ctor_set(x_858, 1, x_849);
lean_ctor_set(x_858, 2, x_850);
lean_ctor_set(x_858, 3, x_7);
lean_ctor_set(x_858, 4, x_848);
return x_858;
}
else
{
lean_object* x_859; 
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 lean_ctor_release(x_7, 2);
 lean_ctor_release(x_7, 3);
 lean_ctor_release(x_7, 4);
 x_859 = x_7;
} else {
 lean_dec_ref(x_7);
 x_859 = lean_box(0);
}
if (lean_obj_tag(x_248) == 0)
{
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; uint8_t x_868; 
x_860 = lean_ctor_get(x_248, 0);
lean_inc(x_860);
x_861 = lean_ctor_get(x_249, 0);
lean_inc(x_861);
x_862 = lean_ctor_get(x_249, 1);
lean_inc(x_862);
x_863 = lean_ctor_get(x_249, 2);
lean_inc(x_863);
x_864 = lean_ctor_get(x_249, 3);
lean_inc(x_864);
x_865 = lean_ctor_get(x_249, 4);
lean_inc(x_865);
x_866 = lean_unsigned_to_nat(2u);
x_867 = lean_nat_mul(x_866, x_860);
x_868 = lean_nat_dec_lt(x_861, x_867);
lean_dec(x_867);
if (x_868 == 0)
{
lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; 
lean_dec(x_861);
lean_dec(x_859);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_869 = x_249;
} else {
 lean_dec_ref(x_249);
 x_869 = lean_box(0);
}
x_870 = lean_unsigned_to_nat(1u);
x_871 = lean_nat_add(x_870, x_245);
lean_dec(x_245);
x_872 = lean_nat_add(x_871, x_851);
lean_dec(x_871);
x_873 = lean_nat_add(x_870, x_860);
lean_dec(x_860);
x_874 = lean_nat_add(x_870, x_851);
lean_dec(x_851);
if (lean_obj_tag(x_864) == 0)
{
lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; 
x_875 = lean_ctor_get(x_864, 0);
lean_inc(x_875);
x_876 = lean_nat_add(x_873, x_875);
lean_dec(x_875);
lean_dec(x_873);
lean_inc(x_248);
if (lean_is_scalar(x_869)) {
 x_877 = lean_alloc_ctor(0, 5, 0);
} else {
 x_877 = x_869;
}
lean_ctor_set(x_877, 0, x_876);
lean_ctor_set(x_877, 1, x_246);
lean_ctor_set(x_877, 2, x_247);
lean_ctor_set(x_877, 3, x_248);
lean_ctor_set(x_877, 4, x_864);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_878 = x_248;
} else {
 lean_dec_ref(x_248);
 x_878 = lean_box(0);
}
if (lean_obj_tag(x_865) == 0)
{
lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; 
x_879 = lean_ctor_get(x_865, 0);
lean_inc(x_879);
x_880 = lean_nat_add(x_874, x_879);
lean_dec(x_879);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_878)) {
 x_881 = lean_alloc_ctor(0, 5, 0);
} else {
 x_881 = x_878;
}
lean_ctor_set(x_881, 0, x_880);
lean_ctor_set(x_881, 1, x_849);
lean_ctor_set(x_881, 2, x_850);
lean_ctor_set(x_881, 3, x_865);
lean_ctor_set(x_881, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_882 = x_848;
} else {
 lean_dec_ref(x_848);
 x_882 = lean_box(0);
}
if (lean_is_scalar(x_882)) {
 x_883 = lean_alloc_ctor(0, 5, 0);
} else {
 x_883 = x_882;
}
lean_ctor_set(x_883, 0, x_872);
lean_ctor_set(x_883, 1, x_862);
lean_ctor_set(x_883, 2, x_863);
lean_ctor_set(x_883, 3, x_877);
lean_ctor_set(x_883, 4, x_881);
return x_883;
}
else
{
lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; 
x_884 = lean_unsigned_to_nat(0u);
x_885 = lean_nat_add(x_874, x_884);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_878)) {
 x_886 = lean_alloc_ctor(0, 5, 0);
} else {
 x_886 = x_878;
}
lean_ctor_set(x_886, 0, x_885);
lean_ctor_set(x_886, 1, x_849);
lean_ctor_set(x_886, 2, x_850);
lean_ctor_set(x_886, 3, x_865);
lean_ctor_set(x_886, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_887 = x_848;
} else {
 lean_dec_ref(x_848);
 x_887 = lean_box(0);
}
if (lean_is_scalar(x_887)) {
 x_888 = lean_alloc_ctor(0, 5, 0);
} else {
 x_888 = x_887;
}
lean_ctor_set(x_888, 0, x_872);
lean_ctor_set(x_888, 1, x_862);
lean_ctor_set(x_888, 2, x_863);
lean_ctor_set(x_888, 3, x_877);
lean_ctor_set(x_888, 4, x_886);
return x_888;
}
}
else
{
lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; 
x_889 = lean_unsigned_to_nat(0u);
x_890 = lean_nat_add(x_873, x_889);
lean_dec(x_873);
lean_inc(x_248);
if (lean_is_scalar(x_869)) {
 x_891 = lean_alloc_ctor(0, 5, 0);
} else {
 x_891 = x_869;
}
lean_ctor_set(x_891, 0, x_890);
lean_ctor_set(x_891, 1, x_246);
lean_ctor_set(x_891, 2, x_247);
lean_ctor_set(x_891, 3, x_248);
lean_ctor_set(x_891, 4, x_864);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_892 = x_248;
} else {
 lean_dec_ref(x_248);
 x_892 = lean_box(0);
}
if (lean_obj_tag(x_865) == 0)
{
lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; 
x_893 = lean_ctor_get(x_865, 0);
lean_inc(x_893);
x_894 = lean_nat_add(x_874, x_893);
lean_dec(x_893);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_892)) {
 x_895 = lean_alloc_ctor(0, 5, 0);
} else {
 x_895 = x_892;
}
lean_ctor_set(x_895, 0, x_894);
lean_ctor_set(x_895, 1, x_849);
lean_ctor_set(x_895, 2, x_850);
lean_ctor_set(x_895, 3, x_865);
lean_ctor_set(x_895, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_896 = x_848;
} else {
 lean_dec_ref(x_848);
 x_896 = lean_box(0);
}
if (lean_is_scalar(x_896)) {
 x_897 = lean_alloc_ctor(0, 5, 0);
} else {
 x_897 = x_896;
}
lean_ctor_set(x_897, 0, x_872);
lean_ctor_set(x_897, 1, x_862);
lean_ctor_set(x_897, 2, x_863);
lean_ctor_set(x_897, 3, x_891);
lean_ctor_set(x_897, 4, x_895);
return x_897;
}
else
{
lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; 
x_898 = lean_nat_add(x_874, x_889);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_892)) {
 x_899 = lean_alloc_ctor(0, 5, 0);
} else {
 x_899 = x_892;
}
lean_ctor_set(x_899, 0, x_898);
lean_ctor_set(x_899, 1, x_849);
lean_ctor_set(x_899, 2, x_850);
lean_ctor_set(x_899, 3, x_865);
lean_ctor_set(x_899, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_900 = x_848;
} else {
 lean_dec_ref(x_848);
 x_900 = lean_box(0);
}
if (lean_is_scalar(x_900)) {
 x_901 = lean_alloc_ctor(0, 5, 0);
} else {
 x_901 = x_900;
}
lean_ctor_set(x_901, 0, x_872);
lean_ctor_set(x_901, 1, x_862);
lean_ctor_set(x_901, 2, x_863);
lean_ctor_set(x_901, 3, x_891);
lean_ctor_set(x_901, 4, x_899);
return x_901;
}
}
}
else
{
lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; 
lean_dec(x_865);
lean_dec(x_864);
lean_dec(x_863);
lean_dec(x_862);
lean_dec(x_860);
x_902 = lean_unsigned_to_nat(1u);
x_903 = lean_nat_add(x_902, x_245);
lean_dec(x_245);
x_904 = lean_nat_add(x_903, x_851);
lean_dec(x_903);
x_905 = lean_nat_add(x_902, x_851);
lean_dec(x_851);
x_906 = lean_nat_add(x_905, x_861);
lean_dec(x_861);
lean_dec(x_905);
x_907 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_907, 0, x_906);
lean_ctor_set(x_907, 1, x_849);
lean_ctor_set(x_907, 2, x_850);
lean_ctor_set(x_907, 3, x_249);
lean_ctor_set(x_907, 4, x_848);
if (lean_is_scalar(x_859)) {
 x_908 = lean_alloc_ctor(0, 5, 0);
} else {
 x_908 = x_859;
}
lean_ctor_set(x_908, 0, x_904);
lean_ctor_set(x_908, 1, x_246);
lean_ctor_set(x_908, 2, x_247);
lean_ctor_set(x_908, 3, x_248);
lean_ctor_set(x_908, 4, x_907);
return x_908;
}
}
else
{
lean_object* x_909; lean_object* x_910; 
lean_dec(x_859);
lean_dec(x_851);
lean_dec(x_850);
lean_dec(x_849);
lean_dec(x_848);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_909 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_910 = l_panic___at_Std_DTreeMap_Raw_erase___spec__6___rarg(x_909);
return x_910;
}
}
else
{
lean_object* x_911; lean_object* x_912; 
lean_dec(x_859);
lean_dec(x_851);
lean_dec(x_850);
lean_dec(x_849);
lean_dec(x_848);
lean_dec(x_249);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_911 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_912 = l_panic___at_Std_DTreeMap_Raw_erase___spec__7___rarg(x_911);
return x_912;
}
}
}
else
{
if (lean_obj_tag(x_248) == 0)
{
lean_object* x_913; 
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 lean_ctor_release(x_7, 2);
 lean_ctor_release(x_7, 3);
 lean_ctor_release(x_7, 4);
 x_913 = x_7;
} else {
 lean_dec_ref(x_7);
 x_913 = lean_box(0);
}
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; 
x_914 = lean_ctor_get(x_847, 0);
lean_inc(x_914);
x_915 = lean_ctor_get(x_847, 1);
lean_inc(x_915);
lean_dec(x_847);
x_916 = lean_ctor_get(x_249, 0);
lean_inc(x_916);
x_917 = lean_unsigned_to_nat(1u);
x_918 = lean_nat_add(x_917, x_245);
lean_dec(x_245);
x_919 = lean_nat_add(x_917, x_916);
lean_dec(x_916);
x_920 = lean_box(1);
x_921 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_921, 0, x_919);
lean_ctor_set(x_921, 1, x_914);
lean_ctor_set(x_921, 2, x_915);
lean_ctor_set(x_921, 3, x_249);
lean_ctor_set(x_921, 4, x_920);
if (lean_is_scalar(x_913)) {
 x_922 = lean_alloc_ctor(0, 5, 0);
} else {
 x_922 = x_913;
}
lean_ctor_set(x_922, 0, x_918);
lean_ctor_set(x_922, 1, x_246);
lean_ctor_set(x_922, 2, x_247);
lean_ctor_set(x_922, 3, x_248);
lean_ctor_set(x_922, 4, x_921);
return x_922;
}
else
{
lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; 
lean_dec(x_245);
x_923 = lean_ctor_get(x_847, 0);
lean_inc(x_923);
x_924 = lean_ctor_get(x_847, 1);
lean_inc(x_924);
lean_dec(x_847);
x_925 = lean_box(1);
x_926 = lean_unsigned_to_nat(1u);
x_927 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_927, 0, x_926);
lean_ctor_set(x_927, 1, x_923);
lean_ctor_set(x_927, 2, x_924);
lean_ctor_set(x_927, 3, x_925);
lean_ctor_set(x_927, 4, x_925);
x_928 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_913)) {
 x_929 = lean_alloc_ctor(0, 5, 0);
} else {
 x_929 = x_913;
}
lean_ctor_set(x_929, 0, x_928);
lean_ctor_set(x_929, 1, x_246);
lean_ctor_set(x_929, 2, x_247);
lean_ctor_set(x_929, 3, x_248);
lean_ctor_set(x_929, 4, x_927);
return x_929;
}
}
else
{
lean_dec(x_245);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; 
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 lean_ctor_release(x_7, 2);
 lean_ctor_release(x_7, 3);
 lean_ctor_release(x_7, 4);
 x_930 = x_7;
} else {
 lean_dec_ref(x_7);
 x_930 = lean_box(0);
}
x_931 = lean_ctor_get(x_847, 0);
lean_inc(x_931);
x_932 = lean_ctor_get(x_847, 1);
lean_inc(x_932);
lean_dec(x_847);
x_933 = lean_ctor_get(x_249, 1);
lean_inc(x_933);
x_934 = lean_ctor_get(x_249, 2);
lean_inc(x_934);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_935 = x_249;
} else {
 lean_dec_ref(x_249);
 x_935 = lean_box(0);
}
x_936 = lean_box(1);
x_937 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_935)) {
 x_938 = lean_alloc_ctor(0, 5, 0);
} else {
 x_938 = x_935;
}
lean_ctor_set(x_938, 0, x_937);
lean_ctor_set(x_938, 1, x_246);
lean_ctor_set(x_938, 2, x_247);
lean_ctor_set(x_938, 3, x_936);
lean_ctor_set(x_938, 4, x_936);
x_939 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_939, 0, x_937);
lean_ctor_set(x_939, 1, x_931);
lean_ctor_set(x_939, 2, x_932);
lean_ctor_set(x_939, 3, x_936);
lean_ctor_set(x_939, 4, x_936);
x_940 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_930)) {
 x_941 = lean_alloc_ctor(0, 5, 0);
} else {
 x_941 = x_930;
}
lean_ctor_set(x_941, 0, x_940);
lean_ctor_set(x_941, 1, x_933);
lean_ctor_set(x_941, 2, x_934);
lean_ctor_set(x_941, 3, x_938);
lean_ctor_set(x_941, 4, x_939);
return x_941;
}
else
{
lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; 
lean_dec(x_247);
lean_dec(x_246);
x_942 = lean_ctor_get(x_847, 0);
lean_inc(x_942);
x_943 = lean_ctor_get(x_847, 1);
lean_inc(x_943);
lean_dec(x_847);
x_944 = lean_box(1);
x_945 = lean_unsigned_to_nat(2u);
x_946 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_946, 0, x_945);
lean_ctor_set(x_946, 1, x_942);
lean_ctor_set(x_946, 2, x_943);
lean_ctor_set(x_946, 3, x_7);
lean_ctor_set(x_946, 4, x_944);
return x_946;
}
}
}
}
}
}
else
{
return x_7;
}
}
else
{
return x_8;
}
}
default: 
{
lean_object* x_947; 
x_947 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg(x_1, x_2, x_8);
if (lean_obj_tag(x_947) == 0)
{
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; uint8_t x_956; 
x_948 = lean_ctor_get(x_947, 0);
lean_inc(x_948);
x_949 = lean_ctor_get(x_7, 0);
lean_inc(x_949);
x_950 = lean_ctor_get(x_7, 1);
lean_inc(x_950);
x_951 = lean_ctor_get(x_7, 2);
lean_inc(x_951);
x_952 = lean_ctor_get(x_7, 3);
lean_inc(x_952);
x_953 = lean_ctor_get(x_7, 4);
lean_inc(x_953);
x_954 = lean_unsigned_to_nat(3u);
x_955 = lean_nat_mul(x_954, x_948);
x_956 = lean_nat_dec_lt(x_955, x_949);
lean_dec(x_955);
if (x_956 == 0)
{
lean_object* x_957; lean_object* x_958; lean_object* x_959; 
lean_dec(x_953);
lean_dec(x_952);
lean_dec(x_951);
lean_dec(x_950);
x_957 = lean_unsigned_to_nat(1u);
x_958 = lean_nat_add(x_957, x_949);
lean_dec(x_949);
x_959 = lean_nat_add(x_958, x_948);
lean_dec(x_948);
lean_dec(x_958);
lean_ctor_set(x_3, 4, x_947);
lean_ctor_set(x_3, 0, x_959);
return x_3;
}
else
{
uint8_t x_960; 
lean_free_object(x_3);
x_960 = !lean_is_exclusive(x_7);
if (x_960 == 0)
{
lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; 
x_961 = lean_ctor_get(x_7, 4);
lean_dec(x_961);
x_962 = lean_ctor_get(x_7, 3);
lean_dec(x_962);
x_963 = lean_ctor_get(x_7, 2);
lean_dec(x_963);
x_964 = lean_ctor_get(x_7, 1);
lean_dec(x_964);
x_965 = lean_ctor_get(x_7, 0);
lean_dec(x_965);
if (lean_obj_tag(x_952) == 0)
{
if (lean_obj_tag(x_953) == 0)
{
lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; uint8_t x_974; 
x_966 = lean_ctor_get(x_952, 0);
lean_inc(x_966);
x_967 = lean_ctor_get(x_953, 0);
lean_inc(x_967);
x_968 = lean_ctor_get(x_953, 1);
lean_inc(x_968);
x_969 = lean_ctor_get(x_953, 2);
lean_inc(x_969);
x_970 = lean_ctor_get(x_953, 3);
lean_inc(x_970);
x_971 = lean_ctor_get(x_953, 4);
lean_inc(x_971);
x_972 = lean_unsigned_to_nat(2u);
x_973 = lean_nat_mul(x_972, x_966);
x_974 = lean_nat_dec_lt(x_967, x_973);
lean_dec(x_973);
if (x_974 == 0)
{
uint8_t x_975; 
lean_dec(x_967);
x_975 = !lean_is_exclusive(x_953);
if (x_975 == 0)
{
lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; 
x_976 = lean_ctor_get(x_953, 4);
lean_dec(x_976);
x_977 = lean_ctor_get(x_953, 3);
lean_dec(x_977);
x_978 = lean_ctor_get(x_953, 2);
lean_dec(x_978);
x_979 = lean_ctor_get(x_953, 1);
lean_dec(x_979);
x_980 = lean_ctor_get(x_953, 0);
lean_dec(x_980);
x_981 = lean_unsigned_to_nat(1u);
x_982 = lean_nat_add(x_981, x_949);
lean_dec(x_949);
x_983 = lean_nat_add(x_982, x_948);
lean_dec(x_982);
x_984 = lean_nat_add(x_981, x_966);
lean_dec(x_966);
x_985 = lean_nat_add(x_981, x_948);
lean_dec(x_948);
if (lean_obj_tag(x_970) == 0)
{
lean_object* x_986; lean_object* x_987; uint8_t x_988; 
x_986 = lean_ctor_get(x_970, 0);
lean_inc(x_986);
x_987 = lean_nat_add(x_984, x_986);
lean_dec(x_986);
lean_dec(x_984);
lean_inc(x_952);
lean_ctor_set(x_953, 4, x_970);
lean_ctor_set(x_953, 3, x_952);
lean_ctor_set(x_953, 2, x_951);
lean_ctor_set(x_953, 1, x_950);
lean_ctor_set(x_953, 0, x_987);
x_988 = !lean_is_exclusive(x_952);
if (x_988 == 0)
{
lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; 
x_989 = lean_ctor_get(x_952, 4);
lean_dec(x_989);
x_990 = lean_ctor_get(x_952, 3);
lean_dec(x_990);
x_991 = lean_ctor_get(x_952, 2);
lean_dec(x_991);
x_992 = lean_ctor_get(x_952, 1);
lean_dec(x_992);
x_993 = lean_ctor_get(x_952, 0);
lean_dec(x_993);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_994; lean_object* x_995; 
x_994 = lean_ctor_get(x_971, 0);
lean_inc(x_994);
x_995 = lean_nat_add(x_985, x_994);
lean_dec(x_994);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_995);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_996; lean_object* x_997; 
x_996 = lean_unsigned_to_nat(0u);
x_997 = lean_nat_add(x_985, x_996);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_997);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
else
{
lean_dec(x_952);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_998; lean_object* x_999; lean_object* x_1000; 
x_998 = lean_ctor_get(x_971, 0);
lean_inc(x_998);
x_999 = lean_nat_add(x_985, x_998);
lean_dec(x_998);
lean_dec(x_985);
x_1000 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1000, 0, x_999);
lean_ctor_set(x_1000, 1, x_5);
lean_ctor_set(x_1000, 2, x_6);
lean_ctor_set(x_1000, 3, x_971);
lean_ctor_set(x_1000, 4, x_947);
lean_ctor_set(x_7, 4, x_1000);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; 
x_1001 = lean_unsigned_to_nat(0u);
x_1002 = lean_nat_add(x_985, x_1001);
lean_dec(x_985);
x_1003 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1003, 0, x_1002);
lean_ctor_set(x_1003, 1, x_5);
lean_ctor_set(x_1003, 2, x_6);
lean_ctor_set(x_1003, 3, x_971);
lean_ctor_set(x_1003, 4, x_947);
lean_ctor_set(x_7, 4, x_1003);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
}
else
{
lean_object* x_1004; lean_object* x_1005; uint8_t x_1006; 
x_1004 = lean_unsigned_to_nat(0u);
x_1005 = lean_nat_add(x_984, x_1004);
lean_dec(x_984);
lean_inc(x_952);
lean_ctor_set(x_953, 4, x_970);
lean_ctor_set(x_953, 3, x_952);
lean_ctor_set(x_953, 2, x_951);
lean_ctor_set(x_953, 1, x_950);
lean_ctor_set(x_953, 0, x_1005);
x_1006 = !lean_is_exclusive(x_952);
if (x_1006 == 0)
{
lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; 
x_1007 = lean_ctor_get(x_952, 4);
lean_dec(x_1007);
x_1008 = lean_ctor_get(x_952, 3);
lean_dec(x_1008);
x_1009 = lean_ctor_get(x_952, 2);
lean_dec(x_1009);
x_1010 = lean_ctor_get(x_952, 1);
lean_dec(x_1010);
x_1011 = lean_ctor_get(x_952, 0);
lean_dec(x_1011);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1012; lean_object* x_1013; 
x_1012 = lean_ctor_get(x_971, 0);
lean_inc(x_1012);
x_1013 = lean_nat_add(x_985, x_1012);
lean_dec(x_1012);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_1013);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_1014; 
x_1014 = lean_nat_add(x_985, x_1004);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_1014);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
else
{
lean_dec(x_952);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; 
x_1015 = lean_ctor_get(x_971, 0);
lean_inc(x_1015);
x_1016 = lean_nat_add(x_985, x_1015);
lean_dec(x_1015);
lean_dec(x_985);
x_1017 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1017, 0, x_1016);
lean_ctor_set(x_1017, 1, x_5);
lean_ctor_set(x_1017, 2, x_6);
lean_ctor_set(x_1017, 3, x_971);
lean_ctor_set(x_1017, 4, x_947);
lean_ctor_set(x_7, 4, x_1017);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_1018; lean_object* x_1019; 
x_1018 = lean_nat_add(x_985, x_1004);
lean_dec(x_985);
x_1019 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1019, 0, x_1018);
lean_ctor_set(x_1019, 1, x_5);
lean_ctor_set(x_1019, 2, x_6);
lean_ctor_set(x_1019, 3, x_971);
lean_ctor_set(x_1019, 4, x_947);
lean_ctor_set(x_7, 4, x_1019);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
}
}
else
{
lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; 
lean_dec(x_953);
x_1020 = lean_unsigned_to_nat(1u);
x_1021 = lean_nat_add(x_1020, x_949);
lean_dec(x_949);
x_1022 = lean_nat_add(x_1021, x_948);
lean_dec(x_1021);
x_1023 = lean_nat_add(x_1020, x_966);
lean_dec(x_966);
x_1024 = lean_nat_add(x_1020, x_948);
lean_dec(x_948);
if (lean_obj_tag(x_970) == 0)
{
lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; 
x_1025 = lean_ctor_get(x_970, 0);
lean_inc(x_1025);
x_1026 = lean_nat_add(x_1023, x_1025);
lean_dec(x_1025);
lean_dec(x_1023);
lean_inc(x_952);
x_1027 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1027, 0, x_1026);
lean_ctor_set(x_1027, 1, x_950);
lean_ctor_set(x_1027, 2, x_951);
lean_ctor_set(x_1027, 3, x_952);
lean_ctor_set(x_1027, 4, x_970);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1028 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1028 = lean_box(0);
}
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; 
x_1029 = lean_ctor_get(x_971, 0);
lean_inc(x_1029);
x_1030 = lean_nat_add(x_1024, x_1029);
lean_dec(x_1029);
lean_dec(x_1024);
if (lean_is_scalar(x_1028)) {
 x_1031 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1031 = x_1028;
}
lean_ctor_set(x_1031, 0, x_1030);
lean_ctor_set(x_1031, 1, x_5);
lean_ctor_set(x_1031, 2, x_6);
lean_ctor_set(x_1031, 3, x_971);
lean_ctor_set(x_1031, 4, x_947);
lean_ctor_set(x_7, 4, x_1031);
lean_ctor_set(x_7, 3, x_1027);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
else
{
lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; 
x_1032 = lean_unsigned_to_nat(0u);
x_1033 = lean_nat_add(x_1024, x_1032);
lean_dec(x_1024);
if (lean_is_scalar(x_1028)) {
 x_1034 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1034 = x_1028;
}
lean_ctor_set(x_1034, 0, x_1033);
lean_ctor_set(x_1034, 1, x_5);
lean_ctor_set(x_1034, 2, x_6);
lean_ctor_set(x_1034, 3, x_971);
lean_ctor_set(x_1034, 4, x_947);
lean_ctor_set(x_7, 4, x_1034);
lean_ctor_set(x_7, 3, x_1027);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
}
else
{
lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; 
x_1035 = lean_unsigned_to_nat(0u);
x_1036 = lean_nat_add(x_1023, x_1035);
lean_dec(x_1023);
lean_inc(x_952);
x_1037 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1037, 0, x_1036);
lean_ctor_set(x_1037, 1, x_950);
lean_ctor_set(x_1037, 2, x_951);
lean_ctor_set(x_1037, 3, x_952);
lean_ctor_set(x_1037, 4, x_970);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1038 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1038 = lean_box(0);
}
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; 
x_1039 = lean_ctor_get(x_971, 0);
lean_inc(x_1039);
x_1040 = lean_nat_add(x_1024, x_1039);
lean_dec(x_1039);
lean_dec(x_1024);
if (lean_is_scalar(x_1038)) {
 x_1041 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1041 = x_1038;
}
lean_ctor_set(x_1041, 0, x_1040);
lean_ctor_set(x_1041, 1, x_5);
lean_ctor_set(x_1041, 2, x_6);
lean_ctor_set(x_1041, 3, x_971);
lean_ctor_set(x_1041, 4, x_947);
lean_ctor_set(x_7, 4, x_1041);
lean_ctor_set(x_7, 3, x_1037);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
else
{
lean_object* x_1042; lean_object* x_1043; 
x_1042 = lean_nat_add(x_1024, x_1035);
lean_dec(x_1024);
if (lean_is_scalar(x_1038)) {
 x_1043 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1043 = x_1038;
}
lean_ctor_set(x_1043, 0, x_1042);
lean_ctor_set(x_1043, 1, x_5);
lean_ctor_set(x_1043, 2, x_6);
lean_ctor_set(x_1043, 3, x_971);
lean_ctor_set(x_1043, 4, x_947);
lean_ctor_set(x_7, 4, x_1043);
lean_ctor_set(x_7, 3, x_1037);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
}
}
}
else
{
lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; uint8_t x_1049; 
lean_dec(x_971);
lean_dec(x_970);
lean_dec(x_969);
lean_dec(x_968);
lean_dec(x_966);
x_1044 = lean_unsigned_to_nat(1u);
x_1045 = lean_nat_add(x_1044, x_949);
lean_dec(x_949);
x_1046 = lean_nat_add(x_1045, x_948);
lean_dec(x_1045);
x_1047 = lean_nat_add(x_1044, x_948);
lean_dec(x_948);
x_1048 = lean_nat_add(x_1047, x_967);
lean_dec(x_967);
lean_dec(x_1047);
lean_inc(x_947);
lean_ctor_set(x_7, 4, x_947);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1048);
x_1049 = !lean_is_exclusive(x_947);
if (x_1049 == 0)
{
lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; 
x_1050 = lean_ctor_get(x_947, 4);
lean_dec(x_1050);
x_1051 = lean_ctor_get(x_947, 3);
lean_dec(x_1051);
x_1052 = lean_ctor_get(x_947, 2);
lean_dec(x_1052);
x_1053 = lean_ctor_get(x_947, 1);
lean_dec(x_1053);
x_1054 = lean_ctor_get(x_947, 0);
lean_dec(x_1054);
lean_ctor_set(x_947, 4, x_7);
lean_ctor_set(x_947, 3, x_952);
lean_ctor_set(x_947, 2, x_951);
lean_ctor_set(x_947, 1, x_950);
lean_ctor_set(x_947, 0, x_1046);
return x_947;
}
else
{
lean_object* x_1055; 
lean_dec(x_947);
x_1055 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1055, 0, x_1046);
lean_ctor_set(x_1055, 1, x_950);
lean_ctor_set(x_1055, 2, x_951);
lean_ctor_set(x_1055, 3, x_952);
lean_ctor_set(x_1055, 4, x_7);
return x_1055;
}
}
}
else
{
lean_object* x_1056; lean_object* x_1057; 
lean_free_object(x_7);
lean_dec(x_952);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1056 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1057 = l_panic___at_Std_DTreeMap_Raw_erase___spec__8___rarg(x_1056);
return x_1057;
}
}
else
{
lean_object* x_1058; lean_object* x_1059; 
lean_free_object(x_7);
lean_dec(x_953);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1058 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1059 = l_panic___at_Std_DTreeMap_Raw_erase___spec__9___rarg(x_1058);
return x_1059;
}
}
else
{
lean_dec(x_7);
if (lean_obj_tag(x_952) == 0)
{
if (lean_obj_tag(x_953) == 0)
{
lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; uint8_t x_1068; 
x_1060 = lean_ctor_get(x_952, 0);
lean_inc(x_1060);
x_1061 = lean_ctor_get(x_953, 0);
lean_inc(x_1061);
x_1062 = lean_ctor_get(x_953, 1);
lean_inc(x_1062);
x_1063 = lean_ctor_get(x_953, 2);
lean_inc(x_1063);
x_1064 = lean_ctor_get(x_953, 3);
lean_inc(x_1064);
x_1065 = lean_ctor_get(x_953, 4);
lean_inc(x_1065);
x_1066 = lean_unsigned_to_nat(2u);
x_1067 = lean_nat_mul(x_1066, x_1060);
x_1068 = lean_nat_dec_lt(x_1061, x_1067);
lean_dec(x_1067);
if (x_1068 == 0)
{
lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; 
lean_dec(x_1061);
if (lean_is_exclusive(x_953)) {
 lean_ctor_release(x_953, 0);
 lean_ctor_release(x_953, 1);
 lean_ctor_release(x_953, 2);
 lean_ctor_release(x_953, 3);
 lean_ctor_release(x_953, 4);
 x_1069 = x_953;
} else {
 lean_dec_ref(x_953);
 x_1069 = lean_box(0);
}
x_1070 = lean_unsigned_to_nat(1u);
x_1071 = lean_nat_add(x_1070, x_949);
lean_dec(x_949);
x_1072 = lean_nat_add(x_1071, x_948);
lean_dec(x_1071);
x_1073 = lean_nat_add(x_1070, x_1060);
lean_dec(x_1060);
x_1074 = lean_nat_add(x_1070, x_948);
lean_dec(x_948);
if (lean_obj_tag(x_1064) == 0)
{
lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; 
x_1075 = lean_ctor_get(x_1064, 0);
lean_inc(x_1075);
x_1076 = lean_nat_add(x_1073, x_1075);
lean_dec(x_1075);
lean_dec(x_1073);
lean_inc(x_952);
if (lean_is_scalar(x_1069)) {
 x_1077 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1077 = x_1069;
}
lean_ctor_set(x_1077, 0, x_1076);
lean_ctor_set(x_1077, 1, x_950);
lean_ctor_set(x_1077, 2, x_951);
lean_ctor_set(x_1077, 3, x_952);
lean_ctor_set(x_1077, 4, x_1064);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1078 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1078 = lean_box(0);
}
if (lean_obj_tag(x_1065) == 0)
{
lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; 
x_1079 = lean_ctor_get(x_1065, 0);
lean_inc(x_1079);
x_1080 = lean_nat_add(x_1074, x_1079);
lean_dec(x_1079);
lean_dec(x_1074);
if (lean_is_scalar(x_1078)) {
 x_1081 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1081 = x_1078;
}
lean_ctor_set(x_1081, 0, x_1080);
lean_ctor_set(x_1081, 1, x_5);
lean_ctor_set(x_1081, 2, x_6);
lean_ctor_set(x_1081, 3, x_1065);
lean_ctor_set(x_1081, 4, x_947);
x_1082 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1082, 0, x_1072);
lean_ctor_set(x_1082, 1, x_1062);
lean_ctor_set(x_1082, 2, x_1063);
lean_ctor_set(x_1082, 3, x_1077);
lean_ctor_set(x_1082, 4, x_1081);
return x_1082;
}
else
{
lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; 
x_1083 = lean_unsigned_to_nat(0u);
x_1084 = lean_nat_add(x_1074, x_1083);
lean_dec(x_1074);
if (lean_is_scalar(x_1078)) {
 x_1085 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1085 = x_1078;
}
lean_ctor_set(x_1085, 0, x_1084);
lean_ctor_set(x_1085, 1, x_5);
lean_ctor_set(x_1085, 2, x_6);
lean_ctor_set(x_1085, 3, x_1065);
lean_ctor_set(x_1085, 4, x_947);
x_1086 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1086, 0, x_1072);
lean_ctor_set(x_1086, 1, x_1062);
lean_ctor_set(x_1086, 2, x_1063);
lean_ctor_set(x_1086, 3, x_1077);
lean_ctor_set(x_1086, 4, x_1085);
return x_1086;
}
}
else
{
lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; 
x_1087 = lean_unsigned_to_nat(0u);
x_1088 = lean_nat_add(x_1073, x_1087);
lean_dec(x_1073);
lean_inc(x_952);
if (lean_is_scalar(x_1069)) {
 x_1089 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1089 = x_1069;
}
lean_ctor_set(x_1089, 0, x_1088);
lean_ctor_set(x_1089, 1, x_950);
lean_ctor_set(x_1089, 2, x_951);
lean_ctor_set(x_1089, 3, x_952);
lean_ctor_set(x_1089, 4, x_1064);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1090 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1090 = lean_box(0);
}
if (lean_obj_tag(x_1065) == 0)
{
lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; 
x_1091 = lean_ctor_get(x_1065, 0);
lean_inc(x_1091);
x_1092 = lean_nat_add(x_1074, x_1091);
lean_dec(x_1091);
lean_dec(x_1074);
if (lean_is_scalar(x_1090)) {
 x_1093 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1093 = x_1090;
}
lean_ctor_set(x_1093, 0, x_1092);
lean_ctor_set(x_1093, 1, x_5);
lean_ctor_set(x_1093, 2, x_6);
lean_ctor_set(x_1093, 3, x_1065);
lean_ctor_set(x_1093, 4, x_947);
x_1094 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1094, 0, x_1072);
lean_ctor_set(x_1094, 1, x_1062);
lean_ctor_set(x_1094, 2, x_1063);
lean_ctor_set(x_1094, 3, x_1089);
lean_ctor_set(x_1094, 4, x_1093);
return x_1094;
}
else
{
lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; 
x_1095 = lean_nat_add(x_1074, x_1087);
lean_dec(x_1074);
if (lean_is_scalar(x_1090)) {
 x_1096 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1096 = x_1090;
}
lean_ctor_set(x_1096, 0, x_1095);
lean_ctor_set(x_1096, 1, x_5);
lean_ctor_set(x_1096, 2, x_6);
lean_ctor_set(x_1096, 3, x_1065);
lean_ctor_set(x_1096, 4, x_947);
x_1097 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1097, 0, x_1072);
lean_ctor_set(x_1097, 1, x_1062);
lean_ctor_set(x_1097, 2, x_1063);
lean_ctor_set(x_1097, 3, x_1089);
lean_ctor_set(x_1097, 4, x_1096);
return x_1097;
}
}
}
else
{
lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; 
lean_dec(x_1065);
lean_dec(x_1064);
lean_dec(x_1063);
lean_dec(x_1062);
lean_dec(x_1060);
x_1098 = lean_unsigned_to_nat(1u);
x_1099 = lean_nat_add(x_1098, x_949);
lean_dec(x_949);
x_1100 = lean_nat_add(x_1099, x_948);
lean_dec(x_1099);
x_1101 = lean_nat_add(x_1098, x_948);
lean_dec(x_948);
x_1102 = lean_nat_add(x_1101, x_1061);
lean_dec(x_1061);
lean_dec(x_1101);
lean_inc(x_947);
x_1103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1103, 0, x_1102);
lean_ctor_set(x_1103, 1, x_5);
lean_ctor_set(x_1103, 2, x_6);
lean_ctor_set(x_1103, 3, x_953);
lean_ctor_set(x_1103, 4, x_947);
if (lean_is_exclusive(x_947)) {
 lean_ctor_release(x_947, 0);
 lean_ctor_release(x_947, 1);
 lean_ctor_release(x_947, 2);
 lean_ctor_release(x_947, 3);
 lean_ctor_release(x_947, 4);
 x_1104 = x_947;
} else {
 lean_dec_ref(x_947);
 x_1104 = lean_box(0);
}
if (lean_is_scalar(x_1104)) {
 x_1105 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1105 = x_1104;
}
lean_ctor_set(x_1105, 0, x_1100);
lean_ctor_set(x_1105, 1, x_950);
lean_ctor_set(x_1105, 2, x_951);
lean_ctor_set(x_1105, 3, x_952);
lean_ctor_set(x_1105, 4, x_1103);
return x_1105;
}
}
else
{
lean_object* x_1106; lean_object* x_1107; 
lean_dec(x_952);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1106 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1107 = l_panic___at_Std_DTreeMap_Raw_erase___spec__8___rarg(x_1106);
return x_1107;
}
}
else
{
lean_object* x_1108; lean_object* x_1109; 
lean_dec(x_953);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1108 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1109 = l_panic___at_Std_DTreeMap_Raw_erase___spec__9___rarg(x_1108);
return x_1109;
}
}
}
}
else
{
lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; 
x_1110 = lean_ctor_get(x_947, 0);
lean_inc(x_1110);
x_1111 = lean_unsigned_to_nat(1u);
x_1112 = lean_nat_add(x_1111, x_1110);
lean_dec(x_1110);
x_1113 = lean_box(1);
lean_ctor_set(x_3, 4, x_947);
lean_ctor_set(x_3, 3, x_1113);
lean_ctor_set(x_3, 0, x_1112);
return x_3;
}
}
else
{
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_1114; 
x_1114 = lean_ctor_get(x_7, 3);
lean_inc(x_1114);
if (lean_obj_tag(x_1114) == 0)
{
lean_object* x_1115; 
x_1115 = lean_ctor_get(x_7, 4);
lean_inc(x_1115);
if (lean_obj_tag(x_1115) == 0)
{
uint8_t x_1116; 
x_1116 = !lean_is_exclusive(x_7);
if (x_1116 == 0)
{
lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; 
x_1117 = lean_ctor_get(x_7, 0);
x_1118 = lean_ctor_get(x_7, 1);
x_1119 = lean_ctor_get(x_7, 2);
x_1120 = lean_ctor_get(x_7, 4);
lean_dec(x_1120);
x_1121 = lean_ctor_get(x_7, 3);
lean_dec(x_1121);
x_1122 = lean_ctor_get(x_1115, 0);
lean_inc(x_1122);
x_1123 = lean_unsigned_to_nat(1u);
x_1124 = lean_nat_add(x_1123, x_1117);
lean_dec(x_1117);
x_1125 = lean_nat_add(x_1123, x_1122);
lean_dec(x_1122);
x_1126 = lean_box(1);
lean_ctor_set(x_7, 4, x_1126);
lean_ctor_set(x_7, 3, x_1115);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1125);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1119);
lean_ctor_set(x_3, 1, x_1118);
lean_ctor_set(x_3, 0, x_1124);
return x_3;
}
else
{
lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; 
x_1127 = lean_ctor_get(x_7, 0);
x_1128 = lean_ctor_get(x_7, 1);
x_1129 = lean_ctor_get(x_7, 2);
lean_inc(x_1129);
lean_inc(x_1128);
lean_inc(x_1127);
lean_dec(x_7);
x_1130 = lean_ctor_get(x_1115, 0);
lean_inc(x_1130);
x_1131 = lean_unsigned_to_nat(1u);
x_1132 = lean_nat_add(x_1131, x_1127);
lean_dec(x_1127);
x_1133 = lean_nat_add(x_1131, x_1130);
lean_dec(x_1130);
x_1134 = lean_box(1);
x_1135 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1135, 0, x_1133);
lean_ctor_set(x_1135, 1, x_5);
lean_ctor_set(x_1135, 2, x_6);
lean_ctor_set(x_1135, 3, x_1115);
lean_ctor_set(x_1135, 4, x_1134);
lean_ctor_set(x_3, 4, x_1135);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1129);
lean_ctor_set(x_3, 1, x_1128);
lean_ctor_set(x_3, 0, x_1132);
return x_3;
}
}
else
{
uint8_t x_1136; 
x_1136 = !lean_is_exclusive(x_7);
if (x_1136 == 0)
{
lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; 
x_1137 = lean_ctor_get(x_7, 1);
x_1138 = lean_ctor_get(x_7, 2);
x_1139 = lean_ctor_get(x_7, 4);
lean_dec(x_1139);
x_1140 = lean_ctor_get(x_7, 3);
lean_dec(x_1140);
x_1141 = lean_ctor_get(x_7, 0);
lean_dec(x_1141);
x_1142 = lean_box(1);
x_1143 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_7, 4, x_1142);
lean_ctor_set(x_7, 3, x_1142);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1143);
x_1144 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1138);
lean_ctor_set(x_3, 1, x_1137);
lean_ctor_set(x_3, 0, x_1144);
return x_3;
}
else
{
lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; 
x_1145 = lean_ctor_get(x_7, 1);
x_1146 = lean_ctor_get(x_7, 2);
lean_inc(x_1146);
lean_inc(x_1145);
lean_dec(x_7);
x_1147 = lean_box(1);
x_1148 = lean_unsigned_to_nat(1u);
x_1149 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1149, 0, x_1148);
lean_ctor_set(x_1149, 1, x_5);
lean_ctor_set(x_1149, 2, x_6);
lean_ctor_set(x_1149, 3, x_1147);
lean_ctor_set(x_1149, 4, x_1147);
x_1150 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_1149);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1146);
lean_ctor_set(x_3, 1, x_1145);
lean_ctor_set(x_3, 0, x_1150);
return x_3;
}
}
}
else
{
lean_object* x_1151; 
x_1151 = lean_ctor_get(x_7, 4);
lean_inc(x_1151);
if (lean_obj_tag(x_1151) == 0)
{
uint8_t x_1152; 
x_1152 = !lean_is_exclusive(x_7);
if (x_1152 == 0)
{
lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; uint8_t x_1158; 
x_1153 = lean_ctor_get(x_7, 1);
x_1154 = lean_ctor_get(x_7, 2);
x_1155 = lean_ctor_get(x_7, 4);
lean_dec(x_1155);
x_1156 = lean_ctor_get(x_7, 3);
lean_dec(x_1156);
x_1157 = lean_ctor_get(x_7, 0);
lean_dec(x_1157);
x_1158 = !lean_is_exclusive(x_1151);
if (x_1158 == 0)
{
lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; 
x_1159 = lean_ctor_get(x_1151, 1);
x_1160 = lean_ctor_get(x_1151, 2);
x_1161 = lean_ctor_get(x_1151, 4);
lean_dec(x_1161);
x_1162 = lean_ctor_get(x_1151, 3);
lean_dec(x_1162);
x_1163 = lean_ctor_get(x_1151, 0);
lean_dec(x_1163);
x_1164 = lean_box(1);
x_1165 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_1151, 4, x_1164);
lean_ctor_set(x_1151, 3, x_1164);
lean_ctor_set(x_1151, 2, x_1154);
lean_ctor_set(x_1151, 1, x_1153);
lean_ctor_set(x_1151, 0, x_1165);
lean_ctor_set(x_7, 4, x_1164);
lean_ctor_set(x_7, 3, x_1164);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1165);
x_1166 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1151);
lean_ctor_set(x_3, 2, x_1160);
lean_ctor_set(x_3, 1, x_1159);
lean_ctor_set(x_3, 0, x_1166);
return x_3;
}
else
{
lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; 
x_1167 = lean_ctor_get(x_1151, 1);
x_1168 = lean_ctor_get(x_1151, 2);
lean_inc(x_1168);
lean_inc(x_1167);
lean_dec(x_1151);
x_1169 = lean_box(1);
x_1170 = lean_unsigned_to_nat(1u);
x_1171 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1171, 0, x_1170);
lean_ctor_set(x_1171, 1, x_1153);
lean_ctor_set(x_1171, 2, x_1154);
lean_ctor_set(x_1171, 3, x_1169);
lean_ctor_set(x_1171, 4, x_1169);
lean_ctor_set(x_7, 4, x_1169);
lean_ctor_set(x_7, 3, x_1169);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1170);
x_1172 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1171);
lean_ctor_set(x_3, 2, x_1168);
lean_ctor_set(x_3, 1, x_1167);
lean_ctor_set(x_3, 0, x_1172);
return x_3;
}
}
else
{
lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; 
x_1173 = lean_ctor_get(x_7, 1);
x_1174 = lean_ctor_get(x_7, 2);
lean_inc(x_1174);
lean_inc(x_1173);
lean_dec(x_7);
x_1175 = lean_ctor_get(x_1151, 1);
lean_inc(x_1175);
x_1176 = lean_ctor_get(x_1151, 2);
lean_inc(x_1176);
if (lean_is_exclusive(x_1151)) {
 lean_ctor_release(x_1151, 0);
 lean_ctor_release(x_1151, 1);
 lean_ctor_release(x_1151, 2);
 lean_ctor_release(x_1151, 3);
 lean_ctor_release(x_1151, 4);
 x_1177 = x_1151;
} else {
 lean_dec_ref(x_1151);
 x_1177 = lean_box(0);
}
x_1178 = lean_box(1);
x_1179 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1177)) {
 x_1180 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1180 = x_1177;
}
lean_ctor_set(x_1180, 0, x_1179);
lean_ctor_set(x_1180, 1, x_1173);
lean_ctor_set(x_1180, 2, x_1174);
lean_ctor_set(x_1180, 3, x_1178);
lean_ctor_set(x_1180, 4, x_1178);
x_1181 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1181, 0, x_1179);
lean_ctor_set(x_1181, 1, x_5);
lean_ctor_set(x_1181, 2, x_6);
lean_ctor_set(x_1181, 3, x_1178);
lean_ctor_set(x_1181, 4, x_1178);
x_1182 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_1181);
lean_ctor_set(x_3, 3, x_1180);
lean_ctor_set(x_3, 2, x_1176);
lean_ctor_set(x_3, 1, x_1175);
lean_ctor_set(x_3, 0, x_1182);
return x_3;
}
}
else
{
lean_object* x_1183; lean_object* x_1184; 
x_1183 = lean_box(1);
x_1184 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_3, 4, x_1183);
lean_ctor_set(x_3, 0, x_1184);
return x_3;
}
}
}
else
{
lean_object* x_1185; lean_object* x_1186; 
x_1185 = lean_box(1);
x_1186 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_3, 4, x_1185);
lean_ctor_set(x_3, 3, x_1185);
lean_ctor_set(x_3, 0, x_1186);
return x_3;
}
}
}
}
}
else
{
lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; uint8_t x_1192; 
x_1187 = lean_ctor_get(x_3, 1);
x_1188 = lean_ctor_get(x_3, 2);
x_1189 = lean_ctor_get(x_3, 3);
x_1190 = lean_ctor_get(x_3, 4);
lean_inc(x_1190);
lean_inc(x_1189);
lean_inc(x_1188);
lean_inc(x_1187);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_1187);
lean_inc(x_2);
x_1191 = lean_apply_2(x_1, x_2, x_1187);
x_1192 = lean_unbox(x_1191);
lean_dec(x_1191);
switch (x_1192) {
case 0:
{
lean_object* x_1193; 
x_1193 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg(x_1, x_2, x_1189);
if (lean_obj_tag(x_1193) == 0)
{
if (lean_obj_tag(x_1190) == 0)
{
lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; uint8_t x_1202; 
x_1194 = lean_ctor_get(x_1193, 0);
lean_inc(x_1194);
x_1195 = lean_ctor_get(x_1190, 0);
lean_inc(x_1195);
x_1196 = lean_ctor_get(x_1190, 1);
lean_inc(x_1196);
x_1197 = lean_ctor_get(x_1190, 2);
lean_inc(x_1197);
x_1198 = lean_ctor_get(x_1190, 3);
lean_inc(x_1198);
x_1199 = lean_ctor_get(x_1190, 4);
lean_inc(x_1199);
x_1200 = lean_unsigned_to_nat(3u);
x_1201 = lean_nat_mul(x_1200, x_1194);
x_1202 = lean_nat_dec_lt(x_1201, x_1195);
lean_dec(x_1201);
if (x_1202 == 0)
{
lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; 
lean_dec(x_1199);
lean_dec(x_1198);
lean_dec(x_1197);
lean_dec(x_1196);
x_1203 = lean_unsigned_to_nat(1u);
x_1204 = lean_nat_add(x_1203, x_1194);
lean_dec(x_1194);
x_1205 = lean_nat_add(x_1204, x_1195);
lean_dec(x_1195);
lean_dec(x_1204);
x_1206 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1206, 0, x_1205);
lean_ctor_set(x_1206, 1, x_1187);
lean_ctor_set(x_1206, 2, x_1188);
lean_ctor_set(x_1206, 3, x_1193);
lean_ctor_set(x_1206, 4, x_1190);
return x_1206;
}
else
{
lean_object* x_1207; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1207 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1207 = lean_box(0);
}
if (lean_obj_tag(x_1198) == 0)
{
if (lean_obj_tag(x_1199) == 0)
{
lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; uint8_t x_1216; 
x_1208 = lean_ctor_get(x_1198, 0);
lean_inc(x_1208);
x_1209 = lean_ctor_get(x_1198, 1);
lean_inc(x_1209);
x_1210 = lean_ctor_get(x_1198, 2);
lean_inc(x_1210);
x_1211 = lean_ctor_get(x_1198, 3);
lean_inc(x_1211);
x_1212 = lean_ctor_get(x_1198, 4);
lean_inc(x_1212);
x_1213 = lean_ctor_get(x_1199, 0);
lean_inc(x_1213);
x_1214 = lean_unsigned_to_nat(2u);
x_1215 = lean_nat_mul(x_1214, x_1213);
x_1216 = lean_nat_dec_lt(x_1208, x_1215);
lean_dec(x_1215);
if (x_1216 == 0)
{
lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; 
lean_dec(x_1208);
if (lean_is_exclusive(x_1198)) {
 lean_ctor_release(x_1198, 0);
 lean_ctor_release(x_1198, 1);
 lean_ctor_release(x_1198, 2);
 lean_ctor_release(x_1198, 3);
 lean_ctor_release(x_1198, 4);
 x_1217 = x_1198;
} else {
 lean_dec_ref(x_1198);
 x_1217 = lean_box(0);
}
x_1218 = lean_unsigned_to_nat(1u);
x_1219 = lean_nat_add(x_1218, x_1194);
lean_dec(x_1194);
x_1220 = lean_nat_add(x_1219, x_1195);
lean_dec(x_1195);
x_1221 = lean_nat_add(x_1218, x_1213);
lean_dec(x_1213);
if (lean_obj_tag(x_1211) == 0)
{
lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; 
x_1222 = lean_ctor_get(x_1211, 0);
lean_inc(x_1222);
x_1223 = lean_nat_add(x_1219, x_1222);
lean_dec(x_1222);
lean_dec(x_1219);
lean_inc(x_1193);
if (lean_is_scalar(x_1217)) {
 x_1224 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1224 = x_1217;
}
lean_ctor_set(x_1224, 0, x_1223);
lean_ctor_set(x_1224, 1, x_1187);
lean_ctor_set(x_1224, 2, x_1188);
lean_ctor_set(x_1224, 3, x_1193);
lean_ctor_set(x_1224, 4, x_1211);
if (lean_is_exclusive(x_1193)) {
 lean_ctor_release(x_1193, 0);
 lean_ctor_release(x_1193, 1);
 lean_ctor_release(x_1193, 2);
 lean_ctor_release(x_1193, 3);
 lean_ctor_release(x_1193, 4);
 x_1225 = x_1193;
} else {
 lean_dec_ref(x_1193);
 x_1225 = lean_box(0);
}
if (lean_obj_tag(x_1212) == 0)
{
lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; 
x_1226 = lean_ctor_get(x_1212, 0);
lean_inc(x_1226);
x_1227 = lean_nat_add(x_1221, x_1226);
lean_dec(x_1226);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1228 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1228 = x_1207;
}
lean_ctor_set(x_1228, 0, x_1227);
lean_ctor_set(x_1228, 1, x_1196);
lean_ctor_set(x_1228, 2, x_1197);
lean_ctor_set(x_1228, 3, x_1212);
lean_ctor_set(x_1228, 4, x_1199);
if (lean_is_scalar(x_1225)) {
 x_1229 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1229 = x_1225;
}
lean_ctor_set(x_1229, 0, x_1220);
lean_ctor_set(x_1229, 1, x_1209);
lean_ctor_set(x_1229, 2, x_1210);
lean_ctor_set(x_1229, 3, x_1224);
lean_ctor_set(x_1229, 4, x_1228);
return x_1229;
}
else
{
lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; 
x_1230 = lean_unsigned_to_nat(0u);
x_1231 = lean_nat_add(x_1221, x_1230);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1232 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1232 = x_1207;
}
lean_ctor_set(x_1232, 0, x_1231);
lean_ctor_set(x_1232, 1, x_1196);
lean_ctor_set(x_1232, 2, x_1197);
lean_ctor_set(x_1232, 3, x_1212);
lean_ctor_set(x_1232, 4, x_1199);
if (lean_is_scalar(x_1225)) {
 x_1233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1233 = x_1225;
}
lean_ctor_set(x_1233, 0, x_1220);
lean_ctor_set(x_1233, 1, x_1209);
lean_ctor_set(x_1233, 2, x_1210);
lean_ctor_set(x_1233, 3, x_1224);
lean_ctor_set(x_1233, 4, x_1232);
return x_1233;
}
}
else
{
lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; 
x_1234 = lean_unsigned_to_nat(0u);
x_1235 = lean_nat_add(x_1219, x_1234);
lean_dec(x_1219);
lean_inc(x_1193);
if (lean_is_scalar(x_1217)) {
 x_1236 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1236 = x_1217;
}
lean_ctor_set(x_1236, 0, x_1235);
lean_ctor_set(x_1236, 1, x_1187);
lean_ctor_set(x_1236, 2, x_1188);
lean_ctor_set(x_1236, 3, x_1193);
lean_ctor_set(x_1236, 4, x_1211);
if (lean_is_exclusive(x_1193)) {
 lean_ctor_release(x_1193, 0);
 lean_ctor_release(x_1193, 1);
 lean_ctor_release(x_1193, 2);
 lean_ctor_release(x_1193, 3);
 lean_ctor_release(x_1193, 4);
 x_1237 = x_1193;
} else {
 lean_dec_ref(x_1193);
 x_1237 = lean_box(0);
}
if (lean_obj_tag(x_1212) == 0)
{
lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; 
x_1238 = lean_ctor_get(x_1212, 0);
lean_inc(x_1238);
x_1239 = lean_nat_add(x_1221, x_1238);
lean_dec(x_1238);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1240 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1240 = x_1207;
}
lean_ctor_set(x_1240, 0, x_1239);
lean_ctor_set(x_1240, 1, x_1196);
lean_ctor_set(x_1240, 2, x_1197);
lean_ctor_set(x_1240, 3, x_1212);
lean_ctor_set(x_1240, 4, x_1199);
if (lean_is_scalar(x_1237)) {
 x_1241 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1241 = x_1237;
}
lean_ctor_set(x_1241, 0, x_1220);
lean_ctor_set(x_1241, 1, x_1209);
lean_ctor_set(x_1241, 2, x_1210);
lean_ctor_set(x_1241, 3, x_1236);
lean_ctor_set(x_1241, 4, x_1240);
return x_1241;
}
else
{
lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; 
x_1242 = lean_nat_add(x_1221, x_1234);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1243 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1243 = x_1207;
}
lean_ctor_set(x_1243, 0, x_1242);
lean_ctor_set(x_1243, 1, x_1196);
lean_ctor_set(x_1243, 2, x_1197);
lean_ctor_set(x_1243, 3, x_1212);
lean_ctor_set(x_1243, 4, x_1199);
if (lean_is_scalar(x_1237)) {
 x_1244 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1244 = x_1237;
}
lean_ctor_set(x_1244, 0, x_1220);
lean_ctor_set(x_1244, 1, x_1209);
lean_ctor_set(x_1244, 2, x_1210);
lean_ctor_set(x_1244, 3, x_1236);
lean_ctor_set(x_1244, 4, x_1243);
return x_1244;
}
}
}
else
{
lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; 
lean_dec(x_1213);
lean_dec(x_1212);
lean_dec(x_1211);
lean_dec(x_1210);
lean_dec(x_1209);
x_1245 = lean_unsigned_to_nat(1u);
x_1246 = lean_nat_add(x_1245, x_1194);
lean_dec(x_1194);
x_1247 = lean_nat_add(x_1246, x_1195);
lean_dec(x_1195);
x_1248 = lean_nat_add(x_1246, x_1208);
lean_dec(x_1208);
lean_dec(x_1246);
lean_inc(x_1193);
if (lean_is_scalar(x_1207)) {
 x_1249 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1249 = x_1207;
}
lean_ctor_set(x_1249, 0, x_1248);
lean_ctor_set(x_1249, 1, x_1187);
lean_ctor_set(x_1249, 2, x_1188);
lean_ctor_set(x_1249, 3, x_1193);
lean_ctor_set(x_1249, 4, x_1198);
if (lean_is_exclusive(x_1193)) {
 lean_ctor_release(x_1193, 0);
 lean_ctor_release(x_1193, 1);
 lean_ctor_release(x_1193, 2);
 lean_ctor_release(x_1193, 3);
 lean_ctor_release(x_1193, 4);
 x_1250 = x_1193;
} else {
 lean_dec_ref(x_1193);
 x_1250 = lean_box(0);
}
if (lean_is_scalar(x_1250)) {
 x_1251 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1251 = x_1250;
}
lean_ctor_set(x_1251, 0, x_1247);
lean_ctor_set(x_1251, 1, x_1196);
lean_ctor_set(x_1251, 2, x_1197);
lean_ctor_set(x_1251, 3, x_1249);
lean_ctor_set(x_1251, 4, x_1199);
return x_1251;
}
}
else
{
lean_object* x_1252; lean_object* x_1253; 
lean_dec(x_1207);
lean_dec(x_1198);
lean_dec(x_1197);
lean_dec(x_1196);
lean_dec(x_1195);
lean_dec(x_1194);
lean_dec(x_1193);
lean_dec(x_1188);
lean_dec(x_1187);
x_1252 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_1253 = l_panic___at_Std_DTreeMap_Raw_erase___spec__2___rarg(x_1252);
return x_1253;
}
}
else
{
lean_object* x_1254; lean_object* x_1255; 
lean_dec(x_1207);
lean_dec(x_1199);
lean_dec(x_1197);
lean_dec(x_1196);
lean_dec(x_1195);
lean_dec(x_1194);
lean_dec(x_1193);
lean_dec(x_1188);
lean_dec(x_1187);
x_1254 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_1255 = l_panic___at_Std_DTreeMap_Raw_erase___spec__3___rarg(x_1254);
return x_1255;
}
}
}
else
{
lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; 
x_1256 = lean_ctor_get(x_1193, 0);
lean_inc(x_1256);
x_1257 = lean_unsigned_to_nat(1u);
x_1258 = lean_nat_add(x_1257, x_1256);
lean_dec(x_1256);
x_1259 = lean_box(1);
x_1260 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1260, 0, x_1258);
lean_ctor_set(x_1260, 1, x_1187);
lean_ctor_set(x_1260, 2, x_1188);
lean_ctor_set(x_1260, 3, x_1193);
lean_ctor_set(x_1260, 4, x_1259);
return x_1260;
}
}
else
{
if (lean_obj_tag(x_1190) == 0)
{
lean_object* x_1261; 
x_1261 = lean_ctor_get(x_1190, 3);
lean_inc(x_1261);
if (lean_obj_tag(x_1261) == 0)
{
lean_object* x_1262; 
x_1262 = lean_ctor_get(x_1190, 4);
lean_inc(x_1262);
if (lean_obj_tag(x_1262) == 0)
{
lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; 
x_1263 = lean_ctor_get(x_1190, 0);
lean_inc(x_1263);
x_1264 = lean_ctor_get(x_1190, 1);
lean_inc(x_1264);
x_1265 = lean_ctor_get(x_1190, 2);
lean_inc(x_1265);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1266 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1266 = lean_box(0);
}
x_1267 = lean_ctor_get(x_1261, 0);
lean_inc(x_1267);
x_1268 = lean_unsigned_to_nat(1u);
x_1269 = lean_nat_add(x_1268, x_1263);
lean_dec(x_1263);
x_1270 = lean_nat_add(x_1268, x_1267);
lean_dec(x_1267);
x_1271 = lean_box(1);
if (lean_is_scalar(x_1266)) {
 x_1272 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1272 = x_1266;
}
lean_ctor_set(x_1272, 0, x_1270);
lean_ctor_set(x_1272, 1, x_1187);
lean_ctor_set(x_1272, 2, x_1188);
lean_ctor_set(x_1272, 3, x_1271);
lean_ctor_set(x_1272, 4, x_1261);
x_1273 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1273, 0, x_1269);
lean_ctor_set(x_1273, 1, x_1264);
lean_ctor_set(x_1273, 2, x_1265);
lean_ctor_set(x_1273, 3, x_1272);
lean_ctor_set(x_1273, 4, x_1262);
return x_1273;
}
else
{
lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; 
x_1274 = lean_ctor_get(x_1190, 1);
lean_inc(x_1274);
x_1275 = lean_ctor_get(x_1190, 2);
lean_inc(x_1275);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1276 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1276 = lean_box(0);
}
x_1277 = lean_ctor_get(x_1261, 1);
lean_inc(x_1277);
x_1278 = lean_ctor_get(x_1261, 2);
lean_inc(x_1278);
if (lean_is_exclusive(x_1261)) {
 lean_ctor_release(x_1261, 0);
 lean_ctor_release(x_1261, 1);
 lean_ctor_release(x_1261, 2);
 lean_ctor_release(x_1261, 3);
 lean_ctor_release(x_1261, 4);
 x_1279 = x_1261;
} else {
 lean_dec_ref(x_1261);
 x_1279 = lean_box(0);
}
x_1280 = lean_box(1);
x_1281 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1279)) {
 x_1282 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1282 = x_1279;
}
lean_ctor_set(x_1282, 0, x_1281);
lean_ctor_set(x_1282, 1, x_1187);
lean_ctor_set(x_1282, 2, x_1188);
lean_ctor_set(x_1282, 3, x_1280);
lean_ctor_set(x_1282, 4, x_1280);
if (lean_is_scalar(x_1276)) {
 x_1283 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1283 = x_1276;
}
lean_ctor_set(x_1283, 0, x_1281);
lean_ctor_set(x_1283, 1, x_1274);
lean_ctor_set(x_1283, 2, x_1275);
lean_ctor_set(x_1283, 3, x_1280);
lean_ctor_set(x_1283, 4, x_1280);
x_1284 = lean_unsigned_to_nat(3u);
x_1285 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1285, 0, x_1284);
lean_ctor_set(x_1285, 1, x_1277);
lean_ctor_set(x_1285, 2, x_1278);
lean_ctor_set(x_1285, 3, x_1282);
lean_ctor_set(x_1285, 4, x_1283);
return x_1285;
}
}
else
{
lean_object* x_1286; 
x_1286 = lean_ctor_get(x_1190, 4);
lean_inc(x_1286);
if (lean_obj_tag(x_1286) == 0)
{
lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; 
x_1287 = lean_ctor_get(x_1190, 1);
lean_inc(x_1287);
x_1288 = lean_ctor_get(x_1190, 2);
lean_inc(x_1288);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1289 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1289 = lean_box(0);
}
x_1290 = lean_box(1);
x_1291 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1289)) {
 x_1292 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1292 = x_1289;
}
lean_ctor_set(x_1292, 0, x_1291);
lean_ctor_set(x_1292, 1, x_1187);
lean_ctor_set(x_1292, 2, x_1188);
lean_ctor_set(x_1292, 3, x_1290);
lean_ctor_set(x_1292, 4, x_1290);
x_1293 = lean_unsigned_to_nat(3u);
x_1294 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1294, 0, x_1293);
lean_ctor_set(x_1294, 1, x_1287);
lean_ctor_set(x_1294, 2, x_1288);
lean_ctor_set(x_1294, 3, x_1292);
lean_ctor_set(x_1294, 4, x_1286);
return x_1294;
}
else
{
lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; 
x_1295 = lean_box(1);
x_1296 = lean_unsigned_to_nat(2u);
x_1297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1297, 0, x_1296);
lean_ctor_set(x_1297, 1, x_1187);
lean_ctor_set(x_1297, 2, x_1188);
lean_ctor_set(x_1297, 3, x_1295);
lean_ctor_set(x_1297, 4, x_1190);
return x_1297;
}
}
}
else
{
lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; 
x_1298 = lean_box(1);
x_1299 = lean_unsigned_to_nat(1u);
x_1300 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1300, 0, x_1299);
lean_ctor_set(x_1300, 1, x_1187);
lean_ctor_set(x_1300, 2, x_1188);
lean_ctor_set(x_1300, 3, x_1298);
lean_ctor_set(x_1300, 4, x_1298);
return x_1300;
}
}
}
case 1:
{
lean_dec(x_1188);
lean_dec(x_1187);
lean_dec(x_2);
lean_dec(x_1);
if (lean_obj_tag(x_1189) == 0)
{
if (lean_obj_tag(x_1190) == 0)
{
lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; uint8_t x_1311; 
x_1301 = lean_ctor_get(x_1189, 0);
lean_inc(x_1301);
x_1302 = lean_ctor_get(x_1189, 1);
lean_inc(x_1302);
x_1303 = lean_ctor_get(x_1189, 2);
lean_inc(x_1303);
x_1304 = lean_ctor_get(x_1189, 3);
lean_inc(x_1304);
x_1305 = lean_ctor_get(x_1189, 4);
lean_inc(x_1305);
x_1306 = lean_ctor_get(x_1190, 0);
lean_inc(x_1306);
x_1307 = lean_ctor_get(x_1190, 1);
lean_inc(x_1307);
x_1308 = lean_ctor_get(x_1190, 2);
lean_inc(x_1308);
x_1309 = lean_ctor_get(x_1190, 3);
lean_inc(x_1309);
x_1310 = lean_ctor_get(x_1190, 4);
lean_inc(x_1310);
x_1311 = lean_nat_dec_lt(x_1301, x_1306);
if (x_1311 == 0)
{
lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; 
lean_dec(x_1301);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1312 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1312 = lean_box(0);
}
x_1313 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_1302, x_1303, x_1304, x_1305);
x_1314 = lean_ctor_get(x_1313, 2);
lean_inc(x_1314);
if (lean_obj_tag(x_1314) == 0)
{
lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; uint8_t x_1320; 
x_1315 = lean_ctor_get(x_1313, 0);
lean_inc(x_1315);
x_1316 = lean_ctor_get(x_1313, 1);
lean_inc(x_1316);
lean_dec(x_1313);
x_1317 = lean_ctor_get(x_1314, 0);
lean_inc(x_1317);
x_1318 = lean_unsigned_to_nat(3u);
x_1319 = lean_nat_mul(x_1318, x_1317);
x_1320 = lean_nat_dec_lt(x_1319, x_1306);
lean_dec(x_1319);
if (x_1320 == 0)
{
lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; 
lean_dec(x_1310);
lean_dec(x_1309);
lean_dec(x_1308);
lean_dec(x_1307);
x_1321 = lean_unsigned_to_nat(1u);
x_1322 = lean_nat_add(x_1321, x_1317);
lean_dec(x_1317);
x_1323 = lean_nat_add(x_1322, x_1306);
lean_dec(x_1306);
lean_dec(x_1322);
if (lean_is_scalar(x_1312)) {
 x_1324 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1324 = x_1312;
}
lean_ctor_set(x_1324, 0, x_1323);
lean_ctor_set(x_1324, 1, x_1315);
lean_ctor_set(x_1324, 2, x_1316);
lean_ctor_set(x_1324, 3, x_1314);
lean_ctor_set(x_1324, 4, x_1190);
return x_1324;
}
else
{
lean_object* x_1325; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1325 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1325 = lean_box(0);
}
if (lean_obj_tag(x_1309) == 0)
{
if (lean_obj_tag(x_1310) == 0)
{
lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; uint8_t x_1334; 
x_1326 = lean_ctor_get(x_1309, 0);
lean_inc(x_1326);
x_1327 = lean_ctor_get(x_1309, 1);
lean_inc(x_1327);
x_1328 = lean_ctor_get(x_1309, 2);
lean_inc(x_1328);
x_1329 = lean_ctor_get(x_1309, 3);
lean_inc(x_1329);
x_1330 = lean_ctor_get(x_1309, 4);
lean_inc(x_1330);
x_1331 = lean_ctor_get(x_1310, 0);
lean_inc(x_1331);
x_1332 = lean_unsigned_to_nat(2u);
x_1333 = lean_nat_mul(x_1332, x_1331);
x_1334 = lean_nat_dec_lt(x_1326, x_1333);
lean_dec(x_1333);
if (x_1334 == 0)
{
lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; 
lean_dec(x_1326);
lean_dec(x_1312);
if (lean_is_exclusive(x_1309)) {
 lean_ctor_release(x_1309, 0);
 lean_ctor_release(x_1309, 1);
 lean_ctor_release(x_1309, 2);
 lean_ctor_release(x_1309, 3);
 lean_ctor_release(x_1309, 4);
 x_1335 = x_1309;
} else {
 lean_dec_ref(x_1309);
 x_1335 = lean_box(0);
}
x_1336 = lean_unsigned_to_nat(1u);
x_1337 = lean_nat_add(x_1336, x_1317);
lean_dec(x_1317);
x_1338 = lean_nat_add(x_1337, x_1306);
lean_dec(x_1306);
x_1339 = lean_nat_add(x_1336, x_1331);
lean_dec(x_1331);
if (lean_obj_tag(x_1329) == 0)
{
lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; 
x_1340 = lean_ctor_get(x_1329, 0);
lean_inc(x_1340);
x_1341 = lean_nat_add(x_1337, x_1340);
lean_dec(x_1340);
lean_dec(x_1337);
lean_inc(x_1314);
if (lean_is_scalar(x_1335)) {
 x_1342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1342 = x_1335;
}
lean_ctor_set(x_1342, 0, x_1341);
lean_ctor_set(x_1342, 1, x_1315);
lean_ctor_set(x_1342, 2, x_1316);
lean_ctor_set(x_1342, 3, x_1314);
lean_ctor_set(x_1342, 4, x_1329);
if (lean_is_exclusive(x_1314)) {
 lean_ctor_release(x_1314, 0);
 lean_ctor_release(x_1314, 1);
 lean_ctor_release(x_1314, 2);
 lean_ctor_release(x_1314, 3);
 lean_ctor_release(x_1314, 4);
 x_1343 = x_1314;
} else {
 lean_dec_ref(x_1314);
 x_1343 = lean_box(0);
}
if (lean_obj_tag(x_1330) == 0)
{
lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; 
x_1344 = lean_ctor_get(x_1330, 0);
lean_inc(x_1344);
x_1345 = lean_nat_add(x_1339, x_1344);
lean_dec(x_1344);
lean_dec(x_1339);
if (lean_is_scalar(x_1343)) {
 x_1346 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1346 = x_1343;
}
lean_ctor_set(x_1346, 0, x_1345);
lean_ctor_set(x_1346, 1, x_1307);
lean_ctor_set(x_1346, 2, x_1308);
lean_ctor_set(x_1346, 3, x_1330);
lean_ctor_set(x_1346, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1347 = x_1325;
}
lean_ctor_set(x_1347, 0, x_1338);
lean_ctor_set(x_1347, 1, x_1327);
lean_ctor_set(x_1347, 2, x_1328);
lean_ctor_set(x_1347, 3, x_1342);
lean_ctor_set(x_1347, 4, x_1346);
return x_1347;
}
else
{
lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; 
x_1348 = lean_unsigned_to_nat(0u);
x_1349 = lean_nat_add(x_1339, x_1348);
lean_dec(x_1339);
if (lean_is_scalar(x_1343)) {
 x_1350 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1350 = x_1343;
}
lean_ctor_set(x_1350, 0, x_1349);
lean_ctor_set(x_1350, 1, x_1307);
lean_ctor_set(x_1350, 2, x_1308);
lean_ctor_set(x_1350, 3, x_1330);
lean_ctor_set(x_1350, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1351 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1351 = x_1325;
}
lean_ctor_set(x_1351, 0, x_1338);
lean_ctor_set(x_1351, 1, x_1327);
lean_ctor_set(x_1351, 2, x_1328);
lean_ctor_set(x_1351, 3, x_1342);
lean_ctor_set(x_1351, 4, x_1350);
return x_1351;
}
}
else
{
lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; 
x_1352 = lean_unsigned_to_nat(0u);
x_1353 = lean_nat_add(x_1337, x_1352);
lean_dec(x_1337);
lean_inc(x_1314);
if (lean_is_scalar(x_1335)) {
 x_1354 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1354 = x_1335;
}
lean_ctor_set(x_1354, 0, x_1353);
lean_ctor_set(x_1354, 1, x_1315);
lean_ctor_set(x_1354, 2, x_1316);
lean_ctor_set(x_1354, 3, x_1314);
lean_ctor_set(x_1354, 4, x_1329);
if (lean_is_exclusive(x_1314)) {
 lean_ctor_release(x_1314, 0);
 lean_ctor_release(x_1314, 1);
 lean_ctor_release(x_1314, 2);
 lean_ctor_release(x_1314, 3);
 lean_ctor_release(x_1314, 4);
 x_1355 = x_1314;
} else {
 lean_dec_ref(x_1314);
 x_1355 = lean_box(0);
}
if (lean_obj_tag(x_1330) == 0)
{
lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; 
x_1356 = lean_ctor_get(x_1330, 0);
lean_inc(x_1356);
x_1357 = lean_nat_add(x_1339, x_1356);
lean_dec(x_1356);
lean_dec(x_1339);
if (lean_is_scalar(x_1355)) {
 x_1358 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1358 = x_1355;
}
lean_ctor_set(x_1358, 0, x_1357);
lean_ctor_set(x_1358, 1, x_1307);
lean_ctor_set(x_1358, 2, x_1308);
lean_ctor_set(x_1358, 3, x_1330);
lean_ctor_set(x_1358, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1359 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1359 = x_1325;
}
lean_ctor_set(x_1359, 0, x_1338);
lean_ctor_set(x_1359, 1, x_1327);
lean_ctor_set(x_1359, 2, x_1328);
lean_ctor_set(x_1359, 3, x_1354);
lean_ctor_set(x_1359, 4, x_1358);
return x_1359;
}
else
{
lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; 
x_1360 = lean_nat_add(x_1339, x_1352);
lean_dec(x_1339);
if (lean_is_scalar(x_1355)) {
 x_1361 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1361 = x_1355;
}
lean_ctor_set(x_1361, 0, x_1360);
lean_ctor_set(x_1361, 1, x_1307);
lean_ctor_set(x_1361, 2, x_1308);
lean_ctor_set(x_1361, 3, x_1330);
lean_ctor_set(x_1361, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1362 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1362 = x_1325;
}
lean_ctor_set(x_1362, 0, x_1338);
lean_ctor_set(x_1362, 1, x_1327);
lean_ctor_set(x_1362, 2, x_1328);
lean_ctor_set(x_1362, 3, x_1354);
lean_ctor_set(x_1362, 4, x_1361);
return x_1362;
}
}
}
else
{
lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; 
lean_dec(x_1331);
lean_dec(x_1330);
lean_dec(x_1329);
lean_dec(x_1328);
lean_dec(x_1327);
x_1363 = lean_unsigned_to_nat(1u);
x_1364 = lean_nat_add(x_1363, x_1317);
lean_dec(x_1317);
x_1365 = lean_nat_add(x_1364, x_1306);
lean_dec(x_1306);
x_1366 = lean_nat_add(x_1364, x_1326);
lean_dec(x_1326);
lean_dec(x_1364);
if (lean_is_scalar(x_1325)) {
 x_1367 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1367 = x_1325;
}
lean_ctor_set(x_1367, 0, x_1366);
lean_ctor_set(x_1367, 1, x_1315);
lean_ctor_set(x_1367, 2, x_1316);
lean_ctor_set(x_1367, 3, x_1314);
lean_ctor_set(x_1367, 4, x_1309);
if (lean_is_scalar(x_1312)) {
 x_1368 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1368 = x_1312;
}
lean_ctor_set(x_1368, 0, x_1365);
lean_ctor_set(x_1368, 1, x_1307);
lean_ctor_set(x_1368, 2, x_1308);
lean_ctor_set(x_1368, 3, x_1367);
lean_ctor_set(x_1368, 4, x_1310);
return x_1368;
}
}
else
{
lean_object* x_1369; lean_object* x_1370; 
lean_dec(x_1325);
lean_dec(x_1317);
lean_dec(x_1316);
lean_dec(x_1315);
lean_dec(x_1314);
lean_dec(x_1312);
lean_dec(x_1309);
lean_dec(x_1308);
lean_dec(x_1307);
lean_dec(x_1306);
x_1369 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_1370 = l_panic___at_Std_DTreeMap_Raw_erase___spec__4___rarg(x_1369);
return x_1370;
}
}
else
{
lean_object* x_1371; lean_object* x_1372; 
lean_dec(x_1325);
lean_dec(x_1317);
lean_dec(x_1316);
lean_dec(x_1315);
lean_dec(x_1314);
lean_dec(x_1312);
lean_dec(x_1310);
lean_dec(x_1308);
lean_dec(x_1307);
lean_dec(x_1306);
x_1371 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_1372 = l_panic___at_Std_DTreeMap_Raw_erase___spec__5___rarg(x_1371);
return x_1372;
}
}
}
else
{
if (lean_obj_tag(x_1309) == 0)
{
lean_object* x_1373; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1373 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1373 = lean_box(0);
}
if (lean_obj_tag(x_1310) == 0)
{
lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; lean_object* x_1382; 
x_1374 = lean_ctor_get(x_1313, 0);
lean_inc(x_1374);
x_1375 = lean_ctor_get(x_1313, 1);
lean_inc(x_1375);
lean_dec(x_1313);
x_1376 = lean_ctor_get(x_1309, 0);
lean_inc(x_1376);
x_1377 = lean_unsigned_to_nat(1u);
x_1378 = lean_nat_add(x_1377, x_1306);
lean_dec(x_1306);
x_1379 = lean_nat_add(x_1377, x_1376);
lean_dec(x_1376);
x_1380 = lean_box(1);
if (lean_is_scalar(x_1373)) {
 x_1381 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1381 = x_1373;
}
lean_ctor_set(x_1381, 0, x_1379);
lean_ctor_set(x_1381, 1, x_1374);
lean_ctor_set(x_1381, 2, x_1375);
lean_ctor_set(x_1381, 3, x_1380);
lean_ctor_set(x_1381, 4, x_1309);
if (lean_is_scalar(x_1312)) {
 x_1382 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1382 = x_1312;
}
lean_ctor_set(x_1382, 0, x_1378);
lean_ctor_set(x_1382, 1, x_1307);
lean_ctor_set(x_1382, 2, x_1308);
lean_ctor_set(x_1382, 3, x_1381);
lean_ctor_set(x_1382, 4, x_1310);
return x_1382;
}
else
{
lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; 
lean_dec(x_1306);
x_1383 = lean_ctor_get(x_1313, 0);
lean_inc(x_1383);
x_1384 = lean_ctor_get(x_1313, 1);
lean_inc(x_1384);
lean_dec(x_1313);
x_1385 = lean_ctor_get(x_1309, 1);
lean_inc(x_1385);
x_1386 = lean_ctor_get(x_1309, 2);
lean_inc(x_1386);
if (lean_is_exclusive(x_1309)) {
 lean_ctor_release(x_1309, 0);
 lean_ctor_release(x_1309, 1);
 lean_ctor_release(x_1309, 2);
 lean_ctor_release(x_1309, 3);
 lean_ctor_release(x_1309, 4);
 x_1387 = x_1309;
} else {
 lean_dec_ref(x_1309);
 x_1387 = lean_box(0);
}
x_1388 = lean_box(1);
x_1389 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1387)) {
 x_1390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1390 = x_1387;
}
lean_ctor_set(x_1390, 0, x_1389);
lean_ctor_set(x_1390, 1, x_1383);
lean_ctor_set(x_1390, 2, x_1384);
lean_ctor_set(x_1390, 3, x_1388);
lean_ctor_set(x_1390, 4, x_1388);
if (lean_is_scalar(x_1373)) {
 x_1391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1391 = x_1373;
}
lean_ctor_set(x_1391, 0, x_1389);
lean_ctor_set(x_1391, 1, x_1307);
lean_ctor_set(x_1391, 2, x_1308);
lean_ctor_set(x_1391, 3, x_1388);
lean_ctor_set(x_1391, 4, x_1388);
x_1392 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1312)) {
 x_1393 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1393 = x_1312;
}
lean_ctor_set(x_1393, 0, x_1392);
lean_ctor_set(x_1393, 1, x_1385);
lean_ctor_set(x_1393, 2, x_1386);
lean_ctor_set(x_1393, 3, x_1390);
lean_ctor_set(x_1393, 4, x_1391);
return x_1393;
}
}
else
{
lean_dec(x_1306);
if (lean_obj_tag(x_1310) == 0)
{
lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1394 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1394 = lean_box(0);
}
x_1395 = lean_ctor_get(x_1313, 0);
lean_inc(x_1395);
x_1396 = lean_ctor_get(x_1313, 1);
lean_inc(x_1396);
lean_dec(x_1313);
x_1397 = lean_box(1);
x_1398 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1394)) {
 x_1399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1399 = x_1394;
}
lean_ctor_set(x_1399, 0, x_1398);
lean_ctor_set(x_1399, 1, x_1395);
lean_ctor_set(x_1399, 2, x_1396);
lean_ctor_set(x_1399, 3, x_1397);
lean_ctor_set(x_1399, 4, x_1397);
x_1400 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1312)) {
 x_1401 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1401 = x_1312;
}
lean_ctor_set(x_1401, 0, x_1400);
lean_ctor_set(x_1401, 1, x_1307);
lean_ctor_set(x_1401, 2, x_1308);
lean_ctor_set(x_1401, 3, x_1399);
lean_ctor_set(x_1401, 4, x_1310);
return x_1401;
}
else
{
lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; 
lean_dec(x_1308);
lean_dec(x_1307);
x_1402 = lean_ctor_get(x_1313, 0);
lean_inc(x_1402);
x_1403 = lean_ctor_get(x_1313, 1);
lean_inc(x_1403);
lean_dec(x_1313);
x_1404 = lean_box(1);
x_1405 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_1312)) {
 x_1406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1406 = x_1312;
}
lean_ctor_set(x_1406, 0, x_1405);
lean_ctor_set(x_1406, 1, x_1402);
lean_ctor_set(x_1406, 2, x_1403);
lean_ctor_set(x_1406, 3, x_1404);
lean_ctor_set(x_1406, 4, x_1190);
return x_1406;
}
}
}
}
else
{
lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; 
lean_dec(x_1306);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1407 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1407 = lean_box(0);
}
x_1408 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_1307, x_1308, x_1309, x_1310);
x_1409 = lean_ctor_get(x_1408, 2);
lean_inc(x_1409);
if (lean_obj_tag(x_1409) == 0)
{
lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; uint8_t x_1415; 
x_1410 = lean_ctor_get(x_1408, 0);
lean_inc(x_1410);
x_1411 = lean_ctor_get(x_1408, 1);
lean_inc(x_1411);
lean_dec(x_1408);
x_1412 = lean_ctor_get(x_1409, 0);
lean_inc(x_1412);
x_1413 = lean_unsigned_to_nat(3u);
x_1414 = lean_nat_mul(x_1413, x_1412);
x_1415 = lean_nat_dec_lt(x_1414, x_1301);
lean_dec(x_1414);
if (x_1415 == 0)
{
lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; 
lean_dec(x_1305);
lean_dec(x_1304);
lean_dec(x_1303);
lean_dec(x_1302);
x_1416 = lean_unsigned_to_nat(1u);
x_1417 = lean_nat_add(x_1416, x_1301);
lean_dec(x_1301);
x_1418 = lean_nat_add(x_1417, x_1412);
lean_dec(x_1412);
lean_dec(x_1417);
if (lean_is_scalar(x_1407)) {
 x_1419 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1419 = x_1407;
}
lean_ctor_set(x_1419, 0, x_1418);
lean_ctor_set(x_1419, 1, x_1410);
lean_ctor_set(x_1419, 2, x_1411);
lean_ctor_set(x_1419, 3, x_1189);
lean_ctor_set(x_1419, 4, x_1409);
return x_1419;
}
else
{
lean_object* x_1420; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1420 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1420 = lean_box(0);
}
if (lean_obj_tag(x_1304) == 0)
{
if (lean_obj_tag(x_1305) == 0)
{
lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; uint8_t x_1429; 
x_1421 = lean_ctor_get(x_1304, 0);
lean_inc(x_1421);
x_1422 = lean_ctor_get(x_1305, 0);
lean_inc(x_1422);
x_1423 = lean_ctor_get(x_1305, 1);
lean_inc(x_1423);
x_1424 = lean_ctor_get(x_1305, 2);
lean_inc(x_1424);
x_1425 = lean_ctor_get(x_1305, 3);
lean_inc(x_1425);
x_1426 = lean_ctor_get(x_1305, 4);
lean_inc(x_1426);
x_1427 = lean_unsigned_to_nat(2u);
x_1428 = lean_nat_mul(x_1427, x_1421);
x_1429 = lean_nat_dec_lt(x_1422, x_1428);
lean_dec(x_1428);
if (x_1429 == 0)
{
lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; 
lean_dec(x_1422);
lean_dec(x_1420);
lean_dec(x_1407);
if (lean_is_exclusive(x_1305)) {
 lean_ctor_release(x_1305, 0);
 lean_ctor_release(x_1305, 1);
 lean_ctor_release(x_1305, 2);
 lean_ctor_release(x_1305, 3);
 lean_ctor_release(x_1305, 4);
 x_1430 = x_1305;
} else {
 lean_dec_ref(x_1305);
 x_1430 = lean_box(0);
}
x_1431 = lean_unsigned_to_nat(1u);
x_1432 = lean_nat_add(x_1431, x_1301);
lean_dec(x_1301);
x_1433 = lean_nat_add(x_1432, x_1412);
lean_dec(x_1432);
x_1434 = lean_nat_add(x_1431, x_1421);
lean_dec(x_1421);
x_1435 = lean_nat_add(x_1431, x_1412);
lean_dec(x_1412);
if (lean_obj_tag(x_1425) == 0)
{
lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; 
x_1436 = lean_ctor_get(x_1425, 0);
lean_inc(x_1436);
x_1437 = lean_nat_add(x_1434, x_1436);
lean_dec(x_1436);
lean_dec(x_1434);
lean_inc(x_1304);
if (lean_is_scalar(x_1430)) {
 x_1438 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1438 = x_1430;
}
lean_ctor_set(x_1438, 0, x_1437);
lean_ctor_set(x_1438, 1, x_1302);
lean_ctor_set(x_1438, 2, x_1303);
lean_ctor_set(x_1438, 3, x_1304);
lean_ctor_set(x_1438, 4, x_1425);
if (lean_is_exclusive(x_1304)) {
 lean_ctor_release(x_1304, 0);
 lean_ctor_release(x_1304, 1);
 lean_ctor_release(x_1304, 2);
 lean_ctor_release(x_1304, 3);
 lean_ctor_release(x_1304, 4);
 x_1439 = x_1304;
} else {
 lean_dec_ref(x_1304);
 x_1439 = lean_box(0);
}
if (lean_obj_tag(x_1426) == 0)
{
lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; 
x_1440 = lean_ctor_get(x_1426, 0);
lean_inc(x_1440);
x_1441 = lean_nat_add(x_1435, x_1440);
lean_dec(x_1440);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1439)) {
 x_1442 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1442 = x_1439;
}
lean_ctor_set(x_1442, 0, x_1441);
lean_ctor_set(x_1442, 1, x_1410);
lean_ctor_set(x_1442, 2, x_1411);
lean_ctor_set(x_1442, 3, x_1426);
lean_ctor_set(x_1442, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1443 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1443 = lean_box(0);
}
if (lean_is_scalar(x_1443)) {
 x_1444 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1444 = x_1443;
}
lean_ctor_set(x_1444, 0, x_1433);
lean_ctor_set(x_1444, 1, x_1423);
lean_ctor_set(x_1444, 2, x_1424);
lean_ctor_set(x_1444, 3, x_1438);
lean_ctor_set(x_1444, 4, x_1442);
return x_1444;
}
else
{
lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; 
x_1445 = lean_unsigned_to_nat(0u);
x_1446 = lean_nat_add(x_1435, x_1445);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1439)) {
 x_1447 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1447 = x_1439;
}
lean_ctor_set(x_1447, 0, x_1446);
lean_ctor_set(x_1447, 1, x_1410);
lean_ctor_set(x_1447, 2, x_1411);
lean_ctor_set(x_1447, 3, x_1426);
lean_ctor_set(x_1447, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1448 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1448 = lean_box(0);
}
if (lean_is_scalar(x_1448)) {
 x_1449 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1449 = x_1448;
}
lean_ctor_set(x_1449, 0, x_1433);
lean_ctor_set(x_1449, 1, x_1423);
lean_ctor_set(x_1449, 2, x_1424);
lean_ctor_set(x_1449, 3, x_1438);
lean_ctor_set(x_1449, 4, x_1447);
return x_1449;
}
}
else
{
lean_object* x_1450; lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; 
x_1450 = lean_unsigned_to_nat(0u);
x_1451 = lean_nat_add(x_1434, x_1450);
lean_dec(x_1434);
lean_inc(x_1304);
if (lean_is_scalar(x_1430)) {
 x_1452 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1452 = x_1430;
}
lean_ctor_set(x_1452, 0, x_1451);
lean_ctor_set(x_1452, 1, x_1302);
lean_ctor_set(x_1452, 2, x_1303);
lean_ctor_set(x_1452, 3, x_1304);
lean_ctor_set(x_1452, 4, x_1425);
if (lean_is_exclusive(x_1304)) {
 lean_ctor_release(x_1304, 0);
 lean_ctor_release(x_1304, 1);
 lean_ctor_release(x_1304, 2);
 lean_ctor_release(x_1304, 3);
 lean_ctor_release(x_1304, 4);
 x_1453 = x_1304;
} else {
 lean_dec_ref(x_1304);
 x_1453 = lean_box(0);
}
if (lean_obj_tag(x_1426) == 0)
{
lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; 
x_1454 = lean_ctor_get(x_1426, 0);
lean_inc(x_1454);
x_1455 = lean_nat_add(x_1435, x_1454);
lean_dec(x_1454);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1453)) {
 x_1456 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1456 = x_1453;
}
lean_ctor_set(x_1456, 0, x_1455);
lean_ctor_set(x_1456, 1, x_1410);
lean_ctor_set(x_1456, 2, x_1411);
lean_ctor_set(x_1456, 3, x_1426);
lean_ctor_set(x_1456, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1457 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1457 = lean_box(0);
}
if (lean_is_scalar(x_1457)) {
 x_1458 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1458 = x_1457;
}
lean_ctor_set(x_1458, 0, x_1433);
lean_ctor_set(x_1458, 1, x_1423);
lean_ctor_set(x_1458, 2, x_1424);
lean_ctor_set(x_1458, 3, x_1452);
lean_ctor_set(x_1458, 4, x_1456);
return x_1458;
}
else
{
lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; 
x_1459 = lean_nat_add(x_1435, x_1450);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1453)) {
 x_1460 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1460 = x_1453;
}
lean_ctor_set(x_1460, 0, x_1459);
lean_ctor_set(x_1460, 1, x_1410);
lean_ctor_set(x_1460, 2, x_1411);
lean_ctor_set(x_1460, 3, x_1426);
lean_ctor_set(x_1460, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1461 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1461 = lean_box(0);
}
if (lean_is_scalar(x_1461)) {
 x_1462 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1462 = x_1461;
}
lean_ctor_set(x_1462, 0, x_1433);
lean_ctor_set(x_1462, 1, x_1423);
lean_ctor_set(x_1462, 2, x_1424);
lean_ctor_set(x_1462, 3, x_1452);
lean_ctor_set(x_1462, 4, x_1460);
return x_1462;
}
}
}
else
{
lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; 
lean_dec(x_1426);
lean_dec(x_1425);
lean_dec(x_1424);
lean_dec(x_1423);
lean_dec(x_1421);
x_1463 = lean_unsigned_to_nat(1u);
x_1464 = lean_nat_add(x_1463, x_1301);
lean_dec(x_1301);
x_1465 = lean_nat_add(x_1464, x_1412);
lean_dec(x_1464);
x_1466 = lean_nat_add(x_1463, x_1412);
lean_dec(x_1412);
x_1467 = lean_nat_add(x_1466, x_1422);
lean_dec(x_1422);
lean_dec(x_1466);
if (lean_is_scalar(x_1407)) {
 x_1468 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1468 = x_1407;
}
lean_ctor_set(x_1468, 0, x_1467);
lean_ctor_set(x_1468, 1, x_1410);
lean_ctor_set(x_1468, 2, x_1411);
lean_ctor_set(x_1468, 3, x_1305);
lean_ctor_set(x_1468, 4, x_1409);
if (lean_is_scalar(x_1420)) {
 x_1469 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1469 = x_1420;
}
lean_ctor_set(x_1469, 0, x_1465);
lean_ctor_set(x_1469, 1, x_1302);
lean_ctor_set(x_1469, 2, x_1303);
lean_ctor_set(x_1469, 3, x_1304);
lean_ctor_set(x_1469, 4, x_1468);
return x_1469;
}
}
else
{
lean_object* x_1470; lean_object* x_1471; 
lean_dec(x_1420);
lean_dec(x_1412);
lean_dec(x_1411);
lean_dec(x_1410);
lean_dec(x_1409);
lean_dec(x_1407);
lean_dec(x_1304);
lean_dec(x_1303);
lean_dec(x_1302);
lean_dec(x_1301);
x_1470 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1471 = l_panic___at_Std_DTreeMap_Raw_erase___spec__6___rarg(x_1470);
return x_1471;
}
}
else
{
lean_object* x_1472; lean_object* x_1473; 
lean_dec(x_1420);
lean_dec(x_1412);
lean_dec(x_1411);
lean_dec(x_1410);
lean_dec(x_1409);
lean_dec(x_1407);
lean_dec(x_1305);
lean_dec(x_1303);
lean_dec(x_1302);
lean_dec(x_1301);
x_1472 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1473 = l_panic___at_Std_DTreeMap_Raw_erase___spec__7___rarg(x_1472);
return x_1473;
}
}
}
else
{
if (lean_obj_tag(x_1304) == 0)
{
lean_object* x_1474; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1474 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1474 = lean_box(0);
}
if (lean_obj_tag(x_1305) == 0)
{
lean_object* x_1475; lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; 
x_1475 = lean_ctor_get(x_1408, 0);
lean_inc(x_1475);
x_1476 = lean_ctor_get(x_1408, 1);
lean_inc(x_1476);
lean_dec(x_1408);
x_1477 = lean_ctor_get(x_1305, 0);
lean_inc(x_1477);
x_1478 = lean_unsigned_to_nat(1u);
x_1479 = lean_nat_add(x_1478, x_1301);
lean_dec(x_1301);
x_1480 = lean_nat_add(x_1478, x_1477);
lean_dec(x_1477);
x_1481 = lean_box(1);
if (lean_is_scalar(x_1407)) {
 x_1482 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1482 = x_1407;
}
lean_ctor_set(x_1482, 0, x_1480);
lean_ctor_set(x_1482, 1, x_1475);
lean_ctor_set(x_1482, 2, x_1476);
lean_ctor_set(x_1482, 3, x_1305);
lean_ctor_set(x_1482, 4, x_1481);
if (lean_is_scalar(x_1474)) {
 x_1483 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1483 = x_1474;
}
lean_ctor_set(x_1483, 0, x_1479);
lean_ctor_set(x_1483, 1, x_1302);
lean_ctor_set(x_1483, 2, x_1303);
lean_ctor_set(x_1483, 3, x_1304);
lean_ctor_set(x_1483, 4, x_1482);
return x_1483;
}
else
{
lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; 
lean_dec(x_1301);
x_1484 = lean_ctor_get(x_1408, 0);
lean_inc(x_1484);
x_1485 = lean_ctor_get(x_1408, 1);
lean_inc(x_1485);
lean_dec(x_1408);
x_1486 = lean_box(1);
x_1487 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1407)) {
 x_1488 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1488 = x_1407;
}
lean_ctor_set(x_1488, 0, x_1487);
lean_ctor_set(x_1488, 1, x_1484);
lean_ctor_set(x_1488, 2, x_1485);
lean_ctor_set(x_1488, 3, x_1486);
lean_ctor_set(x_1488, 4, x_1486);
x_1489 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1474)) {
 x_1490 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1490 = x_1474;
}
lean_ctor_set(x_1490, 0, x_1489);
lean_ctor_set(x_1490, 1, x_1302);
lean_ctor_set(x_1490, 2, x_1303);
lean_ctor_set(x_1490, 3, x_1304);
lean_ctor_set(x_1490, 4, x_1488);
return x_1490;
}
}
else
{
lean_dec(x_1301);
if (lean_obj_tag(x_1305) == 0)
{
lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1491 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1491 = lean_box(0);
}
x_1492 = lean_ctor_get(x_1408, 0);
lean_inc(x_1492);
x_1493 = lean_ctor_get(x_1408, 1);
lean_inc(x_1493);
lean_dec(x_1408);
x_1494 = lean_ctor_get(x_1305, 1);
lean_inc(x_1494);
x_1495 = lean_ctor_get(x_1305, 2);
lean_inc(x_1495);
if (lean_is_exclusive(x_1305)) {
 lean_ctor_release(x_1305, 0);
 lean_ctor_release(x_1305, 1);
 lean_ctor_release(x_1305, 2);
 lean_ctor_release(x_1305, 3);
 lean_ctor_release(x_1305, 4);
 x_1496 = x_1305;
} else {
 lean_dec_ref(x_1305);
 x_1496 = lean_box(0);
}
x_1497 = lean_box(1);
x_1498 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1496)) {
 x_1499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1499 = x_1496;
}
lean_ctor_set(x_1499, 0, x_1498);
lean_ctor_set(x_1499, 1, x_1302);
lean_ctor_set(x_1499, 2, x_1303);
lean_ctor_set(x_1499, 3, x_1497);
lean_ctor_set(x_1499, 4, x_1497);
if (lean_is_scalar(x_1407)) {
 x_1500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1500 = x_1407;
}
lean_ctor_set(x_1500, 0, x_1498);
lean_ctor_set(x_1500, 1, x_1492);
lean_ctor_set(x_1500, 2, x_1493);
lean_ctor_set(x_1500, 3, x_1497);
lean_ctor_set(x_1500, 4, x_1497);
x_1501 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1491)) {
 x_1502 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1502 = x_1491;
}
lean_ctor_set(x_1502, 0, x_1501);
lean_ctor_set(x_1502, 1, x_1494);
lean_ctor_set(x_1502, 2, x_1495);
lean_ctor_set(x_1502, 3, x_1499);
lean_ctor_set(x_1502, 4, x_1500);
return x_1502;
}
else
{
lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; 
lean_dec(x_1303);
lean_dec(x_1302);
x_1503 = lean_ctor_get(x_1408, 0);
lean_inc(x_1503);
x_1504 = lean_ctor_get(x_1408, 1);
lean_inc(x_1504);
lean_dec(x_1408);
x_1505 = lean_box(1);
x_1506 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_1407)) {
 x_1507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1507 = x_1407;
}
lean_ctor_set(x_1507, 0, x_1506);
lean_ctor_set(x_1507, 1, x_1503);
lean_ctor_set(x_1507, 2, x_1504);
lean_ctor_set(x_1507, 3, x_1189);
lean_ctor_set(x_1507, 4, x_1505);
return x_1507;
}
}
}
}
}
else
{
return x_1189;
}
}
else
{
return x_1190;
}
}
default: 
{
lean_object* x_1508; 
x_1508 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg(x_1, x_2, x_1190);
if (lean_obj_tag(x_1508) == 0)
{
if (lean_obj_tag(x_1189) == 0)
{
lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; uint8_t x_1517; 
x_1509 = lean_ctor_get(x_1508, 0);
lean_inc(x_1509);
x_1510 = lean_ctor_get(x_1189, 0);
lean_inc(x_1510);
x_1511 = lean_ctor_get(x_1189, 1);
lean_inc(x_1511);
x_1512 = lean_ctor_get(x_1189, 2);
lean_inc(x_1512);
x_1513 = lean_ctor_get(x_1189, 3);
lean_inc(x_1513);
x_1514 = lean_ctor_get(x_1189, 4);
lean_inc(x_1514);
x_1515 = lean_unsigned_to_nat(3u);
x_1516 = lean_nat_mul(x_1515, x_1509);
x_1517 = lean_nat_dec_lt(x_1516, x_1510);
lean_dec(x_1516);
if (x_1517 == 0)
{
lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; 
lean_dec(x_1514);
lean_dec(x_1513);
lean_dec(x_1512);
lean_dec(x_1511);
x_1518 = lean_unsigned_to_nat(1u);
x_1519 = lean_nat_add(x_1518, x_1510);
lean_dec(x_1510);
x_1520 = lean_nat_add(x_1519, x_1509);
lean_dec(x_1509);
lean_dec(x_1519);
x_1521 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1521, 0, x_1520);
lean_ctor_set(x_1521, 1, x_1187);
lean_ctor_set(x_1521, 2, x_1188);
lean_ctor_set(x_1521, 3, x_1189);
lean_ctor_set(x_1521, 4, x_1508);
return x_1521;
}
else
{
lean_object* x_1522; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1522 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1522 = lean_box(0);
}
if (lean_obj_tag(x_1513) == 0)
{
if (lean_obj_tag(x_1514) == 0)
{
lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; uint8_t x_1531; 
x_1523 = lean_ctor_get(x_1513, 0);
lean_inc(x_1523);
x_1524 = lean_ctor_get(x_1514, 0);
lean_inc(x_1524);
x_1525 = lean_ctor_get(x_1514, 1);
lean_inc(x_1525);
x_1526 = lean_ctor_get(x_1514, 2);
lean_inc(x_1526);
x_1527 = lean_ctor_get(x_1514, 3);
lean_inc(x_1527);
x_1528 = lean_ctor_get(x_1514, 4);
lean_inc(x_1528);
x_1529 = lean_unsigned_to_nat(2u);
x_1530 = lean_nat_mul(x_1529, x_1523);
x_1531 = lean_nat_dec_lt(x_1524, x_1530);
lean_dec(x_1530);
if (x_1531 == 0)
{
lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; 
lean_dec(x_1524);
if (lean_is_exclusive(x_1514)) {
 lean_ctor_release(x_1514, 0);
 lean_ctor_release(x_1514, 1);
 lean_ctor_release(x_1514, 2);
 lean_ctor_release(x_1514, 3);
 lean_ctor_release(x_1514, 4);
 x_1532 = x_1514;
} else {
 lean_dec_ref(x_1514);
 x_1532 = lean_box(0);
}
x_1533 = lean_unsigned_to_nat(1u);
x_1534 = lean_nat_add(x_1533, x_1510);
lean_dec(x_1510);
x_1535 = lean_nat_add(x_1534, x_1509);
lean_dec(x_1534);
x_1536 = lean_nat_add(x_1533, x_1523);
lean_dec(x_1523);
x_1537 = lean_nat_add(x_1533, x_1509);
lean_dec(x_1509);
if (lean_obj_tag(x_1527) == 0)
{
lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; 
x_1538 = lean_ctor_get(x_1527, 0);
lean_inc(x_1538);
x_1539 = lean_nat_add(x_1536, x_1538);
lean_dec(x_1538);
lean_dec(x_1536);
lean_inc(x_1513);
if (lean_is_scalar(x_1532)) {
 x_1540 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1540 = x_1532;
}
lean_ctor_set(x_1540, 0, x_1539);
lean_ctor_set(x_1540, 1, x_1511);
lean_ctor_set(x_1540, 2, x_1512);
lean_ctor_set(x_1540, 3, x_1513);
lean_ctor_set(x_1540, 4, x_1527);
if (lean_is_exclusive(x_1513)) {
 lean_ctor_release(x_1513, 0);
 lean_ctor_release(x_1513, 1);
 lean_ctor_release(x_1513, 2);
 lean_ctor_release(x_1513, 3);
 lean_ctor_release(x_1513, 4);
 x_1541 = x_1513;
} else {
 lean_dec_ref(x_1513);
 x_1541 = lean_box(0);
}
if (lean_obj_tag(x_1528) == 0)
{
lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; 
x_1542 = lean_ctor_get(x_1528, 0);
lean_inc(x_1542);
x_1543 = lean_nat_add(x_1537, x_1542);
lean_dec(x_1542);
lean_dec(x_1537);
if (lean_is_scalar(x_1541)) {
 x_1544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1544 = x_1541;
}
lean_ctor_set(x_1544, 0, x_1543);
lean_ctor_set(x_1544, 1, x_1187);
lean_ctor_set(x_1544, 2, x_1188);
lean_ctor_set(x_1544, 3, x_1528);
lean_ctor_set(x_1544, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1545 = x_1522;
}
lean_ctor_set(x_1545, 0, x_1535);
lean_ctor_set(x_1545, 1, x_1525);
lean_ctor_set(x_1545, 2, x_1526);
lean_ctor_set(x_1545, 3, x_1540);
lean_ctor_set(x_1545, 4, x_1544);
return x_1545;
}
else
{
lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; 
x_1546 = lean_unsigned_to_nat(0u);
x_1547 = lean_nat_add(x_1537, x_1546);
lean_dec(x_1537);
if (lean_is_scalar(x_1541)) {
 x_1548 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1548 = x_1541;
}
lean_ctor_set(x_1548, 0, x_1547);
lean_ctor_set(x_1548, 1, x_1187);
lean_ctor_set(x_1548, 2, x_1188);
lean_ctor_set(x_1548, 3, x_1528);
lean_ctor_set(x_1548, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1549 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1549 = x_1522;
}
lean_ctor_set(x_1549, 0, x_1535);
lean_ctor_set(x_1549, 1, x_1525);
lean_ctor_set(x_1549, 2, x_1526);
lean_ctor_set(x_1549, 3, x_1540);
lean_ctor_set(x_1549, 4, x_1548);
return x_1549;
}
}
else
{
lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; 
x_1550 = lean_unsigned_to_nat(0u);
x_1551 = lean_nat_add(x_1536, x_1550);
lean_dec(x_1536);
lean_inc(x_1513);
if (lean_is_scalar(x_1532)) {
 x_1552 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1552 = x_1532;
}
lean_ctor_set(x_1552, 0, x_1551);
lean_ctor_set(x_1552, 1, x_1511);
lean_ctor_set(x_1552, 2, x_1512);
lean_ctor_set(x_1552, 3, x_1513);
lean_ctor_set(x_1552, 4, x_1527);
if (lean_is_exclusive(x_1513)) {
 lean_ctor_release(x_1513, 0);
 lean_ctor_release(x_1513, 1);
 lean_ctor_release(x_1513, 2);
 lean_ctor_release(x_1513, 3);
 lean_ctor_release(x_1513, 4);
 x_1553 = x_1513;
} else {
 lean_dec_ref(x_1513);
 x_1553 = lean_box(0);
}
if (lean_obj_tag(x_1528) == 0)
{
lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; 
x_1554 = lean_ctor_get(x_1528, 0);
lean_inc(x_1554);
x_1555 = lean_nat_add(x_1537, x_1554);
lean_dec(x_1554);
lean_dec(x_1537);
if (lean_is_scalar(x_1553)) {
 x_1556 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1556 = x_1553;
}
lean_ctor_set(x_1556, 0, x_1555);
lean_ctor_set(x_1556, 1, x_1187);
lean_ctor_set(x_1556, 2, x_1188);
lean_ctor_set(x_1556, 3, x_1528);
lean_ctor_set(x_1556, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1557 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1557 = x_1522;
}
lean_ctor_set(x_1557, 0, x_1535);
lean_ctor_set(x_1557, 1, x_1525);
lean_ctor_set(x_1557, 2, x_1526);
lean_ctor_set(x_1557, 3, x_1552);
lean_ctor_set(x_1557, 4, x_1556);
return x_1557;
}
else
{
lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; 
x_1558 = lean_nat_add(x_1537, x_1550);
lean_dec(x_1537);
if (lean_is_scalar(x_1553)) {
 x_1559 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1559 = x_1553;
}
lean_ctor_set(x_1559, 0, x_1558);
lean_ctor_set(x_1559, 1, x_1187);
lean_ctor_set(x_1559, 2, x_1188);
lean_ctor_set(x_1559, 3, x_1528);
lean_ctor_set(x_1559, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1560 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1560 = x_1522;
}
lean_ctor_set(x_1560, 0, x_1535);
lean_ctor_set(x_1560, 1, x_1525);
lean_ctor_set(x_1560, 2, x_1526);
lean_ctor_set(x_1560, 3, x_1552);
lean_ctor_set(x_1560, 4, x_1559);
return x_1560;
}
}
}
else
{
lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; 
lean_dec(x_1528);
lean_dec(x_1527);
lean_dec(x_1526);
lean_dec(x_1525);
lean_dec(x_1523);
x_1561 = lean_unsigned_to_nat(1u);
x_1562 = lean_nat_add(x_1561, x_1510);
lean_dec(x_1510);
x_1563 = lean_nat_add(x_1562, x_1509);
lean_dec(x_1562);
x_1564 = lean_nat_add(x_1561, x_1509);
lean_dec(x_1509);
x_1565 = lean_nat_add(x_1564, x_1524);
lean_dec(x_1524);
lean_dec(x_1564);
lean_inc(x_1508);
if (lean_is_scalar(x_1522)) {
 x_1566 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1566 = x_1522;
}
lean_ctor_set(x_1566, 0, x_1565);
lean_ctor_set(x_1566, 1, x_1187);
lean_ctor_set(x_1566, 2, x_1188);
lean_ctor_set(x_1566, 3, x_1514);
lean_ctor_set(x_1566, 4, x_1508);
if (lean_is_exclusive(x_1508)) {
 lean_ctor_release(x_1508, 0);
 lean_ctor_release(x_1508, 1);
 lean_ctor_release(x_1508, 2);
 lean_ctor_release(x_1508, 3);
 lean_ctor_release(x_1508, 4);
 x_1567 = x_1508;
} else {
 lean_dec_ref(x_1508);
 x_1567 = lean_box(0);
}
if (lean_is_scalar(x_1567)) {
 x_1568 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1568 = x_1567;
}
lean_ctor_set(x_1568, 0, x_1563);
lean_ctor_set(x_1568, 1, x_1511);
lean_ctor_set(x_1568, 2, x_1512);
lean_ctor_set(x_1568, 3, x_1513);
lean_ctor_set(x_1568, 4, x_1566);
return x_1568;
}
}
else
{
lean_object* x_1569; lean_object* x_1570; 
lean_dec(x_1522);
lean_dec(x_1513);
lean_dec(x_1512);
lean_dec(x_1511);
lean_dec(x_1510);
lean_dec(x_1509);
lean_dec(x_1508);
lean_dec(x_1188);
lean_dec(x_1187);
x_1569 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1570 = l_panic___at_Std_DTreeMap_Raw_erase___spec__8___rarg(x_1569);
return x_1570;
}
}
else
{
lean_object* x_1571; lean_object* x_1572; 
lean_dec(x_1522);
lean_dec(x_1514);
lean_dec(x_1512);
lean_dec(x_1511);
lean_dec(x_1510);
lean_dec(x_1509);
lean_dec(x_1508);
lean_dec(x_1188);
lean_dec(x_1187);
x_1571 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1572 = l_panic___at_Std_DTreeMap_Raw_erase___spec__9___rarg(x_1571);
return x_1572;
}
}
}
else
{
lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; 
x_1573 = lean_ctor_get(x_1508, 0);
lean_inc(x_1573);
x_1574 = lean_unsigned_to_nat(1u);
x_1575 = lean_nat_add(x_1574, x_1573);
lean_dec(x_1573);
x_1576 = lean_box(1);
x_1577 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1577, 0, x_1575);
lean_ctor_set(x_1577, 1, x_1187);
lean_ctor_set(x_1577, 2, x_1188);
lean_ctor_set(x_1577, 3, x_1576);
lean_ctor_set(x_1577, 4, x_1508);
return x_1577;
}
}
else
{
if (lean_obj_tag(x_1189) == 0)
{
lean_object* x_1578; 
x_1578 = lean_ctor_get(x_1189, 3);
lean_inc(x_1578);
if (lean_obj_tag(x_1578) == 0)
{
lean_object* x_1579; 
x_1579 = lean_ctor_get(x_1189, 4);
lean_inc(x_1579);
if (lean_obj_tag(x_1579) == 0)
{
lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; 
x_1580 = lean_ctor_get(x_1189, 0);
lean_inc(x_1580);
x_1581 = lean_ctor_get(x_1189, 1);
lean_inc(x_1581);
x_1582 = lean_ctor_get(x_1189, 2);
lean_inc(x_1582);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1583 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1583 = lean_box(0);
}
x_1584 = lean_ctor_get(x_1579, 0);
lean_inc(x_1584);
x_1585 = lean_unsigned_to_nat(1u);
x_1586 = lean_nat_add(x_1585, x_1580);
lean_dec(x_1580);
x_1587 = lean_nat_add(x_1585, x_1584);
lean_dec(x_1584);
x_1588 = lean_box(1);
if (lean_is_scalar(x_1583)) {
 x_1589 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1589 = x_1583;
}
lean_ctor_set(x_1589, 0, x_1587);
lean_ctor_set(x_1589, 1, x_1187);
lean_ctor_set(x_1589, 2, x_1188);
lean_ctor_set(x_1589, 3, x_1579);
lean_ctor_set(x_1589, 4, x_1588);
x_1590 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1590, 0, x_1586);
lean_ctor_set(x_1590, 1, x_1581);
lean_ctor_set(x_1590, 2, x_1582);
lean_ctor_set(x_1590, 3, x_1578);
lean_ctor_set(x_1590, 4, x_1589);
return x_1590;
}
else
{
lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; 
x_1591 = lean_ctor_get(x_1189, 1);
lean_inc(x_1591);
x_1592 = lean_ctor_get(x_1189, 2);
lean_inc(x_1592);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1593 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1593 = lean_box(0);
}
x_1594 = lean_box(1);
x_1595 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1593)) {
 x_1596 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1596 = x_1593;
}
lean_ctor_set(x_1596, 0, x_1595);
lean_ctor_set(x_1596, 1, x_1187);
lean_ctor_set(x_1596, 2, x_1188);
lean_ctor_set(x_1596, 3, x_1594);
lean_ctor_set(x_1596, 4, x_1594);
x_1597 = lean_unsigned_to_nat(3u);
x_1598 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1598, 0, x_1597);
lean_ctor_set(x_1598, 1, x_1591);
lean_ctor_set(x_1598, 2, x_1592);
lean_ctor_set(x_1598, 3, x_1578);
lean_ctor_set(x_1598, 4, x_1596);
return x_1598;
}
}
else
{
lean_object* x_1599; 
x_1599 = lean_ctor_get(x_1189, 4);
lean_inc(x_1599);
if (lean_obj_tag(x_1599) == 0)
{
lean_object* x_1600; lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; 
x_1600 = lean_ctor_get(x_1189, 1);
lean_inc(x_1600);
x_1601 = lean_ctor_get(x_1189, 2);
lean_inc(x_1601);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1602 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1602 = lean_box(0);
}
x_1603 = lean_ctor_get(x_1599, 1);
lean_inc(x_1603);
x_1604 = lean_ctor_get(x_1599, 2);
lean_inc(x_1604);
if (lean_is_exclusive(x_1599)) {
 lean_ctor_release(x_1599, 0);
 lean_ctor_release(x_1599, 1);
 lean_ctor_release(x_1599, 2);
 lean_ctor_release(x_1599, 3);
 lean_ctor_release(x_1599, 4);
 x_1605 = x_1599;
} else {
 lean_dec_ref(x_1599);
 x_1605 = lean_box(0);
}
x_1606 = lean_box(1);
x_1607 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1605)) {
 x_1608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1608 = x_1605;
}
lean_ctor_set(x_1608, 0, x_1607);
lean_ctor_set(x_1608, 1, x_1600);
lean_ctor_set(x_1608, 2, x_1601);
lean_ctor_set(x_1608, 3, x_1606);
lean_ctor_set(x_1608, 4, x_1606);
if (lean_is_scalar(x_1602)) {
 x_1609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1609 = x_1602;
}
lean_ctor_set(x_1609, 0, x_1607);
lean_ctor_set(x_1609, 1, x_1187);
lean_ctor_set(x_1609, 2, x_1188);
lean_ctor_set(x_1609, 3, x_1606);
lean_ctor_set(x_1609, 4, x_1606);
x_1610 = lean_unsigned_to_nat(3u);
x_1611 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1611, 0, x_1610);
lean_ctor_set(x_1611, 1, x_1603);
lean_ctor_set(x_1611, 2, x_1604);
lean_ctor_set(x_1611, 3, x_1608);
lean_ctor_set(x_1611, 4, x_1609);
return x_1611;
}
else
{
lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; 
x_1612 = lean_box(1);
x_1613 = lean_unsigned_to_nat(2u);
x_1614 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1614, 0, x_1613);
lean_ctor_set(x_1614, 1, x_1187);
lean_ctor_set(x_1614, 2, x_1188);
lean_ctor_set(x_1614, 3, x_1189);
lean_ctor_set(x_1614, 4, x_1612);
return x_1614;
}
}
}
else
{
lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; 
x_1615 = lean_box(1);
x_1616 = lean_unsigned_to_nat(1u);
x_1617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1617, 0, x_1616);
lean_ctor_set(x_1617, 1, x_1187);
lean_ctor_set(x_1617, 2, x_1188);
lean_ctor_set(x_1617, 3, x_1615);
lean_ctor_set(x_1617, 4, x_1615);
return x_1617;
}
}
}
}
}
}
else
{
lean_object* x_1618; 
lean_dec(x_2);
lean_dec(x_1);
x_1618 = lean_box(1);
return x_1618;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_erase___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_erase___spec__1___rarg(x_1, x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_erase(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_erase___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_get_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 4);
lean_inc(x_8);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_9 = lean_apply_2(x_1, x_4, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_6);
return x_12;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
}
}
else
{
lean_object* x_14; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = lean_box(0);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_get_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_get_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_get_x3f___spec__1___rarg(x_1, lean_box(0), x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_get_x3f___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_find_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 4);
lean_inc(x_8);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_9 = lean_apply_2(x_1, x_4, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_6);
return x_12;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
}
}
else
{
lean_object* x_14; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = lean_box(0);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_find_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_find_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_get_x3f___at_Std_DTreeMap_Raw_find_x3f___spec__1___rarg(x_1, lean_box(0), x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_find_x3f___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get___at_Std_DTreeMap_Raw_get___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
x_5 = lean_box(0);
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
x_5 = lean_box(0);
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get___at_Std_DTreeMap_Raw_get___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_get___at_Std_DTreeMap_Raw_get___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_get___at_Std_DTreeMap_Raw_get___spec__1___rarg(x_1, lean_box(0), x_3, x_4, lean_box(0));
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_get___rarg), 5, 0);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.Data.DTreeMap.Internal.Queries", 34, 34);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.DTreeMap.Internal.Impl.get!", 31, 31);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Key is not present in map", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1;
x_2 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__2;
x_3 = lean_unsigned_to_nat(92u);
x_4 = lean_unsigned_to_nat(13u);
x_5 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__4;
x_15 = l_panic___rarg(x_5, x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_get_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_get_x21___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_find_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__4;
x_15 = l_panic___rarg(x_5, x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_find_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_find_x21___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_find_x21___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_find_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_find_x21___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_5);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1___rarg___boxed), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getD(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getD___rarg___boxed), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___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:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_getD___spec__1___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_getD___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_5);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1___rarg___boxed), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_findD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_findD(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_findD___rarg___boxed), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___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:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_getD___at_Std_DTreeMap_Raw_findD___spec__1___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_findD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_findD___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x3f___at_Std_DTreeMap_Raw_getKey_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_2, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 4);
lean_inc(x_6);
lean_dec(x_2);
lean_inc(x_1);
lean_inc(x_4);
lean_inc(x_3);
x_7 = lean_apply_2(x_1, x_3, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
lean_dec(x_4);
x_2 = x_5;
goto _start;
}
case 1:
{
lean_object* x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_3);
lean_dec(x_1);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_4);
return x_10;
}
default: 
{
lean_dec(x_5);
lean_dec(x_4);
x_2 = x_6;
goto _start;
}
}
}
else
{
lean_object* x_12; 
lean_dec(x_3);
lean_dec(x_1);
x_12 = lean_box(0);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x3f___at_Std_DTreeMap_Raw_getKey_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKey_x3f___at_Std_DTreeMap_Raw_getKey_x3f___spec__1___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_getKey_x3f___at_Std_DTreeMap_Raw_getKey_x3f___spec__1___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKey_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey___at_Std_DTreeMap_Raw_getKey___spec__1___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; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 4);
lean_inc(x_7);
lean_dec(x_2);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_3);
x_8 = lean_apply_2(x_1, x_3, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_dec(x_7);
lean_dec(x_5);
x_2 = x_6;
x_4 = lean_box(0);
goto _start;
}
case 1:
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_1);
return x_5;
}
default: 
{
lean_dec(x_6);
lean_dec(x_5);
x_2 = x_7;
x_4 = lean_box(0);
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey___at_Std_DTreeMap_Raw_getKey___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKey___at_Std_DTreeMap_Raw_getKey___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_getKey___at_Std_DTreeMap_Raw_getKey___spec__1___rarg(x_1, x_2, x_3, lean_box(0));
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKey___rarg), 4, 0);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.DTreeMap.Internal.Impl.getKey!", 34, 34);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1;
x_2 = l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__1;
x_3 = lean_unsigned_to_nat(131u);
x_4 = lean_unsigned_to_nat(13u);
x_5 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 4);
lean_inc(x_7);
lean_dec(x_2);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_3);
x_8 = lean_apply_2(x_1, x_3, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_dec(x_7);
lean_dec(x_5);
x_2 = x_6;
goto _start;
}
case 1:
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_5;
}
default: 
{
lean_dec(x_6);
lean_dec(x_5);
x_2 = x_7;
goto _start;
}
}
}
else
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_3);
lean_dec(x_1);
x_12 = l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__2;
x_13 = l_panic___rarg(x_4, x_12);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKey_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKey_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_2, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_2, 4);
lean_inc(x_7);
lean_dec(x_2);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_3);
x_8 = lean_apply_2(x_1, x_3, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_dec(x_7);
lean_dec(x_5);
x_2 = x_6;
goto _start;
}
case 1:
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_1);
return x_5;
}
default: 
{
lean_dec(x_6);
lean_dec(x_5);
x_2 = x_7;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
lean_inc(x_4);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1___rarg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyD(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyD___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1___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_Std_DTreeMap_Internal_Impl_getKeyD___at_Std_DTreeMap_Raw_getKeyD___spec__1___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyD___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_Std_DTreeMap_Raw_getKeyD___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_minEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_minEntry_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_minEntry_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_minEntry_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_minEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_min_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_min_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_min_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_minEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_minEntry_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_minEntry_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntry_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_minEntry_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_minEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_min_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_min_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_min_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_min_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_minEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_minEntryD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_minEntryD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minEntryD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_minEntryD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_minEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_minD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_minD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_minD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_maxEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_maxEntry_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_maxEntry_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_maxEntry_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_maxEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_max_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_max_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_max_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_maxEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_maxEntry_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_maxEntry_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntry_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_maxEntry_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_maxEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_max_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_max_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_max_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_max_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_maxEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_maxEntryD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_maxEntryD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxEntryD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_maxEntryD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_maxEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_maxD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_maxD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_maxD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_minKey_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_minKey_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_minKey_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_minKey_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_minKeyD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_minKeyD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_minKeyD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKeyD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_minKeyD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_minKey_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_minKey_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_minKey_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_minKey_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_minKey_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_maxKey_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_maxKey_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_maxKey_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_maxKey_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_maxKey_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_maxKey_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_maxKey_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKey_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_maxKey_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_maxKeyD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_maxKeyD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_maxKeyD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_maxKeyD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_maxKeyD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_entryAtIdx_x3f___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_entryAtIdx_x3f___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_entryAtIdx_x3f___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_entryAtIdx_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_entryAtIdx_x21___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_entryAtIdx_x21___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_entryAtIdx_x21___rarg(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdx_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_entryAtIdx_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_entryAtIdxD___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_entryAtIdxD___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_entryAtIdxD___rarg(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_entryAtIdxD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_entryAtIdxD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_keyAtIdx_x3f___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keyAtIdx_x3f___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_keyAtIdx_x3f___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIdx_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_keyAtIdx_x3f___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keyAtIndex_x3f___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_keyAtIndex_x3f___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIndex_x3f(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_keyAtIdx_x21___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keyAtIdx_x21___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIdx_x21___rarg(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdx_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIdx_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_keyAtIdx_x21___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keyAtIndex_x21___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIndex_x21___rarg(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndex_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIndex_x21(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_keyAtIdxD___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keyAtIdxD___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIdxD___rarg(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIdxD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIdxD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_keyAtIdxD___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keyAtIndexD___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIndexD___rarg(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keyAtIndexD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keyAtIndexD(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_3);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_5);
lean_ctor_set(x_11, 1, x_6);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_3 = x_12;
x_4 = x_7;
goto _start;
}
case 1:
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_14, 1, x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_8;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryGE_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
x_11 = lean_box(x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_8);
lean_dec(x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_3 = x_13;
x_4 = x_7;
goto _start;
}
else
{
lean_dec(x_11);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_8;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryGT_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
default: 
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_7);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_14, 1, x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_3 = x_15;
x_4 = x_8;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryLE_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
x_11 = lean_box(x_10);
if (lean_obj_tag(x_11) == 2)
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_7);
lean_dec(x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_3 = x_13;
x_4 = x_8;
goto _start;
}
else
{
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryLT_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_3);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_5);
lean_ctor_set(x_11, 1, x_6);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_3 = x_12;
x_4 = x_7;
goto _start;
}
case 1:
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_14, 1, x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_8;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Init.Data.Option.BasicAux", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Option.get!", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("value is none", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__1;
x_2 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__2;
x_3 = lean_unsigned_to_nat(21u);
x_4 = lean_unsigned_to_nat(14u);
x_5 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGE_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGE_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryGE_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
x_11 = lean_box(x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_8);
lean_dec(x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_3 = x_13;
x_4 = x_7;
goto _start;
}
else
{
lean_dec(x_11);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_8;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGT_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGT_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryGT_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
default: 
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_7);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_14, 1, x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_3 = x_15;
x_4 = x_8;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLE_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLE_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryLE_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
x_11 = lean_box(x_10);
if (lean_obj_tag(x_11) == 2)
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_7);
lean_dec(x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_3 = x_13;
x_4 = x_8;
goto _start;
}
else
{
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLT_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLT_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryLT_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGED___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_3);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_5);
lean_ctor_set(x_11, 1, x_6);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_3 = x_12;
x_4 = x_7;
goto _start;
}
case 1:
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_14, 1, x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_8;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGED___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGED___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGED___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_getEntryGED___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGED(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryGED___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGED___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_Std_DTreeMap_Raw_getEntryGED___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGTD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
x_11 = lean_box(x_10);
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_8);
lean_dec(x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_3 = x_13;
x_4 = x_7;
goto _start;
}
else
{
lean_dec(x_11);
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_8;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGTD___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGTD___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGTD___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_getEntryGTD___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGTD(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryGTD___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryGTD___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_Std_DTreeMap_Raw_getEntryGTD___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLED___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
default: 
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_7);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_14, 1, x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_3 = x_15;
x_4 = x_8;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLED___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLED___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLED___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_getEntryLED___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLED(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryLED___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLED___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_Std_DTreeMap_Raw_getEntryLED___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLTD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; lean_object* x_11; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_9 = lean_apply_2(x_1, x_2, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
x_11 = lean_box(x_10);
if (lean_obj_tag(x_11) == 2)
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_7);
lean_dec(x_3);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_5);
lean_ctor_set(x_12, 1, x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_3 = x_13;
x_4 = x_8;
goto _start;
}
else
{
lean_dec(x_11);
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLTD___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLTD___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLTD___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_getEntryLTD___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLTD(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getEntryLTD___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getEntryLTD___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_Std_DTreeMap_Raw_getEntryLTD___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_object* x_10; 
lean_dec(x_7);
lean_dec(x_3);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_5);
x_3 = x_10;
x_4 = x_6;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_5);
return x_12;
}
default: 
{
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyGE_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
x_10 = lean_box(x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
x_3 = x_11;
x_4 = x_6;
goto _start;
}
else
{
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyGT_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_dec(x_7);
lean_dec(x_5);
x_4 = x_6;
goto _start;
}
case 1:
{
lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
return x_11;
}
default: 
{
lean_object* x_12; 
lean_dec(x_6);
lean_dec(x_3);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_5);
x_3 = x_12;
x_4 = x_7;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyLE_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
x_10 = lean_box(x_9);
if (lean_obj_tag(x_10) == 2)
{
lean_object* x_11; 
lean_dec(x_6);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
x_3 = x_11;
x_4 = x_7;
goto _start;
}
else
{
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_5);
x_4 = x_6;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x3f___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x3f___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x3f___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x3f___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x3f(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyLT_x3f___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_object* x_10; 
lean_dec(x_7);
lean_dec(x_3);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_5);
x_3 = x_10;
x_4 = x_6;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_5);
return x_12;
}
default: 
{
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGE_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGE_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyGE_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
x_10 = lean_box(x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
x_3 = x_11;
x_4 = x_6;
goto _start;
}
else
{
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGT_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGT_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyGT_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_dec(x_7);
lean_dec(x_5);
x_4 = x_6;
goto _start;
}
case 1:
{
lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
return x_11;
}
default: 
{
lean_object* x_12; 
lean_dec(x_6);
lean_dec(x_3);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_5);
x_3 = x_12;
x_4 = x_7;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLE_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLE_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyLE_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
x_10 = lean_box(x_9);
if (lean_obj_tag(x_10) == 2)
{
lean_object* x_11; 
lean_dec(x_6);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
x_3 = x_11;
x_4 = x_7;
goto _start;
}
else
{
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_5);
x_4 = x_6;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x21___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x21___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x21___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLT_x21___spec__1___rarg(x_1, x_4, x_5, x_3);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_8 = l_panic___rarg(x_2, x_7);
return x_8;
}
else
{
lean_object* x_9; 
lean_dec(x_2);
x_9 = lean_ctor_get(x_6, 0);
lean_inc(x_9);
lean_dec(x_6);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLT_x21(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyLT_x21___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGED___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_object* x_10; 
lean_dec(x_7);
lean_dec(x_3);
x_10 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_10, 0, x_5);
x_3 = x_10;
x_4 = x_6;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_5);
return x_12;
}
default: 
{
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGED___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGED___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGED___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyGE_x3f_go___at_Std_DTreeMap_Raw_getKeyGED___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGED(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyGED___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGED___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_Std_DTreeMap_Raw_getKeyGED___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGTD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
x_10 = lean_box(x_9);
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
x_3 = x_11;
x_4 = x_6;
goto _start;
}
else
{
lean_dec(x_10);
lean_dec(x_6);
lean_dec(x_5);
x_4 = x_7;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGTD___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGTD___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGTD___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyGT_x3f_go___at_Std_DTreeMap_Raw_getKeyGTD___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGTD(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyGTD___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyGTD___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_Std_DTreeMap_Raw_getKeyGTD___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLED___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_dec(x_7);
lean_dec(x_5);
x_4 = x_6;
goto _start;
}
case 1:
{
lean_object* x_11; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
return x_11;
}
default: 
{
lean_object* x_12; 
lean_dec(x_6);
lean_dec(x_3);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_5);
x_3 = x_12;
x_4 = x_7;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLED___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLED___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLED___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyLE_x3f_go___at_Std_DTreeMap_Raw_getKeyLED___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLED(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyLED___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLED___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_Std_DTreeMap_Raw_getKeyLED___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLTD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_8 = lean_apply_2(x_1, x_2, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
x_10 = lean_box(x_9);
if (lean_obj_tag(x_10) == 2)
{
lean_object* x_11; 
lean_dec(x_6);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_5);
x_3 = x_11;
x_4 = x_7;
goto _start;
}
else
{
lean_dec(x_10);
lean_dec(x_7);
lean_dec(x_5);
x_4 = x_6;
goto _start;
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLTD___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLTD___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLTD___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_getKeyLT_x3f_go___at_Std_DTreeMap_Raw_getKeyLTD___spec__1___rarg(x_1, x_3, x_5, x_2);
if (lean_obj_tag(x_6) == 0)
{
lean_inc(x_4);
return x_4;
}
else
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec(x_6);
return x_7;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLTD(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_getKeyLTD___rarg___boxed), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_getKeyLTD___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_Std_DTreeMap_Raw_getKeyLTD___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 4);
lean_inc(x_8);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_9 = lean_apply_2(x_1, x_4, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_6);
return x_12;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
}
}
else
{
lean_object* x_14; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = lean_box(0);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__1___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 4);
lean_inc(x_7);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_3);
x_8 = lean_apply_2(x_1, x_3, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
switch (x_9) {
case 0:
{
lean_dec(x_7);
x_2 = lean_box(0);
x_4 = x_6;
goto _start;
}
case 1:
{
uint8_t x_11; 
lean_dec(x_7);
lean_dec(x_6);
lean_dec(x_3);
lean_dec(x_1);
x_11 = 1;
return x_11;
}
default: 
{
lean_dec(x_6);
x_2 = lean_box(0);
x_4 = x_7;
goto _start;
}
}
}
else
{
uint8_t x_13; 
lean_dec(x_3);
lean_dec(x_1);
x_13 = 0;
return x_13;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2___rarg___boxed), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
x_9 = lean_ctor_get(x_5, 2);
x_10 = lean_ctor_get(x_5, 3);
x_11 = lean_ctor_get(x_5, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_3);
x_12 = lean_apply_2(x_1, x_3, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_10);
if (lean_obj_tag(x_11) == 0)
{
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_14, 1);
lean_inc(x_17);
x_18 = lean_ctor_get(x_14, 2);
lean_inc(x_18);
x_19 = lean_ctor_get(x_14, 3);
lean_inc(x_19);
x_20 = lean_ctor_get(x_14, 4);
lean_inc(x_20);
x_21 = lean_unsigned_to_nat(3u);
x_22 = lean_nat_mul(x_21, x_15);
x_23 = lean_nat_dec_lt(x_22, x_16);
lean_dec(x_22);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
x_24 = lean_unsigned_to_nat(1u);
x_25 = lean_nat_add(x_24, x_16);
lean_dec(x_16);
x_26 = lean_nat_add(x_25, x_15);
lean_dec(x_15);
lean_dec(x_25);
lean_ctor_set(x_5, 3, x_14);
lean_ctor_set(x_5, 0, x_26);
return x_5;
}
else
{
uint8_t x_27; 
lean_free_object(x_5);
x_27 = !lean_is_exclusive(x_14);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_28 = lean_ctor_get(x_14, 4);
lean_dec(x_28);
x_29 = lean_ctor_get(x_14, 3);
lean_dec(x_29);
x_30 = lean_ctor_get(x_14, 2);
lean_dec(x_30);
x_31 = lean_ctor_get(x_14, 1);
lean_dec(x_31);
x_32 = lean_ctor_get(x_14, 0);
lean_dec(x_32);
if (lean_obj_tag(x_19) == 0)
{
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_20, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_20, 1);
lean_inc(x_35);
x_36 = lean_ctor_get(x_20, 2);
lean_inc(x_36);
x_37 = lean_ctor_get(x_20, 3);
lean_inc(x_37);
x_38 = lean_ctor_get(x_20, 4);
lean_inc(x_38);
x_39 = lean_unsigned_to_nat(2u);
x_40 = lean_nat_mul(x_39, x_33);
x_41 = lean_nat_dec_lt(x_34, x_40);
lean_dec(x_40);
if (x_41 == 0)
{
uint8_t x_42; 
lean_dec(x_34);
x_42 = !lean_is_exclusive(x_20);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_43 = lean_ctor_get(x_20, 4);
lean_dec(x_43);
x_44 = lean_ctor_get(x_20, 3);
lean_dec(x_44);
x_45 = lean_ctor_get(x_20, 2);
lean_dec(x_45);
x_46 = lean_ctor_get(x_20, 1);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 0);
lean_dec(x_47);
x_48 = lean_unsigned_to_nat(1u);
x_49 = lean_nat_add(x_48, x_16);
lean_dec(x_16);
x_50 = lean_nat_add(x_49, x_15);
lean_dec(x_49);
x_51 = lean_nat_add(x_48, x_33);
lean_dec(x_33);
x_52 = lean_nat_add(x_48, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_53; lean_object* x_54; uint8_t x_55; 
x_53 = lean_ctor_get(x_37, 0);
lean_inc(x_53);
x_54 = lean_nat_add(x_51, x_53);
lean_dec(x_53);
lean_dec(x_51);
lean_inc(x_19);
lean_ctor_set(x_20, 4, x_37);
lean_ctor_set(x_20, 3, x_19);
lean_ctor_set(x_20, 2, x_18);
lean_ctor_set(x_20, 1, x_17);
lean_ctor_set(x_20, 0, x_54);
x_55 = !lean_is_exclusive(x_19);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_56 = lean_ctor_get(x_19, 4);
lean_dec(x_56);
x_57 = lean_ctor_get(x_19, 3);
lean_dec(x_57);
x_58 = lean_ctor_get(x_19, 2);
lean_dec(x_58);
x_59 = lean_ctor_get(x_19, 1);
lean_dec(x_59);
x_60 = lean_ctor_get(x_19, 0);
lean_dec(x_60);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_61; lean_object* x_62; 
x_61 = lean_ctor_get(x_38, 0);
lean_inc(x_61);
x_62 = lean_nat_add(x_52, x_61);
lean_dec(x_61);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_62);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_63; lean_object* x_64; 
x_63 = lean_unsigned_to_nat(0u);
x_64 = lean_nat_add(x_52, x_63);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_64);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
else
{
lean_dec(x_19);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_65 = lean_ctor_get(x_38, 0);
lean_inc(x_65);
x_66 = lean_nat_add(x_52, x_65);
lean_dec(x_65);
lean_dec(x_52);
x_67 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_67, 0, x_66);
lean_ctor_set(x_67, 1, x_8);
lean_ctor_set(x_67, 2, x_9);
lean_ctor_set(x_67, 3, x_38);
lean_ctor_set(x_67, 4, x_11);
lean_ctor_set(x_14, 4, x_67);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_68 = lean_unsigned_to_nat(0u);
x_69 = lean_nat_add(x_52, x_68);
lean_dec(x_52);
x_70 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_70, 0, x_69);
lean_ctor_set(x_70, 1, x_8);
lean_ctor_set(x_70, 2, x_9);
lean_ctor_set(x_70, 3, x_38);
lean_ctor_set(x_70, 4, x_11);
lean_ctor_set(x_14, 4, x_70);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
}
else
{
lean_object* x_71; lean_object* x_72; uint8_t x_73; 
x_71 = lean_unsigned_to_nat(0u);
x_72 = lean_nat_add(x_51, x_71);
lean_dec(x_51);
lean_inc(x_19);
lean_ctor_set(x_20, 4, x_37);
lean_ctor_set(x_20, 3, x_19);
lean_ctor_set(x_20, 2, x_18);
lean_ctor_set(x_20, 1, x_17);
lean_ctor_set(x_20, 0, x_72);
x_73 = !lean_is_exclusive(x_19);
if (x_73 == 0)
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_74 = lean_ctor_get(x_19, 4);
lean_dec(x_74);
x_75 = lean_ctor_get(x_19, 3);
lean_dec(x_75);
x_76 = lean_ctor_get(x_19, 2);
lean_dec(x_76);
x_77 = lean_ctor_get(x_19, 1);
lean_dec(x_77);
x_78 = lean_ctor_get(x_19, 0);
lean_dec(x_78);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_79; lean_object* x_80; 
x_79 = lean_ctor_get(x_38, 0);
lean_inc(x_79);
x_80 = lean_nat_add(x_52, x_79);
lean_dec(x_79);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_80);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_81; 
x_81 = lean_nat_add(x_52, x_71);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_81);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
else
{
lean_dec(x_19);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; 
x_82 = lean_ctor_get(x_38, 0);
lean_inc(x_82);
x_83 = lean_nat_add(x_52, x_82);
lean_dec(x_82);
lean_dec(x_52);
x_84 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_84, 0, x_83);
lean_ctor_set(x_84, 1, x_8);
lean_ctor_set(x_84, 2, x_9);
lean_ctor_set(x_84, 3, x_38);
lean_ctor_set(x_84, 4, x_11);
lean_ctor_set(x_14, 4, x_84);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_85; lean_object* x_86; 
x_85 = lean_nat_add(x_52, x_71);
lean_dec(x_52);
x_86 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_86, 0, x_85);
lean_ctor_set(x_86, 1, x_8);
lean_ctor_set(x_86, 2, x_9);
lean_ctor_set(x_86, 3, x_38);
lean_ctor_set(x_86, 4, x_11);
lean_ctor_set(x_14, 4, x_86);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
}
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
lean_dec(x_20);
x_87 = lean_unsigned_to_nat(1u);
x_88 = lean_nat_add(x_87, x_16);
lean_dec(x_16);
x_89 = lean_nat_add(x_88, x_15);
lean_dec(x_88);
x_90 = lean_nat_add(x_87, x_33);
lean_dec(x_33);
x_91 = lean_nat_add(x_87, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
x_92 = lean_ctor_get(x_37, 0);
lean_inc(x_92);
x_93 = lean_nat_add(x_90, x_92);
lean_dec(x_92);
lean_dec(x_90);
lean_inc(x_19);
x_94 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_94, 0, x_93);
lean_ctor_set(x_94, 1, x_17);
lean_ctor_set(x_94, 2, x_18);
lean_ctor_set(x_94, 3, x_19);
lean_ctor_set(x_94, 4, x_37);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_95 = x_19;
} else {
 lean_dec_ref(x_19);
 x_95 = lean_box(0);
}
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_96 = lean_ctor_get(x_38, 0);
lean_inc(x_96);
x_97 = lean_nat_add(x_91, x_96);
lean_dec(x_96);
lean_dec(x_91);
if (lean_is_scalar(x_95)) {
 x_98 = lean_alloc_ctor(0, 5, 0);
} else {
 x_98 = x_95;
}
lean_ctor_set(x_98, 0, x_97);
lean_ctor_set(x_98, 1, x_8);
lean_ctor_set(x_98, 2, x_9);
lean_ctor_set(x_98, 3, x_38);
lean_ctor_set(x_98, 4, x_11);
lean_ctor_set(x_14, 4, x_98);
lean_ctor_set(x_14, 3, x_94);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_99 = lean_unsigned_to_nat(0u);
x_100 = lean_nat_add(x_91, x_99);
lean_dec(x_91);
if (lean_is_scalar(x_95)) {
 x_101 = lean_alloc_ctor(0, 5, 0);
} else {
 x_101 = x_95;
}
lean_ctor_set(x_101, 0, x_100);
lean_ctor_set(x_101, 1, x_8);
lean_ctor_set(x_101, 2, x_9);
lean_ctor_set(x_101, 3, x_38);
lean_ctor_set(x_101, 4, x_11);
lean_ctor_set(x_14, 4, x_101);
lean_ctor_set(x_14, 3, x_94);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
}
else
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_unsigned_to_nat(0u);
x_103 = lean_nat_add(x_90, x_102);
lean_dec(x_90);
lean_inc(x_19);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_17);
lean_ctor_set(x_104, 2, x_18);
lean_ctor_set(x_104, 3, x_19);
lean_ctor_set(x_104, 4, x_37);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_105 = x_19;
} else {
 lean_dec_ref(x_19);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_38, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_91, x_106);
lean_dec(x_106);
lean_dec(x_91);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_38);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; 
x_109 = lean_nat_add(x_91, x_102);
lean_dec(x_91);
if (lean_is_scalar(x_105)) {
 x_110 = lean_alloc_ctor(0, 5, 0);
} else {
 x_110 = x_105;
}
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_8);
lean_ctor_set(x_110, 2, x_9);
lean_ctor_set(x_110, 3, x_38);
lean_ctor_set(x_110, 4, x_11);
lean_ctor_set(x_14, 4, x_110);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
}
}
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; 
lean_dec(x_38);
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_33);
x_111 = lean_unsigned_to_nat(1u);
x_112 = lean_nat_add(x_111, x_16);
lean_dec(x_16);
x_113 = lean_nat_add(x_112, x_15);
lean_dec(x_112);
x_114 = lean_nat_add(x_111, x_15);
lean_dec(x_15);
x_115 = lean_nat_add(x_114, x_34);
lean_dec(x_34);
lean_dec(x_114);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_115);
x_116 = !lean_is_exclusive(x_11);
if (x_116 == 0)
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; 
x_117 = lean_ctor_get(x_11, 4);
lean_dec(x_117);
x_118 = lean_ctor_get(x_11, 3);
lean_dec(x_118);
x_119 = lean_ctor_get(x_11, 2);
lean_dec(x_119);
x_120 = lean_ctor_get(x_11, 1);
lean_dec(x_120);
x_121 = lean_ctor_get(x_11, 0);
lean_dec(x_121);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_19);
lean_ctor_set(x_11, 2, x_18);
lean_ctor_set(x_11, 1, x_17);
lean_ctor_set(x_11, 0, x_113);
return x_11;
}
else
{
lean_object* x_122; 
lean_dec(x_11);
x_122 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_122, 0, x_113);
lean_ctor_set(x_122, 1, x_17);
lean_ctor_set(x_122, 2, x_18);
lean_ctor_set(x_122, 3, x_19);
lean_ctor_set(x_122, 4, x_14);
return x_122;
}
}
}
else
{
lean_object* x_123; lean_object* x_124; 
lean_free_object(x_14);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_123 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_124 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4___rarg(x_123);
return x_124;
}
}
else
{
lean_object* x_125; lean_object* x_126; 
lean_free_object(x_14);
lean_dec(x_20);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_125 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_126 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5___rarg(x_125);
return x_126;
}
}
else
{
lean_dec(x_14);
if (lean_obj_tag(x_19) == 0)
{
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; 
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_20, 0);
lean_inc(x_128);
x_129 = lean_ctor_get(x_20, 1);
lean_inc(x_129);
x_130 = lean_ctor_get(x_20, 2);
lean_inc(x_130);
x_131 = lean_ctor_get(x_20, 3);
lean_inc(x_131);
x_132 = lean_ctor_get(x_20, 4);
lean_inc(x_132);
x_133 = lean_unsigned_to_nat(2u);
x_134 = lean_nat_mul(x_133, x_127);
x_135 = lean_nat_dec_lt(x_128, x_134);
lean_dec(x_134);
if (x_135 == 0)
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; 
lean_dec(x_128);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_136 = x_20;
} else {
 lean_dec_ref(x_20);
 x_136 = lean_box(0);
}
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_16);
lean_dec(x_16);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_138);
x_140 = lean_nat_add(x_137, x_127);
lean_dec(x_127);
x_141 = lean_nat_add(x_137, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; 
x_142 = lean_ctor_get(x_131, 0);
lean_inc(x_142);
x_143 = lean_nat_add(x_140, x_142);
lean_dec(x_142);
lean_dec(x_140);
lean_inc(x_19);
if (lean_is_scalar(x_136)) {
 x_144 = lean_alloc_ctor(0, 5, 0);
} else {
 x_144 = x_136;
}
lean_ctor_set(x_144, 0, x_143);
lean_ctor_set(x_144, 1, x_17);
lean_ctor_set(x_144, 2, x_18);
lean_ctor_set(x_144, 3, x_19);
lean_ctor_set(x_144, 4, x_131);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_145 = x_19;
} else {
 lean_dec_ref(x_19);
 x_145 = lean_box(0);
}
if (lean_obj_tag(x_132) == 0)
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; 
x_146 = lean_ctor_get(x_132, 0);
lean_inc(x_146);
x_147 = lean_nat_add(x_141, x_146);
lean_dec(x_146);
lean_dec(x_141);
if (lean_is_scalar(x_145)) {
 x_148 = lean_alloc_ctor(0, 5, 0);
} else {
 x_148 = x_145;
}
lean_ctor_set(x_148, 0, x_147);
lean_ctor_set(x_148, 1, x_8);
lean_ctor_set(x_148, 2, x_9);
lean_ctor_set(x_148, 3, x_132);
lean_ctor_set(x_148, 4, x_11);
x_149 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_149, 0, x_139);
lean_ctor_set(x_149, 1, x_129);
lean_ctor_set(x_149, 2, x_130);
lean_ctor_set(x_149, 3, x_144);
lean_ctor_set(x_149, 4, x_148);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; 
x_150 = lean_unsigned_to_nat(0u);
x_151 = lean_nat_add(x_141, x_150);
lean_dec(x_141);
if (lean_is_scalar(x_145)) {
 x_152 = lean_alloc_ctor(0, 5, 0);
} else {
 x_152 = x_145;
}
lean_ctor_set(x_152, 0, x_151);
lean_ctor_set(x_152, 1, x_8);
lean_ctor_set(x_152, 2, x_9);
lean_ctor_set(x_152, 3, x_132);
lean_ctor_set(x_152, 4, x_11);
x_153 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_153, 0, x_139);
lean_ctor_set(x_153, 1, x_129);
lean_ctor_set(x_153, 2, x_130);
lean_ctor_set(x_153, 3, x_144);
lean_ctor_set(x_153, 4, x_152);
return x_153;
}
}
else
{
lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
x_154 = lean_unsigned_to_nat(0u);
x_155 = lean_nat_add(x_140, x_154);
lean_dec(x_140);
lean_inc(x_19);
if (lean_is_scalar(x_136)) {
 x_156 = lean_alloc_ctor(0, 5, 0);
} else {
 x_156 = x_136;
}
lean_ctor_set(x_156, 0, x_155);
lean_ctor_set(x_156, 1, x_17);
lean_ctor_set(x_156, 2, x_18);
lean_ctor_set(x_156, 3, x_19);
lean_ctor_set(x_156, 4, x_131);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_157 = x_19;
} else {
 lean_dec_ref(x_19);
 x_157 = lean_box(0);
}
if (lean_obj_tag(x_132) == 0)
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; 
x_158 = lean_ctor_get(x_132, 0);
lean_inc(x_158);
x_159 = lean_nat_add(x_141, x_158);
lean_dec(x_158);
lean_dec(x_141);
if (lean_is_scalar(x_157)) {
 x_160 = lean_alloc_ctor(0, 5, 0);
} else {
 x_160 = x_157;
}
lean_ctor_set(x_160, 0, x_159);
lean_ctor_set(x_160, 1, x_8);
lean_ctor_set(x_160, 2, x_9);
lean_ctor_set(x_160, 3, x_132);
lean_ctor_set(x_160, 4, x_11);
x_161 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_161, 0, x_139);
lean_ctor_set(x_161, 1, x_129);
lean_ctor_set(x_161, 2, x_130);
lean_ctor_set(x_161, 3, x_156);
lean_ctor_set(x_161, 4, x_160);
return x_161;
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; 
x_162 = lean_nat_add(x_141, x_154);
lean_dec(x_141);
if (lean_is_scalar(x_157)) {
 x_163 = lean_alloc_ctor(0, 5, 0);
} else {
 x_163 = x_157;
}
lean_ctor_set(x_163, 0, x_162);
lean_ctor_set(x_163, 1, x_8);
lean_ctor_set(x_163, 2, x_9);
lean_ctor_set(x_163, 3, x_132);
lean_ctor_set(x_163, 4, x_11);
x_164 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_164, 0, x_139);
lean_ctor_set(x_164, 1, x_129);
lean_ctor_set(x_164, 2, x_130);
lean_ctor_set(x_164, 3, x_156);
lean_ctor_set(x_164, 4, x_163);
return x_164;
}
}
}
else
{
lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; 
lean_dec(x_132);
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_127);
x_165 = lean_unsigned_to_nat(1u);
x_166 = lean_nat_add(x_165, x_16);
lean_dec(x_16);
x_167 = lean_nat_add(x_166, x_15);
lean_dec(x_166);
x_168 = lean_nat_add(x_165, x_15);
lean_dec(x_15);
x_169 = lean_nat_add(x_168, x_128);
lean_dec(x_128);
lean_dec(x_168);
lean_inc(x_11);
x_170 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_8);
lean_ctor_set(x_170, 2, x_9);
lean_ctor_set(x_170, 3, x_20);
lean_ctor_set(x_170, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_171 = x_11;
} else {
 lean_dec_ref(x_11);
 x_171 = lean_box(0);
}
if (lean_is_scalar(x_171)) {
 x_172 = lean_alloc_ctor(0, 5, 0);
} else {
 x_172 = x_171;
}
lean_ctor_set(x_172, 0, x_167);
lean_ctor_set(x_172, 1, x_17);
lean_ctor_set(x_172, 2, x_18);
lean_ctor_set(x_172, 3, x_19);
lean_ctor_set(x_172, 4, x_170);
return x_172;
}
}
else
{
lean_object* x_173; lean_object* x_174; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_173 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_174 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4___rarg(x_173);
return x_174;
}
}
else
{
lean_object* x_175; lean_object* x_176; 
lean_dec(x_20);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_175 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_176 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5___rarg(x_175);
return x_176;
}
}
}
}
else
{
lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; 
x_177 = lean_ctor_get(x_11, 0);
lean_inc(x_177);
x_178 = lean_unsigned_to_nat(1u);
x_179 = lean_nat_add(x_178, x_177);
lean_dec(x_177);
x_180 = lean_box(1);
lean_ctor_set(x_5, 3, x_180);
lean_ctor_set(x_5, 0, x_179);
return x_5;
}
}
else
{
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_14, 3);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
lean_object* x_182; 
x_182 = lean_ctor_get(x_14, 4);
lean_inc(x_182);
if (lean_obj_tag(x_182) == 0)
{
uint8_t x_183; 
x_183 = !lean_is_exclusive(x_14);
if (x_183 == 0)
{
lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; 
x_184 = lean_ctor_get(x_14, 0);
x_185 = lean_ctor_get(x_14, 1);
x_186 = lean_ctor_get(x_14, 2);
x_187 = lean_ctor_get(x_14, 4);
lean_dec(x_187);
x_188 = lean_ctor_get(x_14, 3);
lean_dec(x_188);
x_189 = lean_ctor_get(x_182, 0);
lean_inc(x_189);
x_190 = lean_unsigned_to_nat(1u);
x_191 = lean_nat_add(x_190, x_184);
lean_dec(x_184);
x_192 = lean_nat_add(x_190, x_189);
lean_dec(x_189);
x_193 = lean_box(1);
lean_ctor_set(x_14, 4, x_193);
lean_ctor_set(x_14, 3, x_182);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_192);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_186);
lean_ctor_set(x_5, 1, x_185);
lean_ctor_set(x_5, 0, x_191);
return x_5;
}
else
{
lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; 
x_194 = lean_ctor_get(x_14, 0);
x_195 = lean_ctor_get(x_14, 1);
x_196 = lean_ctor_get(x_14, 2);
lean_inc(x_196);
lean_inc(x_195);
lean_inc(x_194);
lean_dec(x_14);
x_197 = lean_ctor_get(x_182, 0);
lean_inc(x_197);
x_198 = lean_unsigned_to_nat(1u);
x_199 = lean_nat_add(x_198, x_194);
lean_dec(x_194);
x_200 = lean_nat_add(x_198, x_197);
lean_dec(x_197);
x_201 = lean_box(1);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_200);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_182);
lean_ctor_set(x_202, 4, x_201);
lean_ctor_set(x_5, 4, x_202);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_196);
lean_ctor_set(x_5, 1, x_195);
lean_ctor_set(x_5, 0, x_199);
return x_5;
}
}
else
{
uint8_t x_203; 
x_203 = !lean_is_exclusive(x_14);
if (x_203 == 0)
{
lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 
x_204 = lean_ctor_get(x_14, 1);
x_205 = lean_ctor_get(x_14, 2);
x_206 = lean_ctor_get(x_14, 4);
lean_dec(x_206);
x_207 = lean_ctor_get(x_14, 3);
lean_dec(x_207);
x_208 = lean_ctor_get(x_14, 0);
lean_dec(x_208);
x_209 = lean_box(1);
x_210 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_209);
lean_ctor_set(x_14, 3, x_209);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_210);
x_211 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_205);
lean_ctor_set(x_5, 1, x_204);
lean_ctor_set(x_5, 0, x_211);
return x_5;
}
else
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; 
x_212 = lean_ctor_get(x_14, 1);
x_213 = lean_ctor_get(x_14, 2);
lean_inc(x_213);
lean_inc(x_212);
lean_dec(x_14);
x_214 = lean_box(1);
x_215 = lean_unsigned_to_nat(1u);
x_216 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_8);
lean_ctor_set(x_216, 2, x_9);
lean_ctor_set(x_216, 3, x_214);
lean_ctor_set(x_216, 4, x_214);
x_217 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_216);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_213);
lean_ctor_set(x_5, 1, x_212);
lean_ctor_set(x_5, 0, x_217);
return x_5;
}
}
}
else
{
lean_object* x_218; 
x_218 = lean_ctor_get(x_14, 4);
lean_inc(x_218);
if (lean_obj_tag(x_218) == 0)
{
uint8_t x_219; 
x_219 = !lean_is_exclusive(x_14);
if (x_219 == 0)
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; 
x_220 = lean_ctor_get(x_14, 1);
x_221 = lean_ctor_get(x_14, 2);
x_222 = lean_ctor_get(x_14, 4);
lean_dec(x_222);
x_223 = lean_ctor_get(x_14, 3);
lean_dec(x_223);
x_224 = lean_ctor_get(x_14, 0);
lean_dec(x_224);
x_225 = !lean_is_exclusive(x_218);
if (x_225 == 0)
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; 
x_226 = lean_ctor_get(x_218, 1);
x_227 = lean_ctor_get(x_218, 2);
x_228 = lean_ctor_get(x_218, 4);
lean_dec(x_228);
x_229 = lean_ctor_get(x_218, 3);
lean_dec(x_229);
x_230 = lean_ctor_get(x_218, 0);
lean_dec(x_230);
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_218, 4, x_231);
lean_ctor_set(x_218, 3, x_231);
lean_ctor_set(x_218, 2, x_221);
lean_ctor_set(x_218, 1, x_220);
lean_ctor_set(x_218, 0, x_232);
lean_ctor_set(x_14, 4, x_231);
lean_ctor_set(x_14, 3, x_231);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_232);
x_233 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_218);
lean_ctor_set(x_5, 2, x_227);
lean_ctor_set(x_5, 1, x_226);
lean_ctor_set(x_5, 0, x_233);
return x_5;
}
else
{
lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; 
x_234 = lean_ctor_get(x_218, 1);
x_235 = lean_ctor_get(x_218, 2);
lean_inc(x_235);
lean_inc(x_234);
lean_dec(x_218);
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(1u);
x_238 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_238, 0, x_237);
lean_ctor_set(x_238, 1, x_220);
lean_ctor_set(x_238, 2, x_221);
lean_ctor_set(x_238, 3, x_236);
lean_ctor_set(x_238, 4, x_236);
lean_ctor_set(x_14, 4, x_236);
lean_ctor_set(x_14, 3, x_236);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_237);
x_239 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_238);
lean_ctor_set(x_5, 2, x_235);
lean_ctor_set(x_5, 1, x_234);
lean_ctor_set(x_5, 0, x_239);
return x_5;
}
}
else
{
lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; 
x_240 = lean_ctor_get(x_14, 1);
x_241 = lean_ctor_get(x_14, 2);
lean_inc(x_241);
lean_inc(x_240);
lean_dec(x_14);
x_242 = lean_ctor_get(x_218, 1);
lean_inc(x_242);
x_243 = lean_ctor_get(x_218, 2);
lean_inc(x_243);
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);
 lean_ctor_release(x_218, 4);
 x_244 = x_218;
} else {
 lean_dec_ref(x_218);
 x_244 = lean_box(0);
}
x_245 = lean_box(1);
x_246 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_244)) {
 x_247 = lean_alloc_ctor(0, 5, 0);
} else {
 x_247 = x_244;
}
lean_ctor_set(x_247, 0, x_246);
lean_ctor_set(x_247, 1, x_240);
lean_ctor_set(x_247, 2, x_241);
lean_ctor_set(x_247, 3, x_245);
lean_ctor_set(x_247, 4, x_245);
x_248 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_248, 0, x_246);
lean_ctor_set(x_248, 1, x_8);
lean_ctor_set(x_248, 2, x_9);
lean_ctor_set(x_248, 3, x_245);
lean_ctor_set(x_248, 4, x_245);
x_249 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_248);
lean_ctor_set(x_5, 3, x_247);
lean_ctor_set(x_5, 2, x_243);
lean_ctor_set(x_5, 1, x_242);
lean_ctor_set(x_5, 0, x_249);
return x_5;
}
}
else
{
lean_object* x_250; lean_object* x_251; 
x_250 = lean_box(1);
x_251 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_5, 4, x_250);
lean_ctor_set(x_5, 3, x_14);
lean_ctor_set(x_5, 0, x_251);
return x_5;
}
}
}
else
{
lean_object* x_252; lean_object* x_253; 
x_252 = lean_box(1);
x_253 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_5, 4, x_252);
lean_ctor_set(x_5, 3, x_252);
lean_ctor_set(x_5, 0, x_253);
return x_5;
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_5, 2, x_4);
lean_ctor_set(x_5, 1, x_3);
return x_5;
}
default: 
{
lean_object* x_254; 
lean_dec(x_7);
x_254 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_11);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; 
x_255 = lean_ctor_get(x_10, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_254, 0);
lean_inc(x_256);
x_257 = lean_ctor_get(x_254, 1);
lean_inc(x_257);
x_258 = lean_ctor_get(x_254, 2);
lean_inc(x_258);
x_259 = lean_ctor_get(x_254, 3);
lean_inc(x_259);
x_260 = lean_ctor_get(x_254, 4);
lean_inc(x_260);
x_261 = lean_unsigned_to_nat(3u);
x_262 = lean_nat_mul(x_261, x_255);
x_263 = lean_nat_dec_lt(x_262, x_256);
lean_dec(x_262);
if (x_263 == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; 
lean_dec(x_260);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
x_264 = lean_unsigned_to_nat(1u);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
x_266 = lean_nat_add(x_265, x_256);
lean_dec(x_256);
lean_dec(x_265);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 0, x_266);
return x_5;
}
else
{
uint8_t x_267; 
lean_free_object(x_5);
x_267 = !lean_is_exclusive(x_254);
if (x_267 == 0)
{
lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; 
x_268 = lean_ctor_get(x_254, 4);
lean_dec(x_268);
x_269 = lean_ctor_get(x_254, 3);
lean_dec(x_269);
x_270 = lean_ctor_get(x_254, 2);
lean_dec(x_270);
x_271 = lean_ctor_get(x_254, 1);
lean_dec(x_271);
x_272 = lean_ctor_get(x_254, 0);
lean_dec(x_272);
if (lean_obj_tag(x_259) == 0)
{
if (lean_obj_tag(x_260) == 0)
{
lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; 
x_273 = lean_ctor_get(x_259, 0);
lean_inc(x_273);
x_274 = lean_ctor_get(x_259, 1);
lean_inc(x_274);
x_275 = lean_ctor_get(x_259, 2);
lean_inc(x_275);
x_276 = lean_ctor_get(x_259, 3);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 4);
lean_inc(x_277);
x_278 = lean_ctor_get(x_260, 0);
lean_inc(x_278);
x_279 = lean_unsigned_to_nat(2u);
x_280 = lean_nat_mul(x_279, x_278);
x_281 = lean_nat_dec_lt(x_273, x_280);
lean_dec(x_280);
if (x_281 == 0)
{
uint8_t x_282; 
lean_dec(x_273);
x_282 = !lean_is_exclusive(x_259);
if (x_282 == 0)
{
lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_283 = lean_ctor_get(x_259, 4);
lean_dec(x_283);
x_284 = lean_ctor_get(x_259, 3);
lean_dec(x_284);
x_285 = lean_ctor_get(x_259, 2);
lean_dec(x_285);
x_286 = lean_ctor_get(x_259, 1);
lean_dec(x_286);
x_287 = lean_ctor_get(x_259, 0);
lean_dec(x_287);
x_288 = lean_unsigned_to_nat(1u);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_289, x_256);
lean_dec(x_256);
x_291 = lean_nat_add(x_288, x_278);
lean_dec(x_278);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_292; lean_object* x_293; uint8_t x_294; 
x_292 = lean_ctor_get(x_276, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_289, x_292);
lean_dec(x_292);
lean_dec(x_289);
lean_inc(x_10);
lean_ctor_set(x_259, 4, x_276);
lean_ctor_set(x_259, 3, x_10);
lean_ctor_set(x_259, 2, x_9);
lean_ctor_set(x_259, 1, x_8);
lean_ctor_set(x_259, 0, x_293);
x_294 = !lean_is_exclusive(x_10);
if (x_294 == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; 
x_295 = lean_ctor_get(x_10, 4);
lean_dec(x_295);
x_296 = lean_ctor_get(x_10, 3);
lean_dec(x_296);
x_297 = lean_ctor_get(x_10, 2);
lean_dec(x_297);
x_298 = lean_ctor_get(x_10, 1);
lean_dec(x_298);
x_299 = lean_ctor_get(x_10, 0);
lean_dec(x_299);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_300; lean_object* x_301; 
x_300 = lean_ctor_get(x_277, 0);
lean_inc(x_300);
x_301 = lean_nat_add(x_291, x_300);
lean_dec(x_300);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_301);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
else
{
lean_object* x_302; lean_object* x_303; 
x_302 = lean_unsigned_to_nat(0u);
x_303 = lean_nat_add(x_291, x_302);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_303);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_304; lean_object* x_305; lean_object* x_306; 
x_304 = lean_ctor_get(x_277, 0);
lean_inc(x_304);
x_305 = lean_nat_add(x_291, x_304);
lean_dec(x_304);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_305);
x_306 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_306, 0, x_290);
lean_ctor_set(x_306, 1, x_274);
lean_ctor_set(x_306, 2, x_275);
lean_ctor_set(x_306, 3, x_259);
lean_ctor_set(x_306, 4, x_254);
return x_306;
}
else
{
lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_307 = lean_unsigned_to_nat(0u);
x_308 = lean_nat_add(x_291, x_307);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_308);
x_309 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_309, 0, x_290);
lean_ctor_set(x_309, 1, x_274);
lean_ctor_set(x_309, 2, x_275);
lean_ctor_set(x_309, 3, x_259);
lean_ctor_set(x_309, 4, x_254);
return x_309;
}
}
}
else
{
lean_object* x_310; lean_object* x_311; uint8_t x_312; 
x_310 = lean_unsigned_to_nat(0u);
x_311 = lean_nat_add(x_289, x_310);
lean_dec(x_289);
lean_inc(x_10);
lean_ctor_set(x_259, 4, x_276);
lean_ctor_set(x_259, 3, x_10);
lean_ctor_set(x_259, 2, x_9);
lean_ctor_set(x_259, 1, x_8);
lean_ctor_set(x_259, 0, x_311);
x_312 = !lean_is_exclusive(x_10);
if (x_312 == 0)
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; 
x_313 = lean_ctor_get(x_10, 4);
lean_dec(x_313);
x_314 = lean_ctor_get(x_10, 3);
lean_dec(x_314);
x_315 = lean_ctor_get(x_10, 2);
lean_dec(x_315);
x_316 = lean_ctor_get(x_10, 1);
lean_dec(x_316);
x_317 = lean_ctor_get(x_10, 0);
lean_dec(x_317);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_318; lean_object* x_319; 
x_318 = lean_ctor_get(x_277, 0);
lean_inc(x_318);
x_319 = lean_nat_add(x_291, x_318);
lean_dec(x_318);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_319);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
else
{
lean_object* x_320; 
x_320 = lean_nat_add(x_291, x_310);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_320);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_321; lean_object* x_322; lean_object* x_323; 
x_321 = lean_ctor_get(x_277, 0);
lean_inc(x_321);
x_322 = lean_nat_add(x_291, x_321);
lean_dec(x_321);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_322);
x_323 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_323, 0, x_290);
lean_ctor_set(x_323, 1, x_274);
lean_ctor_set(x_323, 2, x_275);
lean_ctor_set(x_323, 3, x_259);
lean_ctor_set(x_323, 4, x_254);
return x_323;
}
else
{
lean_object* x_324; lean_object* x_325; 
x_324 = lean_nat_add(x_291, x_310);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_324);
x_325 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_325, 0, x_290);
lean_ctor_set(x_325, 1, x_274);
lean_ctor_set(x_325, 2, x_275);
lean_ctor_set(x_325, 3, x_259);
lean_ctor_set(x_325, 4, x_254);
return x_325;
}
}
}
}
else
{
lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; 
lean_dec(x_259);
x_326 = lean_unsigned_to_nat(1u);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_327, x_256);
lean_dec(x_256);
x_329 = lean_nat_add(x_326, x_278);
lean_dec(x_278);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_330 = lean_ctor_get(x_276, 0);
lean_inc(x_330);
x_331 = lean_nat_add(x_327, x_330);
lean_dec(x_330);
lean_dec(x_327);
lean_inc(x_10);
x_332 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_332, 0, x_331);
lean_ctor_set(x_332, 1, x_8);
lean_ctor_set(x_332, 2, x_9);
lean_ctor_set(x_332, 3, x_10);
lean_ctor_set(x_332, 4, x_276);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_333 = x_10;
} else {
 lean_dec_ref(x_10);
 x_333 = lean_box(0);
}
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; 
x_334 = lean_ctor_get(x_277, 0);
lean_inc(x_334);
x_335 = lean_nat_add(x_329, x_334);
lean_dec(x_334);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_335);
if (lean_is_scalar(x_333)) {
 x_336 = lean_alloc_ctor(0, 5, 0);
} else {
 x_336 = x_333;
}
lean_ctor_set(x_336, 0, x_328);
lean_ctor_set(x_336, 1, x_274);
lean_ctor_set(x_336, 2, x_275);
lean_ctor_set(x_336, 3, x_332);
lean_ctor_set(x_336, 4, x_254);
return x_336;
}
else
{
lean_object* x_337; lean_object* x_338; lean_object* x_339; 
x_337 = lean_unsigned_to_nat(0u);
x_338 = lean_nat_add(x_329, x_337);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_338);
if (lean_is_scalar(x_333)) {
 x_339 = lean_alloc_ctor(0, 5, 0);
} else {
 x_339 = x_333;
}
lean_ctor_set(x_339, 0, x_328);
lean_ctor_set(x_339, 1, x_274);
lean_ctor_set(x_339, 2, x_275);
lean_ctor_set(x_339, 3, x_332);
lean_ctor_set(x_339, 4, x_254);
return x_339;
}
}
else
{
lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; 
x_340 = lean_unsigned_to_nat(0u);
x_341 = lean_nat_add(x_327, x_340);
lean_dec(x_327);
lean_inc(x_10);
x_342 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_342, 0, x_341);
lean_ctor_set(x_342, 1, x_8);
lean_ctor_set(x_342, 2, x_9);
lean_ctor_set(x_342, 3, x_10);
lean_ctor_set(x_342, 4, x_276);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_343 = x_10;
} else {
 lean_dec_ref(x_10);
 x_343 = lean_box(0);
}
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; 
x_344 = lean_ctor_get(x_277, 0);
lean_inc(x_344);
x_345 = lean_nat_add(x_329, x_344);
lean_dec(x_344);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_345);
if (lean_is_scalar(x_343)) {
 x_346 = lean_alloc_ctor(0, 5, 0);
} else {
 x_346 = x_343;
}
lean_ctor_set(x_346, 0, x_328);
lean_ctor_set(x_346, 1, x_274);
lean_ctor_set(x_346, 2, x_275);
lean_ctor_set(x_346, 3, x_342);
lean_ctor_set(x_346, 4, x_254);
return x_346;
}
else
{
lean_object* x_347; lean_object* x_348; 
x_347 = lean_nat_add(x_329, x_340);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_347);
if (lean_is_scalar(x_343)) {
 x_348 = lean_alloc_ctor(0, 5, 0);
} else {
 x_348 = x_343;
}
lean_ctor_set(x_348, 0, x_328);
lean_ctor_set(x_348, 1, x_274);
lean_ctor_set(x_348, 2, x_275);
lean_ctor_set(x_348, 3, x_342);
lean_ctor_set(x_348, 4, x_254);
return x_348;
}
}
}
}
else
{
lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; 
lean_dec(x_278);
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
x_349 = lean_unsigned_to_nat(1u);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_350, x_256);
lean_dec(x_256);
x_352 = lean_nat_add(x_350, x_273);
lean_dec(x_273);
lean_dec(x_350);
lean_inc(x_10);
lean_ctor_set(x_254, 4, x_259);
lean_ctor_set(x_254, 3, x_10);
lean_ctor_set(x_254, 2, x_9);
lean_ctor_set(x_254, 1, x_8);
lean_ctor_set(x_254, 0, x_352);
x_353 = !lean_is_exclusive(x_10);
if (x_353 == 0)
{
lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; 
x_354 = lean_ctor_get(x_10, 4);
lean_dec(x_354);
x_355 = lean_ctor_get(x_10, 3);
lean_dec(x_355);
x_356 = lean_ctor_get(x_10, 2);
lean_dec(x_356);
x_357 = lean_ctor_get(x_10, 1);
lean_dec(x_357);
x_358 = lean_ctor_get(x_10, 0);
lean_dec(x_358);
lean_ctor_set(x_10, 4, x_260);
lean_ctor_set(x_10, 3, x_254);
lean_ctor_set(x_10, 2, x_258);
lean_ctor_set(x_10, 1, x_257);
lean_ctor_set(x_10, 0, x_351);
return x_10;
}
else
{
lean_object* x_359; 
lean_dec(x_10);
x_359 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_359, 0, x_351);
lean_ctor_set(x_359, 1, x_257);
lean_ctor_set(x_359, 2, x_258);
lean_ctor_set(x_359, 3, x_254);
lean_ctor_set(x_359, 4, x_260);
return x_359;
}
}
}
else
{
lean_object* x_360; lean_object* x_361; 
lean_free_object(x_254);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_360 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_361 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6___rarg(x_360);
return x_361;
}
}
else
{
lean_object* x_362; lean_object* x_363; 
lean_free_object(x_254);
lean_dec(x_260);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_362 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_363 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7___rarg(x_362);
return x_363;
}
}
else
{
lean_dec(x_254);
if (lean_obj_tag(x_259) == 0)
{
if (lean_obj_tag(x_260) == 0)
{
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; 
x_364 = lean_ctor_get(x_259, 0);
lean_inc(x_364);
x_365 = lean_ctor_get(x_259, 1);
lean_inc(x_365);
x_366 = lean_ctor_get(x_259, 2);
lean_inc(x_366);
x_367 = lean_ctor_get(x_259, 3);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 4);
lean_inc(x_368);
x_369 = lean_ctor_get(x_260, 0);
lean_inc(x_369);
x_370 = lean_unsigned_to_nat(2u);
x_371 = lean_nat_mul(x_370, x_369);
x_372 = lean_nat_dec_lt(x_364, x_371);
lean_dec(x_371);
if (x_372 == 0)
{
lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; 
lean_dec(x_364);
if (lean_is_exclusive(x_259)) {
 lean_ctor_release(x_259, 0);
 lean_ctor_release(x_259, 1);
 lean_ctor_release(x_259, 2);
 lean_ctor_release(x_259, 3);
 lean_ctor_release(x_259, 4);
 x_373 = x_259;
} else {
 lean_dec_ref(x_259);
 x_373 = lean_box(0);
}
x_374 = lean_unsigned_to_nat(1u);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_375, x_256);
lean_dec(x_256);
x_377 = lean_nat_add(x_374, x_369);
lean_dec(x_369);
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; 
x_378 = lean_ctor_get(x_367, 0);
lean_inc(x_378);
x_379 = lean_nat_add(x_375, x_378);
lean_dec(x_378);
lean_dec(x_375);
lean_inc(x_10);
if (lean_is_scalar(x_373)) {
 x_380 = lean_alloc_ctor(0, 5, 0);
} else {
 x_380 = x_373;
}
lean_ctor_set(x_380, 0, x_379);
lean_ctor_set(x_380, 1, x_8);
lean_ctor_set(x_380, 2, x_9);
lean_ctor_set(x_380, 3, x_10);
lean_ctor_set(x_380, 4, x_367);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_381 = x_10;
} else {
 lean_dec_ref(x_10);
 x_381 = lean_box(0);
}
if (lean_obj_tag(x_368) == 0)
{
lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; 
x_382 = lean_ctor_get(x_368, 0);
lean_inc(x_382);
x_383 = lean_nat_add(x_377, x_382);
lean_dec(x_382);
lean_dec(x_377);
x_384 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_384, 0, x_383);
lean_ctor_set(x_384, 1, x_257);
lean_ctor_set(x_384, 2, x_258);
lean_ctor_set(x_384, 3, x_368);
lean_ctor_set(x_384, 4, x_260);
if (lean_is_scalar(x_381)) {
 x_385 = lean_alloc_ctor(0, 5, 0);
} else {
 x_385 = x_381;
}
lean_ctor_set(x_385, 0, x_376);
lean_ctor_set(x_385, 1, x_365);
lean_ctor_set(x_385, 2, x_366);
lean_ctor_set(x_385, 3, x_380);
lean_ctor_set(x_385, 4, x_384);
return x_385;
}
else
{
lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; 
x_386 = lean_unsigned_to_nat(0u);
x_387 = lean_nat_add(x_377, x_386);
lean_dec(x_377);
x_388 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_388, 0, x_387);
lean_ctor_set(x_388, 1, x_257);
lean_ctor_set(x_388, 2, x_258);
lean_ctor_set(x_388, 3, x_368);
lean_ctor_set(x_388, 4, x_260);
if (lean_is_scalar(x_381)) {
 x_389 = lean_alloc_ctor(0, 5, 0);
} else {
 x_389 = x_381;
}
lean_ctor_set(x_389, 0, x_376);
lean_ctor_set(x_389, 1, x_365);
lean_ctor_set(x_389, 2, x_366);
lean_ctor_set(x_389, 3, x_380);
lean_ctor_set(x_389, 4, x_388);
return x_389;
}
}
else
{
lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; 
x_390 = lean_unsigned_to_nat(0u);
x_391 = lean_nat_add(x_375, x_390);
lean_dec(x_375);
lean_inc(x_10);
if (lean_is_scalar(x_373)) {
 x_392 = lean_alloc_ctor(0, 5, 0);
} else {
 x_392 = x_373;
}
lean_ctor_set(x_392, 0, x_391);
lean_ctor_set(x_392, 1, x_8);
lean_ctor_set(x_392, 2, x_9);
lean_ctor_set(x_392, 3, x_10);
lean_ctor_set(x_392, 4, x_367);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_393 = x_10;
} else {
 lean_dec_ref(x_10);
 x_393 = lean_box(0);
}
if (lean_obj_tag(x_368) == 0)
{
lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; 
x_394 = lean_ctor_get(x_368, 0);
lean_inc(x_394);
x_395 = lean_nat_add(x_377, x_394);
lean_dec(x_394);
lean_dec(x_377);
x_396 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_396, 0, x_395);
lean_ctor_set(x_396, 1, x_257);
lean_ctor_set(x_396, 2, x_258);
lean_ctor_set(x_396, 3, x_368);
lean_ctor_set(x_396, 4, x_260);
if (lean_is_scalar(x_393)) {
 x_397 = lean_alloc_ctor(0, 5, 0);
} else {
 x_397 = x_393;
}
lean_ctor_set(x_397, 0, x_376);
lean_ctor_set(x_397, 1, x_365);
lean_ctor_set(x_397, 2, x_366);
lean_ctor_set(x_397, 3, x_392);
lean_ctor_set(x_397, 4, x_396);
return x_397;
}
else
{
lean_object* x_398; lean_object* x_399; lean_object* x_400; 
x_398 = lean_nat_add(x_377, x_390);
lean_dec(x_377);
x_399 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_399, 0, x_398);
lean_ctor_set(x_399, 1, x_257);
lean_ctor_set(x_399, 2, x_258);
lean_ctor_set(x_399, 3, x_368);
lean_ctor_set(x_399, 4, x_260);
if (lean_is_scalar(x_393)) {
 x_400 = lean_alloc_ctor(0, 5, 0);
} else {
 x_400 = x_393;
}
lean_ctor_set(x_400, 0, x_376);
lean_ctor_set(x_400, 1, x_365);
lean_ctor_set(x_400, 2, x_366);
lean_ctor_set(x_400, 3, x_392);
lean_ctor_set(x_400, 4, x_399);
return x_400;
}
}
}
else
{
lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; 
lean_dec(x_369);
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
x_401 = lean_unsigned_to_nat(1u);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_402, x_256);
lean_dec(x_256);
x_404 = lean_nat_add(x_402, x_364);
lean_dec(x_364);
lean_dec(x_402);
lean_inc(x_10);
x_405 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_405, 0, x_404);
lean_ctor_set(x_405, 1, x_8);
lean_ctor_set(x_405, 2, x_9);
lean_ctor_set(x_405, 3, x_10);
lean_ctor_set(x_405, 4, x_259);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_406 = x_10;
} else {
 lean_dec_ref(x_10);
 x_406 = lean_box(0);
}
if (lean_is_scalar(x_406)) {
 x_407 = lean_alloc_ctor(0, 5, 0);
} else {
 x_407 = x_406;
}
lean_ctor_set(x_407, 0, x_403);
lean_ctor_set(x_407, 1, x_257);
lean_ctor_set(x_407, 2, x_258);
lean_ctor_set(x_407, 3, x_405);
lean_ctor_set(x_407, 4, x_260);
return x_407;
}
}
else
{
lean_object* x_408; lean_object* x_409; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_408 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_409 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6___rarg(x_408);
return x_409;
}
}
else
{
lean_object* x_410; lean_object* x_411; 
lean_dec(x_260);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_410 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_411 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7___rarg(x_410);
return x_411;
}
}
}
}
else
{
lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; 
x_412 = lean_ctor_get(x_10, 0);
lean_inc(x_412);
x_413 = lean_unsigned_to_nat(1u);
x_414 = lean_nat_add(x_413, x_412);
lean_dec(x_412);
x_415 = lean_box(1);
lean_ctor_set(x_5, 4, x_415);
lean_ctor_set(x_5, 0, x_414);
return x_5;
}
}
else
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_254, 3);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
lean_object* x_417; 
x_417 = lean_ctor_get(x_254, 4);
lean_inc(x_417);
if (lean_obj_tag(x_417) == 0)
{
uint8_t x_418; 
x_418 = !lean_is_exclusive(x_254);
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; lean_object* x_428; 
x_419 = lean_ctor_get(x_254, 0);
x_420 = lean_ctor_get(x_254, 1);
x_421 = lean_ctor_get(x_254, 2);
x_422 = lean_ctor_get(x_254, 4);
lean_dec(x_422);
x_423 = lean_ctor_get(x_254, 3);
lean_dec(x_423);
x_424 = lean_ctor_get(x_416, 0);
lean_inc(x_424);
x_425 = lean_unsigned_to_nat(1u);
x_426 = lean_nat_add(x_425, x_419);
lean_dec(x_419);
x_427 = lean_nat_add(x_425, x_424);
lean_dec(x_424);
x_428 = lean_box(1);
lean_ctor_set(x_254, 4, x_416);
lean_ctor_set(x_254, 3, x_428);
lean_ctor_set(x_254, 2, x_9);
lean_ctor_set(x_254, 1, x_8);
lean_ctor_set(x_254, 0, x_427);
lean_ctor_set(x_5, 4, x_417);
lean_ctor_set(x_5, 3, x_254);
lean_ctor_set(x_5, 2, x_421);
lean_ctor_set(x_5, 1, x_420);
lean_ctor_set(x_5, 0, x_426);
return x_5;
}
else
{
lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; 
x_429 = lean_ctor_get(x_254, 0);
x_430 = lean_ctor_get(x_254, 1);
x_431 = lean_ctor_get(x_254, 2);
lean_inc(x_431);
lean_inc(x_430);
lean_inc(x_429);
lean_dec(x_254);
x_432 = lean_ctor_get(x_416, 0);
lean_inc(x_432);
x_433 = lean_unsigned_to_nat(1u);
x_434 = lean_nat_add(x_433, x_429);
lean_dec(x_429);
x_435 = lean_nat_add(x_433, x_432);
lean_dec(x_432);
x_436 = lean_box(1);
x_437 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_437, 0, x_435);
lean_ctor_set(x_437, 1, x_8);
lean_ctor_set(x_437, 2, x_9);
lean_ctor_set(x_437, 3, x_436);
lean_ctor_set(x_437, 4, x_416);
lean_ctor_set(x_5, 4, x_417);
lean_ctor_set(x_5, 3, x_437);
lean_ctor_set(x_5, 2, x_431);
lean_ctor_set(x_5, 1, x_430);
lean_ctor_set(x_5, 0, x_434);
return x_5;
}
}
else
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_254);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; uint8_t x_442; 
x_439 = lean_ctor_get(x_254, 4);
lean_dec(x_439);
x_440 = lean_ctor_get(x_254, 3);
lean_dec(x_440);
x_441 = lean_ctor_get(x_254, 0);
lean_dec(x_441);
x_442 = !lean_is_exclusive(x_416);
if (x_442 == 0)
{
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; lean_object* x_450; 
x_443 = lean_ctor_get(x_416, 1);
x_444 = lean_ctor_get(x_416, 2);
x_445 = lean_ctor_get(x_416, 4);
lean_dec(x_445);
x_446 = lean_ctor_get(x_416, 3);
lean_dec(x_446);
x_447 = lean_ctor_get(x_416, 0);
lean_dec(x_447);
x_448 = lean_box(1);
x_449 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_416, 4, x_448);
lean_ctor_set(x_416, 3, x_448);
lean_ctor_set(x_416, 2, x_9);
lean_ctor_set(x_416, 1, x_8);
lean_ctor_set(x_416, 0, x_449);
lean_ctor_set(x_254, 4, x_448);
lean_ctor_set(x_254, 3, x_448);
lean_ctor_set(x_254, 0, x_449);
x_450 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 3, x_416);
lean_ctor_set(x_5, 2, x_444);
lean_ctor_set(x_5, 1, x_443);
lean_ctor_set(x_5, 0, x_450);
return x_5;
}
else
{
lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; 
x_451 = lean_ctor_get(x_416, 1);
x_452 = lean_ctor_get(x_416, 2);
lean_inc(x_452);
lean_inc(x_451);
lean_dec(x_416);
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(1u);
x_455 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_455, 0, x_454);
lean_ctor_set(x_455, 1, x_8);
lean_ctor_set(x_455, 2, x_9);
lean_ctor_set(x_455, 3, x_453);
lean_ctor_set(x_455, 4, x_453);
lean_ctor_set(x_254, 4, x_453);
lean_ctor_set(x_254, 3, x_453);
lean_ctor_set(x_254, 0, x_454);
x_456 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 3, x_455);
lean_ctor_set(x_5, 2, x_452);
lean_ctor_set(x_5, 1, x_451);
lean_ctor_set(x_5, 0, x_456);
return x_5;
}
}
else
{
lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; 
x_457 = lean_ctor_get(x_254, 1);
x_458 = lean_ctor_get(x_254, 2);
lean_inc(x_458);
lean_inc(x_457);
lean_dec(x_254);
x_459 = lean_ctor_get(x_416, 1);
lean_inc(x_459);
x_460 = lean_ctor_get(x_416, 2);
lean_inc(x_460);
if (lean_is_exclusive(x_416)) {
 lean_ctor_release(x_416, 0);
 lean_ctor_release(x_416, 1);
 lean_ctor_release(x_416, 2);
 lean_ctor_release(x_416, 3);
 lean_ctor_release(x_416, 4);
 x_461 = x_416;
} else {
 lean_dec_ref(x_416);
 x_461 = lean_box(0);
}
x_462 = lean_box(1);
x_463 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_461)) {
 x_464 = lean_alloc_ctor(0, 5, 0);
} else {
 x_464 = x_461;
}
lean_ctor_set(x_464, 0, x_463);
lean_ctor_set(x_464, 1, x_8);
lean_ctor_set(x_464, 2, x_9);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set(x_464, 4, x_462);
x_465 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_465, 0, x_463);
lean_ctor_set(x_465, 1, x_457);
lean_ctor_set(x_465, 2, x_458);
lean_ctor_set(x_465, 3, x_462);
lean_ctor_set(x_465, 4, x_462);
x_466 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_465);
lean_ctor_set(x_5, 3, x_464);
lean_ctor_set(x_5, 2, x_460);
lean_ctor_set(x_5, 1, x_459);
lean_ctor_set(x_5, 0, x_466);
return x_5;
}
}
}
else
{
lean_object* x_467; 
x_467 = lean_ctor_get(x_254, 4);
lean_inc(x_467);
if (lean_obj_tag(x_467) == 0)
{
uint8_t x_468; 
x_468 = !lean_is_exclusive(x_254);
if (x_468 == 0)
{
lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; 
x_469 = lean_ctor_get(x_254, 1);
x_470 = lean_ctor_get(x_254, 2);
x_471 = lean_ctor_get(x_254, 4);
lean_dec(x_471);
x_472 = lean_ctor_get(x_254, 3);
lean_dec(x_472);
x_473 = lean_ctor_get(x_254, 0);
lean_dec(x_473);
x_474 = lean_box(1);
x_475 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_254, 4, x_474);
lean_ctor_set(x_254, 3, x_474);
lean_ctor_set(x_254, 2, x_9);
lean_ctor_set(x_254, 1, x_8);
lean_ctor_set(x_254, 0, x_475);
x_476 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_467);
lean_ctor_set(x_5, 3, x_254);
lean_ctor_set(x_5, 2, x_470);
lean_ctor_set(x_5, 1, x_469);
lean_ctor_set(x_5, 0, x_476);
return x_5;
}
else
{
lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; 
x_477 = lean_ctor_get(x_254, 1);
x_478 = lean_ctor_get(x_254, 2);
lean_inc(x_478);
lean_inc(x_477);
lean_dec(x_254);
x_479 = lean_box(1);
x_480 = lean_unsigned_to_nat(1u);
x_481 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_481, 0, x_480);
lean_ctor_set(x_481, 1, x_8);
lean_ctor_set(x_481, 2, x_9);
lean_ctor_set(x_481, 3, x_479);
lean_ctor_set(x_481, 4, x_479);
x_482 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_467);
lean_ctor_set(x_5, 3, x_481);
lean_ctor_set(x_5, 2, x_478);
lean_ctor_set(x_5, 1, x_477);
lean_ctor_set(x_5, 0, x_482);
return x_5;
}
}
else
{
lean_object* x_483; lean_object* x_484; 
x_483 = lean_box(1);
x_484 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 3, x_483);
lean_ctor_set(x_5, 0, x_484);
return x_5;
}
}
}
else
{
lean_object* x_485; lean_object* x_486; 
x_485 = lean_box(1);
x_486 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_5, 4, x_485);
lean_ctor_set(x_5, 3, x_485);
lean_ctor_set(x_5, 0, x_486);
return x_5;
}
}
}
}
}
else
{
lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; 
x_487 = lean_ctor_get(x_5, 0);
x_488 = lean_ctor_get(x_5, 1);
x_489 = lean_ctor_get(x_5, 2);
x_490 = lean_ctor_get(x_5, 3);
x_491 = lean_ctor_get(x_5, 4);
lean_inc(x_491);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_488);
lean_inc(x_3);
x_492 = lean_apply_2(x_1, x_3, x_488);
x_493 = lean_unbox(x_492);
lean_dec(x_492);
switch (x_493) {
case 0:
{
lean_object* x_494; 
lean_dec(x_487);
x_494 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_490);
if (lean_obj_tag(x_491) == 0)
{
if (lean_obj_tag(x_494) == 0)
{
lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; 
x_495 = lean_ctor_get(x_491, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_494, 0);
lean_inc(x_496);
x_497 = lean_ctor_get(x_494, 1);
lean_inc(x_497);
x_498 = lean_ctor_get(x_494, 2);
lean_inc(x_498);
x_499 = lean_ctor_get(x_494, 3);
lean_inc(x_499);
x_500 = lean_ctor_get(x_494, 4);
lean_inc(x_500);
x_501 = lean_unsigned_to_nat(3u);
x_502 = lean_nat_mul(x_501, x_495);
x_503 = lean_nat_dec_lt(x_502, x_496);
lean_dec(x_502);
if (x_503 == 0)
{
lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; 
lean_dec(x_500);
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
x_504 = lean_unsigned_to_nat(1u);
x_505 = lean_nat_add(x_504, x_496);
lean_dec(x_496);
x_506 = lean_nat_add(x_505, x_495);
lean_dec(x_495);
lean_dec(x_505);
x_507 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_488);
lean_ctor_set(x_507, 2, x_489);
lean_ctor_set(x_507, 3, x_494);
lean_ctor_set(x_507, 4, x_491);
return x_507;
}
else
{
lean_object* x_508; 
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_508 = x_494;
} else {
 lean_dec_ref(x_494);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_499) == 0)
{
if (lean_obj_tag(x_500) == 0)
{
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; 
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_500, 0);
lean_inc(x_510);
x_511 = lean_ctor_get(x_500, 1);
lean_inc(x_511);
x_512 = lean_ctor_get(x_500, 2);
lean_inc(x_512);
x_513 = lean_ctor_get(x_500, 3);
lean_inc(x_513);
x_514 = lean_ctor_get(x_500, 4);
lean_inc(x_514);
x_515 = lean_unsigned_to_nat(2u);
x_516 = lean_nat_mul(x_515, x_509);
x_517 = lean_nat_dec_lt(x_510, x_516);
lean_dec(x_516);
if (x_517 == 0)
{
lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; 
lean_dec(x_510);
if (lean_is_exclusive(x_500)) {
 lean_ctor_release(x_500, 0);
 lean_ctor_release(x_500, 1);
 lean_ctor_release(x_500, 2);
 lean_ctor_release(x_500, 3);
 lean_ctor_release(x_500, 4);
 x_518 = x_500;
} else {
 lean_dec_ref(x_500);
 x_518 = lean_box(0);
}
x_519 = lean_unsigned_to_nat(1u);
x_520 = lean_nat_add(x_519, x_496);
lean_dec(x_496);
x_521 = lean_nat_add(x_520, x_495);
lean_dec(x_520);
x_522 = lean_nat_add(x_519, x_509);
lean_dec(x_509);
x_523 = lean_nat_add(x_519, x_495);
lean_dec(x_495);
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; 
x_524 = lean_ctor_get(x_513, 0);
lean_inc(x_524);
x_525 = lean_nat_add(x_522, x_524);
lean_dec(x_524);
lean_dec(x_522);
lean_inc(x_499);
if (lean_is_scalar(x_518)) {
 x_526 = lean_alloc_ctor(0, 5, 0);
} else {
 x_526 = x_518;
}
lean_ctor_set(x_526, 0, x_525);
lean_ctor_set(x_526, 1, x_497);
lean_ctor_set(x_526, 2, x_498);
lean_ctor_set(x_526, 3, x_499);
lean_ctor_set(x_526, 4, x_513);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_527 = x_499;
} else {
 lean_dec_ref(x_499);
 x_527 = lean_box(0);
}
if (lean_obj_tag(x_514) == 0)
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 
x_528 = lean_ctor_get(x_514, 0);
lean_inc(x_528);
x_529 = lean_nat_add(x_523, x_528);
lean_dec(x_528);
lean_dec(x_523);
if (lean_is_scalar(x_527)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_527;
}
lean_ctor_set(x_530, 0, x_529);
lean_ctor_set(x_530, 1, x_488);
lean_ctor_set(x_530, 2, x_489);
lean_ctor_set(x_530, 3, x_514);
lean_ctor_set(x_530, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_508;
}
lean_ctor_set(x_531, 0, x_521);
lean_ctor_set(x_531, 1, x_511);
lean_ctor_set(x_531, 2, x_512);
lean_ctor_set(x_531, 3, x_526);
lean_ctor_set(x_531, 4, x_530);
return x_531;
}
else
{
lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; 
x_532 = lean_unsigned_to_nat(0u);
x_533 = lean_nat_add(x_523, x_532);
lean_dec(x_523);
if (lean_is_scalar(x_527)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_527;
}
lean_ctor_set(x_534, 0, x_533);
lean_ctor_set(x_534, 1, x_488);
lean_ctor_set(x_534, 2, x_489);
lean_ctor_set(x_534, 3, x_514);
lean_ctor_set(x_534, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_535 = lean_alloc_ctor(0, 5, 0);
} else {
 x_535 = x_508;
}
lean_ctor_set(x_535, 0, x_521);
lean_ctor_set(x_535, 1, x_511);
lean_ctor_set(x_535, 2, x_512);
lean_ctor_set(x_535, 3, x_526);
lean_ctor_set(x_535, 4, x_534);
return x_535;
}
}
else
{
lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; 
x_536 = lean_unsigned_to_nat(0u);
x_537 = lean_nat_add(x_522, x_536);
lean_dec(x_522);
lean_inc(x_499);
if (lean_is_scalar(x_518)) {
 x_538 = lean_alloc_ctor(0, 5, 0);
} else {
 x_538 = x_518;
}
lean_ctor_set(x_538, 0, x_537);
lean_ctor_set(x_538, 1, x_497);
lean_ctor_set(x_538, 2, x_498);
lean_ctor_set(x_538, 3, x_499);
lean_ctor_set(x_538, 4, x_513);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_539 = x_499;
} else {
 lean_dec_ref(x_499);
 x_539 = lean_box(0);
}
if (lean_obj_tag(x_514) == 0)
{
lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; 
x_540 = lean_ctor_get(x_514, 0);
lean_inc(x_540);
x_541 = lean_nat_add(x_523, x_540);
lean_dec(x_540);
lean_dec(x_523);
if (lean_is_scalar(x_539)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_539;
}
lean_ctor_set(x_542, 0, x_541);
lean_ctor_set(x_542, 1, x_488);
lean_ctor_set(x_542, 2, x_489);
lean_ctor_set(x_542, 3, x_514);
lean_ctor_set(x_542, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_508;
}
lean_ctor_set(x_543, 0, x_521);
lean_ctor_set(x_543, 1, x_511);
lean_ctor_set(x_543, 2, x_512);
lean_ctor_set(x_543, 3, x_538);
lean_ctor_set(x_543, 4, x_542);
return x_543;
}
else
{
lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_544 = lean_nat_add(x_523, x_536);
lean_dec(x_523);
if (lean_is_scalar(x_539)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_539;
}
lean_ctor_set(x_545, 0, x_544);
lean_ctor_set(x_545, 1, x_488);
lean_ctor_set(x_545, 2, x_489);
lean_ctor_set(x_545, 3, x_514);
lean_ctor_set(x_545, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_546 = lean_alloc_ctor(0, 5, 0);
} else {
 x_546 = x_508;
}
lean_ctor_set(x_546, 0, x_521);
lean_ctor_set(x_546, 1, x_511);
lean_ctor_set(x_546, 2, x_512);
lean_ctor_set(x_546, 3, x_538);
lean_ctor_set(x_546, 4, x_545);
return x_546;
}
}
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; 
lean_dec(x_514);
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_509);
x_547 = lean_unsigned_to_nat(1u);
x_548 = lean_nat_add(x_547, x_496);
lean_dec(x_496);
x_549 = lean_nat_add(x_548, x_495);
lean_dec(x_548);
x_550 = lean_nat_add(x_547, x_495);
lean_dec(x_495);
x_551 = lean_nat_add(x_550, x_510);
lean_dec(x_510);
lean_dec(x_550);
lean_inc(x_491);
if (lean_is_scalar(x_508)) {
 x_552 = lean_alloc_ctor(0, 5, 0);
} else {
 x_552 = x_508;
}
lean_ctor_set(x_552, 0, x_551);
lean_ctor_set(x_552, 1, x_488);
lean_ctor_set(x_552, 2, x_489);
lean_ctor_set(x_552, 3, x_500);
lean_ctor_set(x_552, 4, x_491);
if (lean_is_exclusive(x_491)) {
 lean_ctor_release(x_491, 0);
 lean_ctor_release(x_491, 1);
 lean_ctor_release(x_491, 2);
 lean_ctor_release(x_491, 3);
 lean_ctor_release(x_491, 4);
 x_553 = x_491;
} else {
 lean_dec_ref(x_491);
 x_553 = lean_box(0);
}
if (lean_is_scalar(x_553)) {
 x_554 = lean_alloc_ctor(0, 5, 0);
} else {
 x_554 = x_553;
}
lean_ctor_set(x_554, 0, x_549);
lean_ctor_set(x_554, 1, x_497);
lean_ctor_set(x_554, 2, x_498);
lean_ctor_set(x_554, 3, x_499);
lean_ctor_set(x_554, 4, x_552);
return x_554;
}
}
else
{
lean_object* x_555; lean_object* x_556; 
lean_dec(x_508);
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_491);
lean_dec(x_489);
lean_dec(x_488);
x_555 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_556 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__4___rarg(x_555);
return x_556;
}
}
else
{
lean_object* x_557; lean_object* x_558; 
lean_dec(x_508);
lean_dec(x_500);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_491);
lean_dec(x_489);
lean_dec(x_488);
x_557 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_558 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__5___rarg(x_557);
return x_558;
}
}
}
else
{
lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; 
x_559 = lean_ctor_get(x_491, 0);
lean_inc(x_559);
x_560 = lean_unsigned_to_nat(1u);
x_561 = lean_nat_add(x_560, x_559);
lean_dec(x_559);
x_562 = lean_box(1);
x_563 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_563, 0, x_561);
lean_ctor_set(x_563, 1, x_488);
lean_ctor_set(x_563, 2, x_489);
lean_ctor_set(x_563, 3, x_562);
lean_ctor_set(x_563, 4, x_491);
return x_563;
}
}
else
{
if (lean_obj_tag(x_494) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_494, 3);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; 
x_565 = lean_ctor_get(x_494, 4);
lean_inc(x_565);
if (lean_obj_tag(x_565) == 0)
{
lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; 
x_566 = lean_ctor_get(x_494, 0);
lean_inc(x_566);
x_567 = lean_ctor_get(x_494, 1);
lean_inc(x_567);
x_568 = lean_ctor_get(x_494, 2);
lean_inc(x_568);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_569 = x_494;
} else {
 lean_dec_ref(x_494);
 x_569 = lean_box(0);
}
x_570 = lean_ctor_get(x_565, 0);
lean_inc(x_570);
x_571 = lean_unsigned_to_nat(1u);
x_572 = lean_nat_add(x_571, x_566);
lean_dec(x_566);
x_573 = lean_nat_add(x_571, x_570);
lean_dec(x_570);
x_574 = lean_box(1);
if (lean_is_scalar(x_569)) {
 x_575 = lean_alloc_ctor(0, 5, 0);
} else {
 x_575 = x_569;
}
lean_ctor_set(x_575, 0, x_573);
lean_ctor_set(x_575, 1, x_488);
lean_ctor_set(x_575, 2, x_489);
lean_ctor_set(x_575, 3, x_565);
lean_ctor_set(x_575, 4, x_574);
x_576 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_576, 0, x_572);
lean_ctor_set(x_576, 1, x_567);
lean_ctor_set(x_576, 2, x_568);
lean_ctor_set(x_576, 3, x_564);
lean_ctor_set(x_576, 4, x_575);
return x_576;
}
else
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_577 = lean_ctor_get(x_494, 1);
lean_inc(x_577);
x_578 = lean_ctor_get(x_494, 2);
lean_inc(x_578);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_579 = x_494;
} else {
 lean_dec_ref(x_494);
 x_579 = lean_box(0);
}
x_580 = lean_box(1);
x_581 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_579)) {
 x_582 = lean_alloc_ctor(0, 5, 0);
} else {
 x_582 = x_579;
}
lean_ctor_set(x_582, 0, x_581);
lean_ctor_set(x_582, 1, x_488);
lean_ctor_set(x_582, 2, x_489);
lean_ctor_set(x_582, 3, x_580);
lean_ctor_set(x_582, 4, x_580);
x_583 = lean_unsigned_to_nat(3u);
x_584 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_584, 0, x_583);
lean_ctor_set(x_584, 1, x_577);
lean_ctor_set(x_584, 2, x_578);
lean_ctor_set(x_584, 3, x_564);
lean_ctor_set(x_584, 4, x_582);
return x_584;
}
}
else
{
lean_object* x_585; 
x_585 = lean_ctor_get(x_494, 4);
lean_inc(x_585);
if (lean_obj_tag(x_585) == 0)
{
lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; 
x_586 = lean_ctor_get(x_494, 1);
lean_inc(x_586);
x_587 = lean_ctor_get(x_494, 2);
lean_inc(x_587);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_588 = x_494;
} else {
 lean_dec_ref(x_494);
 x_588 = lean_box(0);
}
x_589 = lean_ctor_get(x_585, 1);
lean_inc(x_589);
x_590 = lean_ctor_get(x_585, 2);
lean_inc(x_590);
if (lean_is_exclusive(x_585)) {
 lean_ctor_release(x_585, 0);
 lean_ctor_release(x_585, 1);
 lean_ctor_release(x_585, 2);
 lean_ctor_release(x_585, 3);
 lean_ctor_release(x_585, 4);
 x_591 = x_585;
} else {
 lean_dec_ref(x_585);
 x_591 = lean_box(0);
}
x_592 = lean_box(1);
x_593 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_591)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_591;
}
lean_ctor_set(x_594, 0, x_593);
lean_ctor_set(x_594, 1, x_586);
lean_ctor_set(x_594, 2, x_587);
lean_ctor_set(x_594, 3, x_592);
lean_ctor_set(x_594, 4, x_592);
if (lean_is_scalar(x_588)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_588;
}
lean_ctor_set(x_595, 0, x_593);
lean_ctor_set(x_595, 1, x_488);
lean_ctor_set(x_595, 2, x_489);
lean_ctor_set(x_595, 3, x_592);
lean_ctor_set(x_595, 4, x_592);
x_596 = lean_unsigned_to_nat(3u);
x_597 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_597, 0, x_596);
lean_ctor_set(x_597, 1, x_589);
lean_ctor_set(x_597, 2, x_590);
lean_ctor_set(x_597, 3, x_594);
lean_ctor_set(x_597, 4, x_595);
return x_597;
}
else
{
lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_598 = lean_box(1);
x_599 = lean_unsigned_to_nat(2u);
x_600 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_600, 0, x_599);
lean_ctor_set(x_600, 1, x_488);
lean_ctor_set(x_600, 2, x_489);
lean_ctor_set(x_600, 3, x_494);
lean_ctor_set(x_600, 4, x_598);
return x_600;
}
}
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_box(1);
x_602 = lean_unsigned_to_nat(1u);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_602);
lean_ctor_set(x_603, 1, x_488);
lean_ctor_set(x_603, 2, x_489);
lean_ctor_set(x_603, 3, x_601);
lean_ctor_set(x_603, 4, x_601);
return x_603;
}
}
}
case 1:
{
lean_object* x_604; 
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_1);
x_604 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_604, 0, x_487);
lean_ctor_set(x_604, 1, x_3);
lean_ctor_set(x_604, 2, x_4);
lean_ctor_set(x_604, 3, x_490);
lean_ctor_set(x_604, 4, x_491);
return x_604;
}
default: 
{
lean_object* x_605; 
lean_dec(x_487);
x_605 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_491);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_605) == 0)
{
lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; uint8_t x_614; 
x_606 = lean_ctor_get(x_490, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_605, 0);
lean_inc(x_607);
x_608 = lean_ctor_get(x_605, 1);
lean_inc(x_608);
x_609 = lean_ctor_get(x_605, 2);
lean_inc(x_609);
x_610 = lean_ctor_get(x_605, 3);
lean_inc(x_610);
x_611 = lean_ctor_get(x_605, 4);
lean_inc(x_611);
x_612 = lean_unsigned_to_nat(3u);
x_613 = lean_nat_mul(x_612, x_606);
x_614 = lean_nat_dec_lt(x_613, x_607);
lean_dec(x_613);
if (x_614 == 0)
{
lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; 
lean_dec(x_611);
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
x_615 = lean_unsigned_to_nat(1u);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
x_617 = lean_nat_add(x_616, x_607);
lean_dec(x_607);
lean_dec(x_616);
x_618 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_618, 0, x_617);
lean_ctor_set(x_618, 1, x_488);
lean_ctor_set(x_618, 2, x_489);
lean_ctor_set(x_618, 3, x_490);
lean_ctor_set(x_618, 4, x_605);
return x_618;
}
else
{
lean_object* x_619; 
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_619 = x_605;
} else {
 lean_dec_ref(x_605);
 x_619 = lean_box(0);
}
if (lean_obj_tag(x_610) == 0)
{
if (lean_obj_tag(x_611) == 0)
{
lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; uint8_t x_628; 
x_620 = lean_ctor_get(x_610, 0);
lean_inc(x_620);
x_621 = lean_ctor_get(x_610, 1);
lean_inc(x_621);
x_622 = lean_ctor_get(x_610, 2);
lean_inc(x_622);
x_623 = lean_ctor_get(x_610, 3);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 4);
lean_inc(x_624);
x_625 = lean_ctor_get(x_611, 0);
lean_inc(x_625);
x_626 = lean_unsigned_to_nat(2u);
x_627 = lean_nat_mul(x_626, x_625);
x_628 = lean_nat_dec_lt(x_620, x_627);
lean_dec(x_627);
if (x_628 == 0)
{
lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
lean_dec(x_620);
if (lean_is_exclusive(x_610)) {
 lean_ctor_release(x_610, 0);
 lean_ctor_release(x_610, 1);
 lean_ctor_release(x_610, 2);
 lean_ctor_release(x_610, 3);
 lean_ctor_release(x_610, 4);
 x_629 = x_610;
} else {
 lean_dec_ref(x_610);
 x_629 = lean_box(0);
}
x_630 = lean_unsigned_to_nat(1u);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_631, x_607);
lean_dec(x_607);
x_633 = lean_nat_add(x_630, x_625);
lean_dec(x_625);
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; 
x_634 = lean_ctor_get(x_623, 0);
lean_inc(x_634);
x_635 = lean_nat_add(x_631, x_634);
lean_dec(x_634);
lean_dec(x_631);
lean_inc(x_490);
if (lean_is_scalar(x_629)) {
 x_636 = lean_alloc_ctor(0, 5, 0);
} else {
 x_636 = x_629;
}
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_488);
lean_ctor_set(x_636, 2, x_489);
lean_ctor_set(x_636, 3, x_490);
lean_ctor_set(x_636, 4, x_623);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_637 = x_490;
} else {
 lean_dec_ref(x_490);
 x_637 = lean_box(0);
}
if (lean_obj_tag(x_624) == 0)
{
lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; 
x_638 = lean_ctor_get(x_624, 0);
lean_inc(x_638);
x_639 = lean_nat_add(x_633, x_638);
lean_dec(x_638);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_619;
}
lean_ctor_set(x_640, 0, x_639);
lean_ctor_set(x_640, 1, x_608);
lean_ctor_set(x_640, 2, x_609);
lean_ctor_set(x_640, 3, x_624);
lean_ctor_set(x_640, 4, x_611);
if (lean_is_scalar(x_637)) {
 x_641 = lean_alloc_ctor(0, 5, 0);
} else {
 x_641 = x_637;
}
lean_ctor_set(x_641, 0, x_632);
lean_ctor_set(x_641, 1, x_621);
lean_ctor_set(x_641, 2, x_622);
lean_ctor_set(x_641, 3, x_636);
lean_ctor_set(x_641, 4, x_640);
return x_641;
}
else
{
lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; 
x_642 = lean_unsigned_to_nat(0u);
x_643 = lean_nat_add(x_633, x_642);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_619;
}
lean_ctor_set(x_644, 0, x_643);
lean_ctor_set(x_644, 1, x_608);
lean_ctor_set(x_644, 2, x_609);
lean_ctor_set(x_644, 3, x_624);
lean_ctor_set(x_644, 4, x_611);
if (lean_is_scalar(x_637)) {
 x_645 = lean_alloc_ctor(0, 5, 0);
} else {
 x_645 = x_637;
}
lean_ctor_set(x_645, 0, x_632);
lean_ctor_set(x_645, 1, x_621);
lean_ctor_set(x_645, 2, x_622);
lean_ctor_set(x_645, 3, x_636);
lean_ctor_set(x_645, 4, x_644);
return x_645;
}
}
else
{
lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; 
x_646 = lean_unsigned_to_nat(0u);
x_647 = lean_nat_add(x_631, x_646);
lean_dec(x_631);
lean_inc(x_490);
if (lean_is_scalar(x_629)) {
 x_648 = lean_alloc_ctor(0, 5, 0);
} else {
 x_648 = x_629;
}
lean_ctor_set(x_648, 0, x_647);
lean_ctor_set(x_648, 1, x_488);
lean_ctor_set(x_648, 2, x_489);
lean_ctor_set(x_648, 3, x_490);
lean_ctor_set(x_648, 4, x_623);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_649 = x_490;
} else {
 lean_dec_ref(x_490);
 x_649 = lean_box(0);
}
if (lean_obj_tag(x_624) == 0)
{
lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; 
x_650 = lean_ctor_get(x_624, 0);
lean_inc(x_650);
x_651 = lean_nat_add(x_633, x_650);
lean_dec(x_650);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_619;
}
lean_ctor_set(x_652, 0, x_651);
lean_ctor_set(x_652, 1, x_608);
lean_ctor_set(x_652, 2, x_609);
lean_ctor_set(x_652, 3, x_624);
lean_ctor_set(x_652, 4, x_611);
if (lean_is_scalar(x_649)) {
 x_653 = lean_alloc_ctor(0, 5, 0);
} else {
 x_653 = x_649;
}
lean_ctor_set(x_653, 0, x_632);
lean_ctor_set(x_653, 1, x_621);
lean_ctor_set(x_653, 2, x_622);
lean_ctor_set(x_653, 3, x_648);
lean_ctor_set(x_653, 4, x_652);
return x_653;
}
else
{
lean_object* x_654; lean_object* x_655; lean_object* x_656; 
x_654 = lean_nat_add(x_633, x_646);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_619;
}
lean_ctor_set(x_655, 0, x_654);
lean_ctor_set(x_655, 1, x_608);
lean_ctor_set(x_655, 2, x_609);
lean_ctor_set(x_655, 3, x_624);
lean_ctor_set(x_655, 4, x_611);
if (lean_is_scalar(x_649)) {
 x_656 = lean_alloc_ctor(0, 5, 0);
} else {
 x_656 = x_649;
}
lean_ctor_set(x_656, 0, x_632);
lean_ctor_set(x_656, 1, x_621);
lean_ctor_set(x_656, 2, x_622);
lean_ctor_set(x_656, 3, x_648);
lean_ctor_set(x_656, 4, x_655);
return x_656;
}
}
}
else
{
lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; 
lean_dec(x_625);
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
x_657 = lean_unsigned_to_nat(1u);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_658, x_607);
lean_dec(x_607);
x_660 = lean_nat_add(x_658, x_620);
lean_dec(x_620);
lean_dec(x_658);
lean_inc(x_490);
if (lean_is_scalar(x_619)) {
 x_661 = lean_alloc_ctor(0, 5, 0);
} else {
 x_661 = x_619;
}
lean_ctor_set(x_661, 0, x_660);
lean_ctor_set(x_661, 1, x_488);
lean_ctor_set(x_661, 2, x_489);
lean_ctor_set(x_661, 3, x_490);
lean_ctor_set(x_661, 4, x_610);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_662 = x_490;
} else {
 lean_dec_ref(x_490);
 x_662 = lean_box(0);
}
if (lean_is_scalar(x_662)) {
 x_663 = lean_alloc_ctor(0, 5, 0);
} else {
 x_663 = x_662;
}
lean_ctor_set(x_663, 0, x_659);
lean_ctor_set(x_663, 1, x_608);
lean_ctor_set(x_663, 2, x_609);
lean_ctor_set(x_663, 3, x_661);
lean_ctor_set(x_663, 4, x_611);
return x_663;
}
}
else
{
lean_object* x_664; lean_object* x_665; 
lean_dec(x_619);
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_490);
lean_dec(x_489);
lean_dec(x_488);
x_664 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_665 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__6___rarg(x_664);
return x_665;
}
}
else
{
lean_object* x_666; lean_object* x_667; 
lean_dec(x_619);
lean_dec(x_611);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_490);
lean_dec(x_489);
lean_dec(x_488);
x_666 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_667 = l_panic___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__7___rarg(x_666);
return x_667;
}
}
}
else
{
lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; 
x_668 = lean_ctor_get(x_490, 0);
lean_inc(x_668);
x_669 = lean_unsigned_to_nat(1u);
x_670 = lean_nat_add(x_669, x_668);
lean_dec(x_668);
x_671 = lean_box(1);
x_672 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_672, 0, x_670);
lean_ctor_set(x_672, 1, x_488);
lean_ctor_set(x_672, 2, x_489);
lean_ctor_set(x_672, 3, x_490);
lean_ctor_set(x_672, 4, x_671);
return x_672;
}
}
else
{
if (lean_obj_tag(x_605) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_605, 3);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; 
x_674 = lean_ctor_get(x_605, 4);
lean_inc(x_674);
if (lean_obj_tag(x_674) == 0)
{
lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; 
x_675 = lean_ctor_get(x_605, 0);
lean_inc(x_675);
x_676 = lean_ctor_get(x_605, 1);
lean_inc(x_676);
x_677 = lean_ctor_get(x_605, 2);
lean_inc(x_677);
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_678 = x_605;
} else {
 lean_dec_ref(x_605);
 x_678 = lean_box(0);
}
x_679 = lean_ctor_get(x_673, 0);
lean_inc(x_679);
x_680 = lean_unsigned_to_nat(1u);
x_681 = lean_nat_add(x_680, x_675);
lean_dec(x_675);
x_682 = lean_nat_add(x_680, x_679);
lean_dec(x_679);
x_683 = lean_box(1);
if (lean_is_scalar(x_678)) {
 x_684 = lean_alloc_ctor(0, 5, 0);
} else {
 x_684 = x_678;
}
lean_ctor_set(x_684, 0, x_682);
lean_ctor_set(x_684, 1, x_488);
lean_ctor_set(x_684, 2, x_489);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
x_685 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_685, 0, x_681);
lean_ctor_set(x_685, 1, x_676);
lean_ctor_set(x_685, 2, x_677);
lean_ctor_set(x_685, 3, x_684);
lean_ctor_set(x_685, 4, x_674);
return x_685;
}
else
{
lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; 
x_686 = lean_ctor_get(x_605, 1);
lean_inc(x_686);
x_687 = lean_ctor_get(x_605, 2);
lean_inc(x_687);
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_688 = x_605;
} else {
 lean_dec_ref(x_605);
 x_688 = lean_box(0);
}
x_689 = lean_ctor_get(x_673, 1);
lean_inc(x_689);
x_690 = lean_ctor_get(x_673, 2);
lean_inc(x_690);
if (lean_is_exclusive(x_673)) {
 lean_ctor_release(x_673, 0);
 lean_ctor_release(x_673, 1);
 lean_ctor_release(x_673, 2);
 lean_ctor_release(x_673, 3);
 lean_ctor_release(x_673, 4);
 x_691 = x_673;
} else {
 lean_dec_ref(x_673);
 x_691 = lean_box(0);
}
x_692 = lean_box(1);
x_693 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_691)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_691;
}
lean_ctor_set(x_694, 0, x_693);
lean_ctor_set(x_694, 1, x_488);
lean_ctor_set(x_694, 2, x_489);
lean_ctor_set(x_694, 3, x_692);
lean_ctor_set(x_694, 4, x_692);
if (lean_is_scalar(x_688)) {
 x_695 = lean_alloc_ctor(0, 5, 0);
} else {
 x_695 = x_688;
}
lean_ctor_set(x_695, 0, x_693);
lean_ctor_set(x_695, 1, x_686);
lean_ctor_set(x_695, 2, x_687);
lean_ctor_set(x_695, 3, x_692);
lean_ctor_set(x_695, 4, x_692);
x_696 = lean_unsigned_to_nat(3u);
x_697 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_697, 0, x_696);
lean_ctor_set(x_697, 1, x_689);
lean_ctor_set(x_697, 2, x_690);
lean_ctor_set(x_697, 3, x_694);
lean_ctor_set(x_697, 4, x_695);
return x_697;
}
}
else
{
lean_object* x_698; 
x_698 = lean_ctor_get(x_605, 4);
lean_inc(x_698);
if (lean_obj_tag(x_698) == 0)
{
lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; 
x_699 = lean_ctor_get(x_605, 1);
lean_inc(x_699);
x_700 = lean_ctor_get(x_605, 2);
lean_inc(x_700);
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_701 = x_605;
} else {
 lean_dec_ref(x_605);
 x_701 = lean_box(0);
}
x_702 = lean_box(1);
x_703 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_701)) {
 x_704 = lean_alloc_ctor(0, 5, 0);
} else {
 x_704 = x_701;
}
lean_ctor_set(x_704, 0, x_703);
lean_ctor_set(x_704, 1, x_488);
lean_ctor_set(x_704, 2, x_489);
lean_ctor_set(x_704, 3, x_702);
lean_ctor_set(x_704, 4, x_702);
x_705 = lean_unsigned_to_nat(3u);
x_706 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_706, 0, x_705);
lean_ctor_set(x_706, 1, x_699);
lean_ctor_set(x_706, 2, x_700);
lean_ctor_set(x_706, 3, x_704);
lean_ctor_set(x_706, 4, x_698);
return x_706;
}
else
{
lean_object* x_707; lean_object* x_708; lean_object* x_709; 
x_707 = lean_box(1);
x_708 = lean_unsigned_to_nat(2u);
x_709 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_709, 0, x_708);
lean_ctor_set(x_709, 1, x_488);
lean_ctor_set(x_709, 2, x_489);
lean_ctor_set(x_709, 3, x_707);
lean_ctor_set(x_709, 4, x_605);
return x_709;
}
}
}
else
{
lean_object* x_710; lean_object* x_711; lean_object* x_712; 
x_710 = lean_box(1);
x_711 = lean_unsigned_to_nat(1u);
x_712 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_712, 0, x_711);
lean_ctor_set(x_712, 1, x_488);
lean_ctor_set(x_712, 2, x_489);
lean_ctor_set(x_712, 3, x_710);
lean_ctor_set(x_712, 4, x_710);
return x_712;
}
}
}
}
}
}
else
{
lean_object* x_713; lean_object* x_714; lean_object* x_715; 
lean_dec(x_1);
x_713 = lean_box(1);
x_714 = lean_unsigned_to_nat(1u);
x_715 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_715, 0, x_714);
lean_ctor_set(x_715, 1, x_3);
lean_ctor_set(x_715, 2, x_4);
lean_ctor_set(x_715, 3, x_713);
lean_ctor_set(x_715, 4, x_713);
return x_715;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
lean_inc(x_4);
lean_inc(x_3);
lean_inc(x_1);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__1___rarg(x_1, lean_box(0), x_3, x_4);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_box(0);
lean_inc(x_3);
lean_inc(x_4);
lean_inc(x_1);
x_8 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2___rarg(x_1, lean_box(0), x_4, x_3);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; 
x_9 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__3___rarg(x_1, lean_box(0), x_4, x_5, x_3);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
return x_10;
}
else
{
lean_object* x_11; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_3);
return x_11;
}
}
else
{
uint8_t x_12; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_6);
if (x_12 == 0)
{
lean_object* x_13; 
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_3);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_14 = lean_ctor_get(x_6, 0);
lean_inc(x_14);
lean_dec(x_6);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_16 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_16, 0, x_15);
lean_ctor_set(x_16, 1, x_3);
return x_16;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_getThenInsertIfNew_x3f___spec__2___rarg(x_1, x_2, x_3, x_4);
x_6 = lean_box(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_get_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 4);
lean_inc(x_8);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_9 = lean_apply_2(x_1, x_4, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_6);
return x_12;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
}
}
else
{
lean_object* x_14; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = lean_box(0);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_get_x3f___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_get_x3f___spec__1___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_get_x3f___spec__1___rarg(x_1, lean_box(0), x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_get_x3f___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_find_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_3, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 4);
lean_inc(x_8);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_9 = lean_apply_2(x_1, x_4, x_5);
x_10 = lean_unbox(x_9);
lean_dec(x_9);
switch (x_10) {
case 0:
{
lean_dec(x_8);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_7;
goto _start;
}
case 1:
{
lean_object* x_12; 
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_4);
lean_dec(x_1);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_6);
return x_12;
}
default: 
{
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
}
}
else
{
lean_object* x_14; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = lean_box(0);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_find_x3f___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_find_x3f___spec__1___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x3f___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at_Std_DTreeMap_Raw_Const_find_x3f___spec__1___rarg(x_1, lean_box(0), x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_find_x3f___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get___at_Std_DTreeMap_Raw_Const_get___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
x_5 = lean_box(0);
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
x_5 = lean_box(0);
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get___at_Std_DTreeMap_Raw_Const_get___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_get___at_Std_DTreeMap_Raw_Const_get___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_get___at_Std_DTreeMap_Raw_Const_get___spec__1___rarg(x_1, lean_box(0), x_3, x_4, lean_box(0));
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_get___rarg), 5, 0);
return x_2;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.DTreeMap.Internal.Impl.Const.get!", 37, 37);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1;
x_2 = l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__1;
x_3 = lean_unsigned_to_nat(172u);
x_4 = lean_unsigned_to_nat(13u);
x_5 = l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3;
x_6 = l___private_Init_Util_0__mkPanicMessageWithDecl(x_1, x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__2;
x_15 = l_panic___rarg(x_5, x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_get_x21(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_get_x21___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_find_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec(x_4);
lean_dec(x_1);
x_14 = l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__2;
x_15 = l_panic___rarg(x_5, x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_find_x21___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_find_x21___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_find_x21___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_find_x21(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_find_x21___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_5);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getD(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getD___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___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:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_getD___spec__1___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_Const_getD___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_3, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_3, 4);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_4);
x_10 = lean_apply_2(x_1, x_4, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_8;
goto _start;
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_1);
return x_7;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
x_2 = lean_box(0);
x_3 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_4);
lean_dec(x_1);
lean_inc(x_5);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_findD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_findD(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_findD___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___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:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getD___at_Std_DTreeMap_Raw_Const_findD___spec__1___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_findD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_Const_findD___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_Const_minEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_minEntry_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_Const_minEntry_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_minEntry_x3f(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_Const_minEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_min_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_Const_min_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_min_x3f(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_minEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_minEntry_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_minEntry_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntry_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_minEntry_x21(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_minEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_min_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_min_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_min_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_min_x21(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_minEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_minEntryD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_minEntryD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minEntryD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_minEntryD(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_minEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_minD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_minD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_minD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_minD(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_Const_maxEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_maxEntry_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_Const_maxEntry_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_maxEntry_x3f(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Internal_Impl_Const_maxEntry_x3f___rarg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_max_x3f___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_Const_max_x3f___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_max_x3f(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_maxEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_maxEntry_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_maxEntry_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntry_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_maxEntry_x21(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_maxEntry_x21___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_max_x21___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_max_x21___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_max_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_max_x21(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_maxEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_maxEntryD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_maxEntryD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxEntryD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_maxEntryD(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_maxEntryD___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_maxD___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_maxD___rarg(x_1, x_2);
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_maxD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_maxD(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_entryAtIdx_x3f___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___rarg___boxed), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_entryAtIdx_x3f(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_Const_entryAtIdx_x21___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___rarg(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdx_x21___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_entryAtIdx_x21(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_Const_entryAtIdxD___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_entryAtIdxD___rarg___boxed), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_entryAtIdxD___rarg(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_entryAtIdxD___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_entryAtIdxD(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_9);
lean_dec(x_4);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_6);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_2 = lean_box(0);
x_4 = x_13;
x_5 = x_8;
goto _start;
}
case 1:
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_6);
lean_ctor_set(x_15, 1, x_7);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x3f___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x3f___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x3f___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x3f___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryGE_x3f___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
x_12 = lean_box(x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
lean_dec(x_4);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_2 = lean_box(0);
x_4 = x_14;
x_5 = x_8;
goto _start;
}
else
{
lean_dec(x_12);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_9;
goto _start;
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x3f___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x3f___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x3f___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x3f___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryGT_x3f___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_8;
goto _start;
}
case 1:
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
default: 
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_8);
lean_dec(x_4);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_6);
lean_ctor_set(x_15, 1, x_7);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_2 = lean_box(0);
x_4 = x_16;
x_5 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x3f___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x3f___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x3f___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x3f___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryLE_x3f___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x3f___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
x_12 = lean_box(x_11);
if (lean_obj_tag(x_12) == 2)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_8);
lean_dec(x_4);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_2 = lean_box(0);
x_4 = x_14;
x_5 = x_9;
goto _start;
}
else
{
lean_dec(x_12);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_8;
goto _start;
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x3f___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x3f___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x3f___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x3f___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryLT_x3f___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_9);
lean_dec(x_4);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_6);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_2 = lean_box(0);
x_4 = x_13;
x_5 = x_8;
goto _start;
}
case 1:
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_6);
lean_ctor_set(x_15, 1, x_7);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x21___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x21___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGE_x21___spec__1___rarg(x_1, lean_box(0), x_5, x_6, x_4);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_9 = l_panic___rarg(x_3, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_3);
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
lean_dec(x_7);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGE_x21(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryGE_x21___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
x_12 = lean_box(x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
lean_dec(x_4);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_2 = lean_box(0);
x_4 = x_14;
x_5 = x_8;
goto _start;
}
else
{
lean_dec(x_12);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_9;
goto _start;
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x21___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x21___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGT_x21___spec__1___rarg(x_1, lean_box(0), x_5, x_6, x_4);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_9 = l_panic___rarg(x_3, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_3);
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
lean_dec(x_7);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGT_x21(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryGT_x21___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_8;
goto _start;
}
case 1:
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
default: 
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_8);
lean_dec(x_4);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_6);
lean_ctor_set(x_15, 1, x_7);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_2 = lean_box(0);
x_4 = x_16;
x_5 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x21___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x21___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLE_x21___spec__1___rarg(x_1, lean_box(0), x_5, x_6, x_4);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_9 = l_panic___rarg(x_3, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_3);
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
lean_dec(x_7);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLE_x21(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryLE_x21___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x21___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
x_12 = lean_box(x_11);
if (lean_obj_tag(x_12) == 2)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_8);
lean_dec(x_4);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_2 = lean_box(0);
x_4 = x_14;
x_5 = x_9;
goto _start;
}
else
{
lean_dec(x_12);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_8;
goto _start;
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x21___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x21___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x21___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLT_x21___spec__1___rarg(x_1, lean_box(0), x_5, x_6, x_4);
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4;
x_9 = l_panic___rarg(x_3, x_8);
return x_9;
}
else
{
lean_object* x_10; 
lean_dec(x_3);
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
lean_dec(x_7);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLT_x21(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryLT_x21___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGED___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_object* x_12; lean_object* x_13; 
lean_dec(x_9);
lean_dec(x_4);
x_12 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_12, 0, x_6);
lean_ctor_set(x_12, 1, x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_2 = lean_box(0);
x_4 = x_13;
x_5 = x_8;
goto _start;
}
case 1:
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_6);
lean_ctor_set(x_15, 1, x_7);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
default: 
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGED___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGED___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGED___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryGE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGED___spec__1___rarg(x_1, lean_box(0), x_4, x_6, x_3);
if (lean_obj_tag(x_7) == 0)
{
lean_inc(x_5);
return x_5;
}
else
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGED(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryGED___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGED___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_Const_getEntryGED___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGTD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
x_12 = lean_box(x_11);
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
lean_dec(x_4);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_2 = lean_box(0);
x_4 = x_14;
x_5 = x_8;
goto _start;
}
else
{
lean_dec(x_12);
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_9;
goto _start;
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGTD___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGTD___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGTD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryGT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryGTD___spec__1___rarg(x_1, lean_box(0), x_4, x_6, x_3);
if (lean_obj_tag(x_7) == 0)
{
lean_inc(x_5);
return x_5;
}
else
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGTD(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryGTD___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryGTD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_Const_getEntryGTD___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLED___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_8;
goto _start;
}
case 1:
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
default: 
{
lean_object* x_15; lean_object* x_16; 
lean_dec(x_8);
lean_dec(x_4);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_6);
lean_ctor_set(x_15, 1, x_7);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
x_2 = lean_box(0);
x_4 = x_16;
x_5 = x_9;
goto _start;
}
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLED___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLED___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLED___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryLE_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLED___spec__1___rarg(x_1, lean_box(0), x_4, x_6, x_3);
if (lean_obj_tag(x_7) == 0)
{
lean_inc(x_5);
return x_5;
}
else
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLED(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryLED___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLED___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_Const_getEntryLED___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLTD___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_6);
lean_inc(x_3);
x_10 = lean_apply_2(x_1, x_3, x_6);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
x_12 = lean_box(x_11);
if (lean_obj_tag(x_12) == 2)
{
lean_object* x_13; lean_object* x_14; 
lean_dec(x_8);
lean_dec(x_4);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_6);
lean_ctor_set(x_13, 1, x_7);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_2 = lean_box(0);
x_4 = x_14;
x_5 = x_9;
goto _start;
}
else
{
lean_dec(x_12);
lean_dec(x_9);
lean_dec(x_7);
lean_dec(x_6);
x_2 = lean_box(0);
x_5 = x_8;
goto _start;
}
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLTD___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLTD___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLTD___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_box(0);
x_7 = l_Std_DTreeMap_Internal_Impl_Const_getEntryLT_x3f_go___at_Std_DTreeMap_Raw_Const_getEntryLTD___spec__1___rarg(x_1, lean_box(0), x_4, x_6, x_3);
if (lean_obj_tag(x_7) == 0)
{
lean_inc(x_5);
return x_5;
}
else
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec(x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLTD(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_getEntryLTD___rarg___boxed), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_getEntryLTD___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_Const_getEntryLTD___rarg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 4);
lean_inc(x_7);
lean_dec(x_3);
lean_inc(x_2);
lean_inc(x_5);
lean_inc(x_4);
x_8 = lean_apply_2(x_2, x_4, x_5);
x_9 = lean_unbox(x_8);
lean_dec(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
lean_dec(x_5);
lean_dec(x_4);
lean_inc(x_2);
x_10 = l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(x_1, x_2, x_6);
x_11 = l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(x_1, x_2, x_7);
x_12 = l_Std_DTreeMap_Internal_Impl_link2_x21___rarg(x_10, x_11);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_inc(x_2);
x_13 = l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(x_1, x_2, x_6);
x_14 = l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(x_1, x_2, x_7);
x_15 = l_Std_DTreeMap_Internal_Impl_link_x21___rarg(x_4, x_5, x_13, x_14);
return x_15;
}
}
else
{
lean_object* x_16; 
lean_dec(x_2);
x_16 = lean_box(1);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_filter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_filter(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_filter___rarg___boxed), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_filter_x21___at_Std_DTreeMap_Raw_filter___spec__1___rarg(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_filter___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_filter___rarg(x_1, x_2, x_3);
lean_dec(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldlM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___rarg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldlM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_foldlM___rarg), 4, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldlM___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_foldlM(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___rarg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_foldM___rarg), 4, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldM___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_foldM(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldl___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Id_instMonad;
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___rarg(x_4, x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_foldl___rarg), 3, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldl___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_Std_DTreeMap_Raw_foldl(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fold___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Id_instMonad;
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___rarg(x_4, x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fold(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_fold___rarg), 3, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fold___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_Std_DTreeMap_Raw_fold(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldrM___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_foldrM___rarg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldrM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_foldrM___rarg), 4, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldrM___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_foldrM(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_foldr___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 4);
lean_inc(x_7);
lean_dec(x_3);
lean_inc(x_1);
x_8 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_foldr___spec__1___rarg(x_1, x_2, x_7);
lean_inc(x_1);
x_9 = lean_apply_3(x_1, x_4, x_5, x_8);
x_2 = x_9;
x_3 = x_6;
goto _start;
}
else
{
lean_dec(x_1);
return x_2;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_foldr___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_foldr___spec__1___rarg), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldr___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_foldr___spec__1___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldr(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_foldr___rarg), 3, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_foldr___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_Std_DTreeMap_Raw_foldr(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_revFold___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 2);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 3);
lean_inc(x_6);
x_7 = lean_ctor_get(x_3, 4);
lean_inc(x_7);
lean_dec(x_3);
lean_inc(x_1);
x_8 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_revFold___spec__1___rarg(x_1, x_2, x_7);
lean_inc(x_1);
x_9 = lean_apply_3(x_1, x_8, x_4, x_5);
x_2 = x_9;
x_3 = x_6;
goto _start;
}
else
{
lean_dec(x_1);
return x_2;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_revFold___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_revFold___spec__1___rarg), 3, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_revFold___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_revFold___spec__1___rarg(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_revFold(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_revFold___rarg), 3, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_revFold___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_Std_DTreeMap_Raw_revFold(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_partition___spec__2___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_partition___spec__3___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_partition___spec__2___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_partition___spec__3___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_partition___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_partition___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_partition___spec__4___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_partition___spec__5___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_partition___spec__2___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_partition___spec__3___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_partition___spec__4___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_partition___spec__5___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__7___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__7(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__7___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__8___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__8(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__8___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__9___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__9(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__9___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__10___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_partition___spec__10(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_partition___spec__10___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_partition___spec__7___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_partition___spec__8___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_partition___spec__7___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_partition___spec__8___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_partition___spec__9___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_partition___spec__10___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_partition___spec__9___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_partition___spec__10___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_partition___spec__7___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_partition___spec__8___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_partition___spec__9___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_partition___spec__10___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_2);
lean_inc(x_1);
x_9 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12___rarg(x_1, x_2, x_3, x_7);
x_10 = !lean_is_exclusive(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_ctor_get(x_9, 0);
x_12 = lean_ctor_get(x_9, 1);
lean_inc(x_2);
lean_inc(x_6);
lean_inc(x_5);
x_13 = lean_apply_2(x_2, x_5, x_6);
x_14 = lean_unbox(x_13);
lean_dec(x_13);
if (x_14 == 0)
{
lean_object* x_15; 
lean_inc(x_1);
x_15 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(x_1, x_5, x_6, x_12);
lean_ctor_set(x_9, 1, x_15);
x_3 = x_9;
x_4 = x_8;
goto _start;
}
else
{
lean_object* x_17; 
lean_inc(x_1);
x_17 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(x_1, x_5, x_6, x_11);
lean_ctor_set(x_9, 0, x_17);
x_3 = x_9;
x_4 = x_8;
goto _start;
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_19 = lean_ctor_get(x_9, 0);
x_20 = lean_ctor_get(x_9, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_9);
lean_inc(x_2);
lean_inc(x_6);
lean_inc(x_5);
x_21 = lean_apply_2(x_2, x_5, x_6);
x_22 = lean_unbox(x_21);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; 
lean_inc(x_1);
x_23 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__1___rarg(x_1, x_5, x_6, x_20);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_19);
lean_ctor_set(x_24, 1, x_23);
x_3 = x_24;
x_4 = x_8;
goto _start;
}
else
{
lean_object* x_26; lean_object* x_27; 
lean_inc(x_1);
x_26 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_partition___spec__6___rarg(x_1, x_5, x_6, x_19);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_26);
lean_ctor_set(x_27, 1, x_20);
x_3 = x_27;
x_4 = x_8;
goto _start;
}
}
}
else
{
lean_dec(x_2);
lean_dec(x_1);
return x_3;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_partition___spec__11___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12___rarg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_partition___spec__11(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_partition___spec__11___rarg), 4, 0);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_partition___rarg___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(1);
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_partition___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Raw_partition___rarg___closed__1;
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_partition___spec__12___rarg(x_1, x_2, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_partition(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_partition___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg(x_1, x_2, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
lean_inc(x_1);
x_8 = lean_apply_2(x_1, x_2, x_3);
x_9 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__1), 4, 3);
lean_closure_set(x_9, 0, x_4);
lean_closure_set(x_9, 1, x_1);
lean_closure_set(x_9, 2, x_5);
x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
lean_inc(x_2);
lean_inc(x_1);
x_10 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg(x_1, x_2, x_3, x_7);
lean_inc(x_9);
x_11 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__2___boxed), 7, 6);
lean_closure_set(x_11, 0, x_2);
lean_closure_set(x_11, 1, x_5);
lean_closure_set(x_11, 2, x_6);
lean_closure_set(x_11, 3, x_1);
lean_closure_set(x_11, 4, x_8);
lean_closure_set(x_11, 5, x_9);
x_12 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_11);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_dec(x_2);
x_13 = lean_ctor_get(x_1, 0);
lean_inc(x_13);
lean_dec(x_1);
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
lean_dec(x_13);
x_15 = lean_apply_2(x_14, lean_box(0), x_3);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg), 4, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forM___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg(x_1, x_2, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_forM___rarg), 3, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_forM___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forM___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_Std_DTreeMap_Raw_forM(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn___rarg___lambda__1(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_ctor_get(x_2, 0);
lean_inc(x_3);
lean_dec(x_2);
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec(x_1);
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
lean_dec(x_4);
x_6 = lean_apply_2(x_5, lean_box(0), x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn___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; lean_object* x_7; lean_object* x_8; 
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_inc(x_1);
x_6 = l_Std_DTreeMap_Internal_Impl_forInStep___rarg(x_1, x_2, x_3, x_4);
x_7 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_forIn___rarg___lambda__1), 2, 1);
lean_closure_set(x_7, 0, x_1);
x_8 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_forIn___rarg), 4, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_forIn___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_forIn(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg(x_1, x_2, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_2);
lean_inc(x_3);
x_9 = lean_apply_1(x_3, x_8);
x_10 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__1), 4, 3);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_3);
lean_closure_set(x_10, 2, x_5);
x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_9, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
lean_inc(x_2);
lean_inc(x_1);
x_10 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg(x_1, x_2, x_3, x_7);
lean_inc(x_9);
x_11 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__2___boxed), 7, 6);
lean_closure_set(x_11, 0, x_5);
lean_closure_set(x_11, 1, x_6);
lean_closure_set(x_11, 2, x_2);
lean_closure_set(x_11, 3, x_1);
lean_closure_set(x_11, 4, x_8);
lean_closure_set(x_11, 5, x_9);
x_12 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_11);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_dec(x_2);
x_13 = lean_ctor_get(x_1, 0);
lean_inc(x_13);
lean_dec(x_1);
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
lean_dec(x_13);
x_15 = lean_apply_2(x_14, lean_box(0), x_3);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg), 4, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForMSigma___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_box(0);
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg(x_1, x_3, x_4, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForMSigma(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_instForMSigma___rarg), 3, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_instForMSigma___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForMSigma___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_Std_DTreeMap_Raw_instForMSigma(x_1, x_2, x_3, x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
lean_dec(x_3);
lean_dec(x_2);
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
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_ctor_get(x_6, 1);
lean_inc(x_7);
lean_dec(x_6);
x_8 = lean_apply_2(x_7, lean_box(0), x_4);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = lean_ctor_get(x_4, 0);
lean_inc(x_9);
lean_dec(x_4);
x_10 = lean_ctor_get(x_1, 0);
lean_inc(x_10);
lean_dec(x_1);
x_11 = lean_ctor_get(x_10, 1);
lean_inc(x_11);
lean_dec(x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_9);
x_13 = lean_apply_2(x_11, lean_box(0), x_12);
return x_13;
}
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_4, 0);
lean_inc(x_14);
lean_dec(x_4);
x_15 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg(x_1, x_2, x_14, x_3);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
lean_dec(x_1);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = lean_apply_2(x_10, lean_box(0), x_7);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_12 = lean_ctor_get(x_7, 0);
lean_inc(x_12);
lean_dec(x_7);
x_13 = lean_ctor_get(x_1, 0);
lean_inc(x_13);
lean_dec(x_1);
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
lean_dec(x_13);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_12);
x_16 = lean_apply_2(x_14, lean_box(0), x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_17 = lean_ctor_get(x_7, 0);
lean_inc(x_17);
lean_dec(x_7);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_2);
lean_ctor_set(x_18, 1, x_3);
lean_inc(x_4);
x_19 = lean_apply_2(x_4, x_18, x_17);
x_20 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg___lambda__1), 4, 3);
lean_closure_set(x_20, 0, x_1);
lean_closure_set(x_20, 1, x_4);
lean_closure_set(x_20, 2, x_5);
x_21 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_19, x_20);
return x_21;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
lean_inc(x_2);
lean_inc(x_1);
x_10 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg(x_1, x_2, x_3, x_7);
lean_inc(x_9);
x_11 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg___lambda__2), 7, 6);
lean_closure_set(x_11, 0, x_1);
lean_closure_set(x_11, 1, x_5);
lean_closure_set(x_11, 2, x_6);
lean_closure_set(x_11, 3, x_2);
lean_closure_set(x_11, 4, x_8);
lean_closure_set(x_11, 5, x_9);
x_12 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_11);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
lean_dec(x_2);
x_13 = lean_ctor_get(x_1, 0);
lean_inc(x_13);
lean_dec(x_1);
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
lean_dec(x_13);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_3);
x_16 = lean_apply_2(x_14, lean_box(0), x_15);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg), 4, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForInSigma___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; lean_object* x_7; lean_object* x_8; 
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_inc(x_1);
x_6 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_instForInSigma___spec__1___rarg(x_1, x_4, x_3, x_2);
x_7 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_forIn___rarg___lambda__1), 2, 1);
lean_closure_set(x_7, 0, x_1);
x_8 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForInSigma(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_instForInSigma___rarg), 4, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instForInSigma___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Raw_instForInSigma(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg(x_1, lean_box(0), x_2, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_2);
lean_inc(x_3);
x_9 = lean_apply_1(x_3, x_8);
x_10 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__1), 4, 3);
lean_closure_set(x_10, 0, x_4);
lean_closure_set(x_10, 1, x_3);
lean_closure_set(x_10, 2, x_5);
x_11 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_9, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
lean_inc(x_3);
lean_inc(x_1);
x_11 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_8);
lean_inc(x_10);
x_12 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__2___boxed), 7, 6);
lean_closure_set(x_12, 0, x_6);
lean_closure_set(x_12, 1, x_7);
lean_closure_set(x_12, 2, x_3);
lean_closure_set(x_12, 3, x_1);
lean_closure_set(x_12, 4, x_9);
lean_closure_set(x_12, 5, x_10);
x_13 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_11, x_12);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; 
lean_dec(x_3);
x_14 = lean_ctor_get(x_1, 0);
lean_inc(x_14);
lean_dec(x_1);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = lean_apply_2(x_15, lean_box(0), x_4);
return x_16;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forMUncurried___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; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg(x_1, lean_box(0), x_3, x_5, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forMUncurried(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_forMUncurried___rarg), 4, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_forMUncurried___spec__1___rarg___lambda__2(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
lean_dec(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forMUncurried___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_forMUncurried(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
lean_dec(x_3);
lean_dec(x_2);
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
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_ctor_get(x_6, 1);
lean_inc(x_7);
lean_dec(x_6);
x_8 = lean_apply_2(x_7, lean_box(0), x_4);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = lean_ctor_get(x_4, 0);
lean_inc(x_9);
lean_dec(x_4);
x_10 = lean_ctor_get(x_1, 0);
lean_inc(x_10);
lean_dec(x_1);
x_11 = lean_ctor_get(x_10, 1);
lean_inc(x_11);
lean_dec(x_10);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_9);
x_13 = lean_apply_2(x_11, lean_box(0), x_12);
return x_13;
}
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_4, 0);
lean_inc(x_14);
lean_dec(x_4);
x_15 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg(x_1, lean_box(0), x_2, x_14, x_3);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg___lambda__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_2);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_9 = lean_ctor_get(x_1, 0);
lean_inc(x_9);
lean_dec(x_1);
x_10 = lean_ctor_get(x_9, 1);
lean_inc(x_10);
lean_dec(x_9);
x_11 = lean_apply_2(x_10, lean_box(0), x_7);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_12 = lean_ctor_get(x_7, 0);
lean_inc(x_12);
lean_dec(x_7);
x_13 = lean_ctor_get(x_1, 0);
lean_inc(x_13);
lean_dec(x_1);
x_14 = lean_ctor_get(x_13, 1);
lean_inc(x_14);
lean_dec(x_13);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_12);
x_16 = lean_apply_2(x_14, lean_box(0), x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_17 = lean_ctor_get(x_7, 0);
lean_inc(x_17);
lean_dec(x_7);
x_18 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_18, 0, x_2);
lean_ctor_set(x_18, 1, x_3);
lean_inc(x_4);
x_19 = lean_apply_2(x_4, x_18, x_17);
x_20 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg___lambda__1), 4, 3);
lean_closure_set(x_20, 0, x_1);
lean_closure_set(x_20, 1, x_4);
lean_closure_set(x_20, 2, x_5);
x_21 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_19, x_20);
return x_21;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
lean_inc(x_3);
lean_inc(x_1);
x_11 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_8);
lean_inc(x_10);
x_12 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg___lambda__2), 7, 6);
lean_closure_set(x_12, 0, x_1);
lean_closure_set(x_12, 1, x_6);
lean_closure_set(x_12, 2, x_7);
lean_closure_set(x_12, 3, x_3);
lean_closure_set(x_12, 4, x_9);
lean_closure_set(x_12, 5, x_10);
x_13 = lean_apply_4(x_10, lean_box(0), lean_box(0), x_11, x_12);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
lean_dec(x_3);
x_14 = lean_ctor_get(x_1, 0);
lean_inc(x_14);
lean_dec(x_1);
x_15 = lean_ctor_get(x_14, 1);
lean_inc(x_15);
lean_dec(x_14);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_4);
x_17 = lean_apply_2(x_15, lean_box(0), x_16);
return x_17;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg), 5, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forInUncurried___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
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_inc(x_1);
x_7 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_Const_forInUncurried___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5);
x_8 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_forIn___rarg___lambda__1), 2, 1);
lean_closure_set(x_8, 0, x_1);
x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forInUncurried(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_forInUncurried___rarg), 5, 0);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_forInUncurried___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_Std_DTreeMap_Raw_Const_forInUncurried(x_1, x_2, x_3, x_4);
lean_dec(x_2);
return x_5;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__1() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__1;
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;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__2;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_2);
lean_inc(x_1);
x_9 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg(x_1, x_2, x_3, x_7);
if (lean_obj_tag(x_9) == 0)
{
uint8_t x_10; 
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = !lean_is_exclusive(x_9);
if (x_10 == 0)
{
return x_9;
}
else
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_9, 0);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
else
{
lean_object* x_13; uint8_t x_14; 
lean_dec(x_9);
lean_inc(x_1);
x_13 = lean_apply_2(x_1, x_5, x_6);
x_14 = lean_unbox(x_13);
lean_dec(x_13);
if (x_14 == 0)
{
lean_inc(x_2);
{
lean_object* _tmp_2 = x_2;
lean_object* _tmp_3 = x_8;
x_3 = _tmp_2;
x_4 = _tmp_3;
}
goto _start;
}
else
{
lean_object* x_16; 
lean_dec(x_8);
lean_dec(x_2);
lean_dec(x_1);
x_16 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__3;
return x_16;
}
}
}
else
{
lean_object* x_17; 
lean_dec(x_2);
lean_dec(x_1);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_3);
return x_17;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_any___rarg___lambda__1(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = 0;
return x_2;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_any___rarg___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;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_any___rarg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_any___rarg___lambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_any___rarg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Std_DTreeMap_Raw_any___rarg___closed__2;
x_2 = lean_box(0);
x_3 = lean_apply_1(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any___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 = l_Std_DTreeMap_Raw_any___rarg___closed__1;
x_4 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg(x_2, x_3, x_3, x_1);
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; 
x_7 = l_Std_DTreeMap_Raw_any___rarg___closed__3;
return x_7;
}
else
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec(x_6);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_any___rarg), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any___rarg___lambda__1___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Std_DTreeMap_Raw_any___rarg___lambda__1(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_any___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_any(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__1() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 0;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__1;
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;
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__2;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_4, 1);
lean_inc(x_5);
x_6 = lean_ctor_get(x_4, 2);
lean_inc(x_6);
x_7 = lean_ctor_get(x_4, 3);
lean_inc(x_7);
x_8 = lean_ctor_get(x_4, 4);
lean_inc(x_8);
lean_dec(x_4);
lean_inc(x_2);
lean_inc(x_1);
x_9 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg(x_1, x_2, x_3, x_7);
if (lean_obj_tag(x_9) == 0)
{
uint8_t x_10; 
lean_dec(x_8);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = !lean_is_exclusive(x_9);
if (x_10 == 0)
{
return x_9;
}
else
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_9, 0);
lean_inc(x_11);
lean_dec(x_9);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
else
{
lean_object* x_13; uint8_t x_14; 
lean_dec(x_9);
lean_inc(x_1);
x_13 = lean_apply_2(x_1, x_5, x_6);
x_14 = lean_unbox(x_13);
lean_dec(x_13);
if (x_14 == 0)
{
lean_object* x_15; 
lean_dec(x_8);
lean_dec(x_2);
lean_dec(x_1);
x_15 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__3;
return x_15;
}
else
{
lean_inc(x_2);
{
lean_object* _tmp_2 = x_2;
lean_object* _tmp_3 = x_8;
x_3 = _tmp_2;
x_4 = _tmp_3;
}
goto _start;
}
}
}
else
{
lean_object* x_17; 
lean_dec(x_2);
lean_dec(x_1);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_3);
return x_17;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Raw_all___rarg___lambda__1(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = 1;
return x_2;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_all___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_all___rarg___lambda__1___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_all___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Std_DTreeMap_Raw_all___rarg___closed__1;
x_2 = lean_box(0);
x_3 = lean_apply_1(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all___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 = l_Std_DTreeMap_Raw_any___rarg___closed__1;
x_4 = l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg(x_2, x_3, x_3, x_1);
x_5 = lean_ctor_get(x_4, 0);
lean_inc(x_5);
lean_dec(x_4);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec(x_5);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; 
x_7 = l_Std_DTreeMap_Raw_all___rarg___closed__2;
return x_7;
}
else
{
lean_object* x_8; 
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec(x_6);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_all___rarg), 2, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all___rarg___lambda__1___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Std_DTreeMap_Raw_all___rarg___lambda__1(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_all___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_all(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 3);
x_5 = lean_ctor_get(x_2, 4);
x_6 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg(x_1, x_5);
lean_inc(x_3);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_6);
x_1 = x_7;
x_2 = x_4;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keys___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_keys___spec__1___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_keys___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keys___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keys(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_2, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 3);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 4);
lean_inc(x_5);
lean_dec(x_2);
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2___rarg(x_1, x_4);
x_7 = lean_array_push(x_6, x_3);
x_1 = x_7;
x_2 = x_5;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__1___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_2, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 3);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 4);
lean_inc(x_5);
lean_dec(x_2);
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4___rarg(x_1, x_4);
x_7 = lean_array_push(x_6, x_3);
x_1 = x_7;
x_2 = x_5;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__3___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_keysArray___spec__3___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keysArray___rarg(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_mk_empty_array_with_capacity(x_2);
lean_dec(x_2);
x_4 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__2___rarg(x_3, x_1);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_keysArray___spec__4___rarg(x_5, x_1);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keysArray(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_keysArray___rarg), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_keysArray___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_keysArray(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_2, 2);
x_4 = lean_ctor_get(x_2, 3);
x_5 = lean_ctor_get(x_2, 4);
x_6 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg(x_1, x_5);
lean_inc(x_3);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_6);
x_1 = x_7;
x_2 = x_4;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_values___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_values___spec__1___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_values___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_values___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_values(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_2, 2);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 3);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 4);
lean_inc(x_5);
lean_dec(x_2);
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2___rarg(x_1, x_4);
x_7 = lean_array_push(x_6, x_3);
x_1 = x_7;
x_2 = x_5;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__1___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_ctor_get(x_2, 2);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 3);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 4);
lean_inc(x_5);
lean_dec(x_2);
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4___rarg(x_1, x_4);
x_7 = lean_array_push(x_6, x_3);
x_1 = x_7;
x_2 = x_5;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__3___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_valuesArray___spec__3___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_valuesArray___rarg(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc(x_2);
x_3 = lean_mk_empty_array_with_capacity(x_2);
lean_dec(x_2);
x_4 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__2___rarg(x_3, x_1);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_valuesArray___spec__4___rarg(x_5, x_1);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_valuesArray(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_valuesArray___rarg), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_valuesArray___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_valuesArray(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg(x_1, x_6);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_7);
x_1 = x_9;
x_2 = x_5;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_toList___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_toList___spec__1___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_toList___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toList___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_toList(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5700_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
lean_dec(x_2);
return x_8;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_7, 1);
lean_inc(x_11);
lean_dec(x_7);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_13);
lean_dec(x_10);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofList___spec__1___rarg(x_2, x_12, x_13, x_8, lean_box(0));
x_7 = x_11;
x_8 = x_14;
x_9 = lean_box(0);
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2___rarg___boxed), 9, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofList___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = lean_box(1);
lean_inc(x_2);
lean_inc(x_1);
x_5 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_1, x_4, lean_box(0));
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofList(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_ofList___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_ofList___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
lean_dec(x_2);
return x_8;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_7, 1);
lean_inc(x_11);
lean_dec(x_7);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_13);
lean_dec(x_10);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromList___spec__1___rarg(x_2, x_12, x_13, x_8, lean_box(0));
x_7 = x_11;
x_8 = x_14;
x_9 = lean_box(0);
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2___rarg___boxed), 9, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromList___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = lean_box(1);
lean_inc(x_2);
lean_inc(x_1);
x_5 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_1, x_4, lean_box(0));
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromList(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_fromList___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_fromList___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg(x_1, x_5);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_array_push(x_7, x_8);
x_1 = x_9;
x_2 = x_6;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg(x_1, x_5);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_array_push(x_7, x_8);
x_1 = x_9;
x_2 = x_6;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray___rarg(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_mk_empty_array_with_capacity(x_2);
x_4 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg(x_3, x_1);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg(x_5, x_1);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_toArray___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__2___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__1___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_toArray___spec__4___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_toArray___spec__3___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_toArray___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_toArray___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_toArray(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5835_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = lean_usize_dec_lt(x_8, x_7);
if (x_10 == 0)
{
lean_dec(x_2);
return x_9;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; 
x_11 = lean_array_uget(x_6, x_8);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_ofArray___spec__1___rarg(x_2, x_12, x_13, x_9, lean_box(0));
x_15 = 1;
x_16 = lean_usize_add(x_8, x_15);
x_8 = x_16;
x_9 = x_14;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2___rarg___boxed), 9, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofArray___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; 
x_3 = lean_box(0);
x_4 = lean_box(1);
x_5 = lean_array_size(x_1);
x_6 = 0;
lean_inc(x_2);
x_7 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_5, x_6, x_4);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofArray(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_ofArray___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_11 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_12 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_ofArray___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_ofArray___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_ofArray___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = lean_usize_dec_lt(x_8, x_7);
if (x_10 == 0)
{
lean_dec(x_2);
return x_9;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; 
x_11 = lean_array_uget(x_6, x_8);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_fromArray___spec__1___rarg(x_2, x_12, x_13, x_9, lean_box(0));
x_15 = 1;
x_16 = lean_usize_add(x_8, x_15);
x_8 = x_16;
x_9 = x_14;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2___rarg___boxed), 9, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromArray___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; 
x_3 = lean_box(0);
x_4 = lean_box(1);
x_5 = lean_array_size(x_1);
x_6 = 0;
lean_inc(x_2);
x_7 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_5, x_6, x_4);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromArray(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_fromArray___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_11 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_12 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_fromArray___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_fromArray___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_fromArray___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_8 = lean_ctor_get(x_6, 1);
x_9 = lean_ctor_get(x_6, 2);
x_10 = lean_ctor_get(x_6, 3);
x_11 = lean_ctor_get(x_6, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_5);
x_12 = lean_apply_2(x_1, x_5, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
x_14 = l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_10);
lean_ctor_set(x_6, 3, x_14);
return x_6;
}
case 1:
{
lean_object* x_15; 
lean_dec(x_8);
lean_dec(x_1);
x_15 = lean_apply_1(x_4, x_9);
lean_ctor_set(x_6, 2, x_15);
lean_ctor_set(x_6, 1, x_5);
return x_6;
}
default: 
{
lean_object* x_16; 
x_16 = l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_11);
lean_ctor_set(x_6, 4, x_16);
return x_6;
}
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_17 = lean_ctor_get(x_6, 0);
x_18 = lean_ctor_get(x_6, 1);
x_19 = lean_ctor_get(x_6, 2);
x_20 = lean_ctor_get(x_6, 3);
x_21 = lean_ctor_get(x_6, 4);
lean_inc(x_21);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_6);
lean_inc(x_1);
lean_inc(x_18);
lean_inc(x_5);
x_22 = lean_apply_2(x_1, x_5, x_18);
x_23 = lean_unbox(x_22);
lean_dec(x_22);
switch (x_23) {
case 0:
{
lean_object* x_24; lean_object* x_25; 
x_24 = l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_20);
x_25 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_25, 0, x_17);
lean_ctor_set(x_25, 1, x_18);
lean_ctor_set(x_25, 2, x_19);
lean_ctor_set(x_25, 3, x_24);
lean_ctor_set(x_25, 4, x_21);
return x_25;
}
case 1:
{
lean_object* x_26; lean_object* x_27; 
lean_dec(x_18);
lean_dec(x_1);
x_26 = lean_apply_1(x_4, x_19);
x_27 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_27, 0, x_17);
lean_ctor_set(x_27, 1, x_5);
lean_ctor_set(x_27, 2, x_26);
lean_ctor_set(x_27, 3, x_20);
lean_ctor_set(x_27, 4, x_21);
return x_27;
}
default: 
{
lean_object* x_28; lean_object* x_29; 
x_28 = l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_21);
x_29 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_29, 0, x_17);
lean_ctor_set(x_29, 1, x_18);
lean_ctor_set(x_29, 2, x_19);
lean_ctor_set(x_29, 3, x_20);
lean_ctor_set(x_29, 4, x_28);
return x_29;
}
}
}
}
else
{
lean_object* x_30; 
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_1);
x_30 = lean_box(1);
return x_30;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg___boxed), 6, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_modify___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
lean_inc(x_4);
x_6 = l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_4, x_3);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_modify(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_modify___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Std_DTreeMap_Internal_Impl_modify___at_Std_DTreeMap_Raw_modify___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_alter___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_alter___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_alter___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_alter___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_alter___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
if (lean_obj_tag(x_6) == 0)
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_6);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_8 = lean_ctor_get(x_6, 0);
x_9 = lean_ctor_get(x_6, 1);
x_10 = lean_ctor_get(x_6, 2);
x_11 = lean_ctor_get(x_6, 3);
x_12 = lean_ctor_get(x_6, 4);
lean_inc(x_1);
lean_inc(x_9);
lean_inc(x_5);
x_13 = lean_apply_2(x_1, x_5, x_9);
x_14 = lean_unbox(x_13);
lean_dec(x_13);
switch (x_14) {
case 0:
{
lean_object* x_15; lean_object* x_16; 
lean_free_object(x_6);
lean_dec(x_8);
x_15 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_11);
x_16 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_9, x_10, x_15, x_12);
return x_16;
}
case 1:
{
lean_object* x_17; lean_object* x_18; 
lean_dec(x_9);
lean_dec(x_1);
x_17 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_17, 0, x_10);
x_18 = lean_apply_1(x_4, x_17);
if (lean_obj_tag(x_18) == 0)
{
lean_free_object(x_6);
lean_dec(x_8);
lean_dec(x_5);
if (lean_obj_tag(x_11) == 0)
{
if (lean_obj_tag(x_12) == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; uint8_t x_29; 
x_19 = lean_ctor_get(x_11, 0);
lean_inc(x_19);
x_20 = lean_ctor_get(x_11, 1);
lean_inc(x_20);
x_21 = lean_ctor_get(x_11, 2);
lean_inc(x_21);
x_22 = lean_ctor_get(x_11, 3);
lean_inc(x_22);
x_23 = lean_ctor_get(x_11, 4);
lean_inc(x_23);
x_24 = lean_ctor_get(x_12, 0);
lean_inc(x_24);
x_25 = lean_ctor_get(x_12, 1);
lean_inc(x_25);
x_26 = lean_ctor_get(x_12, 2);
lean_inc(x_26);
x_27 = lean_ctor_get(x_12, 3);
lean_inc(x_27);
x_28 = lean_ctor_get(x_12, 4);
lean_inc(x_28);
x_29 = lean_nat_dec_lt(x_19, x_24);
if (x_29 == 0)
{
uint8_t x_30; 
lean_dec(x_19);
x_30 = !lean_is_exclusive(x_11);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_31 = lean_ctor_get(x_11, 4);
lean_dec(x_31);
x_32 = lean_ctor_get(x_11, 3);
lean_dec(x_32);
x_33 = lean_ctor_get(x_11, 2);
lean_dec(x_33);
x_34 = lean_ctor_get(x_11, 1);
lean_dec(x_34);
x_35 = lean_ctor_get(x_11, 0);
lean_dec(x_35);
x_36 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_20, x_21, x_22, x_23);
x_37 = lean_ctor_get(x_36, 2);
lean_inc(x_37);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; uint8_t x_43; 
x_38 = lean_ctor_get(x_36, 0);
lean_inc(x_38);
x_39 = lean_ctor_get(x_36, 1);
lean_inc(x_39);
lean_dec(x_36);
x_40 = lean_ctor_get(x_37, 0);
lean_inc(x_40);
x_41 = lean_unsigned_to_nat(3u);
x_42 = lean_nat_mul(x_41, x_40);
x_43 = lean_nat_dec_lt(x_42, x_24);
lean_dec(x_42);
if (x_43 == 0)
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; 
lean_dec(x_28);
lean_dec(x_27);
lean_dec(x_26);
lean_dec(x_25);
x_44 = lean_unsigned_to_nat(1u);
x_45 = lean_nat_add(x_44, x_40);
lean_dec(x_40);
x_46 = lean_nat_add(x_45, x_24);
lean_dec(x_24);
lean_dec(x_45);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 3, x_37);
lean_ctor_set(x_11, 2, x_39);
lean_ctor_set(x_11, 1, x_38);
lean_ctor_set(x_11, 0, x_46);
return x_11;
}
else
{
uint8_t x_47; 
x_47 = !lean_is_exclusive(x_12);
if (x_47 == 0)
{
lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_48 = lean_ctor_get(x_12, 4);
lean_dec(x_48);
x_49 = lean_ctor_get(x_12, 3);
lean_dec(x_49);
x_50 = lean_ctor_get(x_12, 2);
lean_dec(x_50);
x_51 = lean_ctor_get(x_12, 1);
lean_dec(x_51);
x_52 = lean_ctor_get(x_12, 0);
lean_dec(x_52);
if (lean_obj_tag(x_27) == 0)
{
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; uint8_t x_61; 
x_53 = lean_ctor_get(x_27, 0);
lean_inc(x_53);
x_54 = lean_ctor_get(x_27, 1);
lean_inc(x_54);
x_55 = lean_ctor_get(x_27, 2);
lean_inc(x_55);
x_56 = lean_ctor_get(x_27, 3);
lean_inc(x_56);
x_57 = lean_ctor_get(x_27, 4);
lean_inc(x_57);
x_58 = lean_ctor_get(x_28, 0);
lean_inc(x_58);
x_59 = lean_unsigned_to_nat(2u);
x_60 = lean_nat_mul(x_59, x_58);
x_61 = lean_nat_dec_lt(x_53, x_60);
lean_dec(x_60);
if (x_61 == 0)
{
uint8_t x_62; 
lean_dec(x_53);
lean_free_object(x_11);
x_62 = !lean_is_exclusive(x_27);
if (x_62 == 0)
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; 
x_63 = lean_ctor_get(x_27, 4);
lean_dec(x_63);
x_64 = lean_ctor_get(x_27, 3);
lean_dec(x_64);
x_65 = lean_ctor_get(x_27, 2);
lean_dec(x_65);
x_66 = lean_ctor_get(x_27, 1);
lean_dec(x_66);
x_67 = lean_ctor_get(x_27, 0);
lean_dec(x_67);
x_68 = lean_unsigned_to_nat(1u);
x_69 = lean_nat_add(x_68, x_40);
lean_dec(x_40);
x_70 = lean_nat_add(x_69, x_24);
lean_dec(x_24);
x_71 = lean_nat_add(x_68, x_58);
lean_dec(x_58);
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_72; lean_object* x_73; uint8_t x_74; 
x_72 = lean_ctor_get(x_56, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_69, x_72);
lean_dec(x_72);
lean_dec(x_69);
lean_inc(x_37);
lean_ctor_set(x_27, 4, x_56);
lean_ctor_set(x_27, 3, x_37);
lean_ctor_set(x_27, 2, x_39);
lean_ctor_set(x_27, 1, x_38);
lean_ctor_set(x_27, 0, x_73);
x_74 = !lean_is_exclusive(x_37);
if (x_74 == 0)
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; 
x_75 = lean_ctor_get(x_37, 4);
lean_dec(x_75);
x_76 = lean_ctor_get(x_37, 3);
lean_dec(x_76);
x_77 = lean_ctor_get(x_37, 2);
lean_dec(x_77);
x_78 = lean_ctor_get(x_37, 1);
lean_dec(x_78);
x_79 = lean_ctor_get(x_37, 0);
lean_dec(x_79);
if (lean_obj_tag(x_57) == 0)
{
lean_object* x_80; lean_object* x_81; 
x_80 = lean_ctor_get(x_57, 0);
lean_inc(x_80);
x_81 = lean_nat_add(x_71, x_80);
lean_dec(x_80);
lean_dec(x_71);
lean_ctor_set(x_37, 4, x_28);
lean_ctor_set(x_37, 3, x_57);
lean_ctor_set(x_37, 2, x_26);
lean_ctor_set(x_37, 1, x_25);
lean_ctor_set(x_37, 0, x_81);
lean_ctor_set(x_12, 4, x_37);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
else
{
lean_object* x_82; lean_object* x_83; 
x_82 = lean_unsigned_to_nat(0u);
x_83 = lean_nat_add(x_71, x_82);
lean_dec(x_71);
lean_ctor_set(x_37, 4, x_28);
lean_ctor_set(x_37, 3, x_57);
lean_ctor_set(x_37, 2, x_26);
lean_ctor_set(x_37, 1, x_25);
lean_ctor_set(x_37, 0, x_83);
lean_ctor_set(x_12, 4, x_37);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
}
else
{
lean_dec(x_37);
if (lean_obj_tag(x_57) == 0)
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; 
x_84 = lean_ctor_get(x_57, 0);
lean_inc(x_84);
x_85 = lean_nat_add(x_71, x_84);
lean_dec(x_84);
lean_dec(x_71);
x_86 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_86, 0, x_85);
lean_ctor_set(x_86, 1, x_25);
lean_ctor_set(x_86, 2, x_26);
lean_ctor_set(x_86, 3, x_57);
lean_ctor_set(x_86, 4, x_28);
lean_ctor_set(x_12, 4, x_86);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; 
x_87 = lean_unsigned_to_nat(0u);
x_88 = lean_nat_add(x_71, x_87);
lean_dec(x_71);
x_89 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_89, 0, x_88);
lean_ctor_set(x_89, 1, x_25);
lean_ctor_set(x_89, 2, x_26);
lean_ctor_set(x_89, 3, x_57);
lean_ctor_set(x_89, 4, x_28);
lean_ctor_set(x_12, 4, x_89);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
}
}
else
{
lean_object* x_90; lean_object* x_91; uint8_t x_92; 
x_90 = lean_unsigned_to_nat(0u);
x_91 = lean_nat_add(x_69, x_90);
lean_dec(x_69);
lean_inc(x_37);
lean_ctor_set(x_27, 4, x_56);
lean_ctor_set(x_27, 3, x_37);
lean_ctor_set(x_27, 2, x_39);
lean_ctor_set(x_27, 1, x_38);
lean_ctor_set(x_27, 0, x_91);
x_92 = !lean_is_exclusive(x_37);
if (x_92 == 0)
{
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_93 = lean_ctor_get(x_37, 4);
lean_dec(x_93);
x_94 = lean_ctor_get(x_37, 3);
lean_dec(x_94);
x_95 = lean_ctor_get(x_37, 2);
lean_dec(x_95);
x_96 = lean_ctor_get(x_37, 1);
lean_dec(x_96);
x_97 = lean_ctor_get(x_37, 0);
lean_dec(x_97);
if (lean_obj_tag(x_57) == 0)
{
lean_object* x_98; lean_object* x_99; 
x_98 = lean_ctor_get(x_57, 0);
lean_inc(x_98);
x_99 = lean_nat_add(x_71, x_98);
lean_dec(x_98);
lean_dec(x_71);
lean_ctor_set(x_37, 4, x_28);
lean_ctor_set(x_37, 3, x_57);
lean_ctor_set(x_37, 2, x_26);
lean_ctor_set(x_37, 1, x_25);
lean_ctor_set(x_37, 0, x_99);
lean_ctor_set(x_12, 4, x_37);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
else
{
lean_object* x_100; 
x_100 = lean_nat_add(x_71, x_90);
lean_dec(x_71);
lean_ctor_set(x_37, 4, x_28);
lean_ctor_set(x_37, 3, x_57);
lean_ctor_set(x_37, 2, x_26);
lean_ctor_set(x_37, 1, x_25);
lean_ctor_set(x_37, 0, x_100);
lean_ctor_set(x_12, 4, x_37);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
}
else
{
lean_dec(x_37);
if (lean_obj_tag(x_57) == 0)
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; 
x_101 = lean_ctor_get(x_57, 0);
lean_inc(x_101);
x_102 = lean_nat_add(x_71, x_101);
lean_dec(x_101);
lean_dec(x_71);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_25);
lean_ctor_set(x_103, 2, x_26);
lean_ctor_set(x_103, 3, x_57);
lean_ctor_set(x_103, 4, x_28);
lean_ctor_set(x_12, 4, x_103);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
else
{
lean_object* x_104; lean_object* x_105; 
x_104 = lean_nat_add(x_71, x_90);
lean_dec(x_71);
x_105 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_105, 0, x_104);
lean_ctor_set(x_105, 1, x_25);
lean_ctor_set(x_105, 2, x_26);
lean_ctor_set(x_105, 3, x_57);
lean_ctor_set(x_105, 4, x_28);
lean_ctor_set(x_12, 4, x_105);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_70);
return x_12;
}
}
}
}
else
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
lean_dec(x_27);
x_106 = lean_unsigned_to_nat(1u);
x_107 = lean_nat_add(x_106, x_40);
lean_dec(x_40);
x_108 = lean_nat_add(x_107, x_24);
lean_dec(x_24);
x_109 = lean_nat_add(x_106, x_58);
lean_dec(x_58);
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; 
x_110 = lean_ctor_get(x_56, 0);
lean_inc(x_110);
x_111 = lean_nat_add(x_107, x_110);
lean_dec(x_110);
lean_dec(x_107);
lean_inc(x_37);
x_112 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_112, 0, x_111);
lean_ctor_set(x_112, 1, x_38);
lean_ctor_set(x_112, 2, x_39);
lean_ctor_set(x_112, 3, x_37);
lean_ctor_set(x_112, 4, x_56);
if (lean_is_exclusive(x_37)) {
 lean_ctor_release(x_37, 0);
 lean_ctor_release(x_37, 1);
 lean_ctor_release(x_37, 2);
 lean_ctor_release(x_37, 3);
 lean_ctor_release(x_37, 4);
 x_113 = x_37;
} else {
 lean_dec_ref(x_37);
 x_113 = lean_box(0);
}
if (lean_obj_tag(x_57) == 0)
{
lean_object* x_114; lean_object* x_115; lean_object* x_116; 
x_114 = lean_ctor_get(x_57, 0);
lean_inc(x_114);
x_115 = lean_nat_add(x_109, x_114);
lean_dec(x_114);
lean_dec(x_109);
if (lean_is_scalar(x_113)) {
 x_116 = lean_alloc_ctor(0, 5, 0);
} else {
 x_116 = x_113;
}
lean_ctor_set(x_116, 0, x_115);
lean_ctor_set(x_116, 1, x_25);
lean_ctor_set(x_116, 2, x_26);
lean_ctor_set(x_116, 3, x_57);
lean_ctor_set(x_116, 4, x_28);
lean_ctor_set(x_12, 4, x_116);
lean_ctor_set(x_12, 3, x_112);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_108);
return x_12;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; 
x_117 = lean_unsigned_to_nat(0u);
x_118 = lean_nat_add(x_109, x_117);
lean_dec(x_109);
if (lean_is_scalar(x_113)) {
 x_119 = lean_alloc_ctor(0, 5, 0);
} else {
 x_119 = x_113;
}
lean_ctor_set(x_119, 0, x_118);
lean_ctor_set(x_119, 1, x_25);
lean_ctor_set(x_119, 2, x_26);
lean_ctor_set(x_119, 3, x_57);
lean_ctor_set(x_119, 4, x_28);
lean_ctor_set(x_12, 4, x_119);
lean_ctor_set(x_12, 3, x_112);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_108);
return x_12;
}
}
else
{
lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; 
x_120 = lean_unsigned_to_nat(0u);
x_121 = lean_nat_add(x_107, x_120);
lean_dec(x_107);
lean_inc(x_37);
x_122 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_122, 0, x_121);
lean_ctor_set(x_122, 1, x_38);
lean_ctor_set(x_122, 2, x_39);
lean_ctor_set(x_122, 3, x_37);
lean_ctor_set(x_122, 4, x_56);
if (lean_is_exclusive(x_37)) {
 lean_ctor_release(x_37, 0);
 lean_ctor_release(x_37, 1);
 lean_ctor_release(x_37, 2);
 lean_ctor_release(x_37, 3);
 lean_ctor_release(x_37, 4);
 x_123 = x_37;
} else {
 lean_dec_ref(x_37);
 x_123 = lean_box(0);
}
if (lean_obj_tag(x_57) == 0)
{
lean_object* x_124; lean_object* x_125; lean_object* x_126; 
x_124 = lean_ctor_get(x_57, 0);
lean_inc(x_124);
x_125 = lean_nat_add(x_109, x_124);
lean_dec(x_124);
lean_dec(x_109);
if (lean_is_scalar(x_123)) {
 x_126 = lean_alloc_ctor(0, 5, 0);
} else {
 x_126 = x_123;
}
lean_ctor_set(x_126, 0, x_125);
lean_ctor_set(x_126, 1, x_25);
lean_ctor_set(x_126, 2, x_26);
lean_ctor_set(x_126, 3, x_57);
lean_ctor_set(x_126, 4, x_28);
lean_ctor_set(x_12, 4, x_126);
lean_ctor_set(x_12, 3, x_122);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_108);
return x_12;
}
else
{
lean_object* x_127; lean_object* x_128; 
x_127 = lean_nat_add(x_109, x_120);
lean_dec(x_109);
if (lean_is_scalar(x_123)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_123;
}
lean_ctor_set(x_128, 0, x_127);
lean_ctor_set(x_128, 1, x_25);
lean_ctor_set(x_128, 2, x_26);
lean_ctor_set(x_128, 3, x_57);
lean_ctor_set(x_128, 4, x_28);
lean_ctor_set(x_12, 4, x_128);
lean_ctor_set(x_12, 3, x_122);
lean_ctor_set(x_12, 2, x_55);
lean_ctor_set(x_12, 1, x_54);
lean_ctor_set(x_12, 0, x_108);
return x_12;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; 
lean_dec(x_58);
lean_dec(x_57);
lean_dec(x_56);
lean_dec(x_55);
lean_dec(x_54);
x_129 = lean_unsigned_to_nat(1u);
x_130 = lean_nat_add(x_129, x_40);
lean_dec(x_40);
x_131 = lean_nat_add(x_130, x_24);
lean_dec(x_24);
x_132 = lean_nat_add(x_130, x_53);
lean_dec(x_53);
lean_dec(x_130);
lean_ctor_set(x_12, 4, x_27);
lean_ctor_set(x_12, 3, x_37);
lean_ctor_set(x_12, 2, x_39);
lean_ctor_set(x_12, 1, x_38);
lean_ctor_set(x_12, 0, x_132);
lean_ctor_set(x_11, 4, x_28);
lean_ctor_set(x_11, 3, x_12);
lean_ctor_set(x_11, 2, x_26);
lean_ctor_set(x_11, 1, x_25);
lean_ctor_set(x_11, 0, x_131);
return x_11;
}
}
else
{
lean_object* x_133; lean_object* x_134; 
lean_free_object(x_12);
lean_dec(x_40);
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_free_object(x_11);
lean_dec(x_27);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_133 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_134 = l_panic___at_Std_DTreeMap_Raw_alter___spec__2___rarg(x_133);
return x_134;
}
}
else
{
lean_object* x_135; lean_object* x_136; 
lean_free_object(x_12);
lean_dec(x_40);
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_free_object(x_11);
lean_dec(x_28);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_135 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_136 = l_panic___at_Std_DTreeMap_Raw_alter___spec__3___rarg(x_135);
return x_136;
}
}
else
{
lean_dec(x_12);
if (lean_obj_tag(x_27) == 0)
{
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; uint8_t x_145; 
x_137 = lean_ctor_get(x_27, 0);
lean_inc(x_137);
x_138 = lean_ctor_get(x_27, 1);
lean_inc(x_138);
x_139 = lean_ctor_get(x_27, 2);
lean_inc(x_139);
x_140 = lean_ctor_get(x_27, 3);
lean_inc(x_140);
x_141 = lean_ctor_get(x_27, 4);
lean_inc(x_141);
x_142 = lean_ctor_get(x_28, 0);
lean_inc(x_142);
x_143 = lean_unsigned_to_nat(2u);
x_144 = lean_nat_mul(x_143, x_142);
x_145 = lean_nat_dec_lt(x_137, x_144);
lean_dec(x_144);
if (x_145 == 0)
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; 
lean_dec(x_137);
lean_free_object(x_11);
if (lean_is_exclusive(x_27)) {
 lean_ctor_release(x_27, 0);
 lean_ctor_release(x_27, 1);
 lean_ctor_release(x_27, 2);
 lean_ctor_release(x_27, 3);
 lean_ctor_release(x_27, 4);
 x_146 = x_27;
} else {
 lean_dec_ref(x_27);
 x_146 = lean_box(0);
}
x_147 = lean_unsigned_to_nat(1u);
x_148 = lean_nat_add(x_147, x_40);
lean_dec(x_40);
x_149 = lean_nat_add(x_148, x_24);
lean_dec(x_24);
x_150 = lean_nat_add(x_147, x_142);
lean_dec(x_142);
if (lean_obj_tag(x_140) == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; 
x_151 = lean_ctor_get(x_140, 0);
lean_inc(x_151);
x_152 = lean_nat_add(x_148, x_151);
lean_dec(x_151);
lean_dec(x_148);
lean_inc(x_37);
if (lean_is_scalar(x_146)) {
 x_153 = lean_alloc_ctor(0, 5, 0);
} else {
 x_153 = x_146;
}
lean_ctor_set(x_153, 0, x_152);
lean_ctor_set(x_153, 1, x_38);
lean_ctor_set(x_153, 2, x_39);
lean_ctor_set(x_153, 3, x_37);
lean_ctor_set(x_153, 4, x_140);
if (lean_is_exclusive(x_37)) {
 lean_ctor_release(x_37, 0);
 lean_ctor_release(x_37, 1);
 lean_ctor_release(x_37, 2);
 lean_ctor_release(x_37, 3);
 lean_ctor_release(x_37, 4);
 x_154 = x_37;
} else {
 lean_dec_ref(x_37);
 x_154 = lean_box(0);
}
if (lean_obj_tag(x_141) == 0)
{
lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; 
x_155 = lean_ctor_get(x_141, 0);
lean_inc(x_155);
x_156 = lean_nat_add(x_150, x_155);
lean_dec(x_155);
lean_dec(x_150);
if (lean_is_scalar(x_154)) {
 x_157 = lean_alloc_ctor(0, 5, 0);
} else {
 x_157 = x_154;
}
lean_ctor_set(x_157, 0, x_156);
lean_ctor_set(x_157, 1, x_25);
lean_ctor_set(x_157, 2, x_26);
lean_ctor_set(x_157, 3, x_141);
lean_ctor_set(x_157, 4, x_28);
x_158 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_158, 0, x_149);
lean_ctor_set(x_158, 1, x_138);
lean_ctor_set(x_158, 2, x_139);
lean_ctor_set(x_158, 3, x_153);
lean_ctor_set(x_158, 4, x_157);
return x_158;
}
else
{
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; 
x_159 = lean_unsigned_to_nat(0u);
x_160 = lean_nat_add(x_150, x_159);
lean_dec(x_150);
if (lean_is_scalar(x_154)) {
 x_161 = lean_alloc_ctor(0, 5, 0);
} else {
 x_161 = x_154;
}
lean_ctor_set(x_161, 0, x_160);
lean_ctor_set(x_161, 1, x_25);
lean_ctor_set(x_161, 2, x_26);
lean_ctor_set(x_161, 3, x_141);
lean_ctor_set(x_161, 4, x_28);
x_162 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_162, 0, x_149);
lean_ctor_set(x_162, 1, x_138);
lean_ctor_set(x_162, 2, x_139);
lean_ctor_set(x_162, 3, x_153);
lean_ctor_set(x_162, 4, x_161);
return x_162;
}
}
else
{
lean_object* x_163; lean_object* x_164; lean_object* x_165; lean_object* x_166; 
x_163 = lean_unsigned_to_nat(0u);
x_164 = lean_nat_add(x_148, x_163);
lean_dec(x_148);
lean_inc(x_37);
if (lean_is_scalar(x_146)) {
 x_165 = lean_alloc_ctor(0, 5, 0);
} else {
 x_165 = x_146;
}
lean_ctor_set(x_165, 0, x_164);
lean_ctor_set(x_165, 1, x_38);
lean_ctor_set(x_165, 2, x_39);
lean_ctor_set(x_165, 3, x_37);
lean_ctor_set(x_165, 4, x_140);
if (lean_is_exclusive(x_37)) {
 lean_ctor_release(x_37, 0);
 lean_ctor_release(x_37, 1);
 lean_ctor_release(x_37, 2);
 lean_ctor_release(x_37, 3);
 lean_ctor_release(x_37, 4);
 x_166 = x_37;
} else {
 lean_dec_ref(x_37);
 x_166 = lean_box(0);
}
if (lean_obj_tag(x_141) == 0)
{
lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; 
x_167 = lean_ctor_get(x_141, 0);
lean_inc(x_167);
x_168 = lean_nat_add(x_150, x_167);
lean_dec(x_167);
lean_dec(x_150);
if (lean_is_scalar(x_166)) {
 x_169 = lean_alloc_ctor(0, 5, 0);
} else {
 x_169 = x_166;
}
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_25);
lean_ctor_set(x_169, 2, x_26);
lean_ctor_set(x_169, 3, x_141);
lean_ctor_set(x_169, 4, x_28);
x_170 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_170, 0, x_149);
lean_ctor_set(x_170, 1, x_138);
lean_ctor_set(x_170, 2, x_139);
lean_ctor_set(x_170, 3, x_165);
lean_ctor_set(x_170, 4, x_169);
return x_170;
}
else
{
lean_object* x_171; lean_object* x_172; lean_object* x_173; 
x_171 = lean_nat_add(x_150, x_163);
lean_dec(x_150);
if (lean_is_scalar(x_166)) {
 x_172 = lean_alloc_ctor(0, 5, 0);
} else {
 x_172 = x_166;
}
lean_ctor_set(x_172, 0, x_171);
lean_ctor_set(x_172, 1, x_25);
lean_ctor_set(x_172, 2, x_26);
lean_ctor_set(x_172, 3, x_141);
lean_ctor_set(x_172, 4, x_28);
x_173 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_173, 0, x_149);
lean_ctor_set(x_173, 1, x_138);
lean_ctor_set(x_173, 2, x_139);
lean_ctor_set(x_173, 3, x_165);
lean_ctor_set(x_173, 4, x_172);
return x_173;
}
}
}
else
{
lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; lean_object* x_178; 
lean_dec(x_142);
lean_dec(x_141);
lean_dec(x_140);
lean_dec(x_139);
lean_dec(x_138);
x_174 = lean_unsigned_to_nat(1u);
x_175 = lean_nat_add(x_174, x_40);
lean_dec(x_40);
x_176 = lean_nat_add(x_175, x_24);
lean_dec(x_24);
x_177 = lean_nat_add(x_175, x_137);
lean_dec(x_137);
lean_dec(x_175);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_177);
lean_ctor_set(x_178, 1, x_38);
lean_ctor_set(x_178, 2, x_39);
lean_ctor_set(x_178, 3, x_37);
lean_ctor_set(x_178, 4, x_27);
lean_ctor_set(x_11, 4, x_28);
lean_ctor_set(x_11, 3, x_178);
lean_ctor_set(x_11, 2, x_26);
lean_ctor_set(x_11, 1, x_25);
lean_ctor_set(x_11, 0, x_176);
return x_11;
}
}
else
{
lean_object* x_179; lean_object* x_180; 
lean_dec(x_40);
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_free_object(x_11);
lean_dec(x_27);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_179 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_180 = l_panic___at_Std_DTreeMap_Raw_alter___spec__2___rarg(x_179);
return x_180;
}
}
else
{
lean_object* x_181; lean_object* x_182; 
lean_dec(x_40);
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_free_object(x_11);
lean_dec(x_28);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_181 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_182 = l_panic___at_Std_DTreeMap_Raw_alter___spec__3___rarg(x_181);
return x_182;
}
}
}
}
else
{
if (lean_obj_tag(x_27) == 0)
{
uint8_t x_183; 
x_183 = !lean_is_exclusive(x_12);
if (x_183 == 0)
{
lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; 
x_184 = lean_ctor_get(x_12, 4);
lean_dec(x_184);
x_185 = lean_ctor_get(x_12, 3);
lean_dec(x_185);
x_186 = lean_ctor_get(x_12, 2);
lean_dec(x_186);
x_187 = lean_ctor_get(x_12, 1);
lean_dec(x_187);
x_188 = lean_ctor_get(x_12, 0);
lean_dec(x_188);
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; 
x_189 = lean_ctor_get(x_36, 0);
lean_inc(x_189);
x_190 = lean_ctor_get(x_36, 1);
lean_inc(x_190);
lean_dec(x_36);
x_191 = lean_ctor_get(x_27, 0);
lean_inc(x_191);
x_192 = lean_unsigned_to_nat(1u);
x_193 = lean_nat_add(x_192, x_24);
lean_dec(x_24);
x_194 = lean_nat_add(x_192, x_191);
lean_dec(x_191);
x_195 = lean_box(1);
lean_ctor_set(x_12, 4, x_27);
lean_ctor_set(x_12, 3, x_195);
lean_ctor_set(x_12, 2, x_190);
lean_ctor_set(x_12, 1, x_189);
lean_ctor_set(x_12, 0, x_194);
lean_ctor_set(x_11, 4, x_28);
lean_ctor_set(x_11, 3, x_12);
lean_ctor_set(x_11, 2, x_26);
lean_ctor_set(x_11, 1, x_25);
lean_ctor_set(x_11, 0, x_193);
return x_11;
}
else
{
lean_object* x_196; lean_object* x_197; uint8_t x_198; 
lean_dec(x_24);
x_196 = lean_ctor_get(x_36, 0);
lean_inc(x_196);
x_197 = lean_ctor_get(x_36, 1);
lean_inc(x_197);
lean_dec(x_36);
x_198 = !lean_is_exclusive(x_27);
if (x_198 == 0)
{
lean_object* x_199; 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; 
x_199 = lean_ctor_get(x_27, 1);
x_200 = lean_ctor_get(x_27, 2);
x_201 = lean_ctor_get(x_27, 4);
lean_dec(x_201);
x_202 = lean_ctor_get(x_27, 3);
lean_dec(x_202);
x_203 = lean_ctor_get(x_27, 0);
lean_dec(x_203);
x_204 = lean_box(1);
x_205 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_27, 4, x_204);
lean_ctor_set(x_27, 3, x_204);
lean_ctor_set(x_27, 2, x_197);
lean_ctor_set(x_27, 1, x_196);
lean_ctor_set(x_27, 0, x_205);
lean_ctor_set(x_12, 4, x_204);
lean_ctor_set(x_12, 3, x_204);
lean_ctor_set(x_12, 0, x_205);
x_206 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 3, x_27);
lean_ctor_set(x_11, 2, x_200);
lean_ctor_set(x_11, 1, x_199);
lean_ctor_set(x_11, 0, x_206);
return x_11;
}
else
{
lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; 
x_207 = lean_ctor_get(x_27, 1);
x_208 = lean_ctor_get(x_27, 2);
lean_inc(x_208);
lean_inc(x_207);
lean_dec(x_27);
x_209 = lean_box(1);
x_210 = lean_unsigned_to_nat(1u);
x_211 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_211, 0, x_210);
lean_ctor_set(x_211, 1, x_196);
lean_ctor_set(x_211, 2, x_197);
lean_ctor_set(x_211, 3, x_209);
lean_ctor_set(x_211, 4, x_209);
lean_ctor_set(x_12, 4, x_209);
lean_ctor_set(x_12, 3, x_209);
lean_ctor_set(x_12, 0, x_210);
x_212 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 3, x_211);
lean_ctor_set(x_11, 2, x_208);
lean_ctor_set(x_11, 1, x_207);
lean_ctor_set(x_11, 0, x_212);
return x_11;
}
}
}
else
{
lean_dec(x_12);
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; 
x_213 = lean_ctor_get(x_36, 0);
lean_inc(x_213);
x_214 = lean_ctor_get(x_36, 1);
lean_inc(x_214);
lean_dec(x_36);
x_215 = lean_ctor_get(x_27, 0);
lean_inc(x_215);
x_216 = lean_unsigned_to_nat(1u);
x_217 = lean_nat_add(x_216, x_24);
lean_dec(x_24);
x_218 = lean_nat_add(x_216, x_215);
lean_dec(x_215);
x_219 = lean_box(1);
x_220 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_220, 0, x_218);
lean_ctor_set(x_220, 1, x_213);
lean_ctor_set(x_220, 2, x_214);
lean_ctor_set(x_220, 3, x_219);
lean_ctor_set(x_220, 4, x_27);
lean_ctor_set(x_11, 4, x_28);
lean_ctor_set(x_11, 3, x_220);
lean_ctor_set(x_11, 2, x_26);
lean_ctor_set(x_11, 1, x_25);
lean_ctor_set(x_11, 0, x_217);
return x_11;
}
else
{
lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; 
lean_dec(x_24);
x_221 = lean_ctor_get(x_36, 0);
lean_inc(x_221);
x_222 = lean_ctor_get(x_36, 1);
lean_inc(x_222);
lean_dec(x_36);
x_223 = lean_ctor_get(x_27, 1);
lean_inc(x_223);
x_224 = lean_ctor_get(x_27, 2);
lean_inc(x_224);
if (lean_is_exclusive(x_27)) {
 lean_ctor_release(x_27, 0);
 lean_ctor_release(x_27, 1);
 lean_ctor_release(x_27, 2);
 lean_ctor_release(x_27, 3);
 lean_ctor_release(x_27, 4);
 x_225 = x_27;
} else {
 lean_dec_ref(x_27);
 x_225 = lean_box(0);
}
x_226 = lean_box(1);
x_227 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_225)) {
 x_228 = lean_alloc_ctor(0, 5, 0);
} else {
 x_228 = x_225;
}
lean_ctor_set(x_228, 0, x_227);
lean_ctor_set(x_228, 1, x_221);
lean_ctor_set(x_228, 2, x_222);
lean_ctor_set(x_228, 3, x_226);
lean_ctor_set(x_228, 4, x_226);
x_229 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_229, 0, x_227);
lean_ctor_set(x_229, 1, x_25);
lean_ctor_set(x_229, 2, x_26);
lean_ctor_set(x_229, 3, x_226);
lean_ctor_set(x_229, 4, x_226);
x_230 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_229);
lean_ctor_set(x_11, 3, x_228);
lean_ctor_set(x_11, 2, x_224);
lean_ctor_set(x_11, 1, x_223);
lean_ctor_set(x_11, 0, x_230);
return x_11;
}
}
}
else
{
lean_dec(x_24);
if (lean_obj_tag(x_28) == 0)
{
uint8_t x_231; 
x_231 = !lean_is_exclusive(x_12);
if (x_231 == 0)
{
lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; lean_object* x_241; 
x_232 = lean_ctor_get(x_12, 4);
lean_dec(x_232);
x_233 = lean_ctor_get(x_12, 3);
lean_dec(x_233);
x_234 = lean_ctor_get(x_12, 2);
lean_dec(x_234);
x_235 = lean_ctor_get(x_12, 1);
lean_dec(x_235);
x_236 = lean_ctor_get(x_12, 0);
lean_dec(x_236);
x_237 = lean_ctor_get(x_36, 0);
lean_inc(x_237);
x_238 = lean_ctor_get(x_36, 1);
lean_inc(x_238);
lean_dec(x_36);
x_239 = lean_box(1);
x_240 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_12, 4, x_239);
lean_ctor_set(x_12, 3, x_239);
lean_ctor_set(x_12, 2, x_238);
lean_ctor_set(x_12, 1, x_237);
lean_ctor_set(x_12, 0, x_240);
x_241 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_28);
lean_ctor_set(x_11, 3, x_12);
lean_ctor_set(x_11, 2, x_26);
lean_ctor_set(x_11, 1, x_25);
lean_ctor_set(x_11, 0, x_241);
return x_11;
}
else
{
lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; 
lean_dec(x_12);
x_242 = lean_ctor_get(x_36, 0);
lean_inc(x_242);
x_243 = lean_ctor_get(x_36, 1);
lean_inc(x_243);
lean_dec(x_36);
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
x_246 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_242);
lean_ctor_set(x_246, 2, x_243);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_28);
lean_ctor_set(x_11, 3, x_246);
lean_ctor_set(x_11, 2, x_26);
lean_ctor_set(x_11, 1, x_25);
lean_ctor_set(x_11, 0, x_247);
return x_11;
}
}
else
{
lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; 
lean_dec(x_26);
lean_dec(x_25);
x_248 = lean_ctor_get(x_36, 0);
lean_inc(x_248);
x_249 = lean_ctor_get(x_36, 1);
lean_inc(x_249);
lean_dec(x_36);
x_250 = lean_box(1);
x_251 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 3, x_250);
lean_ctor_set(x_11, 2, x_249);
lean_ctor_set(x_11, 1, x_248);
lean_ctor_set(x_11, 0, x_251);
return x_11;
}
}
}
}
else
{
lean_object* x_252; lean_object* x_253; 
lean_dec(x_11);
x_252 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_20, x_21, x_22, x_23);
x_253 = lean_ctor_get(x_252, 2);
lean_inc(x_253);
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; uint8_t x_259; 
x_254 = lean_ctor_get(x_252, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_252, 1);
lean_inc(x_255);
lean_dec(x_252);
x_256 = lean_ctor_get(x_253, 0);
lean_inc(x_256);
x_257 = lean_unsigned_to_nat(3u);
x_258 = lean_nat_mul(x_257, x_256);
x_259 = lean_nat_dec_lt(x_258, x_24);
lean_dec(x_258);
if (x_259 == 0)
{
lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; 
lean_dec(x_28);
lean_dec(x_27);
lean_dec(x_26);
lean_dec(x_25);
x_260 = lean_unsigned_to_nat(1u);
x_261 = lean_nat_add(x_260, x_256);
lean_dec(x_256);
x_262 = lean_nat_add(x_261, x_24);
lean_dec(x_24);
lean_dec(x_261);
x_263 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_263, 0, x_262);
lean_ctor_set(x_263, 1, x_254);
lean_ctor_set(x_263, 2, x_255);
lean_ctor_set(x_263, 3, x_253);
lean_ctor_set(x_263, 4, x_12);
return x_263;
}
else
{
lean_object* x_264; 
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_264 = x_12;
} else {
 lean_dec_ref(x_12);
 x_264 = lean_box(0);
}
if (lean_obj_tag(x_27) == 0)
{
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; uint8_t x_273; 
x_265 = lean_ctor_get(x_27, 0);
lean_inc(x_265);
x_266 = lean_ctor_get(x_27, 1);
lean_inc(x_266);
x_267 = lean_ctor_get(x_27, 2);
lean_inc(x_267);
x_268 = lean_ctor_get(x_27, 3);
lean_inc(x_268);
x_269 = lean_ctor_get(x_27, 4);
lean_inc(x_269);
x_270 = lean_ctor_get(x_28, 0);
lean_inc(x_270);
x_271 = lean_unsigned_to_nat(2u);
x_272 = lean_nat_mul(x_271, x_270);
x_273 = lean_nat_dec_lt(x_265, x_272);
lean_dec(x_272);
if (x_273 == 0)
{
lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; 
lean_dec(x_265);
if (lean_is_exclusive(x_27)) {
 lean_ctor_release(x_27, 0);
 lean_ctor_release(x_27, 1);
 lean_ctor_release(x_27, 2);
 lean_ctor_release(x_27, 3);
 lean_ctor_release(x_27, 4);
 x_274 = x_27;
} else {
 lean_dec_ref(x_27);
 x_274 = lean_box(0);
}
x_275 = lean_unsigned_to_nat(1u);
x_276 = lean_nat_add(x_275, x_256);
lean_dec(x_256);
x_277 = lean_nat_add(x_276, x_24);
lean_dec(x_24);
x_278 = lean_nat_add(x_275, x_270);
lean_dec(x_270);
if (lean_obj_tag(x_268) == 0)
{
lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; 
x_279 = lean_ctor_get(x_268, 0);
lean_inc(x_279);
x_280 = lean_nat_add(x_276, x_279);
lean_dec(x_279);
lean_dec(x_276);
lean_inc(x_253);
if (lean_is_scalar(x_274)) {
 x_281 = lean_alloc_ctor(0, 5, 0);
} else {
 x_281 = x_274;
}
lean_ctor_set(x_281, 0, x_280);
lean_ctor_set(x_281, 1, x_254);
lean_ctor_set(x_281, 2, x_255);
lean_ctor_set(x_281, 3, x_253);
lean_ctor_set(x_281, 4, x_268);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_282 = x_253;
} else {
 lean_dec_ref(x_253);
 x_282 = lean_box(0);
}
if (lean_obj_tag(x_269) == 0)
{
lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; 
x_283 = lean_ctor_get(x_269, 0);
lean_inc(x_283);
x_284 = lean_nat_add(x_278, x_283);
lean_dec(x_283);
lean_dec(x_278);
if (lean_is_scalar(x_282)) {
 x_285 = lean_alloc_ctor(0, 5, 0);
} else {
 x_285 = x_282;
}
lean_ctor_set(x_285, 0, x_284);
lean_ctor_set(x_285, 1, x_25);
lean_ctor_set(x_285, 2, x_26);
lean_ctor_set(x_285, 3, x_269);
lean_ctor_set(x_285, 4, x_28);
if (lean_is_scalar(x_264)) {
 x_286 = lean_alloc_ctor(0, 5, 0);
} else {
 x_286 = x_264;
}
lean_ctor_set(x_286, 0, x_277);
lean_ctor_set(x_286, 1, x_266);
lean_ctor_set(x_286, 2, x_267);
lean_ctor_set(x_286, 3, x_281);
lean_ctor_set(x_286, 4, x_285);
return x_286;
}
else
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_287 = lean_unsigned_to_nat(0u);
x_288 = lean_nat_add(x_278, x_287);
lean_dec(x_278);
if (lean_is_scalar(x_282)) {
 x_289 = lean_alloc_ctor(0, 5, 0);
} else {
 x_289 = x_282;
}
lean_ctor_set(x_289, 0, x_288);
lean_ctor_set(x_289, 1, x_25);
lean_ctor_set(x_289, 2, x_26);
lean_ctor_set(x_289, 3, x_269);
lean_ctor_set(x_289, 4, x_28);
if (lean_is_scalar(x_264)) {
 x_290 = lean_alloc_ctor(0, 5, 0);
} else {
 x_290 = x_264;
}
lean_ctor_set(x_290, 0, x_277);
lean_ctor_set(x_290, 1, x_266);
lean_ctor_set(x_290, 2, x_267);
lean_ctor_set(x_290, 3, x_281);
lean_ctor_set(x_290, 4, x_289);
return x_290;
}
}
else
{
lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; 
x_291 = lean_unsigned_to_nat(0u);
x_292 = lean_nat_add(x_276, x_291);
lean_dec(x_276);
lean_inc(x_253);
if (lean_is_scalar(x_274)) {
 x_293 = lean_alloc_ctor(0, 5, 0);
} else {
 x_293 = x_274;
}
lean_ctor_set(x_293, 0, x_292);
lean_ctor_set(x_293, 1, x_254);
lean_ctor_set(x_293, 2, x_255);
lean_ctor_set(x_293, 3, x_253);
lean_ctor_set(x_293, 4, x_268);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_294 = x_253;
} else {
 lean_dec_ref(x_253);
 x_294 = lean_box(0);
}
if (lean_obj_tag(x_269) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_295 = lean_ctor_get(x_269, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_278, x_295);
lean_dec(x_295);
lean_dec(x_278);
if (lean_is_scalar(x_294)) {
 x_297 = lean_alloc_ctor(0, 5, 0);
} else {
 x_297 = x_294;
}
lean_ctor_set(x_297, 0, x_296);
lean_ctor_set(x_297, 1, x_25);
lean_ctor_set(x_297, 2, x_26);
lean_ctor_set(x_297, 3, x_269);
lean_ctor_set(x_297, 4, x_28);
if (lean_is_scalar(x_264)) {
 x_298 = lean_alloc_ctor(0, 5, 0);
} else {
 x_298 = x_264;
}
lean_ctor_set(x_298, 0, x_277);
lean_ctor_set(x_298, 1, x_266);
lean_ctor_set(x_298, 2, x_267);
lean_ctor_set(x_298, 3, x_293);
lean_ctor_set(x_298, 4, x_297);
return x_298;
}
else
{
lean_object* x_299; lean_object* x_300; lean_object* x_301; 
x_299 = lean_nat_add(x_278, x_291);
lean_dec(x_278);
if (lean_is_scalar(x_294)) {
 x_300 = lean_alloc_ctor(0, 5, 0);
} else {
 x_300 = x_294;
}
lean_ctor_set(x_300, 0, x_299);
lean_ctor_set(x_300, 1, x_25);
lean_ctor_set(x_300, 2, x_26);
lean_ctor_set(x_300, 3, x_269);
lean_ctor_set(x_300, 4, x_28);
if (lean_is_scalar(x_264)) {
 x_301 = lean_alloc_ctor(0, 5, 0);
} else {
 x_301 = x_264;
}
lean_ctor_set(x_301, 0, x_277);
lean_ctor_set(x_301, 1, x_266);
lean_ctor_set(x_301, 2, x_267);
lean_ctor_set(x_301, 3, x_293);
lean_ctor_set(x_301, 4, x_300);
return x_301;
}
}
}
else
{
lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; lean_object* x_307; 
lean_dec(x_270);
lean_dec(x_269);
lean_dec(x_268);
lean_dec(x_267);
lean_dec(x_266);
x_302 = lean_unsigned_to_nat(1u);
x_303 = lean_nat_add(x_302, x_256);
lean_dec(x_256);
x_304 = lean_nat_add(x_303, x_24);
lean_dec(x_24);
x_305 = lean_nat_add(x_303, x_265);
lean_dec(x_265);
lean_dec(x_303);
if (lean_is_scalar(x_264)) {
 x_306 = lean_alloc_ctor(0, 5, 0);
} else {
 x_306 = x_264;
}
lean_ctor_set(x_306, 0, x_305);
lean_ctor_set(x_306, 1, x_254);
lean_ctor_set(x_306, 2, x_255);
lean_ctor_set(x_306, 3, x_253);
lean_ctor_set(x_306, 4, x_27);
x_307 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_307, 0, x_304);
lean_ctor_set(x_307, 1, x_25);
lean_ctor_set(x_307, 2, x_26);
lean_ctor_set(x_307, 3, x_306);
lean_ctor_set(x_307, 4, x_28);
return x_307;
}
}
else
{
lean_object* x_308; lean_object* x_309; 
lean_dec(x_264);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_27);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_308 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_309 = l_panic___at_Std_DTreeMap_Raw_alter___spec__2___rarg(x_308);
return x_309;
}
}
else
{
lean_object* x_310; lean_object* x_311; 
lean_dec(x_264);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_28);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_310 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_311 = l_panic___at_Std_DTreeMap_Raw_alter___spec__3___rarg(x_310);
return x_311;
}
}
}
else
{
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_312; 
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_312 = x_12;
} else {
 lean_dec_ref(x_12);
 x_312 = lean_box(0);
}
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; lean_object* x_321; 
x_313 = lean_ctor_get(x_252, 0);
lean_inc(x_313);
x_314 = lean_ctor_get(x_252, 1);
lean_inc(x_314);
lean_dec(x_252);
x_315 = lean_ctor_get(x_27, 0);
lean_inc(x_315);
x_316 = lean_unsigned_to_nat(1u);
x_317 = lean_nat_add(x_316, x_24);
lean_dec(x_24);
x_318 = lean_nat_add(x_316, x_315);
lean_dec(x_315);
x_319 = lean_box(1);
if (lean_is_scalar(x_312)) {
 x_320 = lean_alloc_ctor(0, 5, 0);
} else {
 x_320 = x_312;
}
lean_ctor_set(x_320, 0, x_318);
lean_ctor_set(x_320, 1, x_313);
lean_ctor_set(x_320, 2, x_314);
lean_ctor_set(x_320, 3, x_319);
lean_ctor_set(x_320, 4, x_27);
x_321 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_321, 0, x_317);
lean_ctor_set(x_321, 1, x_25);
lean_ctor_set(x_321, 2, x_26);
lean_ctor_set(x_321, 3, x_320);
lean_ctor_set(x_321, 4, x_28);
return x_321;
}
else
{
lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
lean_dec(x_24);
x_322 = lean_ctor_get(x_252, 0);
lean_inc(x_322);
x_323 = lean_ctor_get(x_252, 1);
lean_inc(x_323);
lean_dec(x_252);
x_324 = lean_ctor_get(x_27, 1);
lean_inc(x_324);
x_325 = lean_ctor_get(x_27, 2);
lean_inc(x_325);
if (lean_is_exclusive(x_27)) {
 lean_ctor_release(x_27, 0);
 lean_ctor_release(x_27, 1);
 lean_ctor_release(x_27, 2);
 lean_ctor_release(x_27, 3);
 lean_ctor_release(x_27, 4);
 x_326 = x_27;
} else {
 lean_dec_ref(x_27);
 x_326 = lean_box(0);
}
x_327 = lean_box(1);
x_328 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_326)) {
 x_329 = lean_alloc_ctor(0, 5, 0);
} else {
 x_329 = x_326;
}
lean_ctor_set(x_329, 0, x_328);
lean_ctor_set(x_329, 1, x_322);
lean_ctor_set(x_329, 2, x_323);
lean_ctor_set(x_329, 3, x_327);
lean_ctor_set(x_329, 4, x_327);
if (lean_is_scalar(x_312)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_312;
}
lean_ctor_set(x_330, 0, x_328);
lean_ctor_set(x_330, 1, x_25);
lean_ctor_set(x_330, 2, x_26);
lean_ctor_set(x_330, 3, x_327);
lean_ctor_set(x_330, 4, x_327);
x_331 = lean_unsigned_to_nat(3u);
x_332 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_332, 0, x_331);
lean_ctor_set(x_332, 1, x_324);
lean_ctor_set(x_332, 2, x_325);
lean_ctor_set(x_332, 3, x_329);
lean_ctor_set(x_332, 4, x_330);
return x_332;
}
}
else
{
lean_dec(x_24);
if (lean_obj_tag(x_28) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; lean_object* x_340; 
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_333 = x_12;
} else {
 lean_dec_ref(x_12);
 x_333 = lean_box(0);
}
x_334 = lean_ctor_get(x_252, 0);
lean_inc(x_334);
x_335 = lean_ctor_get(x_252, 1);
lean_inc(x_335);
lean_dec(x_252);
x_336 = lean_box(1);
x_337 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_333)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_333;
}
lean_ctor_set(x_338, 0, x_337);
lean_ctor_set(x_338, 1, x_334);
lean_ctor_set(x_338, 2, x_335);
lean_ctor_set(x_338, 3, x_336);
lean_ctor_set(x_338, 4, x_336);
x_339 = lean_unsigned_to_nat(3u);
x_340 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_340, 0, x_339);
lean_ctor_set(x_340, 1, x_25);
lean_ctor_set(x_340, 2, x_26);
lean_ctor_set(x_340, 3, x_338);
lean_ctor_set(x_340, 4, x_28);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; lean_object* x_345; 
lean_dec(x_26);
lean_dec(x_25);
x_341 = lean_ctor_get(x_252, 0);
lean_inc(x_341);
x_342 = lean_ctor_get(x_252, 1);
lean_inc(x_342);
lean_dec(x_252);
x_343 = lean_box(1);
x_344 = lean_unsigned_to_nat(2u);
x_345 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_345, 0, x_344);
lean_ctor_set(x_345, 1, x_341);
lean_ctor_set(x_345, 2, x_342);
lean_ctor_set(x_345, 3, x_343);
lean_ctor_set(x_345, 4, x_12);
return x_345;
}
}
}
}
}
else
{
uint8_t x_346; 
lean_dec(x_24);
x_346 = !lean_is_exclusive(x_12);
if (x_346 == 0)
{
lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; 
x_347 = lean_ctor_get(x_12, 4);
lean_dec(x_347);
x_348 = lean_ctor_get(x_12, 3);
lean_dec(x_348);
x_349 = lean_ctor_get(x_12, 2);
lean_dec(x_349);
x_350 = lean_ctor_get(x_12, 1);
lean_dec(x_350);
x_351 = lean_ctor_get(x_12, 0);
lean_dec(x_351);
x_352 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_25, x_26, x_27, x_28);
x_353 = lean_ctor_get(x_352, 2);
lean_inc(x_353);
if (lean_obj_tag(x_353) == 0)
{
lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; uint8_t x_359; 
x_354 = lean_ctor_get(x_352, 0);
lean_inc(x_354);
x_355 = lean_ctor_get(x_352, 1);
lean_inc(x_355);
lean_dec(x_352);
x_356 = lean_ctor_get(x_353, 0);
lean_inc(x_356);
x_357 = lean_unsigned_to_nat(3u);
x_358 = lean_nat_mul(x_357, x_356);
x_359 = lean_nat_dec_lt(x_358, x_19);
lean_dec(x_358);
if (x_359 == 0)
{
lean_object* x_360; lean_object* x_361; lean_object* x_362; 
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_20);
x_360 = lean_unsigned_to_nat(1u);
x_361 = lean_nat_add(x_360, x_19);
lean_dec(x_19);
x_362 = lean_nat_add(x_361, x_356);
lean_dec(x_356);
lean_dec(x_361);
lean_ctor_set(x_12, 4, x_353);
lean_ctor_set(x_12, 3, x_11);
lean_ctor_set(x_12, 2, x_355);
lean_ctor_set(x_12, 1, x_354);
lean_ctor_set(x_12, 0, x_362);
return x_12;
}
else
{
uint8_t x_363; 
x_363 = !lean_is_exclusive(x_11);
if (x_363 == 0)
{
lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; 
x_364 = lean_ctor_get(x_11, 4);
lean_dec(x_364);
x_365 = lean_ctor_get(x_11, 3);
lean_dec(x_365);
x_366 = lean_ctor_get(x_11, 2);
lean_dec(x_366);
x_367 = lean_ctor_get(x_11, 1);
lean_dec(x_367);
x_368 = lean_ctor_get(x_11, 0);
lean_dec(x_368);
if (lean_obj_tag(x_22) == 0)
{
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; uint8_t x_377; 
x_369 = lean_ctor_get(x_22, 0);
lean_inc(x_369);
x_370 = lean_ctor_get(x_23, 0);
lean_inc(x_370);
x_371 = lean_ctor_get(x_23, 1);
lean_inc(x_371);
x_372 = lean_ctor_get(x_23, 2);
lean_inc(x_372);
x_373 = lean_ctor_get(x_23, 3);
lean_inc(x_373);
x_374 = lean_ctor_get(x_23, 4);
lean_inc(x_374);
x_375 = lean_unsigned_to_nat(2u);
x_376 = lean_nat_mul(x_375, x_369);
x_377 = lean_nat_dec_lt(x_370, x_376);
lean_dec(x_376);
if (x_377 == 0)
{
uint8_t x_378; 
lean_dec(x_370);
lean_free_object(x_11);
lean_free_object(x_12);
x_378 = !lean_is_exclusive(x_23);
if (x_378 == 0)
{
lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_379 = lean_ctor_get(x_23, 4);
lean_dec(x_379);
x_380 = lean_ctor_get(x_23, 3);
lean_dec(x_380);
x_381 = lean_ctor_get(x_23, 2);
lean_dec(x_381);
x_382 = lean_ctor_get(x_23, 1);
lean_dec(x_382);
x_383 = lean_ctor_get(x_23, 0);
lean_dec(x_383);
x_384 = lean_unsigned_to_nat(1u);
x_385 = lean_nat_add(x_384, x_19);
lean_dec(x_19);
x_386 = lean_nat_add(x_385, x_356);
lean_dec(x_385);
x_387 = lean_nat_add(x_384, x_369);
lean_dec(x_369);
x_388 = lean_nat_add(x_384, x_356);
lean_dec(x_356);
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_389; lean_object* x_390; uint8_t x_391; 
x_389 = lean_ctor_get(x_373, 0);
lean_inc(x_389);
x_390 = lean_nat_add(x_387, x_389);
lean_dec(x_389);
lean_dec(x_387);
lean_inc(x_22);
lean_ctor_set(x_23, 4, x_373);
lean_ctor_set(x_23, 3, x_22);
lean_ctor_set(x_23, 2, x_21);
lean_ctor_set(x_23, 1, x_20);
lean_ctor_set(x_23, 0, x_390);
x_391 = !lean_is_exclusive(x_22);
if (x_391 == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_392 = lean_ctor_get(x_22, 4);
lean_dec(x_392);
x_393 = lean_ctor_get(x_22, 3);
lean_dec(x_393);
x_394 = lean_ctor_get(x_22, 2);
lean_dec(x_394);
x_395 = lean_ctor_get(x_22, 1);
lean_dec(x_395);
x_396 = lean_ctor_get(x_22, 0);
lean_dec(x_396);
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_397; lean_object* x_398; uint8_t x_399; 
x_397 = lean_ctor_get(x_374, 0);
lean_inc(x_397);
x_398 = lean_nat_add(x_388, x_397);
lean_dec(x_397);
lean_dec(x_388);
lean_inc(x_353);
lean_ctor_set(x_22, 4, x_353);
lean_ctor_set(x_22, 3, x_374);
lean_ctor_set(x_22, 2, x_355);
lean_ctor_set(x_22, 1, x_354);
lean_ctor_set(x_22, 0, x_398);
x_399 = !lean_is_exclusive(x_353);
if (x_399 == 0)
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; 
x_400 = lean_ctor_get(x_353, 4);
lean_dec(x_400);
x_401 = lean_ctor_get(x_353, 3);
lean_dec(x_401);
x_402 = lean_ctor_get(x_353, 2);
lean_dec(x_402);
x_403 = lean_ctor_get(x_353, 1);
lean_dec(x_403);
x_404 = lean_ctor_get(x_353, 0);
lean_dec(x_404);
lean_ctor_set(x_353, 4, x_22);
lean_ctor_set(x_353, 3, x_23);
lean_ctor_set(x_353, 2, x_372);
lean_ctor_set(x_353, 1, x_371);
lean_ctor_set(x_353, 0, x_386);
return x_353;
}
else
{
lean_object* x_405; 
lean_dec(x_353);
x_405 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_405, 0, x_386);
lean_ctor_set(x_405, 1, x_371);
lean_ctor_set(x_405, 2, x_372);
lean_ctor_set(x_405, 3, x_23);
lean_ctor_set(x_405, 4, x_22);
return x_405;
}
}
else
{
lean_object* x_406; lean_object* x_407; uint8_t x_408; 
x_406 = lean_unsigned_to_nat(0u);
x_407 = lean_nat_add(x_388, x_406);
lean_dec(x_388);
lean_inc(x_353);
lean_ctor_set(x_22, 4, x_353);
lean_ctor_set(x_22, 3, x_374);
lean_ctor_set(x_22, 2, x_355);
lean_ctor_set(x_22, 1, x_354);
lean_ctor_set(x_22, 0, x_407);
x_408 = !lean_is_exclusive(x_353);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; 
x_409 = lean_ctor_get(x_353, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_353, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_353, 2);
lean_dec(x_411);
x_412 = lean_ctor_get(x_353, 1);
lean_dec(x_412);
x_413 = lean_ctor_get(x_353, 0);
lean_dec(x_413);
lean_ctor_set(x_353, 4, x_22);
lean_ctor_set(x_353, 3, x_23);
lean_ctor_set(x_353, 2, x_372);
lean_ctor_set(x_353, 1, x_371);
lean_ctor_set(x_353, 0, x_386);
return x_353;
}
else
{
lean_object* x_414; 
lean_dec(x_353);
x_414 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_414, 0, x_386);
lean_ctor_set(x_414, 1, x_371);
lean_ctor_set(x_414, 2, x_372);
lean_ctor_set(x_414, 3, x_23);
lean_ctor_set(x_414, 4, x_22);
return x_414;
}
}
}
else
{
lean_dec(x_22);
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; 
x_415 = lean_ctor_get(x_374, 0);
lean_inc(x_415);
x_416 = lean_nat_add(x_388, x_415);
lean_dec(x_415);
lean_dec(x_388);
lean_inc(x_353);
x_417 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_417, 0, x_416);
lean_ctor_set(x_417, 1, x_354);
lean_ctor_set(x_417, 2, x_355);
lean_ctor_set(x_417, 3, x_374);
lean_ctor_set(x_417, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_418 = x_353;
} else {
 lean_dec_ref(x_353);
 x_418 = lean_box(0);
}
if (lean_is_scalar(x_418)) {
 x_419 = lean_alloc_ctor(0, 5, 0);
} else {
 x_419 = x_418;
}
lean_ctor_set(x_419, 0, x_386);
lean_ctor_set(x_419, 1, x_371);
lean_ctor_set(x_419, 2, x_372);
lean_ctor_set(x_419, 3, x_23);
lean_ctor_set(x_419, 4, x_417);
return x_419;
}
else
{
lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; 
x_420 = lean_unsigned_to_nat(0u);
x_421 = lean_nat_add(x_388, x_420);
lean_dec(x_388);
lean_inc(x_353);
x_422 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_422, 0, x_421);
lean_ctor_set(x_422, 1, x_354);
lean_ctor_set(x_422, 2, x_355);
lean_ctor_set(x_422, 3, x_374);
lean_ctor_set(x_422, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_423 = x_353;
} else {
 lean_dec_ref(x_353);
 x_423 = lean_box(0);
}
if (lean_is_scalar(x_423)) {
 x_424 = lean_alloc_ctor(0, 5, 0);
} else {
 x_424 = x_423;
}
lean_ctor_set(x_424, 0, x_386);
lean_ctor_set(x_424, 1, x_371);
lean_ctor_set(x_424, 2, x_372);
lean_ctor_set(x_424, 3, x_23);
lean_ctor_set(x_424, 4, x_422);
return x_424;
}
}
}
else
{
lean_object* x_425; lean_object* x_426; uint8_t x_427; 
x_425 = lean_unsigned_to_nat(0u);
x_426 = lean_nat_add(x_387, x_425);
lean_dec(x_387);
lean_inc(x_22);
lean_ctor_set(x_23, 4, x_373);
lean_ctor_set(x_23, 3, x_22);
lean_ctor_set(x_23, 2, x_21);
lean_ctor_set(x_23, 1, x_20);
lean_ctor_set(x_23, 0, x_426);
x_427 = !lean_is_exclusive(x_22);
if (x_427 == 0)
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; 
x_428 = lean_ctor_get(x_22, 4);
lean_dec(x_428);
x_429 = lean_ctor_get(x_22, 3);
lean_dec(x_429);
x_430 = lean_ctor_get(x_22, 2);
lean_dec(x_430);
x_431 = lean_ctor_get(x_22, 1);
lean_dec(x_431);
x_432 = lean_ctor_get(x_22, 0);
lean_dec(x_432);
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_433; lean_object* x_434; uint8_t x_435; 
x_433 = lean_ctor_get(x_374, 0);
lean_inc(x_433);
x_434 = lean_nat_add(x_388, x_433);
lean_dec(x_433);
lean_dec(x_388);
lean_inc(x_353);
lean_ctor_set(x_22, 4, x_353);
lean_ctor_set(x_22, 3, x_374);
lean_ctor_set(x_22, 2, x_355);
lean_ctor_set(x_22, 1, x_354);
lean_ctor_set(x_22, 0, x_434);
x_435 = !lean_is_exclusive(x_353);
if (x_435 == 0)
{
lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; lean_object* x_440; 
x_436 = lean_ctor_get(x_353, 4);
lean_dec(x_436);
x_437 = lean_ctor_get(x_353, 3);
lean_dec(x_437);
x_438 = lean_ctor_get(x_353, 2);
lean_dec(x_438);
x_439 = lean_ctor_get(x_353, 1);
lean_dec(x_439);
x_440 = lean_ctor_get(x_353, 0);
lean_dec(x_440);
lean_ctor_set(x_353, 4, x_22);
lean_ctor_set(x_353, 3, x_23);
lean_ctor_set(x_353, 2, x_372);
lean_ctor_set(x_353, 1, x_371);
lean_ctor_set(x_353, 0, x_386);
return x_353;
}
else
{
lean_object* x_441; 
lean_dec(x_353);
x_441 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_441, 0, x_386);
lean_ctor_set(x_441, 1, x_371);
lean_ctor_set(x_441, 2, x_372);
lean_ctor_set(x_441, 3, x_23);
lean_ctor_set(x_441, 4, x_22);
return x_441;
}
}
else
{
lean_object* x_442; uint8_t x_443; 
x_442 = lean_nat_add(x_388, x_425);
lean_dec(x_388);
lean_inc(x_353);
lean_ctor_set(x_22, 4, x_353);
lean_ctor_set(x_22, 3, x_374);
lean_ctor_set(x_22, 2, x_355);
lean_ctor_set(x_22, 1, x_354);
lean_ctor_set(x_22, 0, x_442);
x_443 = !lean_is_exclusive(x_353);
if (x_443 == 0)
{
lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; lean_object* x_448; 
x_444 = lean_ctor_get(x_353, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_353, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_353, 2);
lean_dec(x_446);
x_447 = lean_ctor_get(x_353, 1);
lean_dec(x_447);
x_448 = lean_ctor_get(x_353, 0);
lean_dec(x_448);
lean_ctor_set(x_353, 4, x_22);
lean_ctor_set(x_353, 3, x_23);
lean_ctor_set(x_353, 2, x_372);
lean_ctor_set(x_353, 1, x_371);
lean_ctor_set(x_353, 0, x_386);
return x_353;
}
else
{
lean_object* x_449; 
lean_dec(x_353);
x_449 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_449, 0, x_386);
lean_ctor_set(x_449, 1, x_371);
lean_ctor_set(x_449, 2, x_372);
lean_ctor_set(x_449, 3, x_23);
lean_ctor_set(x_449, 4, x_22);
return x_449;
}
}
}
else
{
lean_dec(x_22);
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; 
x_450 = lean_ctor_get(x_374, 0);
lean_inc(x_450);
x_451 = lean_nat_add(x_388, x_450);
lean_dec(x_450);
lean_dec(x_388);
lean_inc(x_353);
x_452 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_452, 0, x_451);
lean_ctor_set(x_452, 1, x_354);
lean_ctor_set(x_452, 2, x_355);
lean_ctor_set(x_452, 3, x_374);
lean_ctor_set(x_452, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_453 = x_353;
} else {
 lean_dec_ref(x_353);
 x_453 = lean_box(0);
}
if (lean_is_scalar(x_453)) {
 x_454 = lean_alloc_ctor(0, 5, 0);
} else {
 x_454 = x_453;
}
lean_ctor_set(x_454, 0, x_386);
lean_ctor_set(x_454, 1, x_371);
lean_ctor_set(x_454, 2, x_372);
lean_ctor_set(x_454, 3, x_23);
lean_ctor_set(x_454, 4, x_452);
return x_454;
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; 
x_455 = lean_nat_add(x_388, x_425);
lean_dec(x_388);
lean_inc(x_353);
x_456 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_456, 0, x_455);
lean_ctor_set(x_456, 1, x_354);
lean_ctor_set(x_456, 2, x_355);
lean_ctor_set(x_456, 3, x_374);
lean_ctor_set(x_456, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_457 = x_353;
} else {
 lean_dec_ref(x_353);
 x_457 = lean_box(0);
}
if (lean_is_scalar(x_457)) {
 x_458 = lean_alloc_ctor(0, 5, 0);
} else {
 x_458 = x_457;
}
lean_ctor_set(x_458, 0, x_386);
lean_ctor_set(x_458, 1, x_371);
lean_ctor_set(x_458, 2, x_372);
lean_ctor_set(x_458, 3, x_23);
lean_ctor_set(x_458, 4, x_456);
return x_458;
}
}
}
}
else
{
lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; 
lean_dec(x_23);
x_459 = lean_unsigned_to_nat(1u);
x_460 = lean_nat_add(x_459, x_19);
lean_dec(x_19);
x_461 = lean_nat_add(x_460, x_356);
lean_dec(x_460);
x_462 = lean_nat_add(x_459, x_369);
lean_dec(x_369);
x_463 = lean_nat_add(x_459, x_356);
lean_dec(x_356);
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; 
x_464 = lean_ctor_get(x_373, 0);
lean_inc(x_464);
x_465 = lean_nat_add(x_462, x_464);
lean_dec(x_464);
lean_dec(x_462);
lean_inc(x_22);
x_466 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_466, 0, x_465);
lean_ctor_set(x_466, 1, x_20);
lean_ctor_set(x_466, 2, x_21);
lean_ctor_set(x_466, 3, x_22);
lean_ctor_set(x_466, 4, x_373);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_467 = x_22;
} else {
 lean_dec_ref(x_22);
 x_467 = lean_box(0);
}
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; 
x_468 = lean_ctor_get(x_374, 0);
lean_inc(x_468);
x_469 = lean_nat_add(x_463, x_468);
lean_dec(x_468);
lean_dec(x_463);
lean_inc(x_353);
if (lean_is_scalar(x_467)) {
 x_470 = lean_alloc_ctor(0, 5, 0);
} else {
 x_470 = x_467;
}
lean_ctor_set(x_470, 0, x_469);
lean_ctor_set(x_470, 1, x_354);
lean_ctor_set(x_470, 2, x_355);
lean_ctor_set(x_470, 3, x_374);
lean_ctor_set(x_470, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_471 = x_353;
} else {
 lean_dec_ref(x_353);
 x_471 = lean_box(0);
}
if (lean_is_scalar(x_471)) {
 x_472 = lean_alloc_ctor(0, 5, 0);
} else {
 x_472 = x_471;
}
lean_ctor_set(x_472, 0, x_461);
lean_ctor_set(x_472, 1, x_371);
lean_ctor_set(x_472, 2, x_372);
lean_ctor_set(x_472, 3, x_466);
lean_ctor_set(x_472, 4, x_470);
return x_472;
}
else
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(0u);
x_474 = lean_nat_add(x_463, x_473);
lean_dec(x_463);
lean_inc(x_353);
if (lean_is_scalar(x_467)) {
 x_475 = lean_alloc_ctor(0, 5, 0);
} else {
 x_475 = x_467;
}
lean_ctor_set(x_475, 0, x_474);
lean_ctor_set(x_475, 1, x_354);
lean_ctor_set(x_475, 2, x_355);
lean_ctor_set(x_475, 3, x_374);
lean_ctor_set(x_475, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_476 = x_353;
} else {
 lean_dec_ref(x_353);
 x_476 = lean_box(0);
}
if (lean_is_scalar(x_476)) {
 x_477 = lean_alloc_ctor(0, 5, 0);
} else {
 x_477 = x_476;
}
lean_ctor_set(x_477, 0, x_461);
lean_ctor_set(x_477, 1, x_371);
lean_ctor_set(x_477, 2, x_372);
lean_ctor_set(x_477, 3, x_466);
lean_ctor_set(x_477, 4, x_475);
return x_477;
}
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_478 = lean_unsigned_to_nat(0u);
x_479 = lean_nat_add(x_462, x_478);
lean_dec(x_462);
lean_inc(x_22);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_20);
lean_ctor_set(x_480, 2, x_21);
lean_ctor_set(x_480, 3, x_22);
lean_ctor_set(x_480, 4, x_373);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_481 = x_22;
} else {
 lean_dec_ref(x_22);
 x_481 = lean_box(0);
}
if (lean_obj_tag(x_374) == 0)
{
lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; 
x_482 = lean_ctor_get(x_374, 0);
lean_inc(x_482);
x_483 = lean_nat_add(x_463, x_482);
lean_dec(x_482);
lean_dec(x_463);
lean_inc(x_353);
if (lean_is_scalar(x_481)) {
 x_484 = lean_alloc_ctor(0, 5, 0);
} else {
 x_484 = x_481;
}
lean_ctor_set(x_484, 0, x_483);
lean_ctor_set(x_484, 1, x_354);
lean_ctor_set(x_484, 2, x_355);
lean_ctor_set(x_484, 3, x_374);
lean_ctor_set(x_484, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_485 = x_353;
} else {
 lean_dec_ref(x_353);
 x_485 = lean_box(0);
}
if (lean_is_scalar(x_485)) {
 x_486 = lean_alloc_ctor(0, 5, 0);
} else {
 x_486 = x_485;
}
lean_ctor_set(x_486, 0, x_461);
lean_ctor_set(x_486, 1, x_371);
lean_ctor_set(x_486, 2, x_372);
lean_ctor_set(x_486, 3, x_480);
lean_ctor_set(x_486, 4, x_484);
return x_486;
}
else
{
lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; 
x_487 = lean_nat_add(x_463, x_478);
lean_dec(x_463);
lean_inc(x_353);
if (lean_is_scalar(x_481)) {
 x_488 = lean_alloc_ctor(0, 5, 0);
} else {
 x_488 = x_481;
}
lean_ctor_set(x_488, 0, x_487);
lean_ctor_set(x_488, 1, x_354);
lean_ctor_set(x_488, 2, x_355);
lean_ctor_set(x_488, 3, x_374);
lean_ctor_set(x_488, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_489 = x_353;
} else {
 lean_dec_ref(x_353);
 x_489 = lean_box(0);
}
if (lean_is_scalar(x_489)) {
 x_490 = lean_alloc_ctor(0, 5, 0);
} else {
 x_490 = x_489;
}
lean_ctor_set(x_490, 0, x_461);
lean_ctor_set(x_490, 1, x_371);
lean_ctor_set(x_490, 2, x_372);
lean_ctor_set(x_490, 3, x_480);
lean_ctor_set(x_490, 4, x_488);
return x_490;
}
}
}
}
else
{
lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; 
lean_dec(x_374);
lean_dec(x_373);
lean_dec(x_372);
lean_dec(x_371);
lean_dec(x_369);
x_491 = lean_unsigned_to_nat(1u);
x_492 = lean_nat_add(x_491, x_19);
lean_dec(x_19);
x_493 = lean_nat_add(x_492, x_356);
lean_dec(x_492);
x_494 = lean_nat_add(x_491, x_356);
lean_dec(x_356);
x_495 = lean_nat_add(x_494, x_370);
lean_dec(x_370);
lean_dec(x_494);
lean_ctor_set(x_12, 4, x_353);
lean_ctor_set(x_12, 3, x_23);
lean_ctor_set(x_12, 2, x_355);
lean_ctor_set(x_12, 1, x_354);
lean_ctor_set(x_12, 0, x_495);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 0, x_493);
return x_11;
}
}
else
{
lean_object* x_496; lean_object* x_497; 
lean_free_object(x_11);
lean_dec(x_356);
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_free_object(x_12);
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_496 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_497 = l_panic___at_Std_DTreeMap_Raw_alter___spec__4___rarg(x_496);
return x_497;
}
}
else
{
lean_object* x_498; lean_object* x_499; 
lean_free_object(x_11);
lean_dec(x_356);
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_free_object(x_12);
lean_dec(x_23);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_498 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_499 = l_panic___at_Std_DTreeMap_Raw_alter___spec__5___rarg(x_498);
return x_499;
}
}
else
{
lean_dec(x_11);
if (lean_obj_tag(x_22) == 0)
{
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; uint8_t x_508; 
x_500 = lean_ctor_get(x_22, 0);
lean_inc(x_500);
x_501 = lean_ctor_get(x_23, 0);
lean_inc(x_501);
x_502 = lean_ctor_get(x_23, 1);
lean_inc(x_502);
x_503 = lean_ctor_get(x_23, 2);
lean_inc(x_503);
x_504 = lean_ctor_get(x_23, 3);
lean_inc(x_504);
x_505 = lean_ctor_get(x_23, 4);
lean_inc(x_505);
x_506 = lean_unsigned_to_nat(2u);
x_507 = lean_nat_mul(x_506, x_500);
x_508 = lean_nat_dec_lt(x_501, x_507);
lean_dec(x_507);
if (x_508 == 0)
{
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_dec(x_501);
lean_free_object(x_12);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 lean_ctor_release(x_23, 2);
 lean_ctor_release(x_23, 3);
 lean_ctor_release(x_23, 4);
 x_509 = x_23;
} else {
 lean_dec_ref(x_23);
 x_509 = lean_box(0);
}
x_510 = lean_unsigned_to_nat(1u);
x_511 = lean_nat_add(x_510, x_19);
lean_dec(x_19);
x_512 = lean_nat_add(x_511, x_356);
lean_dec(x_511);
x_513 = lean_nat_add(x_510, x_500);
lean_dec(x_500);
x_514 = lean_nat_add(x_510, x_356);
lean_dec(x_356);
if (lean_obj_tag(x_504) == 0)
{
lean_object* x_515; lean_object* x_516; lean_object* x_517; lean_object* x_518; 
x_515 = lean_ctor_get(x_504, 0);
lean_inc(x_515);
x_516 = lean_nat_add(x_513, x_515);
lean_dec(x_515);
lean_dec(x_513);
lean_inc(x_22);
if (lean_is_scalar(x_509)) {
 x_517 = lean_alloc_ctor(0, 5, 0);
} else {
 x_517 = x_509;
}
lean_ctor_set(x_517, 0, x_516);
lean_ctor_set(x_517, 1, x_20);
lean_ctor_set(x_517, 2, x_21);
lean_ctor_set(x_517, 3, x_22);
lean_ctor_set(x_517, 4, x_504);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_518 = x_22;
} else {
 lean_dec_ref(x_22);
 x_518 = lean_box(0);
}
if (lean_obj_tag(x_505) == 0)
{
lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; 
x_519 = lean_ctor_get(x_505, 0);
lean_inc(x_519);
x_520 = lean_nat_add(x_514, x_519);
lean_dec(x_519);
lean_dec(x_514);
lean_inc(x_353);
if (lean_is_scalar(x_518)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_518;
}
lean_ctor_set(x_521, 0, x_520);
lean_ctor_set(x_521, 1, x_354);
lean_ctor_set(x_521, 2, x_355);
lean_ctor_set(x_521, 3, x_505);
lean_ctor_set(x_521, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_522 = x_353;
} else {
 lean_dec_ref(x_353);
 x_522 = lean_box(0);
}
if (lean_is_scalar(x_522)) {
 x_523 = lean_alloc_ctor(0, 5, 0);
} else {
 x_523 = x_522;
}
lean_ctor_set(x_523, 0, x_512);
lean_ctor_set(x_523, 1, x_502);
lean_ctor_set(x_523, 2, x_503);
lean_ctor_set(x_523, 3, x_517);
lean_ctor_set(x_523, 4, x_521);
return x_523;
}
else
{
lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; lean_object* x_528; 
x_524 = lean_unsigned_to_nat(0u);
x_525 = lean_nat_add(x_514, x_524);
lean_dec(x_514);
lean_inc(x_353);
if (lean_is_scalar(x_518)) {
 x_526 = lean_alloc_ctor(0, 5, 0);
} else {
 x_526 = x_518;
}
lean_ctor_set(x_526, 0, x_525);
lean_ctor_set(x_526, 1, x_354);
lean_ctor_set(x_526, 2, x_355);
lean_ctor_set(x_526, 3, x_505);
lean_ctor_set(x_526, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_527 = x_353;
} else {
 lean_dec_ref(x_353);
 x_527 = lean_box(0);
}
if (lean_is_scalar(x_527)) {
 x_528 = lean_alloc_ctor(0, 5, 0);
} else {
 x_528 = x_527;
}
lean_ctor_set(x_528, 0, x_512);
lean_ctor_set(x_528, 1, x_502);
lean_ctor_set(x_528, 2, x_503);
lean_ctor_set(x_528, 3, x_517);
lean_ctor_set(x_528, 4, x_526);
return x_528;
}
}
else
{
lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; 
x_529 = lean_unsigned_to_nat(0u);
x_530 = lean_nat_add(x_513, x_529);
lean_dec(x_513);
lean_inc(x_22);
if (lean_is_scalar(x_509)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_509;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_20);
lean_ctor_set(x_531, 2, x_21);
lean_ctor_set(x_531, 3, x_22);
lean_ctor_set(x_531, 4, x_504);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_532 = x_22;
} else {
 lean_dec_ref(x_22);
 x_532 = lean_box(0);
}
if (lean_obj_tag(x_505) == 0)
{
lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; lean_object* x_537; 
x_533 = lean_ctor_get(x_505, 0);
lean_inc(x_533);
x_534 = lean_nat_add(x_514, x_533);
lean_dec(x_533);
lean_dec(x_514);
lean_inc(x_353);
if (lean_is_scalar(x_532)) {
 x_535 = lean_alloc_ctor(0, 5, 0);
} else {
 x_535 = x_532;
}
lean_ctor_set(x_535, 0, x_534);
lean_ctor_set(x_535, 1, x_354);
lean_ctor_set(x_535, 2, x_355);
lean_ctor_set(x_535, 3, x_505);
lean_ctor_set(x_535, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_536 = x_353;
} else {
 lean_dec_ref(x_353);
 x_536 = lean_box(0);
}
if (lean_is_scalar(x_536)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_536;
}
lean_ctor_set(x_537, 0, x_512);
lean_ctor_set(x_537, 1, x_502);
lean_ctor_set(x_537, 2, x_503);
lean_ctor_set(x_537, 3, x_531);
lean_ctor_set(x_537, 4, x_535);
return x_537;
}
else
{
lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; 
x_538 = lean_nat_add(x_514, x_529);
lean_dec(x_514);
lean_inc(x_353);
if (lean_is_scalar(x_532)) {
 x_539 = lean_alloc_ctor(0, 5, 0);
} else {
 x_539 = x_532;
}
lean_ctor_set(x_539, 0, x_538);
lean_ctor_set(x_539, 1, x_354);
lean_ctor_set(x_539, 2, x_355);
lean_ctor_set(x_539, 3, x_505);
lean_ctor_set(x_539, 4, x_353);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_540 = x_353;
} else {
 lean_dec_ref(x_353);
 x_540 = lean_box(0);
}
if (lean_is_scalar(x_540)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_540;
}
lean_ctor_set(x_541, 0, x_512);
lean_ctor_set(x_541, 1, x_502);
lean_ctor_set(x_541, 2, x_503);
lean_ctor_set(x_541, 3, x_531);
lean_ctor_set(x_541, 4, x_539);
return x_541;
}
}
}
else
{
lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; 
lean_dec(x_505);
lean_dec(x_504);
lean_dec(x_503);
lean_dec(x_502);
lean_dec(x_500);
x_542 = lean_unsigned_to_nat(1u);
x_543 = lean_nat_add(x_542, x_19);
lean_dec(x_19);
x_544 = lean_nat_add(x_543, x_356);
lean_dec(x_543);
x_545 = lean_nat_add(x_542, x_356);
lean_dec(x_356);
x_546 = lean_nat_add(x_545, x_501);
lean_dec(x_501);
lean_dec(x_545);
lean_ctor_set(x_12, 4, x_353);
lean_ctor_set(x_12, 3, x_23);
lean_ctor_set(x_12, 2, x_355);
lean_ctor_set(x_12, 1, x_354);
lean_ctor_set(x_12, 0, x_546);
x_547 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_547, 0, x_544);
lean_ctor_set(x_547, 1, x_20);
lean_ctor_set(x_547, 2, x_21);
lean_ctor_set(x_547, 3, x_22);
lean_ctor_set(x_547, 4, x_12);
return x_547;
}
}
else
{
lean_object* x_548; lean_object* x_549; 
lean_dec(x_356);
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_free_object(x_12);
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_548 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_549 = l_panic___at_Std_DTreeMap_Raw_alter___spec__4___rarg(x_548);
return x_549;
}
}
else
{
lean_object* x_550; lean_object* x_551; 
lean_dec(x_356);
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_free_object(x_12);
lean_dec(x_23);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_550 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_551 = l_panic___at_Std_DTreeMap_Raw_alter___spec__5___rarg(x_550);
return x_551;
}
}
}
}
else
{
if (lean_obj_tag(x_22) == 0)
{
uint8_t x_552; 
x_552 = !lean_is_exclusive(x_11);
if (x_552 == 0)
{
lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; 
x_553 = lean_ctor_get(x_11, 4);
lean_dec(x_553);
x_554 = lean_ctor_get(x_11, 3);
lean_dec(x_554);
x_555 = lean_ctor_get(x_11, 2);
lean_dec(x_555);
x_556 = lean_ctor_get(x_11, 1);
lean_dec(x_556);
x_557 = lean_ctor_get(x_11, 0);
lean_dec(x_557);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; 
x_558 = lean_ctor_get(x_352, 0);
lean_inc(x_558);
x_559 = lean_ctor_get(x_352, 1);
lean_inc(x_559);
lean_dec(x_352);
x_560 = lean_ctor_get(x_23, 0);
lean_inc(x_560);
x_561 = lean_unsigned_to_nat(1u);
x_562 = lean_nat_add(x_561, x_19);
lean_dec(x_19);
x_563 = lean_nat_add(x_561, x_560);
lean_dec(x_560);
x_564 = lean_box(1);
lean_ctor_set(x_12, 4, x_564);
lean_ctor_set(x_12, 3, x_23);
lean_ctor_set(x_12, 2, x_559);
lean_ctor_set(x_12, 1, x_558);
lean_ctor_set(x_12, 0, x_563);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 0, x_562);
return x_11;
}
else
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; 
lean_dec(x_19);
x_565 = lean_ctor_get(x_352, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_352, 1);
lean_inc(x_566);
lean_dec(x_352);
x_567 = lean_box(1);
x_568 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_12, 4, x_567);
lean_ctor_set(x_12, 3, x_567);
lean_ctor_set(x_12, 2, x_566);
lean_ctor_set(x_12, 1, x_565);
lean_ctor_set(x_12, 0, x_568);
x_569 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 0, x_569);
return x_11;
}
}
else
{
lean_dec(x_11);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; 
x_570 = lean_ctor_get(x_352, 0);
lean_inc(x_570);
x_571 = lean_ctor_get(x_352, 1);
lean_inc(x_571);
lean_dec(x_352);
x_572 = lean_ctor_get(x_23, 0);
lean_inc(x_572);
x_573 = lean_unsigned_to_nat(1u);
x_574 = lean_nat_add(x_573, x_19);
lean_dec(x_19);
x_575 = lean_nat_add(x_573, x_572);
lean_dec(x_572);
x_576 = lean_box(1);
lean_ctor_set(x_12, 4, x_576);
lean_ctor_set(x_12, 3, x_23);
lean_ctor_set(x_12, 2, x_571);
lean_ctor_set(x_12, 1, x_570);
lean_ctor_set(x_12, 0, x_575);
x_577 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_577, 0, x_574);
lean_ctor_set(x_577, 1, x_20);
lean_ctor_set(x_577, 2, x_21);
lean_ctor_set(x_577, 3, x_22);
lean_ctor_set(x_577, 4, x_12);
return x_577;
}
else
{
lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
lean_dec(x_19);
x_578 = lean_ctor_get(x_352, 0);
lean_inc(x_578);
x_579 = lean_ctor_get(x_352, 1);
lean_inc(x_579);
lean_dec(x_352);
x_580 = lean_box(1);
x_581 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_12, 4, x_580);
lean_ctor_set(x_12, 3, x_580);
lean_ctor_set(x_12, 2, x_579);
lean_ctor_set(x_12, 1, x_578);
lean_ctor_set(x_12, 0, x_581);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_20);
lean_ctor_set(x_583, 2, x_21);
lean_ctor_set(x_583, 3, x_22);
lean_ctor_set(x_583, 4, x_12);
return x_583;
}
}
}
else
{
lean_dec(x_19);
if (lean_obj_tag(x_23) == 0)
{
uint8_t x_584; 
x_584 = !lean_is_exclusive(x_11);
if (x_584 == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; uint8_t x_592; 
x_585 = lean_ctor_get(x_11, 4);
lean_dec(x_585);
x_586 = lean_ctor_get(x_11, 3);
lean_dec(x_586);
x_587 = lean_ctor_get(x_11, 2);
lean_dec(x_587);
x_588 = lean_ctor_get(x_11, 1);
lean_dec(x_588);
x_589 = lean_ctor_get(x_11, 0);
lean_dec(x_589);
x_590 = lean_ctor_get(x_352, 0);
lean_inc(x_590);
x_591 = lean_ctor_get(x_352, 1);
lean_inc(x_591);
lean_dec(x_352);
x_592 = !lean_is_exclusive(x_23);
if (x_592 == 0)
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_593 = lean_ctor_get(x_23, 1);
x_594 = lean_ctor_get(x_23, 2);
x_595 = lean_ctor_get(x_23, 4);
lean_dec(x_595);
x_596 = lean_ctor_get(x_23, 3);
lean_dec(x_596);
x_597 = lean_ctor_get(x_23, 0);
lean_dec(x_597);
x_598 = lean_box(1);
x_599 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_23, 4, x_598);
lean_ctor_set(x_23, 3, x_598);
lean_ctor_set(x_23, 2, x_21);
lean_ctor_set(x_23, 1, x_20);
lean_ctor_set(x_23, 0, x_599);
lean_ctor_set(x_12, 4, x_598);
lean_ctor_set(x_12, 3, x_598);
lean_ctor_set(x_12, 2, x_591);
lean_ctor_set(x_12, 1, x_590);
lean_ctor_set(x_12, 0, x_599);
x_600 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 3, x_23);
lean_ctor_set(x_11, 2, x_594);
lean_ctor_set(x_11, 1, x_593);
lean_ctor_set(x_11, 0, x_600);
return x_11;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; lean_object* x_606; 
x_601 = lean_ctor_get(x_23, 1);
x_602 = lean_ctor_get(x_23, 2);
lean_inc(x_602);
lean_inc(x_601);
lean_dec(x_23);
x_603 = lean_box(1);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_605, 0, x_604);
lean_ctor_set(x_605, 1, x_20);
lean_ctor_set(x_605, 2, x_21);
lean_ctor_set(x_605, 3, x_603);
lean_ctor_set(x_605, 4, x_603);
lean_ctor_set(x_12, 4, x_603);
lean_ctor_set(x_12, 3, x_603);
lean_ctor_set(x_12, 2, x_591);
lean_ctor_set(x_12, 1, x_590);
lean_ctor_set(x_12, 0, x_604);
x_606 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_11, 4, x_12);
lean_ctor_set(x_11, 3, x_605);
lean_ctor_set(x_11, 2, x_602);
lean_ctor_set(x_11, 1, x_601);
lean_ctor_set(x_11, 0, x_606);
return x_11;
}
}
else
{
lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; 
lean_dec(x_11);
x_607 = lean_ctor_get(x_352, 0);
lean_inc(x_607);
x_608 = lean_ctor_get(x_352, 1);
lean_inc(x_608);
lean_dec(x_352);
x_609 = lean_ctor_get(x_23, 1);
lean_inc(x_609);
x_610 = lean_ctor_get(x_23, 2);
lean_inc(x_610);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 lean_ctor_release(x_23, 2);
 lean_ctor_release(x_23, 3);
 lean_ctor_release(x_23, 4);
 x_611 = x_23;
} else {
 lean_dec_ref(x_23);
 x_611 = lean_box(0);
}
x_612 = lean_box(1);
x_613 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_611)) {
 x_614 = lean_alloc_ctor(0, 5, 0);
} else {
 x_614 = x_611;
}
lean_ctor_set(x_614, 0, x_613);
lean_ctor_set(x_614, 1, x_20);
lean_ctor_set(x_614, 2, x_21);
lean_ctor_set(x_614, 3, x_612);
lean_ctor_set(x_614, 4, x_612);
lean_ctor_set(x_12, 4, x_612);
lean_ctor_set(x_12, 3, x_612);
lean_ctor_set(x_12, 2, x_608);
lean_ctor_set(x_12, 1, x_607);
lean_ctor_set(x_12, 0, x_613);
x_615 = lean_unsigned_to_nat(3u);
x_616 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_616, 0, x_615);
lean_ctor_set(x_616, 1, x_609);
lean_ctor_set(x_616, 2, x_610);
lean_ctor_set(x_616, 3, x_614);
lean_ctor_set(x_616, 4, x_12);
return x_616;
}
}
else
{
lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; 
lean_dec(x_21);
lean_dec(x_20);
x_617 = lean_ctor_get(x_352, 0);
lean_inc(x_617);
x_618 = lean_ctor_get(x_352, 1);
lean_inc(x_618);
lean_dec(x_352);
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_12, 4, x_619);
lean_ctor_set(x_12, 3, x_11);
lean_ctor_set(x_12, 2, x_618);
lean_ctor_set(x_12, 1, x_617);
lean_ctor_set(x_12, 0, x_620);
return x_12;
}
}
}
}
else
{
lean_object* x_621; lean_object* x_622; 
lean_dec(x_12);
x_621 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_25, x_26, x_27, x_28);
x_622 = lean_ctor_get(x_621, 2);
lean_inc(x_622);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; uint8_t x_628; 
x_623 = lean_ctor_get(x_621, 0);
lean_inc(x_623);
x_624 = lean_ctor_get(x_621, 1);
lean_inc(x_624);
lean_dec(x_621);
x_625 = lean_ctor_get(x_622, 0);
lean_inc(x_625);
x_626 = lean_unsigned_to_nat(3u);
x_627 = lean_nat_mul(x_626, x_625);
x_628 = lean_nat_dec_lt(x_627, x_19);
lean_dec(x_627);
if (x_628 == 0)
{
lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_23);
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_20);
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_19);
lean_dec(x_19);
x_631 = lean_nat_add(x_630, x_625);
lean_dec(x_625);
lean_dec(x_630);
x_632 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_632, 0, x_631);
lean_ctor_set(x_632, 1, x_623);
lean_ctor_set(x_632, 2, x_624);
lean_ctor_set(x_632, 3, x_11);
lean_ctor_set(x_632, 4, x_622);
return x_632;
}
else
{
lean_object* x_633; 
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_633 = x_11;
} else {
 lean_dec_ref(x_11);
 x_633 = lean_box(0);
}
if (lean_obj_tag(x_22) == 0)
{
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; uint8_t x_642; 
x_634 = lean_ctor_get(x_22, 0);
lean_inc(x_634);
x_635 = lean_ctor_get(x_23, 0);
lean_inc(x_635);
x_636 = lean_ctor_get(x_23, 1);
lean_inc(x_636);
x_637 = lean_ctor_get(x_23, 2);
lean_inc(x_637);
x_638 = lean_ctor_get(x_23, 3);
lean_inc(x_638);
x_639 = lean_ctor_get(x_23, 4);
lean_inc(x_639);
x_640 = lean_unsigned_to_nat(2u);
x_641 = lean_nat_mul(x_640, x_634);
x_642 = lean_nat_dec_lt(x_635, x_641);
lean_dec(x_641);
if (x_642 == 0)
{
lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
lean_dec(x_635);
lean_dec(x_633);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 lean_ctor_release(x_23, 2);
 lean_ctor_release(x_23, 3);
 lean_ctor_release(x_23, 4);
 x_643 = x_23;
} else {
 lean_dec_ref(x_23);
 x_643 = lean_box(0);
}
x_644 = lean_unsigned_to_nat(1u);
x_645 = lean_nat_add(x_644, x_19);
lean_dec(x_19);
x_646 = lean_nat_add(x_645, x_625);
lean_dec(x_645);
x_647 = lean_nat_add(x_644, x_634);
lean_dec(x_634);
x_648 = lean_nat_add(x_644, x_625);
lean_dec(x_625);
if (lean_obj_tag(x_638) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_638, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_647, x_649);
lean_dec(x_649);
lean_dec(x_647);
lean_inc(x_22);
if (lean_is_scalar(x_643)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_643;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_20);
lean_ctor_set(x_651, 2, x_21);
lean_ctor_set(x_651, 3, x_22);
lean_ctor_set(x_651, 4, x_638);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_652 = x_22;
} else {
 lean_dec_ref(x_22);
 x_652 = lean_box(0);
}
if (lean_obj_tag(x_639) == 0)
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; 
x_653 = lean_ctor_get(x_639, 0);
lean_inc(x_653);
x_654 = lean_nat_add(x_648, x_653);
lean_dec(x_653);
lean_dec(x_648);
lean_inc(x_622);
if (lean_is_scalar(x_652)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_652;
}
lean_ctor_set(x_655, 0, x_654);
lean_ctor_set(x_655, 1, x_623);
lean_ctor_set(x_655, 2, x_624);
lean_ctor_set(x_655, 3, x_639);
lean_ctor_set(x_655, 4, x_622);
if (lean_is_exclusive(x_622)) {
 lean_ctor_release(x_622, 0);
 lean_ctor_release(x_622, 1);
 lean_ctor_release(x_622, 2);
 lean_ctor_release(x_622, 3);
 lean_ctor_release(x_622, 4);
 x_656 = x_622;
} else {
 lean_dec_ref(x_622);
 x_656 = lean_box(0);
}
if (lean_is_scalar(x_656)) {
 x_657 = lean_alloc_ctor(0, 5, 0);
} else {
 x_657 = x_656;
}
lean_ctor_set(x_657, 0, x_646);
lean_ctor_set(x_657, 1, x_636);
lean_ctor_set(x_657, 2, x_637);
lean_ctor_set(x_657, 3, x_651);
lean_ctor_set(x_657, 4, x_655);
return x_657;
}
else
{
lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
x_658 = lean_unsigned_to_nat(0u);
x_659 = lean_nat_add(x_648, x_658);
lean_dec(x_648);
lean_inc(x_622);
if (lean_is_scalar(x_652)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_652;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_623);
lean_ctor_set(x_660, 2, x_624);
lean_ctor_set(x_660, 3, x_639);
lean_ctor_set(x_660, 4, x_622);
if (lean_is_exclusive(x_622)) {
 lean_ctor_release(x_622, 0);
 lean_ctor_release(x_622, 1);
 lean_ctor_release(x_622, 2);
 lean_ctor_release(x_622, 3);
 lean_ctor_release(x_622, 4);
 x_661 = x_622;
} else {
 lean_dec_ref(x_622);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_646);
lean_ctor_set(x_662, 1, x_636);
lean_ctor_set(x_662, 2, x_637);
lean_ctor_set(x_662, 3, x_651);
lean_ctor_set(x_662, 4, x_660);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; 
x_663 = lean_unsigned_to_nat(0u);
x_664 = lean_nat_add(x_647, x_663);
lean_dec(x_647);
lean_inc(x_22);
if (lean_is_scalar(x_643)) {
 x_665 = lean_alloc_ctor(0, 5, 0);
} else {
 x_665 = x_643;
}
lean_ctor_set(x_665, 0, x_664);
lean_ctor_set(x_665, 1, x_20);
lean_ctor_set(x_665, 2, x_21);
lean_ctor_set(x_665, 3, x_22);
lean_ctor_set(x_665, 4, x_638);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_666 = x_22;
} else {
 lean_dec_ref(x_22);
 x_666 = lean_box(0);
}
if (lean_obj_tag(x_639) == 0)
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_639, 0);
lean_inc(x_667);
x_668 = lean_nat_add(x_648, x_667);
lean_dec(x_667);
lean_dec(x_648);
lean_inc(x_622);
if (lean_is_scalar(x_666)) {
 x_669 = lean_alloc_ctor(0, 5, 0);
} else {
 x_669 = x_666;
}
lean_ctor_set(x_669, 0, x_668);
lean_ctor_set(x_669, 1, x_623);
lean_ctor_set(x_669, 2, x_624);
lean_ctor_set(x_669, 3, x_639);
lean_ctor_set(x_669, 4, x_622);
if (lean_is_exclusive(x_622)) {
 lean_ctor_release(x_622, 0);
 lean_ctor_release(x_622, 1);
 lean_ctor_release(x_622, 2);
 lean_ctor_release(x_622, 3);
 lean_ctor_release(x_622, 4);
 x_670 = x_622;
} else {
 lean_dec_ref(x_622);
 x_670 = lean_box(0);
}
if (lean_is_scalar(x_670)) {
 x_671 = lean_alloc_ctor(0, 5, 0);
} else {
 x_671 = x_670;
}
lean_ctor_set(x_671, 0, x_646);
lean_ctor_set(x_671, 1, x_636);
lean_ctor_set(x_671, 2, x_637);
lean_ctor_set(x_671, 3, x_665);
lean_ctor_set(x_671, 4, x_669);
return x_671;
}
else
{
lean_object* x_672; lean_object* x_673; lean_object* x_674; lean_object* x_675; 
x_672 = lean_nat_add(x_648, x_663);
lean_dec(x_648);
lean_inc(x_622);
if (lean_is_scalar(x_666)) {
 x_673 = lean_alloc_ctor(0, 5, 0);
} else {
 x_673 = x_666;
}
lean_ctor_set(x_673, 0, x_672);
lean_ctor_set(x_673, 1, x_623);
lean_ctor_set(x_673, 2, x_624);
lean_ctor_set(x_673, 3, x_639);
lean_ctor_set(x_673, 4, x_622);
if (lean_is_exclusive(x_622)) {
 lean_ctor_release(x_622, 0);
 lean_ctor_release(x_622, 1);
 lean_ctor_release(x_622, 2);
 lean_ctor_release(x_622, 3);
 lean_ctor_release(x_622, 4);
 x_674 = x_622;
} else {
 lean_dec_ref(x_622);
 x_674 = lean_box(0);
}
if (lean_is_scalar(x_674)) {
 x_675 = lean_alloc_ctor(0, 5, 0);
} else {
 x_675 = x_674;
}
lean_ctor_set(x_675, 0, x_646);
lean_ctor_set(x_675, 1, x_636);
lean_ctor_set(x_675, 2, x_637);
lean_ctor_set(x_675, 3, x_665);
lean_ctor_set(x_675, 4, x_673);
return x_675;
}
}
}
else
{
lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; 
lean_dec(x_639);
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_636);
lean_dec(x_634);
x_676 = lean_unsigned_to_nat(1u);
x_677 = lean_nat_add(x_676, x_19);
lean_dec(x_19);
x_678 = lean_nat_add(x_677, x_625);
lean_dec(x_677);
x_679 = lean_nat_add(x_676, x_625);
lean_dec(x_625);
x_680 = lean_nat_add(x_679, x_635);
lean_dec(x_635);
lean_dec(x_679);
x_681 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_681, 0, x_680);
lean_ctor_set(x_681, 1, x_623);
lean_ctor_set(x_681, 2, x_624);
lean_ctor_set(x_681, 3, x_23);
lean_ctor_set(x_681, 4, x_622);
if (lean_is_scalar(x_633)) {
 x_682 = lean_alloc_ctor(0, 5, 0);
} else {
 x_682 = x_633;
}
lean_ctor_set(x_682, 0, x_678);
lean_ctor_set(x_682, 1, x_20);
lean_ctor_set(x_682, 2, x_21);
lean_ctor_set(x_682, 3, x_22);
lean_ctor_set(x_682, 4, x_681);
return x_682;
}
}
else
{
lean_object* x_683; lean_object* x_684; 
lean_dec(x_633);
lean_dec(x_625);
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_683 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_684 = l_panic___at_Std_DTreeMap_Raw_alter___spec__4___rarg(x_683);
return x_684;
}
}
else
{
lean_object* x_685; lean_object* x_686; 
lean_dec(x_633);
lean_dec(x_625);
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_23);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_685 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_686 = l_panic___at_Std_DTreeMap_Raw_alter___spec__5___rarg(x_685);
return x_686;
}
}
}
else
{
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_687; 
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_687 = x_11;
} else {
 lean_dec_ref(x_11);
 x_687 = lean_box(0);
}
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_688 = lean_ctor_get(x_621, 0);
lean_inc(x_688);
x_689 = lean_ctor_get(x_621, 1);
lean_inc(x_689);
lean_dec(x_621);
x_690 = lean_ctor_get(x_23, 0);
lean_inc(x_690);
x_691 = lean_unsigned_to_nat(1u);
x_692 = lean_nat_add(x_691, x_19);
lean_dec(x_19);
x_693 = lean_nat_add(x_691, x_690);
lean_dec(x_690);
x_694 = lean_box(1);
x_695 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_695, 0, x_693);
lean_ctor_set(x_695, 1, x_688);
lean_ctor_set(x_695, 2, x_689);
lean_ctor_set(x_695, 3, x_23);
lean_ctor_set(x_695, 4, x_694);
if (lean_is_scalar(x_687)) {
 x_696 = lean_alloc_ctor(0, 5, 0);
} else {
 x_696 = x_687;
}
lean_ctor_set(x_696, 0, x_692);
lean_ctor_set(x_696, 1, x_20);
lean_ctor_set(x_696, 2, x_21);
lean_ctor_set(x_696, 3, x_22);
lean_ctor_set(x_696, 4, x_695);
return x_696;
}
else
{
lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; 
lean_dec(x_19);
x_697 = lean_ctor_get(x_621, 0);
lean_inc(x_697);
x_698 = lean_ctor_get(x_621, 1);
lean_inc(x_698);
lean_dec(x_621);
x_699 = lean_box(1);
x_700 = lean_unsigned_to_nat(1u);
x_701 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_701, 0, x_700);
lean_ctor_set(x_701, 1, x_697);
lean_ctor_set(x_701, 2, x_698);
lean_ctor_set(x_701, 3, x_699);
lean_ctor_set(x_701, 4, x_699);
x_702 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_687)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_687;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_20);
lean_ctor_set(x_703, 2, x_21);
lean_ctor_set(x_703, 3, x_22);
lean_ctor_set(x_703, 4, x_701);
return x_703;
}
}
else
{
lean_dec(x_19);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; lean_object* x_715; 
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_704 = x_11;
} else {
 lean_dec_ref(x_11);
 x_704 = lean_box(0);
}
x_705 = lean_ctor_get(x_621, 0);
lean_inc(x_705);
x_706 = lean_ctor_get(x_621, 1);
lean_inc(x_706);
lean_dec(x_621);
x_707 = lean_ctor_get(x_23, 1);
lean_inc(x_707);
x_708 = lean_ctor_get(x_23, 2);
lean_inc(x_708);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 lean_ctor_release(x_23, 1);
 lean_ctor_release(x_23, 2);
 lean_ctor_release(x_23, 3);
 lean_ctor_release(x_23, 4);
 x_709 = x_23;
} else {
 lean_dec_ref(x_23);
 x_709 = lean_box(0);
}
x_710 = lean_box(1);
x_711 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_709)) {
 x_712 = lean_alloc_ctor(0, 5, 0);
} else {
 x_712 = x_709;
}
lean_ctor_set(x_712, 0, x_711);
lean_ctor_set(x_712, 1, x_20);
lean_ctor_set(x_712, 2, x_21);
lean_ctor_set(x_712, 3, x_710);
lean_ctor_set(x_712, 4, x_710);
x_713 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_713, 0, x_711);
lean_ctor_set(x_713, 1, x_705);
lean_ctor_set(x_713, 2, x_706);
lean_ctor_set(x_713, 3, x_710);
lean_ctor_set(x_713, 4, x_710);
x_714 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_704)) {
 x_715 = lean_alloc_ctor(0, 5, 0);
} else {
 x_715 = x_704;
}
lean_ctor_set(x_715, 0, x_714);
lean_ctor_set(x_715, 1, x_707);
lean_ctor_set(x_715, 2, x_708);
lean_ctor_set(x_715, 3, x_712);
lean_ctor_set(x_715, 4, x_713);
return x_715;
}
else
{
lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; 
lean_dec(x_21);
lean_dec(x_20);
x_716 = lean_ctor_get(x_621, 0);
lean_inc(x_716);
x_717 = lean_ctor_get(x_621, 1);
lean_inc(x_717);
lean_dec(x_621);
x_718 = lean_box(1);
x_719 = lean_unsigned_to_nat(2u);
x_720 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_720, 0, x_719);
lean_ctor_set(x_720, 1, x_716);
lean_ctor_set(x_720, 2, x_717);
lean_ctor_set(x_720, 3, x_11);
lean_ctor_set(x_720, 4, x_718);
return x_720;
}
}
}
}
}
}
else
{
return x_11;
}
}
else
{
return x_12;
}
}
else
{
lean_object* x_721; 
x_721 = lean_ctor_get(x_18, 0);
lean_inc(x_721);
lean_dec(x_18);
lean_ctor_set(x_6, 2, x_721);
lean_ctor_set(x_6, 1, x_5);
return x_6;
}
}
default: 
{
lean_object* x_722; lean_object* x_723; 
lean_free_object(x_6);
lean_dec(x_8);
x_722 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_12);
x_723 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_9, x_10, x_11, x_722);
return x_723;
}
}
}
else
{
lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; uint8_t x_730; 
x_724 = lean_ctor_get(x_6, 0);
x_725 = lean_ctor_get(x_6, 1);
x_726 = lean_ctor_get(x_6, 2);
x_727 = lean_ctor_get(x_6, 3);
x_728 = lean_ctor_get(x_6, 4);
lean_inc(x_728);
lean_inc(x_727);
lean_inc(x_726);
lean_inc(x_725);
lean_inc(x_724);
lean_dec(x_6);
lean_inc(x_1);
lean_inc(x_725);
lean_inc(x_5);
x_729 = lean_apply_2(x_1, x_5, x_725);
x_730 = lean_unbox(x_729);
lean_dec(x_729);
switch (x_730) {
case 0:
{
lean_object* x_731; lean_object* x_732; 
lean_dec(x_724);
x_731 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_727);
x_732 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_725, x_726, x_731, x_728);
return x_732;
}
case 1:
{
lean_object* x_733; lean_object* x_734; 
lean_dec(x_725);
lean_dec(x_1);
x_733 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_733, 0, x_726);
x_734 = lean_apply_1(x_4, x_733);
if (lean_obj_tag(x_734) == 0)
{
lean_dec(x_724);
lean_dec(x_5);
if (lean_obj_tag(x_727) == 0)
{
if (lean_obj_tag(x_728) == 0)
{
lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; uint8_t x_745; 
x_735 = lean_ctor_get(x_727, 0);
lean_inc(x_735);
x_736 = lean_ctor_get(x_727, 1);
lean_inc(x_736);
x_737 = lean_ctor_get(x_727, 2);
lean_inc(x_737);
x_738 = lean_ctor_get(x_727, 3);
lean_inc(x_738);
x_739 = lean_ctor_get(x_727, 4);
lean_inc(x_739);
x_740 = lean_ctor_get(x_728, 0);
lean_inc(x_740);
x_741 = lean_ctor_get(x_728, 1);
lean_inc(x_741);
x_742 = lean_ctor_get(x_728, 2);
lean_inc(x_742);
x_743 = lean_ctor_get(x_728, 3);
lean_inc(x_743);
x_744 = lean_ctor_get(x_728, 4);
lean_inc(x_744);
x_745 = lean_nat_dec_lt(x_735, x_740);
if (x_745 == 0)
{
lean_object* x_746; lean_object* x_747; lean_object* x_748; 
lean_dec(x_735);
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_746 = x_727;
} else {
 lean_dec_ref(x_727);
 x_746 = lean_box(0);
}
x_747 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_736, x_737, x_738, x_739);
x_748 = lean_ctor_get(x_747, 2);
lean_inc(x_748);
if (lean_obj_tag(x_748) == 0)
{
lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; uint8_t x_754; 
x_749 = lean_ctor_get(x_747, 0);
lean_inc(x_749);
x_750 = lean_ctor_get(x_747, 1);
lean_inc(x_750);
lean_dec(x_747);
x_751 = lean_ctor_get(x_748, 0);
lean_inc(x_751);
x_752 = lean_unsigned_to_nat(3u);
x_753 = lean_nat_mul(x_752, x_751);
x_754 = lean_nat_dec_lt(x_753, x_740);
lean_dec(x_753);
if (x_754 == 0)
{
lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; 
lean_dec(x_744);
lean_dec(x_743);
lean_dec(x_742);
lean_dec(x_741);
x_755 = lean_unsigned_to_nat(1u);
x_756 = lean_nat_add(x_755, x_751);
lean_dec(x_751);
x_757 = lean_nat_add(x_756, x_740);
lean_dec(x_740);
lean_dec(x_756);
if (lean_is_scalar(x_746)) {
 x_758 = lean_alloc_ctor(0, 5, 0);
} else {
 x_758 = x_746;
}
lean_ctor_set(x_758, 0, x_757);
lean_ctor_set(x_758, 1, x_749);
lean_ctor_set(x_758, 2, x_750);
lean_ctor_set(x_758, 3, x_748);
lean_ctor_set(x_758, 4, x_728);
return x_758;
}
else
{
lean_object* x_759; 
if (lean_is_exclusive(x_728)) {
 lean_ctor_release(x_728, 0);
 lean_ctor_release(x_728, 1);
 lean_ctor_release(x_728, 2);
 lean_ctor_release(x_728, 3);
 lean_ctor_release(x_728, 4);
 x_759 = x_728;
} else {
 lean_dec_ref(x_728);
 x_759 = lean_box(0);
}
if (lean_obj_tag(x_743) == 0)
{
if (lean_obj_tag(x_744) == 0)
{
lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; uint8_t x_768; 
x_760 = lean_ctor_get(x_743, 0);
lean_inc(x_760);
x_761 = lean_ctor_get(x_743, 1);
lean_inc(x_761);
x_762 = lean_ctor_get(x_743, 2);
lean_inc(x_762);
x_763 = lean_ctor_get(x_743, 3);
lean_inc(x_763);
x_764 = lean_ctor_get(x_743, 4);
lean_inc(x_764);
x_765 = lean_ctor_get(x_744, 0);
lean_inc(x_765);
x_766 = lean_unsigned_to_nat(2u);
x_767 = lean_nat_mul(x_766, x_765);
x_768 = lean_nat_dec_lt(x_760, x_767);
lean_dec(x_767);
if (x_768 == 0)
{
lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; 
lean_dec(x_760);
lean_dec(x_746);
if (lean_is_exclusive(x_743)) {
 lean_ctor_release(x_743, 0);
 lean_ctor_release(x_743, 1);
 lean_ctor_release(x_743, 2);
 lean_ctor_release(x_743, 3);
 lean_ctor_release(x_743, 4);
 x_769 = x_743;
} else {
 lean_dec_ref(x_743);
 x_769 = lean_box(0);
}
x_770 = lean_unsigned_to_nat(1u);
x_771 = lean_nat_add(x_770, x_751);
lean_dec(x_751);
x_772 = lean_nat_add(x_771, x_740);
lean_dec(x_740);
x_773 = lean_nat_add(x_770, x_765);
lean_dec(x_765);
if (lean_obj_tag(x_763) == 0)
{
lean_object* x_774; lean_object* x_775; lean_object* x_776; lean_object* x_777; 
x_774 = lean_ctor_get(x_763, 0);
lean_inc(x_774);
x_775 = lean_nat_add(x_771, x_774);
lean_dec(x_774);
lean_dec(x_771);
lean_inc(x_748);
if (lean_is_scalar(x_769)) {
 x_776 = lean_alloc_ctor(0, 5, 0);
} else {
 x_776 = x_769;
}
lean_ctor_set(x_776, 0, x_775);
lean_ctor_set(x_776, 1, x_749);
lean_ctor_set(x_776, 2, x_750);
lean_ctor_set(x_776, 3, x_748);
lean_ctor_set(x_776, 4, x_763);
if (lean_is_exclusive(x_748)) {
 lean_ctor_release(x_748, 0);
 lean_ctor_release(x_748, 1);
 lean_ctor_release(x_748, 2);
 lean_ctor_release(x_748, 3);
 lean_ctor_release(x_748, 4);
 x_777 = x_748;
} else {
 lean_dec_ref(x_748);
 x_777 = lean_box(0);
}
if (lean_obj_tag(x_764) == 0)
{
lean_object* x_778; lean_object* x_779; lean_object* x_780; lean_object* x_781; 
x_778 = lean_ctor_get(x_764, 0);
lean_inc(x_778);
x_779 = lean_nat_add(x_773, x_778);
lean_dec(x_778);
lean_dec(x_773);
if (lean_is_scalar(x_777)) {
 x_780 = lean_alloc_ctor(0, 5, 0);
} else {
 x_780 = x_777;
}
lean_ctor_set(x_780, 0, x_779);
lean_ctor_set(x_780, 1, x_741);
lean_ctor_set(x_780, 2, x_742);
lean_ctor_set(x_780, 3, x_764);
lean_ctor_set(x_780, 4, x_744);
if (lean_is_scalar(x_759)) {
 x_781 = lean_alloc_ctor(0, 5, 0);
} else {
 x_781 = x_759;
}
lean_ctor_set(x_781, 0, x_772);
lean_ctor_set(x_781, 1, x_761);
lean_ctor_set(x_781, 2, x_762);
lean_ctor_set(x_781, 3, x_776);
lean_ctor_set(x_781, 4, x_780);
return x_781;
}
else
{
lean_object* x_782; lean_object* x_783; lean_object* x_784; lean_object* x_785; 
x_782 = lean_unsigned_to_nat(0u);
x_783 = lean_nat_add(x_773, x_782);
lean_dec(x_773);
if (lean_is_scalar(x_777)) {
 x_784 = lean_alloc_ctor(0, 5, 0);
} else {
 x_784 = x_777;
}
lean_ctor_set(x_784, 0, x_783);
lean_ctor_set(x_784, 1, x_741);
lean_ctor_set(x_784, 2, x_742);
lean_ctor_set(x_784, 3, x_764);
lean_ctor_set(x_784, 4, x_744);
if (lean_is_scalar(x_759)) {
 x_785 = lean_alloc_ctor(0, 5, 0);
} else {
 x_785 = x_759;
}
lean_ctor_set(x_785, 0, x_772);
lean_ctor_set(x_785, 1, x_761);
lean_ctor_set(x_785, 2, x_762);
lean_ctor_set(x_785, 3, x_776);
lean_ctor_set(x_785, 4, x_784);
return x_785;
}
}
else
{
lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; 
x_786 = lean_unsigned_to_nat(0u);
x_787 = lean_nat_add(x_771, x_786);
lean_dec(x_771);
lean_inc(x_748);
if (lean_is_scalar(x_769)) {
 x_788 = lean_alloc_ctor(0, 5, 0);
} else {
 x_788 = x_769;
}
lean_ctor_set(x_788, 0, x_787);
lean_ctor_set(x_788, 1, x_749);
lean_ctor_set(x_788, 2, x_750);
lean_ctor_set(x_788, 3, x_748);
lean_ctor_set(x_788, 4, x_763);
if (lean_is_exclusive(x_748)) {
 lean_ctor_release(x_748, 0);
 lean_ctor_release(x_748, 1);
 lean_ctor_release(x_748, 2);
 lean_ctor_release(x_748, 3);
 lean_ctor_release(x_748, 4);
 x_789 = x_748;
} else {
 lean_dec_ref(x_748);
 x_789 = lean_box(0);
}
if (lean_obj_tag(x_764) == 0)
{
lean_object* x_790; lean_object* x_791; lean_object* x_792; lean_object* x_793; 
x_790 = lean_ctor_get(x_764, 0);
lean_inc(x_790);
x_791 = lean_nat_add(x_773, x_790);
lean_dec(x_790);
lean_dec(x_773);
if (lean_is_scalar(x_789)) {
 x_792 = lean_alloc_ctor(0, 5, 0);
} else {
 x_792 = x_789;
}
lean_ctor_set(x_792, 0, x_791);
lean_ctor_set(x_792, 1, x_741);
lean_ctor_set(x_792, 2, x_742);
lean_ctor_set(x_792, 3, x_764);
lean_ctor_set(x_792, 4, x_744);
if (lean_is_scalar(x_759)) {
 x_793 = lean_alloc_ctor(0, 5, 0);
} else {
 x_793 = x_759;
}
lean_ctor_set(x_793, 0, x_772);
lean_ctor_set(x_793, 1, x_761);
lean_ctor_set(x_793, 2, x_762);
lean_ctor_set(x_793, 3, x_788);
lean_ctor_set(x_793, 4, x_792);
return x_793;
}
else
{
lean_object* x_794; lean_object* x_795; lean_object* x_796; 
x_794 = lean_nat_add(x_773, x_786);
lean_dec(x_773);
if (lean_is_scalar(x_789)) {
 x_795 = lean_alloc_ctor(0, 5, 0);
} else {
 x_795 = x_789;
}
lean_ctor_set(x_795, 0, x_794);
lean_ctor_set(x_795, 1, x_741);
lean_ctor_set(x_795, 2, x_742);
lean_ctor_set(x_795, 3, x_764);
lean_ctor_set(x_795, 4, x_744);
if (lean_is_scalar(x_759)) {
 x_796 = lean_alloc_ctor(0, 5, 0);
} else {
 x_796 = x_759;
}
lean_ctor_set(x_796, 0, x_772);
lean_ctor_set(x_796, 1, x_761);
lean_ctor_set(x_796, 2, x_762);
lean_ctor_set(x_796, 3, x_788);
lean_ctor_set(x_796, 4, x_795);
return x_796;
}
}
}
else
{
lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; 
lean_dec(x_765);
lean_dec(x_764);
lean_dec(x_763);
lean_dec(x_762);
lean_dec(x_761);
x_797 = lean_unsigned_to_nat(1u);
x_798 = lean_nat_add(x_797, x_751);
lean_dec(x_751);
x_799 = lean_nat_add(x_798, x_740);
lean_dec(x_740);
x_800 = lean_nat_add(x_798, x_760);
lean_dec(x_760);
lean_dec(x_798);
if (lean_is_scalar(x_759)) {
 x_801 = lean_alloc_ctor(0, 5, 0);
} else {
 x_801 = x_759;
}
lean_ctor_set(x_801, 0, x_800);
lean_ctor_set(x_801, 1, x_749);
lean_ctor_set(x_801, 2, x_750);
lean_ctor_set(x_801, 3, x_748);
lean_ctor_set(x_801, 4, x_743);
if (lean_is_scalar(x_746)) {
 x_802 = lean_alloc_ctor(0, 5, 0);
} else {
 x_802 = x_746;
}
lean_ctor_set(x_802, 0, x_799);
lean_ctor_set(x_802, 1, x_741);
lean_ctor_set(x_802, 2, x_742);
lean_ctor_set(x_802, 3, x_801);
lean_ctor_set(x_802, 4, x_744);
return x_802;
}
}
else
{
lean_object* x_803; lean_object* x_804; 
lean_dec(x_759);
lean_dec(x_751);
lean_dec(x_750);
lean_dec(x_749);
lean_dec(x_748);
lean_dec(x_746);
lean_dec(x_743);
lean_dec(x_742);
lean_dec(x_741);
lean_dec(x_740);
x_803 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_804 = l_panic___at_Std_DTreeMap_Raw_alter___spec__2___rarg(x_803);
return x_804;
}
}
else
{
lean_object* x_805; lean_object* x_806; 
lean_dec(x_759);
lean_dec(x_751);
lean_dec(x_750);
lean_dec(x_749);
lean_dec(x_748);
lean_dec(x_746);
lean_dec(x_744);
lean_dec(x_742);
lean_dec(x_741);
lean_dec(x_740);
x_805 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_806 = l_panic___at_Std_DTreeMap_Raw_alter___spec__3___rarg(x_805);
return x_806;
}
}
}
else
{
if (lean_obj_tag(x_743) == 0)
{
lean_object* x_807; 
if (lean_is_exclusive(x_728)) {
 lean_ctor_release(x_728, 0);
 lean_ctor_release(x_728, 1);
 lean_ctor_release(x_728, 2);
 lean_ctor_release(x_728, 3);
 lean_ctor_release(x_728, 4);
 x_807 = x_728;
} else {
 lean_dec_ref(x_728);
 x_807 = lean_box(0);
}
if (lean_obj_tag(x_744) == 0)
{
lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; 
x_808 = lean_ctor_get(x_747, 0);
lean_inc(x_808);
x_809 = lean_ctor_get(x_747, 1);
lean_inc(x_809);
lean_dec(x_747);
x_810 = lean_ctor_get(x_743, 0);
lean_inc(x_810);
x_811 = lean_unsigned_to_nat(1u);
x_812 = lean_nat_add(x_811, x_740);
lean_dec(x_740);
x_813 = lean_nat_add(x_811, x_810);
lean_dec(x_810);
x_814 = lean_box(1);
if (lean_is_scalar(x_807)) {
 x_815 = lean_alloc_ctor(0, 5, 0);
} else {
 x_815 = x_807;
}
lean_ctor_set(x_815, 0, x_813);
lean_ctor_set(x_815, 1, x_808);
lean_ctor_set(x_815, 2, x_809);
lean_ctor_set(x_815, 3, x_814);
lean_ctor_set(x_815, 4, x_743);
if (lean_is_scalar(x_746)) {
 x_816 = lean_alloc_ctor(0, 5, 0);
} else {
 x_816 = x_746;
}
lean_ctor_set(x_816, 0, x_812);
lean_ctor_set(x_816, 1, x_741);
lean_ctor_set(x_816, 2, x_742);
lean_ctor_set(x_816, 3, x_815);
lean_ctor_set(x_816, 4, x_744);
return x_816;
}
else
{
lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; lean_object* x_827; 
lean_dec(x_740);
x_817 = lean_ctor_get(x_747, 0);
lean_inc(x_817);
x_818 = lean_ctor_get(x_747, 1);
lean_inc(x_818);
lean_dec(x_747);
x_819 = lean_ctor_get(x_743, 1);
lean_inc(x_819);
x_820 = lean_ctor_get(x_743, 2);
lean_inc(x_820);
if (lean_is_exclusive(x_743)) {
 lean_ctor_release(x_743, 0);
 lean_ctor_release(x_743, 1);
 lean_ctor_release(x_743, 2);
 lean_ctor_release(x_743, 3);
 lean_ctor_release(x_743, 4);
 x_821 = x_743;
} else {
 lean_dec_ref(x_743);
 x_821 = lean_box(0);
}
x_822 = lean_box(1);
x_823 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_821)) {
 x_824 = lean_alloc_ctor(0, 5, 0);
} else {
 x_824 = x_821;
}
lean_ctor_set(x_824, 0, x_823);
lean_ctor_set(x_824, 1, x_817);
lean_ctor_set(x_824, 2, x_818);
lean_ctor_set(x_824, 3, x_822);
lean_ctor_set(x_824, 4, x_822);
if (lean_is_scalar(x_807)) {
 x_825 = lean_alloc_ctor(0, 5, 0);
} else {
 x_825 = x_807;
}
lean_ctor_set(x_825, 0, x_823);
lean_ctor_set(x_825, 1, x_741);
lean_ctor_set(x_825, 2, x_742);
lean_ctor_set(x_825, 3, x_822);
lean_ctor_set(x_825, 4, x_822);
x_826 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_746)) {
 x_827 = lean_alloc_ctor(0, 5, 0);
} else {
 x_827 = x_746;
}
lean_ctor_set(x_827, 0, x_826);
lean_ctor_set(x_827, 1, x_819);
lean_ctor_set(x_827, 2, x_820);
lean_ctor_set(x_827, 3, x_824);
lean_ctor_set(x_827, 4, x_825);
return x_827;
}
}
else
{
lean_dec(x_740);
if (lean_obj_tag(x_744) == 0)
{
lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; lean_object* x_835; 
if (lean_is_exclusive(x_728)) {
 lean_ctor_release(x_728, 0);
 lean_ctor_release(x_728, 1);
 lean_ctor_release(x_728, 2);
 lean_ctor_release(x_728, 3);
 lean_ctor_release(x_728, 4);
 x_828 = x_728;
} else {
 lean_dec_ref(x_728);
 x_828 = lean_box(0);
}
x_829 = lean_ctor_get(x_747, 0);
lean_inc(x_829);
x_830 = lean_ctor_get(x_747, 1);
lean_inc(x_830);
lean_dec(x_747);
x_831 = lean_box(1);
x_832 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_828)) {
 x_833 = lean_alloc_ctor(0, 5, 0);
} else {
 x_833 = x_828;
}
lean_ctor_set(x_833, 0, x_832);
lean_ctor_set(x_833, 1, x_829);
lean_ctor_set(x_833, 2, x_830);
lean_ctor_set(x_833, 3, x_831);
lean_ctor_set(x_833, 4, x_831);
x_834 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_746)) {
 x_835 = lean_alloc_ctor(0, 5, 0);
} else {
 x_835 = x_746;
}
lean_ctor_set(x_835, 0, x_834);
lean_ctor_set(x_835, 1, x_741);
lean_ctor_set(x_835, 2, x_742);
lean_ctor_set(x_835, 3, x_833);
lean_ctor_set(x_835, 4, x_744);
return x_835;
}
else
{
lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; 
lean_dec(x_742);
lean_dec(x_741);
x_836 = lean_ctor_get(x_747, 0);
lean_inc(x_836);
x_837 = lean_ctor_get(x_747, 1);
lean_inc(x_837);
lean_dec(x_747);
x_838 = lean_box(1);
x_839 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_746)) {
 x_840 = lean_alloc_ctor(0, 5, 0);
} else {
 x_840 = x_746;
}
lean_ctor_set(x_840, 0, x_839);
lean_ctor_set(x_840, 1, x_836);
lean_ctor_set(x_840, 2, x_837);
lean_ctor_set(x_840, 3, x_838);
lean_ctor_set(x_840, 4, x_728);
return x_840;
}
}
}
}
else
{
lean_object* x_841; lean_object* x_842; lean_object* x_843; 
lean_dec(x_740);
if (lean_is_exclusive(x_728)) {
 lean_ctor_release(x_728, 0);
 lean_ctor_release(x_728, 1);
 lean_ctor_release(x_728, 2);
 lean_ctor_release(x_728, 3);
 lean_ctor_release(x_728, 4);
 x_841 = x_728;
} else {
 lean_dec_ref(x_728);
 x_841 = lean_box(0);
}
x_842 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_741, x_742, x_743, x_744);
x_843 = lean_ctor_get(x_842, 2);
lean_inc(x_843);
if (lean_obj_tag(x_843) == 0)
{
lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; lean_object* x_848; uint8_t x_849; 
x_844 = lean_ctor_get(x_842, 0);
lean_inc(x_844);
x_845 = lean_ctor_get(x_842, 1);
lean_inc(x_845);
lean_dec(x_842);
x_846 = lean_ctor_get(x_843, 0);
lean_inc(x_846);
x_847 = lean_unsigned_to_nat(3u);
x_848 = lean_nat_mul(x_847, x_846);
x_849 = lean_nat_dec_lt(x_848, x_735);
lean_dec(x_848);
if (x_849 == 0)
{
lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; 
lean_dec(x_739);
lean_dec(x_738);
lean_dec(x_737);
lean_dec(x_736);
x_850 = lean_unsigned_to_nat(1u);
x_851 = lean_nat_add(x_850, x_735);
lean_dec(x_735);
x_852 = lean_nat_add(x_851, x_846);
lean_dec(x_846);
lean_dec(x_851);
if (lean_is_scalar(x_841)) {
 x_853 = lean_alloc_ctor(0, 5, 0);
} else {
 x_853 = x_841;
}
lean_ctor_set(x_853, 0, x_852);
lean_ctor_set(x_853, 1, x_844);
lean_ctor_set(x_853, 2, x_845);
lean_ctor_set(x_853, 3, x_727);
lean_ctor_set(x_853, 4, x_843);
return x_853;
}
else
{
lean_object* x_854; 
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_854 = x_727;
} else {
 lean_dec_ref(x_727);
 x_854 = lean_box(0);
}
if (lean_obj_tag(x_738) == 0)
{
if (lean_obj_tag(x_739) == 0)
{
lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; lean_object* x_862; uint8_t x_863; 
x_855 = lean_ctor_get(x_738, 0);
lean_inc(x_855);
x_856 = lean_ctor_get(x_739, 0);
lean_inc(x_856);
x_857 = lean_ctor_get(x_739, 1);
lean_inc(x_857);
x_858 = lean_ctor_get(x_739, 2);
lean_inc(x_858);
x_859 = lean_ctor_get(x_739, 3);
lean_inc(x_859);
x_860 = lean_ctor_get(x_739, 4);
lean_inc(x_860);
x_861 = lean_unsigned_to_nat(2u);
x_862 = lean_nat_mul(x_861, x_855);
x_863 = lean_nat_dec_lt(x_856, x_862);
lean_dec(x_862);
if (x_863 == 0)
{
lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; lean_object* x_869; 
lean_dec(x_856);
lean_dec(x_854);
lean_dec(x_841);
if (lean_is_exclusive(x_739)) {
 lean_ctor_release(x_739, 0);
 lean_ctor_release(x_739, 1);
 lean_ctor_release(x_739, 2);
 lean_ctor_release(x_739, 3);
 lean_ctor_release(x_739, 4);
 x_864 = x_739;
} else {
 lean_dec_ref(x_739);
 x_864 = lean_box(0);
}
x_865 = lean_unsigned_to_nat(1u);
x_866 = lean_nat_add(x_865, x_735);
lean_dec(x_735);
x_867 = lean_nat_add(x_866, x_846);
lean_dec(x_866);
x_868 = lean_nat_add(x_865, x_855);
lean_dec(x_855);
x_869 = lean_nat_add(x_865, x_846);
lean_dec(x_846);
if (lean_obj_tag(x_859) == 0)
{
lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; 
x_870 = lean_ctor_get(x_859, 0);
lean_inc(x_870);
x_871 = lean_nat_add(x_868, x_870);
lean_dec(x_870);
lean_dec(x_868);
lean_inc(x_738);
if (lean_is_scalar(x_864)) {
 x_872 = lean_alloc_ctor(0, 5, 0);
} else {
 x_872 = x_864;
}
lean_ctor_set(x_872, 0, x_871);
lean_ctor_set(x_872, 1, x_736);
lean_ctor_set(x_872, 2, x_737);
lean_ctor_set(x_872, 3, x_738);
lean_ctor_set(x_872, 4, x_859);
if (lean_is_exclusive(x_738)) {
 lean_ctor_release(x_738, 0);
 lean_ctor_release(x_738, 1);
 lean_ctor_release(x_738, 2);
 lean_ctor_release(x_738, 3);
 lean_ctor_release(x_738, 4);
 x_873 = x_738;
} else {
 lean_dec_ref(x_738);
 x_873 = lean_box(0);
}
if (lean_obj_tag(x_860) == 0)
{
lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; 
x_874 = lean_ctor_get(x_860, 0);
lean_inc(x_874);
x_875 = lean_nat_add(x_869, x_874);
lean_dec(x_874);
lean_dec(x_869);
lean_inc(x_843);
if (lean_is_scalar(x_873)) {
 x_876 = lean_alloc_ctor(0, 5, 0);
} else {
 x_876 = x_873;
}
lean_ctor_set(x_876, 0, x_875);
lean_ctor_set(x_876, 1, x_844);
lean_ctor_set(x_876, 2, x_845);
lean_ctor_set(x_876, 3, x_860);
lean_ctor_set(x_876, 4, x_843);
if (lean_is_exclusive(x_843)) {
 lean_ctor_release(x_843, 0);
 lean_ctor_release(x_843, 1);
 lean_ctor_release(x_843, 2);
 lean_ctor_release(x_843, 3);
 lean_ctor_release(x_843, 4);
 x_877 = x_843;
} else {
 lean_dec_ref(x_843);
 x_877 = lean_box(0);
}
if (lean_is_scalar(x_877)) {
 x_878 = lean_alloc_ctor(0, 5, 0);
} else {
 x_878 = x_877;
}
lean_ctor_set(x_878, 0, x_867);
lean_ctor_set(x_878, 1, x_857);
lean_ctor_set(x_878, 2, x_858);
lean_ctor_set(x_878, 3, x_872);
lean_ctor_set(x_878, 4, x_876);
return x_878;
}
else
{
lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; 
x_879 = lean_unsigned_to_nat(0u);
x_880 = lean_nat_add(x_869, x_879);
lean_dec(x_869);
lean_inc(x_843);
if (lean_is_scalar(x_873)) {
 x_881 = lean_alloc_ctor(0, 5, 0);
} else {
 x_881 = x_873;
}
lean_ctor_set(x_881, 0, x_880);
lean_ctor_set(x_881, 1, x_844);
lean_ctor_set(x_881, 2, x_845);
lean_ctor_set(x_881, 3, x_860);
lean_ctor_set(x_881, 4, x_843);
if (lean_is_exclusive(x_843)) {
 lean_ctor_release(x_843, 0);
 lean_ctor_release(x_843, 1);
 lean_ctor_release(x_843, 2);
 lean_ctor_release(x_843, 3);
 lean_ctor_release(x_843, 4);
 x_882 = x_843;
} else {
 lean_dec_ref(x_843);
 x_882 = lean_box(0);
}
if (lean_is_scalar(x_882)) {
 x_883 = lean_alloc_ctor(0, 5, 0);
} else {
 x_883 = x_882;
}
lean_ctor_set(x_883, 0, x_867);
lean_ctor_set(x_883, 1, x_857);
lean_ctor_set(x_883, 2, x_858);
lean_ctor_set(x_883, 3, x_872);
lean_ctor_set(x_883, 4, x_881);
return x_883;
}
}
else
{
lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; 
x_884 = lean_unsigned_to_nat(0u);
x_885 = lean_nat_add(x_868, x_884);
lean_dec(x_868);
lean_inc(x_738);
if (lean_is_scalar(x_864)) {
 x_886 = lean_alloc_ctor(0, 5, 0);
} else {
 x_886 = x_864;
}
lean_ctor_set(x_886, 0, x_885);
lean_ctor_set(x_886, 1, x_736);
lean_ctor_set(x_886, 2, x_737);
lean_ctor_set(x_886, 3, x_738);
lean_ctor_set(x_886, 4, x_859);
if (lean_is_exclusive(x_738)) {
 lean_ctor_release(x_738, 0);
 lean_ctor_release(x_738, 1);
 lean_ctor_release(x_738, 2);
 lean_ctor_release(x_738, 3);
 lean_ctor_release(x_738, 4);
 x_887 = x_738;
} else {
 lean_dec_ref(x_738);
 x_887 = lean_box(0);
}
if (lean_obj_tag(x_860) == 0)
{
lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; 
x_888 = lean_ctor_get(x_860, 0);
lean_inc(x_888);
x_889 = lean_nat_add(x_869, x_888);
lean_dec(x_888);
lean_dec(x_869);
lean_inc(x_843);
if (lean_is_scalar(x_887)) {
 x_890 = lean_alloc_ctor(0, 5, 0);
} else {
 x_890 = x_887;
}
lean_ctor_set(x_890, 0, x_889);
lean_ctor_set(x_890, 1, x_844);
lean_ctor_set(x_890, 2, x_845);
lean_ctor_set(x_890, 3, x_860);
lean_ctor_set(x_890, 4, x_843);
if (lean_is_exclusive(x_843)) {
 lean_ctor_release(x_843, 0);
 lean_ctor_release(x_843, 1);
 lean_ctor_release(x_843, 2);
 lean_ctor_release(x_843, 3);
 lean_ctor_release(x_843, 4);
 x_891 = x_843;
} else {
 lean_dec_ref(x_843);
 x_891 = lean_box(0);
}
if (lean_is_scalar(x_891)) {
 x_892 = lean_alloc_ctor(0, 5, 0);
} else {
 x_892 = x_891;
}
lean_ctor_set(x_892, 0, x_867);
lean_ctor_set(x_892, 1, x_857);
lean_ctor_set(x_892, 2, x_858);
lean_ctor_set(x_892, 3, x_886);
lean_ctor_set(x_892, 4, x_890);
return x_892;
}
else
{
lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; 
x_893 = lean_nat_add(x_869, x_884);
lean_dec(x_869);
lean_inc(x_843);
if (lean_is_scalar(x_887)) {
 x_894 = lean_alloc_ctor(0, 5, 0);
} else {
 x_894 = x_887;
}
lean_ctor_set(x_894, 0, x_893);
lean_ctor_set(x_894, 1, x_844);
lean_ctor_set(x_894, 2, x_845);
lean_ctor_set(x_894, 3, x_860);
lean_ctor_set(x_894, 4, x_843);
if (lean_is_exclusive(x_843)) {
 lean_ctor_release(x_843, 0);
 lean_ctor_release(x_843, 1);
 lean_ctor_release(x_843, 2);
 lean_ctor_release(x_843, 3);
 lean_ctor_release(x_843, 4);
 x_895 = x_843;
} else {
 lean_dec_ref(x_843);
 x_895 = lean_box(0);
}
if (lean_is_scalar(x_895)) {
 x_896 = lean_alloc_ctor(0, 5, 0);
} else {
 x_896 = x_895;
}
lean_ctor_set(x_896, 0, x_867);
lean_ctor_set(x_896, 1, x_857);
lean_ctor_set(x_896, 2, x_858);
lean_ctor_set(x_896, 3, x_886);
lean_ctor_set(x_896, 4, x_894);
return x_896;
}
}
}
else
{
lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; lean_object* x_903; 
lean_dec(x_860);
lean_dec(x_859);
lean_dec(x_858);
lean_dec(x_857);
lean_dec(x_855);
x_897 = lean_unsigned_to_nat(1u);
x_898 = lean_nat_add(x_897, x_735);
lean_dec(x_735);
x_899 = lean_nat_add(x_898, x_846);
lean_dec(x_898);
x_900 = lean_nat_add(x_897, x_846);
lean_dec(x_846);
x_901 = lean_nat_add(x_900, x_856);
lean_dec(x_856);
lean_dec(x_900);
if (lean_is_scalar(x_841)) {
 x_902 = lean_alloc_ctor(0, 5, 0);
} else {
 x_902 = x_841;
}
lean_ctor_set(x_902, 0, x_901);
lean_ctor_set(x_902, 1, x_844);
lean_ctor_set(x_902, 2, x_845);
lean_ctor_set(x_902, 3, x_739);
lean_ctor_set(x_902, 4, x_843);
if (lean_is_scalar(x_854)) {
 x_903 = lean_alloc_ctor(0, 5, 0);
} else {
 x_903 = x_854;
}
lean_ctor_set(x_903, 0, x_899);
lean_ctor_set(x_903, 1, x_736);
lean_ctor_set(x_903, 2, x_737);
lean_ctor_set(x_903, 3, x_738);
lean_ctor_set(x_903, 4, x_902);
return x_903;
}
}
else
{
lean_object* x_904; lean_object* x_905; 
lean_dec(x_854);
lean_dec(x_846);
lean_dec(x_845);
lean_dec(x_844);
lean_dec(x_843);
lean_dec(x_841);
lean_dec(x_738);
lean_dec(x_737);
lean_dec(x_736);
lean_dec(x_735);
x_904 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_905 = l_panic___at_Std_DTreeMap_Raw_alter___spec__4___rarg(x_904);
return x_905;
}
}
else
{
lean_object* x_906; lean_object* x_907; 
lean_dec(x_854);
lean_dec(x_846);
lean_dec(x_845);
lean_dec(x_844);
lean_dec(x_843);
lean_dec(x_841);
lean_dec(x_739);
lean_dec(x_737);
lean_dec(x_736);
lean_dec(x_735);
x_906 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_907 = l_panic___at_Std_DTreeMap_Raw_alter___spec__5___rarg(x_906);
return x_907;
}
}
}
else
{
if (lean_obj_tag(x_738) == 0)
{
lean_object* x_908; 
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_908 = x_727;
} else {
 lean_dec_ref(x_727);
 x_908 = lean_box(0);
}
if (lean_obj_tag(x_739) == 0)
{
lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; 
x_909 = lean_ctor_get(x_842, 0);
lean_inc(x_909);
x_910 = lean_ctor_get(x_842, 1);
lean_inc(x_910);
lean_dec(x_842);
x_911 = lean_ctor_get(x_739, 0);
lean_inc(x_911);
x_912 = lean_unsigned_to_nat(1u);
x_913 = lean_nat_add(x_912, x_735);
lean_dec(x_735);
x_914 = lean_nat_add(x_912, x_911);
lean_dec(x_911);
x_915 = lean_box(1);
if (lean_is_scalar(x_841)) {
 x_916 = lean_alloc_ctor(0, 5, 0);
} else {
 x_916 = x_841;
}
lean_ctor_set(x_916, 0, x_914);
lean_ctor_set(x_916, 1, x_909);
lean_ctor_set(x_916, 2, x_910);
lean_ctor_set(x_916, 3, x_739);
lean_ctor_set(x_916, 4, x_915);
if (lean_is_scalar(x_908)) {
 x_917 = lean_alloc_ctor(0, 5, 0);
} else {
 x_917 = x_908;
}
lean_ctor_set(x_917, 0, x_913);
lean_ctor_set(x_917, 1, x_736);
lean_ctor_set(x_917, 2, x_737);
lean_ctor_set(x_917, 3, x_738);
lean_ctor_set(x_917, 4, x_916);
return x_917;
}
else
{
lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; lean_object* x_924; 
lean_dec(x_735);
x_918 = lean_ctor_get(x_842, 0);
lean_inc(x_918);
x_919 = lean_ctor_get(x_842, 1);
lean_inc(x_919);
lean_dec(x_842);
x_920 = lean_box(1);
x_921 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_841)) {
 x_922 = lean_alloc_ctor(0, 5, 0);
} else {
 x_922 = x_841;
}
lean_ctor_set(x_922, 0, x_921);
lean_ctor_set(x_922, 1, x_918);
lean_ctor_set(x_922, 2, x_919);
lean_ctor_set(x_922, 3, x_920);
lean_ctor_set(x_922, 4, x_920);
x_923 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_908)) {
 x_924 = lean_alloc_ctor(0, 5, 0);
} else {
 x_924 = x_908;
}
lean_ctor_set(x_924, 0, x_923);
lean_ctor_set(x_924, 1, x_736);
lean_ctor_set(x_924, 2, x_737);
lean_ctor_set(x_924, 3, x_738);
lean_ctor_set(x_924, 4, x_922);
return x_924;
}
}
else
{
lean_dec(x_735);
if (lean_obj_tag(x_739) == 0)
{
lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; 
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_925 = x_727;
} else {
 lean_dec_ref(x_727);
 x_925 = lean_box(0);
}
x_926 = lean_ctor_get(x_842, 0);
lean_inc(x_926);
x_927 = lean_ctor_get(x_842, 1);
lean_inc(x_927);
lean_dec(x_842);
x_928 = lean_ctor_get(x_739, 1);
lean_inc(x_928);
x_929 = lean_ctor_get(x_739, 2);
lean_inc(x_929);
if (lean_is_exclusive(x_739)) {
 lean_ctor_release(x_739, 0);
 lean_ctor_release(x_739, 1);
 lean_ctor_release(x_739, 2);
 lean_ctor_release(x_739, 3);
 lean_ctor_release(x_739, 4);
 x_930 = x_739;
} else {
 lean_dec_ref(x_739);
 x_930 = lean_box(0);
}
x_931 = lean_box(1);
x_932 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_930)) {
 x_933 = lean_alloc_ctor(0, 5, 0);
} else {
 x_933 = x_930;
}
lean_ctor_set(x_933, 0, x_932);
lean_ctor_set(x_933, 1, x_736);
lean_ctor_set(x_933, 2, x_737);
lean_ctor_set(x_933, 3, x_931);
lean_ctor_set(x_933, 4, x_931);
if (lean_is_scalar(x_841)) {
 x_934 = lean_alloc_ctor(0, 5, 0);
} else {
 x_934 = x_841;
}
lean_ctor_set(x_934, 0, x_932);
lean_ctor_set(x_934, 1, x_926);
lean_ctor_set(x_934, 2, x_927);
lean_ctor_set(x_934, 3, x_931);
lean_ctor_set(x_934, 4, x_931);
x_935 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_925)) {
 x_936 = lean_alloc_ctor(0, 5, 0);
} else {
 x_936 = x_925;
}
lean_ctor_set(x_936, 0, x_935);
lean_ctor_set(x_936, 1, x_928);
lean_ctor_set(x_936, 2, x_929);
lean_ctor_set(x_936, 3, x_933);
lean_ctor_set(x_936, 4, x_934);
return x_936;
}
else
{
lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; 
lean_dec(x_737);
lean_dec(x_736);
x_937 = lean_ctor_get(x_842, 0);
lean_inc(x_937);
x_938 = lean_ctor_get(x_842, 1);
lean_inc(x_938);
lean_dec(x_842);
x_939 = lean_box(1);
x_940 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_841)) {
 x_941 = lean_alloc_ctor(0, 5, 0);
} else {
 x_941 = x_841;
}
lean_ctor_set(x_941, 0, x_940);
lean_ctor_set(x_941, 1, x_937);
lean_ctor_set(x_941, 2, x_938);
lean_ctor_set(x_941, 3, x_727);
lean_ctor_set(x_941, 4, x_939);
return x_941;
}
}
}
}
}
else
{
return x_727;
}
}
else
{
return x_728;
}
}
else
{
lean_object* x_942; lean_object* x_943; 
x_942 = lean_ctor_get(x_734, 0);
lean_inc(x_942);
lean_dec(x_734);
x_943 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_943, 0, x_724);
lean_ctor_set(x_943, 1, x_5);
lean_ctor_set(x_943, 2, x_942);
lean_ctor_set(x_943, 3, x_727);
lean_ctor_set(x_943, 4, x_728);
return x_943;
}
}
default: 
{
lean_object* x_944; lean_object* x_945; 
lean_dec(x_724);
x_944 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_728);
x_945 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_725, x_726, x_727, x_944);
return x_945;
}
}
}
}
else
{
lean_object* x_946; lean_object* x_947; 
lean_dec(x_1);
x_946 = lean_box(0);
x_947 = lean_apply_1(x_4, x_946);
if (lean_obj_tag(x_947) == 0)
{
lean_object* x_948; 
lean_dec(x_5);
x_948 = lean_box(1);
return x_948;
}
else
{
lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; 
x_949 = lean_ctor_get(x_947, 0);
lean_inc(x_949);
lean_dec(x_947);
x_950 = lean_box(1);
x_951 = lean_unsigned_to_nat(1u);
x_952 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_952, 0, x_951);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 2, x_949);
lean_ctor_set(x_952, 3, x_950);
lean_ctor_set(x_952, 4, x_950);
return x_952;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg___boxed), 6, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_alter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
lean_inc(x_4);
x_6 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_4, x_3);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_alter(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_alter___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_alter___spec__1___rarg(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_9 = lean_ctor_get(x_7, 0);
x_10 = lean_ctor_get(x_7, 1);
x_11 = lean_ctor_get(x_7, 2);
x_12 = lean_ctor_get(x_7, 3);
x_13 = lean_ctor_get(x_7, 4);
lean_inc(x_1);
lean_inc(x_10);
lean_inc(x_6);
x_14 = lean_apply_2(x_1, x_6, x_10);
x_15 = lean_unbox(x_14);
lean_dec(x_14);
switch (x_15) {
case 0:
{
lean_object* x_16; lean_object* x_17; 
lean_free_object(x_7);
lean_dec(x_9);
x_16 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_12);
x_17 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_16, x_13);
return x_17;
}
case 1:
{
lean_object* x_18; 
lean_dec(x_10);
lean_dec(x_1);
x_18 = lean_apply_3(x_3, x_4, x_11, x_5);
lean_ctor_set(x_7, 2, x_18);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
default: 
{
lean_object* x_19; lean_object* x_20; 
lean_free_object(x_7);
lean_dec(x_9);
x_19 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_13);
x_20 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_12, x_19);
return x_20;
}
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_21 = lean_ctor_get(x_7, 0);
x_22 = lean_ctor_get(x_7, 1);
x_23 = lean_ctor_get(x_7, 2);
x_24 = lean_ctor_get(x_7, 3);
x_25 = lean_ctor_get(x_7, 4);
lean_inc(x_25);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_7);
lean_inc(x_1);
lean_inc(x_22);
lean_inc(x_6);
x_26 = lean_apply_2(x_1, x_6, x_22);
x_27 = lean_unbox(x_26);
lean_dec(x_26);
switch (x_27) {
case 0:
{
lean_object* x_28; lean_object* x_29; 
lean_dec(x_21);
x_28 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_24);
x_29 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_28, x_25);
return x_29;
}
case 1:
{
lean_object* x_30; lean_object* x_31; 
lean_dec(x_22);
lean_dec(x_1);
x_30 = lean_apply_3(x_3, x_4, x_23, x_5);
x_31 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_31, 0, x_21);
lean_ctor_set(x_31, 1, x_6);
lean_ctor_set(x_31, 2, x_30);
lean_ctor_set(x_31, 3, x_24);
lean_ctor_set(x_31, 4, x_25);
return x_31;
}
default: 
{
lean_object* x_32; lean_object* x_33; 
lean_dec(x_21);
x_32 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_25);
x_33 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_24, x_32);
return x_33;
}
}
}
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_34 = lean_box(1);
x_35 = lean_unsigned_to_nat(1u);
x_36 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_6);
lean_ctor_set(x_36, 2, x_5);
lean_ctor_set(x_36, 3, x_34);
lean_ctor_set(x_36, 4, x_34);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg), 7, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
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_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_3);
lean_inc(x_1);
x_10 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_8);
lean_inc(x_6);
lean_inc(x_3);
lean_inc(x_1);
x_11 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_6, x_7, x_6, x_10);
x_2 = lean_box(0);
x_4 = x_11;
x_5 = x_9;
goto _start;
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeWith___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeWith___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeWith___spec__2___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeWith___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeWith___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeWith(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_mergeWith___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_9 = lean_ctor_get(x_7, 0);
x_10 = lean_ctor_get(x_7, 1);
x_11 = lean_ctor_get(x_7, 2);
x_12 = lean_ctor_get(x_7, 3);
x_13 = lean_ctor_get(x_7, 4);
lean_inc(x_1);
lean_inc(x_10);
lean_inc(x_6);
x_14 = lean_apply_2(x_1, x_6, x_10);
x_15 = lean_unbox(x_14);
lean_dec(x_14);
switch (x_15) {
case 0:
{
lean_object* x_16; lean_object* x_17; 
lean_free_object(x_7);
lean_dec(x_9);
x_16 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_12);
x_17 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_16, x_13);
return x_17;
}
case 1:
{
lean_object* x_18; 
lean_dec(x_10);
lean_dec(x_1);
x_18 = lean_apply_3(x_3, x_4, x_11, x_5);
lean_ctor_set(x_7, 2, x_18);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
default: 
{
lean_object* x_19; lean_object* x_20; 
lean_free_object(x_7);
lean_dec(x_9);
x_19 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_13);
x_20 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_12, x_19);
return x_20;
}
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_21 = lean_ctor_get(x_7, 0);
x_22 = lean_ctor_get(x_7, 1);
x_23 = lean_ctor_get(x_7, 2);
x_24 = lean_ctor_get(x_7, 3);
x_25 = lean_ctor_get(x_7, 4);
lean_inc(x_25);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_7);
lean_inc(x_1);
lean_inc(x_22);
lean_inc(x_6);
x_26 = lean_apply_2(x_1, x_6, x_22);
x_27 = lean_unbox(x_26);
lean_dec(x_26);
switch (x_27) {
case 0:
{
lean_object* x_28; lean_object* x_29; 
lean_dec(x_21);
x_28 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_24);
x_29 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_28, x_25);
return x_29;
}
case 1:
{
lean_object* x_30; lean_object* x_31; 
lean_dec(x_22);
lean_dec(x_1);
x_30 = lean_apply_3(x_3, x_4, x_23, x_5);
x_31 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_31, 0, x_21);
lean_ctor_set(x_31, 1, x_6);
lean_ctor_set(x_31, 2, x_30);
lean_ctor_set(x_31, 3, x_24);
lean_ctor_set(x_31, 4, x_25);
return x_31;
}
default: 
{
lean_object* x_32; lean_object* x_33; 
lean_dec(x_21);
x_32 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_25);
x_33 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_24, x_32);
return x_33;
}
}
}
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_34 = lean_box(1);
x_35 = lean_unsigned_to_nat(1u);
x_36 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_6);
lean_ctor_set(x_36, 2, x_5);
lean_ctor_set(x_36, 3, x_34);
lean_ctor_set(x_36, 4, x_34);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg), 7, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
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_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_3);
lean_inc(x_1);
x_10 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_8);
lean_inc(x_6);
lean_inc(x_3);
lean_inc(x_1);
x_11 = l_Std_DTreeMap_Internal_Impl_alter_x21___at_Std_DTreeMap_Raw_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_6, x_7, x_6, x_10);
x_2 = lean_box(0);
x_4 = x_11;
x_5 = x_9;
goto _start;
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeBy___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeBy___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_mergeBy___spec__2___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeBy___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_mergeBy___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_mergeBy(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_mergeBy___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg(x_1, x_6);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_7);
x_1 = x_9;
x_2 = x_5;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toList___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toList(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_toList___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_Const_toList___spec__1___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toList___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_Const_toList___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toList___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_toList(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6193_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
lean_dec(x_2);
return x_8;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_7, 1);
lean_inc(x_11);
lean_dec(x_7);
x_12 = lean_ctor_get(x_10, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_10, 1);
lean_inc(x_13);
lean_dec(x_10);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofList___spec__1___rarg(x_2, x_12, x_13, x_8, lean_box(0));
x_7 = x_11;
x_8 = x_14;
x_9 = lean_box(0);
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2___rarg___boxed), 9, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofList___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = lean_box(1);
lean_inc(x_2);
lean_inc(x_1);
x_5 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_1, x_4, lean_box(0));
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofList(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_ofList___rarg), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_ofList___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_10;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6240_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
lean_dec(x_2);
return x_8;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
x_11 = lean_ctor_get(x_7, 1);
lean_inc(x_11);
lean_dec(x_7);
lean_inc(x_8);
lean_inc(x_10);
lean_inc(x_2);
x_12 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1___rarg(x_2, x_10, x_8);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_box(0);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfList___spec__2___rarg(x_2, x_10, x_13, x_8, lean_box(0));
x_7 = x_11;
x_8 = x_14;
x_9 = lean_box(0);
goto _start;
}
else
{
lean_dec(x_10);
x_7 = x_11;
x_9 = lean_box(0);
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3___rarg___boxed), 9, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfList___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = lean_box(1);
lean_inc(x_2);
lean_inc(x_1);
x_5 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_1, x_4, lean_box(0));
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfList(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_unitOfList___rarg), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfList___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
lean_object* x_10; 
x_10 = l_List_forIn_x27_loop___at_Std_DTreeMap_Raw_Const_unitOfList___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg(x_1, x_5);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_array_push(x_7, x_8);
x_1 = x_9;
x_2 = x_6;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg(x_1, x_5);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_array_push(x_7, x_8);
x_1 = x_9;
x_2 = x_6;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray___rarg(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_mk_empty_array_with_capacity(x_2);
x_4 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg(x_3, x_1);
return x_4;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6;
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg(x_5, x_1);
return x_6;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_toArray___rarg___boxed), 1, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__2___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__1___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_toArray___spec__4___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_toArray___spec__3___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray___rarg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Std_DTreeMap_Raw_Const_toArray___rarg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_toArray___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_Const_toArray(x_1, x_2, x_3);
lean_dec(x_2);
return x_4;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6327_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = lean_usize_dec_lt(x_8, x_7);
if (x_10 == 0)
{
lean_dec(x_2);
return x_9;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; 
x_11 = lean_array_uget(x_6, x_8);
x_12 = lean_ctor_get(x_11, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_11, 1);
lean_inc(x_13);
lean_dec(x_11);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_ofArray___spec__1___rarg(x_2, x_12, x_13, x_9, lean_box(0));
x_15 = 1;
x_16 = lean_usize_add(x_8, x_15);
x_8 = x_16;
x_9 = x_14;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2___rarg___boxed), 9, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofArray___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; 
x_3 = lean_box(0);
x_4 = lean_box(1);
x_5 = lean_array_size(x_1);
x_6 = 0;
lean_inc(x_2);
x_7 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_5, x_6, x_4);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofArray(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_ofArray___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_11 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_12 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_ofArray___spec__2___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_ofArray___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_ofArray___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
static lean_object* _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6374_() {
_start:
{
lean_object* x_1; 
x_1 = l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_4);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_4, 0);
x_8 = lean_ctor_get(x_4, 1);
x_9 = lean_ctor_get(x_4, 2);
x_10 = lean_ctor_get(x_4, 3);
x_11 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_2);
x_12 = lean_apply_2(x_1, x_2, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg(x_1, x_2, x_3, x_10, lean_box(0));
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_15; uint8_t x_16; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = !lean_is_exclusive(x_14);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_17 = lean_ctor_get(x_14, 0);
x_18 = lean_ctor_get(x_14, 1);
x_19 = lean_ctor_get(x_14, 2);
x_20 = lean_ctor_get(x_14, 3);
x_21 = lean_ctor_get(x_14, 4);
x_22 = lean_unsigned_to_nat(3u);
x_23 = lean_nat_mul(x_22, x_15);
x_24 = lean_nat_dec_lt(x_23, x_17);
lean_dec(x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
x_25 = lean_unsigned_to_nat(1u);
x_26 = lean_nat_add(x_25, x_17);
x_27 = lean_nat_add(x_26, x_15);
lean_dec(x_15);
lean_dec(x_26);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_27);
return x_4;
}
else
{
lean_object* x_28; uint8_t x_29; 
lean_free_object(x_4);
x_28 = lean_ctor_get(x_20, 0);
lean_inc(x_28);
x_29 = !lean_is_exclusive(x_21);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; uint8_t x_37; 
x_30 = lean_ctor_get(x_21, 0);
x_31 = lean_ctor_get(x_21, 1);
x_32 = lean_ctor_get(x_21, 2);
x_33 = lean_ctor_get(x_21, 3);
x_34 = lean_ctor_get(x_21, 4);
x_35 = lean_unsigned_to_nat(2u);
x_36 = lean_nat_mul(x_35, x_28);
x_37 = lean_nat_dec_lt(x_30, x_36);
lean_dec(x_36);
if (x_37 == 0)
{
lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_dec(x_30);
x_38 = lean_unsigned_to_nat(1u);
x_39 = lean_nat_add(x_38, x_17);
lean_dec(x_17);
x_40 = lean_nat_add(x_39, x_15);
lean_dec(x_39);
x_41 = lean_nat_add(x_38, x_28);
lean_dec(x_28);
x_42 = lean_nat_add(x_38, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_43; lean_object* x_44; uint8_t x_45; 
x_43 = lean_ctor_get(x_33, 0);
lean_inc(x_43);
x_44 = lean_nat_add(x_41, x_43);
lean_dec(x_43);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_44);
x_45 = !lean_is_exclusive(x_20);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_46 = lean_ctor_get(x_20, 4);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 3);
lean_dec(x_47);
x_48 = lean_ctor_get(x_20, 2);
lean_dec(x_48);
x_49 = lean_ctor_get(x_20, 1);
lean_dec(x_49);
x_50 = lean_ctor_get(x_20, 0);
lean_dec(x_50);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_51; lean_object* x_52; 
x_51 = lean_ctor_get(x_34, 0);
lean_inc(x_51);
x_52 = lean_nat_add(x_42, x_51);
lean_dec(x_51);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_52);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_53; lean_object* x_54; 
x_53 = lean_unsigned_to_nat(0u);
x_54 = lean_nat_add(x_42, x_53);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_54);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_55 = lean_ctor_get(x_34, 0);
lean_inc(x_55);
x_56 = lean_nat_add(x_42, x_55);
lean_dec(x_55);
lean_dec(x_42);
x_57 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_57, 0, x_56);
lean_ctor_set(x_57, 1, x_8);
lean_ctor_set(x_57, 2, x_9);
lean_ctor_set(x_57, 3, x_34);
lean_ctor_set(x_57, 4, x_11);
lean_ctor_set(x_14, 4, x_57);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_58 = lean_unsigned_to_nat(0u);
x_59 = lean_nat_add(x_42, x_58);
lean_dec(x_42);
x_60 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_60, 0, x_59);
lean_ctor_set(x_60, 1, x_8);
lean_ctor_set(x_60, 2, x_9);
lean_ctor_set(x_60, 3, x_34);
lean_ctor_set(x_60, 4, x_11);
lean_ctor_set(x_14, 4, x_60);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
else
{
lean_object* x_61; lean_object* x_62; uint8_t x_63; 
x_61 = lean_unsigned_to_nat(0u);
x_62 = lean_nat_add(x_41, x_61);
lean_dec(x_41);
lean_inc(x_20);
lean_ctor_set(x_21, 4, x_33);
lean_ctor_set(x_21, 3, x_20);
lean_ctor_set(x_21, 2, x_19);
lean_ctor_set(x_21, 1, x_18);
lean_ctor_set(x_21, 0, x_62);
x_63 = !lean_is_exclusive(x_20);
if (x_63 == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_64 = lean_ctor_get(x_20, 4);
lean_dec(x_64);
x_65 = lean_ctor_get(x_20, 3);
lean_dec(x_65);
x_66 = lean_ctor_get(x_20, 2);
lean_dec(x_66);
x_67 = lean_ctor_get(x_20, 1);
lean_dec(x_67);
x_68 = lean_ctor_get(x_20, 0);
lean_dec(x_68);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_34, 0);
lean_inc(x_69);
x_70 = lean_nat_add(x_42, x_69);
lean_dec(x_69);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_70);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_71; 
x_71 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
lean_ctor_set(x_20, 4, x_11);
lean_ctor_set(x_20, 3, x_34);
lean_ctor_set(x_20, 2, x_9);
lean_ctor_set(x_20, 1, x_8);
lean_ctor_set(x_20, 0, x_71);
lean_ctor_set(x_14, 4, x_20);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
else
{
lean_dec(x_20);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_72; lean_object* x_73; lean_object* x_74; 
x_72 = lean_ctor_get(x_34, 0);
lean_inc(x_72);
x_73 = lean_nat_add(x_42, x_72);
lean_dec(x_72);
lean_dec(x_42);
x_74 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_74, 0, x_73);
lean_ctor_set(x_74, 1, x_8);
lean_ctor_set(x_74, 2, x_9);
lean_ctor_set(x_74, 3, x_34);
lean_ctor_set(x_74, 4, x_11);
lean_ctor_set(x_14, 4, x_74);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_nat_add(x_42, x_61);
lean_dec(x_42);
x_76 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_76, 0, x_75);
lean_ctor_set(x_76, 1, x_8);
lean_ctor_set(x_76, 2, x_9);
lean_ctor_set(x_76, 3, x_34);
lean_ctor_set(x_76, 4, x_11);
lean_ctor_set(x_14, 4, x_76);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_32);
lean_ctor_set(x_14, 1, x_31);
lean_ctor_set(x_14, 0, x_40);
return x_14;
}
}
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; uint8_t x_82; 
lean_dec(x_28);
x_77 = lean_unsigned_to_nat(1u);
x_78 = lean_nat_add(x_77, x_17);
lean_dec(x_17);
x_79 = lean_nat_add(x_78, x_15);
lean_dec(x_78);
x_80 = lean_nat_add(x_77, x_15);
lean_dec(x_15);
x_81 = lean_nat_add(x_80, x_30);
lean_dec(x_80);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_21);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_81);
x_82 = !lean_is_exclusive(x_11);
if (x_82 == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_83 = lean_ctor_get(x_11, 4);
lean_dec(x_83);
x_84 = lean_ctor_get(x_11, 3);
lean_dec(x_84);
x_85 = lean_ctor_get(x_11, 2);
lean_dec(x_85);
x_86 = lean_ctor_get(x_11, 1);
lean_dec(x_86);
x_87 = lean_ctor_get(x_11, 0);
lean_dec(x_87);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_20);
lean_ctor_set(x_11, 2, x_19);
lean_ctor_set(x_11, 1, x_18);
lean_ctor_set(x_11, 0, x_79);
return x_11;
}
else
{
lean_object* x_88; 
lean_dec(x_11);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_79);
lean_ctor_set(x_88, 1, x_18);
lean_ctor_set(x_88, 2, x_19);
lean_ctor_set(x_88, 3, x_20);
lean_ctor_set(x_88, 4, x_14);
return x_88;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; uint8_t x_96; 
x_89 = lean_ctor_get(x_21, 0);
x_90 = lean_ctor_get(x_21, 1);
x_91 = lean_ctor_get(x_21, 2);
x_92 = lean_ctor_get(x_21, 3);
x_93 = lean_ctor_get(x_21, 4);
lean_inc(x_93);
lean_inc(x_92);
lean_inc(x_91);
lean_inc(x_90);
lean_inc(x_89);
lean_dec(x_21);
x_94 = lean_unsigned_to_nat(2u);
x_95 = lean_nat_mul(x_94, x_28);
x_96 = lean_nat_dec_lt(x_89, x_95);
lean_dec(x_95);
if (x_96 == 0)
{
lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
lean_dec(x_89);
x_97 = lean_unsigned_to_nat(1u);
x_98 = lean_nat_add(x_97, x_17);
lean_dec(x_17);
x_99 = lean_nat_add(x_98, x_15);
lean_dec(x_98);
x_100 = lean_nat_add(x_97, x_28);
lean_dec(x_28);
x_101 = lean_nat_add(x_97, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_92) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_ctor_get(x_92, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_100, x_102);
lean_dec(x_102);
lean_dec(x_100);
lean_inc(x_20);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_18);
lean_ctor_set(x_104, 2, x_19);
lean_ctor_set(x_104, 3, x_20);
lean_ctor_set(x_104, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_105 = x_20;
} else {
 lean_dec_ref(x_20);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_93, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_101, x_106);
lean_dec(x_106);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_93);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_unsigned_to_nat(0u);
x_110 = lean_nat_add(x_101, x_109);
lean_dec(x_101);
if (lean_is_scalar(x_105)) {
 x_111 = lean_alloc_ctor(0, 5, 0);
} else {
 x_111 = x_105;
}
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_8);
lean_ctor_set(x_111, 2, x_9);
lean_ctor_set(x_111, 3, x_93);
lean_ctor_set(x_111, 4, x_11);
lean_ctor_set(x_14, 4, x_111);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_unsigned_to_nat(0u);
x_113 = lean_nat_add(x_100, x_112);
lean_dec(x_100);
lean_inc(x_20);
x_114 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_114, 0, x_113);
lean_ctor_set(x_114, 1, x_18);
lean_ctor_set(x_114, 2, x_19);
lean_ctor_set(x_114, 3, x_20);
lean_ctor_set(x_114, 4, x_92);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_115 = x_20;
} else {
 lean_dec_ref(x_20);
 x_115 = lean_box(0);
}
if (lean_obj_tag(x_93) == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_ctor_get(x_93, 0);
lean_inc(x_116);
x_117 = lean_nat_add(x_101, x_116);
lean_dec(x_116);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_115;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_8);
lean_ctor_set(x_118, 2, x_9);
lean_ctor_set(x_118, 3, x_93);
lean_ctor_set(x_118, 4, x_11);
lean_ctor_set(x_14, 4, x_118);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
else
{
lean_object* x_119; lean_object* x_120; 
x_119 = lean_nat_add(x_101, x_112);
lean_dec(x_101);
if (lean_is_scalar(x_115)) {
 x_120 = lean_alloc_ctor(0, 5, 0);
} else {
 x_120 = x_115;
}
lean_ctor_set(x_120, 0, x_119);
lean_ctor_set(x_120, 1, x_8);
lean_ctor_set(x_120, 2, x_9);
lean_ctor_set(x_120, 3, x_93);
lean_ctor_set(x_120, 4, x_11);
lean_ctor_set(x_14, 4, x_120);
lean_ctor_set(x_14, 3, x_114);
lean_ctor_set(x_14, 2, x_91);
lean_ctor_set(x_14, 1, x_90);
lean_ctor_set(x_14, 0, x_99);
return x_14;
}
}
}
else
{
lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; 
lean_dec(x_28);
x_121 = lean_unsigned_to_nat(1u);
x_122 = lean_nat_add(x_121, x_17);
lean_dec(x_17);
x_123 = lean_nat_add(x_122, x_15);
lean_dec(x_122);
x_124 = lean_nat_add(x_121, x_15);
lean_dec(x_15);
x_125 = lean_nat_add(x_124, x_89);
lean_dec(x_124);
x_126 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_126, 0, x_89);
lean_ctor_set(x_126, 1, x_90);
lean_ctor_set(x_126, 2, x_91);
lean_ctor_set(x_126, 3, x_92);
lean_ctor_set(x_126, 4, x_93);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_126);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_125);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_127 = x_11;
} else {
 lean_dec_ref(x_11);
 x_127 = lean_box(0);
}
if (lean_is_scalar(x_127)) {
 x_128 = lean_alloc_ctor(0, 5, 0);
} else {
 x_128 = x_127;
}
lean_ctor_set(x_128, 0, x_123);
lean_ctor_set(x_128, 1, x_18);
lean_ctor_set(x_128, 2, x_19);
lean_ctor_set(x_128, 3, x_20);
lean_ctor_set(x_128, 4, x_14);
return x_128;
}
}
}
}
else
{
lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; uint8_t x_136; 
x_129 = lean_ctor_get(x_14, 0);
x_130 = lean_ctor_get(x_14, 1);
x_131 = lean_ctor_get(x_14, 2);
x_132 = lean_ctor_get(x_14, 3);
x_133 = lean_ctor_get(x_14, 4);
lean_inc(x_133);
lean_inc(x_132);
lean_inc(x_131);
lean_inc(x_130);
lean_inc(x_129);
lean_dec(x_14);
x_134 = lean_unsigned_to_nat(3u);
x_135 = lean_nat_mul(x_134, x_15);
x_136 = lean_nat_dec_lt(x_135, x_129);
lean_dec(x_135);
if (x_136 == 0)
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_129);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_15);
lean_dec(x_138);
x_140 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_140, 0, x_129);
lean_ctor_set(x_140, 1, x_130);
lean_ctor_set(x_140, 2, x_131);
lean_ctor_set(x_140, 3, x_132);
lean_ctor_set(x_140, 4, x_133);
lean_ctor_set(x_4, 3, x_140);
lean_ctor_set(x_4, 0, x_139);
return x_4;
}
else
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; uint8_t x_150; 
lean_free_object(x_4);
x_141 = lean_ctor_get(x_132, 0);
lean_inc(x_141);
x_142 = lean_ctor_get(x_133, 0);
lean_inc(x_142);
x_143 = lean_ctor_get(x_133, 1);
lean_inc(x_143);
x_144 = lean_ctor_get(x_133, 2);
lean_inc(x_144);
x_145 = lean_ctor_get(x_133, 3);
lean_inc(x_145);
x_146 = lean_ctor_get(x_133, 4);
lean_inc(x_146);
if (lean_is_exclusive(x_133)) {
 lean_ctor_release(x_133, 0);
 lean_ctor_release(x_133, 1);
 lean_ctor_release(x_133, 2);
 lean_ctor_release(x_133, 3);
 lean_ctor_release(x_133, 4);
 x_147 = x_133;
} else {
 lean_dec_ref(x_133);
 x_147 = lean_box(0);
}
x_148 = lean_unsigned_to_nat(2u);
x_149 = lean_nat_mul(x_148, x_141);
x_150 = lean_nat_dec_lt(x_142, x_149);
lean_dec(x_149);
if (x_150 == 0)
{
lean_object* x_151; lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
lean_dec(x_142);
x_151 = lean_unsigned_to_nat(1u);
x_152 = lean_nat_add(x_151, x_129);
lean_dec(x_129);
x_153 = lean_nat_add(x_152, x_15);
lean_dec(x_152);
x_154 = lean_nat_add(x_151, x_141);
lean_dec(x_141);
x_155 = lean_nat_add(x_151, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_145) == 0)
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; 
x_156 = lean_ctor_get(x_145, 0);
lean_inc(x_156);
x_157 = lean_nat_add(x_154, x_156);
lean_dec(x_156);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_147;
}
lean_ctor_set(x_158, 0, x_157);
lean_ctor_set(x_158, 1, x_130);
lean_ctor_set(x_158, 2, x_131);
lean_ctor_set(x_158, 3, x_132);
lean_ctor_set(x_158, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_159 = x_132;
} else {
 lean_dec_ref(x_132);
 x_159 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_160 = lean_ctor_get(x_146, 0);
lean_inc(x_160);
x_161 = lean_nat_add(x_155, x_160);
lean_dec(x_160);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_159;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_8);
lean_ctor_set(x_162, 2, x_9);
lean_ctor_set(x_162, 3, x_146);
lean_ctor_set(x_162, 4, x_11);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_153);
lean_ctor_set(x_163, 1, x_143);
lean_ctor_set(x_163, 2, x_144);
lean_ctor_set(x_163, 3, x_158);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; 
x_164 = lean_unsigned_to_nat(0u);
x_165 = lean_nat_add(x_155, x_164);
lean_dec(x_155);
if (lean_is_scalar(x_159)) {
 x_166 = lean_alloc_ctor(0, 5, 0);
} else {
 x_166 = x_159;
}
lean_ctor_set(x_166, 0, x_165);
lean_ctor_set(x_166, 1, x_8);
lean_ctor_set(x_166, 2, x_9);
lean_ctor_set(x_166, 3, x_146);
lean_ctor_set(x_166, 4, x_11);
x_167 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_167, 0, x_153);
lean_ctor_set(x_167, 1, x_143);
lean_ctor_set(x_167, 2, x_144);
lean_ctor_set(x_167, 3, x_158);
lean_ctor_set(x_167, 4, x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
x_168 = lean_unsigned_to_nat(0u);
x_169 = lean_nat_add(x_154, x_168);
lean_dec(x_154);
lean_inc(x_132);
if (lean_is_scalar(x_147)) {
 x_170 = lean_alloc_ctor(0, 5, 0);
} else {
 x_170 = x_147;
}
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_130);
lean_ctor_set(x_170, 2, x_131);
lean_ctor_set(x_170, 3, x_132);
lean_ctor_set(x_170, 4, x_145);
if (lean_is_exclusive(x_132)) {
 lean_ctor_release(x_132, 0);
 lean_ctor_release(x_132, 1);
 lean_ctor_release(x_132, 2);
 lean_ctor_release(x_132, 3);
 lean_ctor_release(x_132, 4);
 x_171 = x_132;
} else {
 lean_dec_ref(x_132);
 x_171 = lean_box(0);
}
if (lean_obj_tag(x_146) == 0)
{
lean_object* x_172; lean_object* x_173; lean_object* x_174; lean_object* x_175; 
x_172 = lean_ctor_get(x_146, 0);
lean_inc(x_172);
x_173 = lean_nat_add(x_155, x_172);
lean_dec(x_172);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_174 = lean_alloc_ctor(0, 5, 0);
} else {
 x_174 = x_171;
}
lean_ctor_set(x_174, 0, x_173);
lean_ctor_set(x_174, 1, x_8);
lean_ctor_set(x_174, 2, x_9);
lean_ctor_set(x_174, 3, x_146);
lean_ctor_set(x_174, 4, x_11);
x_175 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_175, 0, x_153);
lean_ctor_set(x_175, 1, x_143);
lean_ctor_set(x_175, 2, x_144);
lean_ctor_set(x_175, 3, x_170);
lean_ctor_set(x_175, 4, x_174);
return x_175;
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; 
x_176 = lean_nat_add(x_155, x_168);
lean_dec(x_155);
if (lean_is_scalar(x_171)) {
 x_177 = lean_alloc_ctor(0, 5, 0);
} else {
 x_177 = x_171;
}
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_8);
lean_ctor_set(x_177, 2, x_9);
lean_ctor_set(x_177, 3, x_146);
lean_ctor_set(x_177, 4, x_11);
x_178 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_178, 0, x_153);
lean_ctor_set(x_178, 1, x_143);
lean_ctor_set(x_178, 2, x_144);
lean_ctor_set(x_178, 3, x_170);
lean_ctor_set(x_178, 4, x_177);
return x_178;
}
}
}
else
{
lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
lean_dec(x_141);
x_179 = lean_unsigned_to_nat(1u);
x_180 = lean_nat_add(x_179, x_129);
lean_dec(x_129);
x_181 = lean_nat_add(x_180, x_15);
lean_dec(x_180);
x_182 = lean_nat_add(x_179, x_15);
lean_dec(x_15);
x_183 = lean_nat_add(x_182, x_142);
lean_dec(x_182);
if (lean_is_scalar(x_147)) {
 x_184 = lean_alloc_ctor(0, 5, 0);
} else {
 x_184 = x_147;
}
lean_ctor_set(x_184, 0, x_142);
lean_ctor_set(x_184, 1, x_143);
lean_ctor_set(x_184, 2, x_144);
lean_ctor_set(x_184, 3, x_145);
lean_ctor_set(x_184, 4, x_146);
lean_inc(x_11);
x_185 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_185, 0, x_183);
lean_ctor_set(x_185, 1, x_8);
lean_ctor_set(x_185, 2, x_9);
lean_ctor_set(x_185, 3, x_184);
lean_ctor_set(x_185, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_186 = x_11;
} else {
 lean_dec_ref(x_11);
 x_186 = lean_box(0);
}
if (lean_is_scalar(x_186)) {
 x_187 = lean_alloc_ctor(0, 5, 0);
} else {
 x_187 = x_186;
}
lean_ctor_set(x_187, 0, x_181);
lean_ctor_set(x_187, 1, x_130);
lean_ctor_set(x_187, 2, x_131);
lean_ctor_set(x_187, 3, x_132);
lean_ctor_set(x_187, 4, x_185);
return x_187;
}
}
}
}
else
{
lean_object* x_188; 
x_188 = lean_ctor_get(x_14, 3);
lean_inc(x_188);
if (lean_obj_tag(x_188) == 0)
{
uint8_t x_189; 
x_189 = !lean_is_exclusive(x_14);
if (x_189 == 0)
{
lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; 
x_190 = lean_ctor_get(x_14, 1);
x_191 = lean_ctor_get(x_14, 2);
x_192 = lean_ctor_get(x_14, 4);
lean_dec(x_192);
x_193 = lean_ctor_get(x_14, 3);
lean_dec(x_193);
x_194 = lean_ctor_get(x_14, 0);
lean_dec(x_194);
x_195 = lean_box(1);
x_196 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_195);
lean_ctor_set(x_14, 3, x_195);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_196);
x_197 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_191);
lean_ctor_set(x_4, 1, x_190);
lean_ctor_set(x_4, 0, x_197);
return x_4;
}
else
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; 
x_198 = lean_ctor_get(x_14, 1);
x_199 = lean_ctor_get(x_14, 2);
lean_inc(x_199);
lean_inc(x_198);
lean_dec(x_14);
x_200 = lean_box(1);
x_201 = lean_unsigned_to_nat(1u);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_201);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_200);
lean_ctor_set(x_202, 4, x_200);
x_203 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_202);
lean_ctor_set(x_4, 3, x_188);
lean_ctor_set(x_4, 2, x_199);
lean_ctor_set(x_4, 1, x_198);
lean_ctor_set(x_4, 0, x_203);
return x_4;
}
}
else
{
lean_object* x_204; 
x_204 = lean_ctor_get(x_14, 4);
lean_inc(x_204);
if (lean_obj_tag(x_204) == 0)
{
uint8_t x_205; 
x_205 = !lean_is_exclusive(x_14);
if (x_205 == 0)
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; uint8_t x_211; 
x_206 = lean_ctor_get(x_14, 1);
x_207 = lean_ctor_get(x_14, 2);
x_208 = lean_ctor_get(x_14, 4);
lean_dec(x_208);
x_209 = lean_ctor_get(x_14, 3);
lean_dec(x_209);
x_210 = lean_ctor_get(x_14, 0);
lean_dec(x_210);
x_211 = !lean_is_exclusive(x_204);
if (x_211 == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_204, 1);
x_213 = lean_ctor_get(x_204, 2);
x_214 = lean_ctor_get(x_204, 4);
lean_dec(x_214);
x_215 = lean_ctor_get(x_204, 3);
lean_dec(x_215);
x_216 = lean_ctor_get(x_204, 0);
lean_dec(x_216);
x_217 = lean_box(1);
x_218 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_204, 4, x_217);
lean_ctor_set(x_204, 3, x_217);
lean_ctor_set(x_204, 2, x_207);
lean_ctor_set(x_204, 1, x_206);
lean_ctor_set(x_204, 0, x_218);
lean_ctor_set(x_14, 4, x_217);
lean_ctor_set(x_14, 3, x_217);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_218);
x_219 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_204);
lean_ctor_set(x_4, 2, x_213);
lean_ctor_set(x_4, 1, x_212);
lean_ctor_set(x_4, 0, x_219);
return x_4;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; 
x_220 = lean_ctor_get(x_204, 1);
x_221 = lean_ctor_get(x_204, 2);
lean_inc(x_221);
lean_inc(x_220);
lean_dec(x_204);
x_222 = lean_box(1);
x_223 = lean_unsigned_to_nat(1u);
x_224 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_224, 0, x_223);
lean_ctor_set(x_224, 1, x_206);
lean_ctor_set(x_224, 2, x_207);
lean_ctor_set(x_224, 3, x_222);
lean_ctor_set(x_224, 4, x_222);
lean_ctor_set(x_14, 4, x_222);
lean_ctor_set(x_14, 3, x_222);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_223);
x_225 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_14);
lean_ctor_set(x_4, 3, x_224);
lean_ctor_set(x_4, 2, x_221);
lean_ctor_set(x_4, 1, x_220);
lean_ctor_set(x_4, 0, x_225);
return x_4;
}
}
else
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; 
x_226 = lean_ctor_get(x_14, 1);
x_227 = lean_ctor_get(x_14, 2);
lean_inc(x_227);
lean_inc(x_226);
lean_dec(x_14);
x_228 = lean_ctor_get(x_204, 1);
lean_inc(x_228);
x_229 = lean_ctor_get(x_204, 2);
lean_inc(x_229);
if (lean_is_exclusive(x_204)) {
 lean_ctor_release(x_204, 0);
 lean_ctor_release(x_204, 1);
 lean_ctor_release(x_204, 2);
 lean_ctor_release(x_204, 3);
 lean_ctor_release(x_204, 4);
 x_230 = x_204;
} else {
 lean_dec_ref(x_204);
 x_230 = lean_box(0);
}
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_230)) {
 x_233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_233 = x_230;
}
lean_ctor_set(x_233, 0, x_232);
lean_ctor_set(x_233, 1, x_226);
lean_ctor_set(x_233, 2, x_227);
lean_ctor_set(x_233, 3, x_231);
lean_ctor_set(x_233, 4, x_231);
x_234 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_234, 0, x_232);
lean_ctor_set(x_234, 1, x_8);
lean_ctor_set(x_234, 2, x_9);
lean_ctor_set(x_234, 3, x_231);
lean_ctor_set(x_234, 4, x_231);
x_235 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_234);
lean_ctor_set(x_4, 3, x_233);
lean_ctor_set(x_4, 2, x_229);
lean_ctor_set(x_4, 1, x_228);
lean_ctor_set(x_4, 0, x_235);
return x_4;
}
}
else
{
lean_object* x_236; lean_object* x_237; 
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_236);
lean_ctor_set(x_4, 3, x_14);
lean_ctor_set(x_4, 0, x_237);
return x_4;
}
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_238; 
lean_dec(x_7);
x_238 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg(x_1, x_2, x_3, x_11, lean_box(0));
if (lean_obj_tag(x_10) == 0)
{
lean_object* x_239; uint8_t x_240; 
x_239 = lean_ctor_get(x_10, 0);
lean_inc(x_239);
x_240 = !lean_is_exclusive(x_238);
if (x_240 == 0)
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; uint8_t x_248; 
x_241 = lean_ctor_get(x_238, 0);
x_242 = lean_ctor_get(x_238, 1);
x_243 = lean_ctor_get(x_238, 2);
x_244 = lean_ctor_get(x_238, 3);
x_245 = lean_ctor_get(x_238, 4);
x_246 = lean_unsigned_to_nat(3u);
x_247 = lean_nat_mul(x_246, x_239);
x_248 = lean_nat_dec_lt(x_247, x_241);
lean_dec(x_247);
if (x_248 == 0)
{
lean_object* x_249; lean_object* x_250; lean_object* x_251; 
x_249 = lean_unsigned_to_nat(1u);
x_250 = lean_nat_add(x_249, x_239);
lean_dec(x_239);
x_251 = lean_nat_add(x_250, x_241);
lean_dec(x_250);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 0, x_251);
return x_4;
}
else
{
uint8_t x_252; 
lean_free_object(x_4);
x_252 = !lean_is_exclusive(x_244);
if (x_252 == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; uint8_t x_261; 
x_253 = lean_ctor_get(x_244, 0);
x_254 = lean_ctor_get(x_244, 1);
x_255 = lean_ctor_get(x_244, 2);
x_256 = lean_ctor_get(x_244, 3);
x_257 = lean_ctor_get(x_244, 4);
x_258 = lean_ctor_get(x_245, 0);
lean_inc(x_258);
x_259 = lean_unsigned_to_nat(2u);
x_260 = lean_nat_mul(x_259, x_258);
x_261 = lean_nat_dec_lt(x_253, x_260);
lean_dec(x_260);
if (x_261 == 0)
{
lean_object* x_262; lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_253);
x_262 = lean_unsigned_to_nat(1u);
x_263 = lean_nat_add(x_262, x_239);
lean_dec(x_239);
x_264 = lean_nat_add(x_263, x_241);
lean_dec(x_241);
x_265 = lean_nat_add(x_262, x_258);
lean_dec(x_258);
if (lean_obj_tag(x_256) == 0)
{
lean_object* x_266; lean_object* x_267; uint8_t x_268; 
x_266 = lean_ctor_get(x_256, 0);
lean_inc(x_266);
x_267 = lean_nat_add(x_263, x_266);
lean_dec(x_266);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_267);
x_268 = !lean_is_exclusive(x_10);
if (x_268 == 0)
{
lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; lean_object* x_273; 
x_269 = lean_ctor_get(x_10, 4);
lean_dec(x_269);
x_270 = lean_ctor_get(x_10, 3);
lean_dec(x_270);
x_271 = lean_ctor_get(x_10, 2);
lean_dec(x_271);
x_272 = lean_ctor_get(x_10, 1);
lean_dec(x_272);
x_273 = lean_ctor_get(x_10, 0);
lean_dec(x_273);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_274; lean_object* x_275; 
x_274 = lean_ctor_get(x_257, 0);
lean_inc(x_274);
x_275 = lean_nat_add(x_265, x_274);
lean_dec(x_274);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_275);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_276; lean_object* x_277; 
x_276 = lean_unsigned_to_nat(0u);
x_277 = lean_nat_add(x_265, x_276);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_277);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; 
x_278 = lean_ctor_get(x_257, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_265, x_278);
lean_dec(x_278);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_279);
x_280 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_280, 0, x_264);
lean_ctor_set(x_280, 1, x_254);
lean_ctor_set(x_280, 2, x_255);
lean_ctor_set(x_280, 3, x_244);
lean_ctor_set(x_280, 4, x_238);
return x_280;
}
else
{
lean_object* x_281; lean_object* x_282; lean_object* x_283; 
x_281 = lean_unsigned_to_nat(0u);
x_282 = lean_nat_add(x_265, x_281);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_282);
x_283 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_283, 0, x_264);
lean_ctor_set(x_283, 1, x_254);
lean_ctor_set(x_283, 2, x_255);
lean_ctor_set(x_283, 3, x_244);
lean_ctor_set(x_283, 4, x_238);
return x_283;
}
}
}
else
{
lean_object* x_284; lean_object* x_285; uint8_t x_286; 
x_284 = lean_unsigned_to_nat(0u);
x_285 = lean_nat_add(x_263, x_284);
lean_dec(x_263);
lean_inc(x_10);
lean_ctor_set(x_244, 4, x_256);
lean_ctor_set(x_244, 3, x_10);
lean_ctor_set(x_244, 2, x_9);
lean_ctor_set(x_244, 1, x_8);
lean_ctor_set(x_244, 0, x_285);
x_286 = !lean_is_exclusive(x_10);
if (x_286 == 0)
{
lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_287 = lean_ctor_get(x_10, 4);
lean_dec(x_287);
x_288 = lean_ctor_get(x_10, 3);
lean_dec(x_288);
x_289 = lean_ctor_get(x_10, 2);
lean_dec(x_289);
x_290 = lean_ctor_get(x_10, 1);
lean_dec(x_290);
x_291 = lean_ctor_get(x_10, 0);
lean_dec(x_291);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_292; lean_object* x_293; 
x_292 = lean_ctor_get(x_257, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_265, x_292);
lean_dec(x_292);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_293);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
else
{
lean_object* x_294; 
x_294 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_294);
lean_ctor_set(x_10, 4, x_238);
lean_ctor_set(x_10, 3, x_244);
lean_ctor_set(x_10, 2, x_255);
lean_ctor_set(x_10, 1, x_254);
lean_ctor_set(x_10, 0, x_264);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_257) == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_295 = lean_ctor_get(x_257, 0);
lean_inc(x_295);
x_296 = lean_nat_add(x_265, x_295);
lean_dec(x_295);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_296);
x_297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_297, 0, x_264);
lean_ctor_set(x_297, 1, x_254);
lean_ctor_set(x_297, 2, x_255);
lean_ctor_set(x_297, 3, x_244);
lean_ctor_set(x_297, 4, x_238);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; 
x_298 = lean_nat_add(x_265, x_284);
lean_dec(x_265);
lean_ctor_set(x_238, 3, x_257);
lean_ctor_set(x_238, 0, x_298);
x_299 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_299, 0, x_264);
lean_ctor_set(x_299, 1, x_254);
lean_ctor_set(x_299, 2, x_255);
lean_ctor_set(x_299, 3, x_244);
lean_ctor_set(x_299, 4, x_238);
return x_299;
}
}
}
}
else
{
lean_object* x_300; lean_object* x_301; lean_object* x_302; lean_object* x_303; uint8_t x_304; 
lean_dec(x_258);
x_300 = lean_unsigned_to_nat(1u);
x_301 = lean_nat_add(x_300, x_239);
lean_dec(x_239);
x_302 = lean_nat_add(x_301, x_241);
lean_dec(x_241);
x_303 = lean_nat_add(x_301, x_253);
lean_dec(x_301);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_244);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_303);
x_304 = !lean_is_exclusive(x_10);
if (x_304 == 0)
{
lean_object* x_305; lean_object* x_306; lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_305 = lean_ctor_get(x_10, 4);
lean_dec(x_305);
x_306 = lean_ctor_get(x_10, 3);
lean_dec(x_306);
x_307 = lean_ctor_get(x_10, 2);
lean_dec(x_307);
x_308 = lean_ctor_get(x_10, 1);
lean_dec(x_308);
x_309 = lean_ctor_get(x_10, 0);
lean_dec(x_309);
lean_ctor_set(x_10, 4, x_245);
lean_ctor_set(x_10, 3, x_238);
lean_ctor_set(x_10, 2, x_243);
lean_ctor_set(x_10, 1, x_242);
lean_ctor_set(x_10, 0, x_302);
return x_10;
}
else
{
lean_object* x_310; 
lean_dec(x_10);
x_310 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_310, 0, x_302);
lean_ctor_set(x_310, 1, x_242);
lean_ctor_set(x_310, 2, x_243);
lean_ctor_set(x_310, 3, x_238);
lean_ctor_set(x_310, 4, x_245);
return x_310;
}
}
}
else
{
lean_object* x_311; lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; uint8_t x_319; 
x_311 = lean_ctor_get(x_244, 0);
x_312 = lean_ctor_get(x_244, 1);
x_313 = lean_ctor_get(x_244, 2);
x_314 = lean_ctor_get(x_244, 3);
x_315 = lean_ctor_get(x_244, 4);
lean_inc(x_315);
lean_inc(x_314);
lean_inc(x_313);
lean_inc(x_312);
lean_inc(x_311);
lean_dec(x_244);
x_316 = lean_ctor_get(x_245, 0);
lean_inc(x_316);
x_317 = lean_unsigned_to_nat(2u);
x_318 = lean_nat_mul(x_317, x_316);
x_319 = lean_nat_dec_lt(x_311, x_318);
lean_dec(x_318);
if (x_319 == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
lean_dec(x_311);
x_320 = lean_unsigned_to_nat(1u);
x_321 = lean_nat_add(x_320, x_239);
lean_dec(x_239);
x_322 = lean_nat_add(x_321, x_241);
lean_dec(x_241);
x_323 = lean_nat_add(x_320, x_316);
lean_dec(x_316);
if (lean_obj_tag(x_314) == 0)
{
lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; 
x_324 = lean_ctor_get(x_314, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_321, x_324);
lean_dec(x_324);
lean_dec(x_321);
lean_inc(x_10);
x_326 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_326, 0, x_325);
lean_ctor_set(x_326, 1, x_8);
lean_ctor_set(x_326, 2, x_9);
lean_ctor_set(x_326, 3, x_10);
lean_ctor_set(x_326, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_327 = x_10;
} else {
 lean_dec_ref(x_10);
 x_327 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_328; lean_object* x_329; lean_object* x_330; 
x_328 = lean_ctor_get(x_315, 0);
lean_inc(x_328);
x_329 = lean_nat_add(x_323, x_328);
lean_dec(x_328);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_329);
if (lean_is_scalar(x_327)) {
 x_330 = lean_alloc_ctor(0, 5, 0);
} else {
 x_330 = x_327;
}
lean_ctor_set(x_330, 0, x_322);
lean_ctor_set(x_330, 1, x_312);
lean_ctor_set(x_330, 2, x_313);
lean_ctor_set(x_330, 3, x_326);
lean_ctor_set(x_330, 4, x_238);
return x_330;
}
else
{
lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_331 = lean_unsigned_to_nat(0u);
x_332 = lean_nat_add(x_323, x_331);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_332);
if (lean_is_scalar(x_327)) {
 x_333 = lean_alloc_ctor(0, 5, 0);
} else {
 x_333 = x_327;
}
lean_ctor_set(x_333, 0, x_322);
lean_ctor_set(x_333, 1, x_312);
lean_ctor_set(x_333, 2, x_313);
lean_ctor_set(x_333, 3, x_326);
lean_ctor_set(x_333, 4, x_238);
return x_333;
}
}
else
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; 
x_334 = lean_unsigned_to_nat(0u);
x_335 = lean_nat_add(x_321, x_334);
lean_dec(x_321);
lean_inc(x_10);
x_336 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_336, 0, x_335);
lean_ctor_set(x_336, 1, x_8);
lean_ctor_set(x_336, 2, x_9);
lean_ctor_set(x_336, 3, x_10);
lean_ctor_set(x_336, 4, x_314);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_337 = x_10;
} else {
 lean_dec_ref(x_10);
 x_337 = lean_box(0);
}
if (lean_obj_tag(x_315) == 0)
{
lean_object* x_338; lean_object* x_339; lean_object* x_340; 
x_338 = lean_ctor_get(x_315, 0);
lean_inc(x_338);
x_339 = lean_nat_add(x_323, x_338);
lean_dec(x_338);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_339);
if (lean_is_scalar(x_337)) {
 x_340 = lean_alloc_ctor(0, 5, 0);
} else {
 x_340 = x_337;
}
lean_ctor_set(x_340, 0, x_322);
lean_ctor_set(x_340, 1, x_312);
lean_ctor_set(x_340, 2, x_313);
lean_ctor_set(x_340, 3, x_336);
lean_ctor_set(x_340, 4, x_238);
return x_340;
}
else
{
lean_object* x_341; lean_object* x_342; 
x_341 = lean_nat_add(x_323, x_334);
lean_dec(x_323);
lean_ctor_set(x_238, 3, x_315);
lean_ctor_set(x_238, 0, x_341);
if (lean_is_scalar(x_337)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_337;
}
lean_ctor_set(x_342, 0, x_322);
lean_ctor_set(x_342, 1, x_312);
lean_ctor_set(x_342, 2, x_313);
lean_ctor_set(x_342, 3, x_336);
lean_ctor_set(x_342, 4, x_238);
return x_342;
}
}
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
lean_dec(x_316);
x_343 = lean_unsigned_to_nat(1u);
x_344 = lean_nat_add(x_343, x_239);
lean_dec(x_239);
x_345 = lean_nat_add(x_344, x_241);
lean_dec(x_241);
x_346 = lean_nat_add(x_344, x_311);
lean_dec(x_344);
x_347 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_347, 0, x_311);
lean_ctor_set(x_347, 1, x_312);
lean_ctor_set(x_347, 2, x_313);
lean_ctor_set(x_347, 3, x_314);
lean_ctor_set(x_347, 4, x_315);
lean_inc(x_10);
lean_ctor_set(x_238, 4, x_347);
lean_ctor_set(x_238, 3, x_10);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_346);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_348 = x_10;
} else {
 lean_dec_ref(x_10);
 x_348 = lean_box(0);
}
if (lean_is_scalar(x_348)) {
 x_349 = lean_alloc_ctor(0, 5, 0);
} else {
 x_349 = x_348;
}
lean_ctor_set(x_349, 0, x_345);
lean_ctor_set(x_349, 1, x_242);
lean_ctor_set(x_349, 2, x_243);
lean_ctor_set(x_349, 3, x_238);
lean_ctor_set(x_349, 4, x_245);
return x_349;
}
}
}
}
else
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; uint8_t x_357; 
x_350 = lean_ctor_get(x_238, 0);
x_351 = lean_ctor_get(x_238, 1);
x_352 = lean_ctor_get(x_238, 2);
x_353 = lean_ctor_get(x_238, 3);
x_354 = lean_ctor_get(x_238, 4);
lean_inc(x_354);
lean_inc(x_353);
lean_inc(x_352);
lean_inc(x_351);
lean_inc(x_350);
lean_dec(x_238);
x_355 = lean_unsigned_to_nat(3u);
x_356 = lean_nat_mul(x_355, x_239);
x_357 = lean_nat_dec_lt(x_356, x_350);
lean_dec(x_356);
if (x_357 == 0)
{
lean_object* x_358; lean_object* x_359; lean_object* x_360; lean_object* x_361; 
x_358 = lean_unsigned_to_nat(1u);
x_359 = lean_nat_add(x_358, x_239);
lean_dec(x_239);
x_360 = lean_nat_add(x_359, x_350);
lean_dec(x_359);
x_361 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_361, 0, x_350);
lean_ctor_set(x_361, 1, x_351);
lean_ctor_set(x_361, 2, x_352);
lean_ctor_set(x_361, 3, x_353);
lean_ctor_set(x_361, 4, x_354);
lean_ctor_set(x_4, 4, x_361);
lean_ctor_set(x_4, 0, x_360);
return x_4;
}
else
{
lean_object* x_362; lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
lean_free_object(x_4);
x_362 = lean_ctor_get(x_353, 0);
lean_inc(x_362);
x_363 = lean_ctor_get(x_353, 1);
lean_inc(x_363);
x_364 = lean_ctor_get(x_353, 2);
lean_inc(x_364);
x_365 = lean_ctor_get(x_353, 3);
lean_inc(x_365);
x_366 = lean_ctor_get(x_353, 4);
lean_inc(x_366);
if (lean_is_exclusive(x_353)) {
 lean_ctor_release(x_353, 0);
 lean_ctor_release(x_353, 1);
 lean_ctor_release(x_353, 2);
 lean_ctor_release(x_353, 3);
 lean_ctor_release(x_353, 4);
 x_367 = x_353;
} else {
 lean_dec_ref(x_353);
 x_367 = lean_box(0);
}
x_368 = lean_ctor_get(x_354, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_362, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; 
lean_dec(x_362);
x_372 = lean_unsigned_to_nat(1u);
x_373 = lean_nat_add(x_372, x_239);
lean_dec(x_239);
x_374 = lean_nat_add(x_373, x_350);
lean_dec(x_350);
x_375 = lean_nat_add(x_372, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_365) == 0)
{
lean_object* x_376; lean_object* x_377; lean_object* x_378; lean_object* x_379; 
x_376 = lean_ctor_get(x_365, 0);
lean_inc(x_376);
x_377 = lean_nat_add(x_373, x_376);
lean_dec(x_376);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_378 = lean_alloc_ctor(0, 5, 0);
} else {
 x_378 = x_367;
}
lean_ctor_set(x_378, 0, x_377);
lean_ctor_set(x_378, 1, x_8);
lean_ctor_set(x_378, 2, x_9);
lean_ctor_set(x_378, 3, x_10);
lean_ctor_set(x_378, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_379 = x_10;
} else {
 lean_dec_ref(x_10);
 x_379 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; 
x_380 = lean_ctor_get(x_366, 0);
lean_inc(x_380);
x_381 = lean_nat_add(x_375, x_380);
lean_dec(x_380);
lean_dec(x_375);
x_382 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_382, 0, x_381);
lean_ctor_set(x_382, 1, x_351);
lean_ctor_set(x_382, 2, x_352);
lean_ctor_set(x_382, 3, x_366);
lean_ctor_set(x_382, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_379;
}
lean_ctor_set(x_383, 0, x_374);
lean_ctor_set(x_383, 1, x_363);
lean_ctor_set(x_383, 2, x_364);
lean_ctor_set(x_383, 3, x_378);
lean_ctor_set(x_383, 4, x_382);
return x_383;
}
else
{
lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_384 = lean_unsigned_to_nat(0u);
x_385 = lean_nat_add(x_375, x_384);
lean_dec(x_375);
x_386 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_386, 0, x_385);
lean_ctor_set(x_386, 1, x_351);
lean_ctor_set(x_386, 2, x_352);
lean_ctor_set(x_386, 3, x_366);
lean_ctor_set(x_386, 4, x_354);
if (lean_is_scalar(x_379)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_379;
}
lean_ctor_set(x_387, 0, x_374);
lean_ctor_set(x_387, 1, x_363);
lean_ctor_set(x_387, 2, x_364);
lean_ctor_set(x_387, 3, x_378);
lean_ctor_set(x_387, 4, x_386);
return x_387;
}
}
else
{
lean_object* x_388; lean_object* x_389; lean_object* x_390; lean_object* x_391; 
x_388 = lean_unsigned_to_nat(0u);
x_389 = lean_nat_add(x_373, x_388);
lean_dec(x_373);
lean_inc(x_10);
if (lean_is_scalar(x_367)) {
 x_390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_390 = x_367;
}
lean_ctor_set(x_390, 0, x_389);
lean_ctor_set(x_390, 1, x_8);
lean_ctor_set(x_390, 2, x_9);
lean_ctor_set(x_390, 3, x_10);
lean_ctor_set(x_390, 4, x_365);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_391 = x_10;
} else {
 lean_dec_ref(x_10);
 x_391 = lean_box(0);
}
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_392 = lean_ctor_get(x_366, 0);
lean_inc(x_392);
x_393 = lean_nat_add(x_375, x_392);
lean_dec(x_392);
lean_dec(x_375);
x_394 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_394, 0, x_393);
lean_ctor_set(x_394, 1, x_351);
lean_ctor_set(x_394, 2, x_352);
lean_ctor_set(x_394, 3, x_366);
lean_ctor_set(x_394, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_391;
}
lean_ctor_set(x_395, 0, x_374);
lean_ctor_set(x_395, 1, x_363);
lean_ctor_set(x_395, 2, x_364);
lean_ctor_set(x_395, 3, x_390);
lean_ctor_set(x_395, 4, x_394);
return x_395;
}
else
{
lean_object* x_396; lean_object* x_397; lean_object* x_398; 
x_396 = lean_nat_add(x_375, x_388);
lean_dec(x_375);
x_397 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_397, 0, x_396);
lean_ctor_set(x_397, 1, x_351);
lean_ctor_set(x_397, 2, x_352);
lean_ctor_set(x_397, 3, x_366);
lean_ctor_set(x_397, 4, x_354);
if (lean_is_scalar(x_391)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_391;
}
lean_ctor_set(x_398, 0, x_374);
lean_ctor_set(x_398, 1, x_363);
lean_ctor_set(x_398, 2, x_364);
lean_ctor_set(x_398, 3, x_390);
lean_ctor_set(x_398, 4, x_397);
return x_398;
}
}
}
else
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
x_399 = lean_unsigned_to_nat(1u);
x_400 = lean_nat_add(x_399, x_239);
lean_dec(x_239);
x_401 = lean_nat_add(x_400, x_350);
lean_dec(x_350);
x_402 = lean_nat_add(x_400, x_362);
lean_dec(x_400);
if (lean_is_scalar(x_367)) {
 x_403 = lean_alloc_ctor(0, 5, 0);
} else {
 x_403 = x_367;
}
lean_ctor_set(x_403, 0, x_362);
lean_ctor_set(x_403, 1, x_363);
lean_ctor_set(x_403, 2, x_364);
lean_ctor_set(x_403, 3, x_365);
lean_ctor_set(x_403, 4, x_366);
lean_inc(x_10);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_402);
lean_ctor_set(x_404, 1, x_8);
lean_ctor_set(x_404, 2, x_9);
lean_ctor_set(x_404, 3, x_10);
lean_ctor_set(x_404, 4, x_403);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_405 = x_10;
} else {
 lean_dec_ref(x_10);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_401);
lean_ctor_set(x_406, 1, x_351);
lean_ctor_set(x_406, 2, x_352);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_354);
return x_406;
}
}
}
}
else
{
lean_object* x_407; 
x_407 = lean_ctor_get(x_238, 3);
lean_inc(x_407);
if (lean_obj_tag(x_407) == 0)
{
uint8_t x_408; 
x_408 = !lean_is_exclusive(x_238);
if (x_408 == 0)
{
lean_object* x_409; lean_object* x_410; lean_object* x_411; uint8_t x_412; 
x_409 = lean_ctor_get(x_238, 4);
lean_dec(x_409);
x_410 = lean_ctor_get(x_238, 3);
lean_dec(x_410);
x_411 = lean_ctor_get(x_238, 0);
lean_dec(x_411);
x_412 = !lean_is_exclusive(x_407);
if (x_412 == 0)
{
lean_object* x_413; lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; 
x_413 = lean_ctor_get(x_407, 1);
x_414 = lean_ctor_get(x_407, 2);
x_415 = lean_ctor_get(x_407, 4);
lean_dec(x_415);
x_416 = lean_ctor_get(x_407, 3);
lean_dec(x_416);
x_417 = lean_ctor_get(x_407, 0);
lean_dec(x_417);
x_418 = lean_box(1);
x_419 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_407, 4, x_418);
lean_ctor_set(x_407, 3, x_418);
lean_ctor_set(x_407, 2, x_9);
lean_ctor_set(x_407, 1, x_8);
lean_ctor_set(x_407, 0, x_419);
lean_ctor_set(x_238, 4, x_418);
lean_ctor_set(x_238, 3, x_418);
lean_ctor_set(x_238, 0, x_419);
x_420 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_407);
lean_ctor_set(x_4, 2, x_414);
lean_ctor_set(x_4, 1, x_413);
lean_ctor_set(x_4, 0, x_420);
return x_4;
}
else
{
lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; 
x_421 = lean_ctor_get(x_407, 1);
x_422 = lean_ctor_get(x_407, 2);
lean_inc(x_422);
lean_inc(x_421);
lean_dec(x_407);
x_423 = lean_box(1);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_425, 0, x_424);
lean_ctor_set(x_425, 1, x_8);
lean_ctor_set(x_425, 2, x_9);
lean_ctor_set(x_425, 3, x_423);
lean_ctor_set(x_425, 4, x_423);
lean_ctor_set(x_238, 4, x_423);
lean_ctor_set(x_238, 3, x_423);
lean_ctor_set(x_238, 0, x_424);
x_426 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_425);
lean_ctor_set(x_4, 2, x_422);
lean_ctor_set(x_4, 1, x_421);
lean_ctor_set(x_4, 0, x_426);
return x_4;
}
}
else
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_427 = lean_ctor_get(x_238, 1);
x_428 = lean_ctor_get(x_238, 2);
lean_inc(x_428);
lean_inc(x_427);
lean_dec(x_238);
x_429 = lean_ctor_get(x_407, 1);
lean_inc(x_429);
x_430 = lean_ctor_get(x_407, 2);
lean_inc(x_430);
if (lean_is_exclusive(x_407)) {
 lean_ctor_release(x_407, 0);
 lean_ctor_release(x_407, 1);
 lean_ctor_release(x_407, 2);
 lean_ctor_release(x_407, 3);
 lean_ctor_release(x_407, 4);
 x_431 = x_407;
} else {
 lean_dec_ref(x_407);
 x_431 = lean_box(0);
}
x_432 = lean_box(1);
x_433 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_431)) {
 x_434 = lean_alloc_ctor(0, 5, 0);
} else {
 x_434 = x_431;
}
lean_ctor_set(x_434, 0, x_433);
lean_ctor_set(x_434, 1, x_8);
lean_ctor_set(x_434, 2, x_9);
lean_ctor_set(x_434, 3, x_432);
lean_ctor_set(x_434, 4, x_432);
x_435 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_435, 0, x_433);
lean_ctor_set(x_435, 1, x_427);
lean_ctor_set(x_435, 2, x_428);
lean_ctor_set(x_435, 3, x_432);
lean_ctor_set(x_435, 4, x_432);
x_436 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_435);
lean_ctor_set(x_4, 3, x_434);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_436);
return x_4;
}
}
else
{
lean_object* x_437; 
x_437 = lean_ctor_get(x_238, 4);
lean_inc(x_437);
if (lean_obj_tag(x_437) == 0)
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_238);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_238, 1);
x_440 = lean_ctor_get(x_238, 2);
x_441 = lean_ctor_get(x_238, 4);
lean_dec(x_441);
x_442 = lean_ctor_get(x_238, 3);
lean_dec(x_442);
x_443 = lean_ctor_get(x_238, 0);
lean_dec(x_443);
x_444 = lean_box(1);
x_445 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_238, 4, x_444);
lean_ctor_set(x_238, 3, x_444);
lean_ctor_set(x_238, 2, x_9);
lean_ctor_set(x_238, 1, x_8);
lean_ctor_set(x_238, 0, x_445);
x_446 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_238);
lean_ctor_set(x_4, 2, x_440);
lean_ctor_set(x_4, 1, x_439);
lean_ctor_set(x_4, 0, x_446);
return x_4;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; 
x_447 = lean_ctor_get(x_238, 1);
x_448 = lean_ctor_get(x_238, 2);
lean_inc(x_448);
lean_inc(x_447);
lean_dec(x_238);
x_449 = lean_box(1);
x_450 = lean_unsigned_to_nat(1u);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_8);
lean_ctor_set(x_451, 2, x_9);
lean_ctor_set(x_451, 3, x_449);
lean_ctor_set(x_451, 4, x_449);
x_452 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_437);
lean_ctor_set(x_4, 3, x_451);
lean_ctor_set(x_4, 2, x_448);
lean_ctor_set(x_4, 1, x_447);
lean_ctor_set(x_4, 0, x_452);
return x_4;
}
}
else
{
lean_object* x_453; lean_object* x_454; 
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_238);
lean_ctor_set(x_4, 3, x_453);
lean_ctor_set(x_4, 0, x_454);
return x_4;
}
}
}
}
}
}
else
{
lean_object* x_455; lean_object* x_456; lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; uint8_t x_461; 
x_455 = lean_ctor_get(x_4, 0);
x_456 = lean_ctor_get(x_4, 1);
x_457 = lean_ctor_get(x_4, 2);
x_458 = lean_ctor_get(x_4, 3);
x_459 = lean_ctor_get(x_4, 4);
lean_inc(x_459);
lean_inc(x_458);
lean_inc(x_457);
lean_inc(x_456);
lean_inc(x_455);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_456);
lean_inc(x_2);
x_460 = lean_apply_2(x_1, x_2, x_456);
x_461 = lean_unbox(x_460);
lean_dec(x_460);
switch (x_461) {
case 0:
{
lean_object* x_462; 
lean_dec(x_455);
x_462 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg(x_1, x_2, x_3, x_458, lean_box(0));
if (lean_obj_tag(x_459) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; uint8_t x_472; 
x_463 = lean_ctor_get(x_459, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_462, 0);
lean_inc(x_464);
x_465 = lean_ctor_get(x_462, 1);
lean_inc(x_465);
x_466 = lean_ctor_get(x_462, 2);
lean_inc(x_466);
x_467 = lean_ctor_get(x_462, 3);
lean_inc(x_467);
x_468 = lean_ctor_get(x_462, 4);
lean_inc(x_468);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_469 = x_462;
} else {
 lean_dec_ref(x_462);
 x_469 = lean_box(0);
}
x_470 = lean_unsigned_to_nat(3u);
x_471 = lean_nat_mul(x_470, x_463);
x_472 = lean_nat_dec_lt(x_471, x_464);
lean_dec(x_471);
if (x_472 == 0)
{
lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
x_473 = lean_unsigned_to_nat(1u);
x_474 = lean_nat_add(x_473, x_464);
x_475 = lean_nat_add(x_474, x_463);
lean_dec(x_463);
lean_dec(x_474);
if (lean_is_scalar(x_469)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_469;
}
lean_ctor_set(x_476, 0, x_464);
lean_ctor_set(x_476, 1, x_465);
lean_ctor_set(x_476, 2, x_466);
lean_ctor_set(x_476, 3, x_467);
lean_ctor_set(x_476, 4, x_468);
x_477 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_477, 0, x_475);
lean_ctor_set(x_477, 1, x_456);
lean_ctor_set(x_477, 2, x_457);
lean_ctor_set(x_477, 3, x_476);
lean_ctor_set(x_477, 4, x_459);
return x_477;
}
else
{
lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; lean_object* x_486; uint8_t x_487; 
x_478 = lean_ctor_get(x_467, 0);
lean_inc(x_478);
x_479 = lean_ctor_get(x_468, 0);
lean_inc(x_479);
x_480 = lean_ctor_get(x_468, 1);
lean_inc(x_480);
x_481 = lean_ctor_get(x_468, 2);
lean_inc(x_481);
x_482 = lean_ctor_get(x_468, 3);
lean_inc(x_482);
x_483 = lean_ctor_get(x_468, 4);
lean_inc(x_483);
if (lean_is_exclusive(x_468)) {
 lean_ctor_release(x_468, 0);
 lean_ctor_release(x_468, 1);
 lean_ctor_release(x_468, 2);
 lean_ctor_release(x_468, 3);
 lean_ctor_release(x_468, 4);
 x_484 = x_468;
} else {
 lean_dec_ref(x_468);
 x_484 = lean_box(0);
}
x_485 = lean_unsigned_to_nat(2u);
x_486 = lean_nat_mul(x_485, x_478);
x_487 = lean_nat_dec_lt(x_479, x_486);
lean_dec(x_486);
if (x_487 == 0)
{
lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; 
lean_dec(x_479);
x_488 = lean_unsigned_to_nat(1u);
x_489 = lean_nat_add(x_488, x_464);
lean_dec(x_464);
x_490 = lean_nat_add(x_489, x_463);
lean_dec(x_489);
x_491 = lean_nat_add(x_488, x_478);
lean_dec(x_478);
x_492 = lean_nat_add(x_488, x_463);
lean_dec(x_463);
if (lean_obj_tag(x_482) == 0)
{
lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; 
x_493 = lean_ctor_get(x_482, 0);
lean_inc(x_493);
x_494 = lean_nat_add(x_491, x_493);
lean_dec(x_493);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_495 = lean_alloc_ctor(0, 5, 0);
} else {
 x_495 = x_484;
}
lean_ctor_set(x_495, 0, x_494);
lean_ctor_set(x_495, 1, x_465);
lean_ctor_set(x_495, 2, x_466);
lean_ctor_set(x_495, 3, x_467);
lean_ctor_set(x_495, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_496 = x_467;
} else {
 lean_dec_ref(x_467);
 x_496 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; 
x_497 = lean_ctor_get(x_483, 0);
lean_inc(x_497);
x_498 = lean_nat_add(x_492, x_497);
lean_dec(x_497);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_499 = x_496;
}
lean_ctor_set(x_499, 0, x_498);
lean_ctor_set(x_499, 1, x_456);
lean_ctor_set(x_499, 2, x_457);
lean_ctor_set(x_499, 3, x_483);
lean_ctor_set(x_499, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_500 = x_469;
}
lean_ctor_set(x_500, 0, x_490);
lean_ctor_set(x_500, 1, x_480);
lean_ctor_set(x_500, 2, x_481);
lean_ctor_set(x_500, 3, x_495);
lean_ctor_set(x_500, 4, x_499);
return x_500;
}
else
{
lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
x_501 = lean_unsigned_to_nat(0u);
x_502 = lean_nat_add(x_492, x_501);
lean_dec(x_492);
if (lean_is_scalar(x_496)) {
 x_503 = lean_alloc_ctor(0, 5, 0);
} else {
 x_503 = x_496;
}
lean_ctor_set(x_503, 0, x_502);
lean_ctor_set(x_503, 1, x_456);
lean_ctor_set(x_503, 2, x_457);
lean_ctor_set(x_503, 3, x_483);
lean_ctor_set(x_503, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_504 = lean_alloc_ctor(0, 5, 0);
} else {
 x_504 = x_469;
}
lean_ctor_set(x_504, 0, x_490);
lean_ctor_set(x_504, 1, x_480);
lean_ctor_set(x_504, 2, x_481);
lean_ctor_set(x_504, 3, x_495);
lean_ctor_set(x_504, 4, x_503);
return x_504;
}
}
else
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_unsigned_to_nat(0u);
x_506 = lean_nat_add(x_491, x_505);
lean_dec(x_491);
lean_inc(x_467);
if (lean_is_scalar(x_484)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_484;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_465);
lean_ctor_set(x_507, 2, x_466);
lean_ctor_set(x_507, 3, x_467);
lean_ctor_set(x_507, 4, x_482);
if (lean_is_exclusive(x_467)) {
 lean_ctor_release(x_467, 0);
 lean_ctor_release(x_467, 1);
 lean_ctor_release(x_467, 2);
 lean_ctor_release(x_467, 3);
 lean_ctor_release(x_467, 4);
 x_508 = x_467;
} else {
 lean_dec_ref(x_467);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_483) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_483, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_492, x_509);
lean_dec(x_509);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_456);
lean_ctor_set(x_511, 2, x_457);
lean_ctor_set(x_511, 3, x_483);
lean_ctor_set(x_511, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_469;
}
lean_ctor_set(x_512, 0, x_490);
lean_ctor_set(x_512, 1, x_480);
lean_ctor_set(x_512, 2, x_481);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; 
x_513 = lean_nat_add(x_492, x_505);
lean_dec(x_492);
if (lean_is_scalar(x_508)) {
 x_514 = lean_alloc_ctor(0, 5, 0);
} else {
 x_514 = x_508;
}
lean_ctor_set(x_514, 0, x_513);
lean_ctor_set(x_514, 1, x_456);
lean_ctor_set(x_514, 2, x_457);
lean_ctor_set(x_514, 3, x_483);
lean_ctor_set(x_514, 4, x_459);
if (lean_is_scalar(x_469)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_469;
}
lean_ctor_set(x_515, 0, x_490);
lean_ctor_set(x_515, 1, x_480);
lean_ctor_set(x_515, 2, x_481);
lean_ctor_set(x_515, 3, x_507);
lean_ctor_set(x_515, 4, x_514);
return x_515;
}
}
}
else
{
lean_object* x_516; lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
lean_dec(x_478);
x_516 = lean_unsigned_to_nat(1u);
x_517 = lean_nat_add(x_516, x_464);
lean_dec(x_464);
x_518 = lean_nat_add(x_517, x_463);
lean_dec(x_517);
x_519 = lean_nat_add(x_516, x_463);
lean_dec(x_463);
x_520 = lean_nat_add(x_519, x_479);
lean_dec(x_519);
if (lean_is_scalar(x_484)) {
 x_521 = lean_alloc_ctor(0, 5, 0);
} else {
 x_521 = x_484;
}
lean_ctor_set(x_521, 0, x_479);
lean_ctor_set(x_521, 1, x_480);
lean_ctor_set(x_521, 2, x_481);
lean_ctor_set(x_521, 3, x_482);
lean_ctor_set(x_521, 4, x_483);
lean_inc(x_459);
if (lean_is_scalar(x_469)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_469;
}
lean_ctor_set(x_522, 0, x_520);
lean_ctor_set(x_522, 1, x_456);
lean_ctor_set(x_522, 2, x_457);
lean_ctor_set(x_522, 3, x_521);
lean_ctor_set(x_522, 4, x_459);
if (lean_is_exclusive(x_459)) {
 lean_ctor_release(x_459, 0);
 lean_ctor_release(x_459, 1);
 lean_ctor_release(x_459, 2);
 lean_ctor_release(x_459, 3);
 lean_ctor_release(x_459, 4);
 x_523 = x_459;
} else {
 lean_dec_ref(x_459);
 x_523 = lean_box(0);
}
if (lean_is_scalar(x_523)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_523;
}
lean_ctor_set(x_524, 0, x_518);
lean_ctor_set(x_524, 1, x_465);
lean_ctor_set(x_524, 2, x_466);
lean_ctor_set(x_524, 3, x_467);
lean_ctor_set(x_524, 4, x_522);
return x_524;
}
}
}
else
{
lean_object* x_525; 
x_525 = lean_ctor_get(x_462, 3);
lean_inc(x_525);
if (lean_obj_tag(x_525) == 0)
{
lean_object* x_526; lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
x_526 = lean_ctor_get(x_462, 1);
lean_inc(x_526);
x_527 = lean_ctor_get(x_462, 2);
lean_inc(x_527);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_528 = x_462;
} else {
 lean_dec_ref(x_462);
 x_528 = lean_box(0);
}
x_529 = lean_box(1);
x_530 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_528)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_528;
}
lean_ctor_set(x_531, 0, x_530);
lean_ctor_set(x_531, 1, x_456);
lean_ctor_set(x_531, 2, x_457);
lean_ctor_set(x_531, 3, x_529);
lean_ctor_set(x_531, 4, x_529);
x_532 = lean_unsigned_to_nat(3u);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_526);
lean_ctor_set(x_533, 2, x_527);
lean_ctor_set(x_533, 3, x_525);
lean_ctor_set(x_533, 4, x_531);
return x_533;
}
else
{
lean_object* x_534; 
x_534 = lean_ctor_get(x_462, 4);
lean_inc(x_534);
if (lean_obj_tag(x_534) == 0)
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_535 = lean_ctor_get(x_462, 1);
lean_inc(x_535);
x_536 = lean_ctor_get(x_462, 2);
lean_inc(x_536);
if (lean_is_exclusive(x_462)) {
 lean_ctor_release(x_462, 0);
 lean_ctor_release(x_462, 1);
 lean_ctor_release(x_462, 2);
 lean_ctor_release(x_462, 3);
 lean_ctor_release(x_462, 4);
 x_537 = x_462;
} else {
 lean_dec_ref(x_462);
 x_537 = lean_box(0);
}
x_538 = lean_ctor_get(x_534, 1);
lean_inc(x_538);
x_539 = lean_ctor_get(x_534, 2);
lean_inc(x_539);
if (lean_is_exclusive(x_534)) {
 lean_ctor_release(x_534, 0);
 lean_ctor_release(x_534, 1);
 lean_ctor_release(x_534, 2);
 lean_ctor_release(x_534, 3);
 lean_ctor_release(x_534, 4);
 x_540 = x_534;
} else {
 lean_dec_ref(x_534);
 x_540 = lean_box(0);
}
x_541 = lean_box(1);
x_542 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_540)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_540;
}
lean_ctor_set(x_543, 0, x_542);
lean_ctor_set(x_543, 1, x_535);
lean_ctor_set(x_543, 2, x_536);
lean_ctor_set(x_543, 3, x_541);
lean_ctor_set(x_543, 4, x_541);
if (lean_is_scalar(x_537)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_537;
}
lean_ctor_set(x_544, 0, x_542);
lean_ctor_set(x_544, 1, x_456);
lean_ctor_set(x_544, 2, x_457);
lean_ctor_set(x_544, 3, x_541);
lean_ctor_set(x_544, 4, x_541);
x_545 = lean_unsigned_to_nat(3u);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_545);
lean_ctor_set(x_546, 1, x_538);
lean_ctor_set(x_546, 2, x_539);
lean_ctor_set(x_546, 3, x_543);
lean_ctor_set(x_546, 4, x_544);
return x_546;
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; 
x_547 = lean_box(1);
x_548 = lean_unsigned_to_nat(2u);
x_549 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_549, 0, x_548);
lean_ctor_set(x_549, 1, x_456);
lean_ctor_set(x_549, 2, x_457);
lean_ctor_set(x_549, 3, x_462);
lean_ctor_set(x_549, 4, x_547);
return x_549;
}
}
}
}
case 1:
{
lean_object* x_550; 
lean_dec(x_457);
lean_dec(x_456);
lean_dec(x_1);
x_550 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_550, 0, x_455);
lean_ctor_set(x_550, 1, x_2);
lean_ctor_set(x_550, 2, x_3);
lean_ctor_set(x_550, 3, x_458);
lean_ctor_set(x_550, 4, x_459);
return x_550;
}
default: 
{
lean_object* x_551; 
lean_dec(x_455);
x_551 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg(x_1, x_2, x_3, x_459, lean_box(0));
if (lean_obj_tag(x_458) == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; uint8_t x_561; 
x_552 = lean_ctor_get(x_458, 0);
lean_inc(x_552);
x_553 = lean_ctor_get(x_551, 0);
lean_inc(x_553);
x_554 = lean_ctor_get(x_551, 1);
lean_inc(x_554);
x_555 = lean_ctor_get(x_551, 2);
lean_inc(x_555);
x_556 = lean_ctor_get(x_551, 3);
lean_inc(x_556);
x_557 = lean_ctor_get(x_551, 4);
lean_inc(x_557);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_558 = x_551;
} else {
 lean_dec_ref(x_551);
 x_558 = lean_box(0);
}
x_559 = lean_unsigned_to_nat(3u);
x_560 = lean_nat_mul(x_559, x_552);
x_561 = lean_nat_dec_lt(x_560, x_553);
lean_dec(x_560);
if (x_561 == 0)
{
lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
x_562 = lean_unsigned_to_nat(1u);
x_563 = lean_nat_add(x_562, x_552);
lean_dec(x_552);
x_564 = lean_nat_add(x_563, x_553);
lean_dec(x_563);
if (lean_is_scalar(x_558)) {
 x_565 = lean_alloc_ctor(0, 5, 0);
} else {
 x_565 = x_558;
}
lean_ctor_set(x_565, 0, x_553);
lean_ctor_set(x_565, 1, x_554);
lean_ctor_set(x_565, 2, x_555);
lean_ctor_set(x_565, 3, x_556);
lean_ctor_set(x_565, 4, x_557);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_564);
lean_ctor_set(x_566, 1, x_456);
lean_ctor_set(x_566, 2, x_457);
lean_ctor_set(x_566, 3, x_458);
lean_ctor_set(x_566, 4, x_565);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; uint8_t x_576; 
x_567 = lean_ctor_get(x_556, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_556, 1);
lean_inc(x_568);
x_569 = lean_ctor_get(x_556, 2);
lean_inc(x_569);
x_570 = lean_ctor_get(x_556, 3);
lean_inc(x_570);
x_571 = lean_ctor_get(x_556, 4);
lean_inc(x_571);
if (lean_is_exclusive(x_556)) {
 lean_ctor_release(x_556, 0);
 lean_ctor_release(x_556, 1);
 lean_ctor_release(x_556, 2);
 lean_ctor_release(x_556, 3);
 lean_ctor_release(x_556, 4);
 x_572 = x_556;
} else {
 lean_dec_ref(x_556);
 x_572 = lean_box(0);
}
x_573 = lean_ctor_get(x_557, 0);
lean_inc(x_573);
x_574 = lean_unsigned_to_nat(2u);
x_575 = lean_nat_mul(x_574, x_573);
x_576 = lean_nat_dec_lt(x_567, x_575);
lean_dec(x_575);
if (x_576 == 0)
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; 
lean_dec(x_567);
x_577 = lean_unsigned_to_nat(1u);
x_578 = lean_nat_add(x_577, x_552);
lean_dec(x_552);
x_579 = lean_nat_add(x_578, x_553);
lean_dec(x_553);
x_580 = lean_nat_add(x_577, x_573);
lean_dec(x_573);
if (lean_obj_tag(x_570) == 0)
{
lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_581 = lean_ctor_get(x_570, 0);
lean_inc(x_581);
x_582 = lean_nat_add(x_578, x_581);
lean_dec(x_581);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_583 = lean_alloc_ctor(0, 5, 0);
} else {
 x_583 = x_572;
}
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_456);
lean_ctor_set(x_583, 2, x_457);
lean_ctor_set(x_583, 3, x_458);
lean_ctor_set(x_583, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_584 = x_458;
} else {
 lean_dec_ref(x_458);
 x_584 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; 
x_585 = lean_ctor_get(x_571, 0);
lean_inc(x_585);
x_586 = lean_nat_add(x_580, x_585);
lean_dec(x_585);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_587 = lean_alloc_ctor(0, 5, 0);
} else {
 x_587 = x_558;
}
lean_ctor_set(x_587, 0, x_586);
lean_ctor_set(x_587, 1, x_554);
lean_ctor_set(x_587, 2, x_555);
lean_ctor_set(x_587, 3, x_571);
lean_ctor_set(x_587, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_588 = lean_alloc_ctor(0, 5, 0);
} else {
 x_588 = x_584;
}
lean_ctor_set(x_588, 0, x_579);
lean_ctor_set(x_588, 1, x_568);
lean_ctor_set(x_588, 2, x_569);
lean_ctor_set(x_588, 3, x_583);
lean_ctor_set(x_588, 4, x_587);
return x_588;
}
else
{
lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; 
x_589 = lean_unsigned_to_nat(0u);
x_590 = lean_nat_add(x_580, x_589);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_591 = lean_alloc_ctor(0, 5, 0);
} else {
 x_591 = x_558;
}
lean_ctor_set(x_591, 0, x_590);
lean_ctor_set(x_591, 1, x_554);
lean_ctor_set(x_591, 2, x_555);
lean_ctor_set(x_591, 3, x_571);
lean_ctor_set(x_591, 4, x_557);
if (lean_is_scalar(x_584)) {
 x_592 = lean_alloc_ctor(0, 5, 0);
} else {
 x_592 = x_584;
}
lean_ctor_set(x_592, 0, x_579);
lean_ctor_set(x_592, 1, x_568);
lean_ctor_set(x_592, 2, x_569);
lean_ctor_set(x_592, 3, x_583);
lean_ctor_set(x_592, 4, x_591);
return x_592;
}
}
else
{
lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_593 = lean_unsigned_to_nat(0u);
x_594 = lean_nat_add(x_578, x_593);
lean_dec(x_578);
lean_inc(x_458);
if (lean_is_scalar(x_572)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_572;
}
lean_ctor_set(x_595, 0, x_594);
lean_ctor_set(x_595, 1, x_456);
lean_ctor_set(x_595, 2, x_457);
lean_ctor_set(x_595, 3, x_458);
lean_ctor_set(x_595, 4, x_570);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_596 = x_458;
} else {
 lean_dec_ref(x_458);
 x_596 = lean_box(0);
}
if (lean_obj_tag(x_571) == 0)
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_597 = lean_ctor_get(x_571, 0);
lean_inc(x_597);
x_598 = lean_nat_add(x_580, x_597);
lean_dec(x_597);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_599 = lean_alloc_ctor(0, 5, 0);
} else {
 x_599 = x_558;
}
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_554);
lean_ctor_set(x_599, 2, x_555);
lean_ctor_set(x_599, 3, x_571);
lean_ctor_set(x_599, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_600 = lean_alloc_ctor(0, 5, 0);
} else {
 x_600 = x_596;
}
lean_ctor_set(x_600, 0, x_579);
lean_ctor_set(x_600, 1, x_568);
lean_ctor_set(x_600, 2, x_569);
lean_ctor_set(x_600, 3, x_595);
lean_ctor_set(x_600, 4, x_599);
return x_600;
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_nat_add(x_580, x_593);
lean_dec(x_580);
if (lean_is_scalar(x_558)) {
 x_602 = lean_alloc_ctor(0, 5, 0);
} else {
 x_602 = x_558;
}
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_554);
lean_ctor_set(x_602, 2, x_555);
lean_ctor_set(x_602, 3, x_571);
lean_ctor_set(x_602, 4, x_557);
if (lean_is_scalar(x_596)) {
 x_603 = lean_alloc_ctor(0, 5, 0);
} else {
 x_603 = x_596;
}
lean_ctor_set(x_603, 0, x_579);
lean_ctor_set(x_603, 1, x_568);
lean_ctor_set(x_603, 2, x_569);
lean_ctor_set(x_603, 3, x_595);
lean_ctor_set(x_603, 4, x_602);
return x_603;
}
}
}
else
{
lean_object* x_604; lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; 
lean_dec(x_573);
x_604 = lean_unsigned_to_nat(1u);
x_605 = lean_nat_add(x_604, x_552);
lean_dec(x_552);
x_606 = lean_nat_add(x_605, x_553);
lean_dec(x_553);
x_607 = lean_nat_add(x_605, x_567);
lean_dec(x_605);
if (lean_is_scalar(x_572)) {
 x_608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_608 = x_572;
}
lean_ctor_set(x_608, 0, x_567);
lean_ctor_set(x_608, 1, x_568);
lean_ctor_set(x_608, 2, x_569);
lean_ctor_set(x_608, 3, x_570);
lean_ctor_set(x_608, 4, x_571);
lean_inc(x_458);
if (lean_is_scalar(x_558)) {
 x_609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_609 = x_558;
}
lean_ctor_set(x_609, 0, x_607);
lean_ctor_set(x_609, 1, x_456);
lean_ctor_set(x_609, 2, x_457);
lean_ctor_set(x_609, 3, x_458);
lean_ctor_set(x_609, 4, x_608);
if (lean_is_exclusive(x_458)) {
 lean_ctor_release(x_458, 0);
 lean_ctor_release(x_458, 1);
 lean_ctor_release(x_458, 2);
 lean_ctor_release(x_458, 3);
 lean_ctor_release(x_458, 4);
 x_610 = x_458;
} else {
 lean_dec_ref(x_458);
 x_610 = lean_box(0);
}
if (lean_is_scalar(x_610)) {
 x_611 = lean_alloc_ctor(0, 5, 0);
} else {
 x_611 = x_610;
}
lean_ctor_set(x_611, 0, x_606);
lean_ctor_set(x_611, 1, x_554);
lean_ctor_set(x_611, 2, x_555);
lean_ctor_set(x_611, 3, x_609);
lean_ctor_set(x_611, 4, x_557);
return x_611;
}
}
}
else
{
lean_object* x_612; 
x_612 = lean_ctor_get(x_551, 3);
lean_inc(x_612);
if (lean_obj_tag(x_612) == 0)
{
lean_object* x_613; lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; 
x_613 = lean_ctor_get(x_551, 1);
lean_inc(x_613);
x_614 = lean_ctor_get(x_551, 2);
lean_inc(x_614);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_615 = x_551;
} else {
 lean_dec_ref(x_551);
 x_615 = lean_box(0);
}
x_616 = lean_ctor_get(x_612, 1);
lean_inc(x_616);
x_617 = lean_ctor_get(x_612, 2);
lean_inc(x_617);
if (lean_is_exclusive(x_612)) {
 lean_ctor_release(x_612, 0);
 lean_ctor_release(x_612, 1);
 lean_ctor_release(x_612, 2);
 lean_ctor_release(x_612, 3);
 lean_ctor_release(x_612, 4);
 x_618 = x_612;
} else {
 lean_dec_ref(x_612);
 x_618 = lean_box(0);
}
x_619 = lean_box(1);
x_620 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_618)) {
 x_621 = lean_alloc_ctor(0, 5, 0);
} else {
 x_621 = x_618;
}
lean_ctor_set(x_621, 0, x_620);
lean_ctor_set(x_621, 1, x_456);
lean_ctor_set(x_621, 2, x_457);
lean_ctor_set(x_621, 3, x_619);
lean_ctor_set(x_621, 4, x_619);
if (lean_is_scalar(x_615)) {
 x_622 = lean_alloc_ctor(0, 5, 0);
} else {
 x_622 = x_615;
}
lean_ctor_set(x_622, 0, x_620);
lean_ctor_set(x_622, 1, x_613);
lean_ctor_set(x_622, 2, x_614);
lean_ctor_set(x_622, 3, x_619);
lean_ctor_set(x_622, 4, x_619);
x_623 = lean_unsigned_to_nat(3u);
x_624 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_624, 0, x_623);
lean_ctor_set(x_624, 1, x_616);
lean_ctor_set(x_624, 2, x_617);
lean_ctor_set(x_624, 3, x_621);
lean_ctor_set(x_624, 4, x_622);
return x_624;
}
else
{
lean_object* x_625; 
x_625 = lean_ctor_get(x_551, 4);
lean_inc(x_625);
if (lean_obj_tag(x_625) == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
x_626 = lean_ctor_get(x_551, 1);
lean_inc(x_626);
x_627 = lean_ctor_get(x_551, 2);
lean_inc(x_627);
if (lean_is_exclusive(x_551)) {
 lean_ctor_release(x_551, 0);
 lean_ctor_release(x_551, 1);
 lean_ctor_release(x_551, 2);
 lean_ctor_release(x_551, 3);
 lean_ctor_release(x_551, 4);
 x_628 = x_551;
} else {
 lean_dec_ref(x_551);
 x_628 = lean_box(0);
}
x_629 = lean_box(1);
x_630 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_628)) {
 x_631 = lean_alloc_ctor(0, 5, 0);
} else {
 x_631 = x_628;
}
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_456);
lean_ctor_set(x_631, 2, x_457);
lean_ctor_set(x_631, 3, x_629);
lean_ctor_set(x_631, 4, x_629);
x_632 = lean_unsigned_to_nat(3u);
x_633 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_633, 0, x_632);
lean_ctor_set(x_633, 1, x_626);
lean_ctor_set(x_633, 2, x_627);
lean_ctor_set(x_633, 3, x_631);
lean_ctor_set(x_633, 4, x_625);
return x_633;
}
else
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_634 = lean_box(1);
x_635 = lean_unsigned_to_nat(2u);
x_636 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_456);
lean_ctor_set(x_636, 2, x_457);
lean_ctor_set(x_636, 3, x_634);
lean_ctor_set(x_636, 4, x_551);
return x_636;
}
}
}
}
}
}
}
else
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; 
lean_dec(x_1);
x_637 = lean_box(1);
x_638 = lean_unsigned_to_nat(1u);
x_639 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_2);
lean_ctor_set(x_639, 2, x_3);
lean_ctor_set(x_639, 3, x_637);
lean_ctor_set(x_639, 4, x_637);
return x_639;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, size_t x_7, size_t x_8, lean_object* x_9) {
_start:
{
uint8_t x_10; 
x_10 = lean_usize_dec_lt(x_8, x_7);
if (x_10 == 0)
{
lean_dec(x_2);
return x_9;
}
else
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_array_uget(x_6, x_8);
lean_inc(x_9);
lean_inc(x_11);
lean_inc(x_2);
x_12 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1___rarg(x_2, x_11, x_9);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; 
x_13 = lean_box(0);
lean_inc(x_2);
x_14 = l_Std_DTreeMap_Internal_Impl_insert___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__2___rarg(x_2, x_11, x_13, x_9, lean_box(0));
x_15 = 1;
x_16 = lean_usize_add(x_8, x_15);
x_8 = x_16;
x_9 = x_14;
goto _start;
}
else
{
size_t x_18; size_t x_19; 
lean_dec(x_11);
x_18 = 1;
x_19 = lean_usize_add(x_8, x_18);
x_8 = x_19;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3___rarg___boxed), 9, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfArray___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; size_t x_5; size_t x_6; lean_object* x_7; 
x_3 = lean_box(0);
x_4 = lean_box(1);
x_5 = lean_array_size(x_1);
x_6 = 0;
lean_inc(x_2);
x_7 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3___rarg(x_1, x_2, x_2, x_3, x_4, x_1, x_5, x_6, x_4);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfArray(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_unitOfArray___rarg___boxed), 2, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8, lean_object* x_9) {
_start:
{
size_t x_10; size_t x_11; lean_object* x_12; 
x_10 = lean_unbox_usize(x_7);
lean_dec(x_7);
x_11 = lean_unbox_usize(x_8);
lean_dec(x_8);
x_12 = l_Array_forIn_x27Unsafe_loop___at_Std_DTreeMap_Raw_Const_unitOfArray___spec__3___rarg(x_1, x_2, x_3, x_4, x_5, x_6, x_10, x_11, x_9);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_unitOfArray___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Raw_Const_unitOfArray___rarg(x_1, x_2);
lean_dec(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_7 = lean_ctor_get(x_5, 1);
x_8 = lean_ctor_get(x_5, 2);
x_9 = lean_ctor_get(x_5, 3);
x_10 = lean_ctor_get(x_5, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_4);
x_11 = lean_apply_2(x_1, x_4, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
x_13 = l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_9);
lean_ctor_set(x_5, 3, x_13);
return x_5;
}
case 1:
{
lean_object* x_14; 
lean_dec(x_7);
lean_dec(x_1);
x_14 = lean_apply_1(x_3, x_8);
lean_ctor_set(x_5, 2, x_14);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
default: 
{
lean_object* x_15; 
x_15 = l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_10);
lean_ctor_set(x_5, 4, x_15);
return x_5;
}
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_16 = lean_ctor_get(x_5, 0);
x_17 = lean_ctor_get(x_5, 1);
x_18 = lean_ctor_get(x_5, 2);
x_19 = lean_ctor_get(x_5, 3);
x_20 = lean_ctor_get(x_5, 4);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_inc(x_17);
lean_inc(x_16);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_17);
lean_inc(x_4);
x_21 = lean_apply_2(x_1, x_4, x_17);
x_22 = lean_unbox(x_21);
lean_dec(x_21);
switch (x_22) {
case 0:
{
lean_object* x_23; lean_object* x_24; 
x_23 = l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_19);
x_24 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_24, 0, x_16);
lean_ctor_set(x_24, 1, x_17);
lean_ctor_set(x_24, 2, x_18);
lean_ctor_set(x_24, 3, x_23);
lean_ctor_set(x_24, 4, x_20);
return x_24;
}
case 1:
{
lean_object* x_25; lean_object* x_26; 
lean_dec(x_17);
lean_dec(x_1);
x_25 = lean_apply_1(x_3, x_18);
x_26 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_26, 0, x_16);
lean_ctor_set(x_26, 1, x_4);
lean_ctor_set(x_26, 2, x_25);
lean_ctor_set(x_26, 3, x_19);
lean_ctor_set(x_26, 4, x_20);
return x_26;
}
default: 
{
lean_object* x_27; lean_object* x_28; 
x_27 = l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_20);
x_28 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_28, 0, x_16);
lean_ctor_set(x_28, 1, x_17);
lean_ctor_set(x_28, 2, x_18);
lean_ctor_set(x_28, 3, x_19);
lean_ctor_set(x_28, 4, x_27);
return x_28;
}
}
}
}
else
{
lean_object* x_29; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_29 = lean_box(1);
return x_29;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_modify___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_modify___at_Std_DTreeMap_Raw_Const_modify___spec__1___rarg(x_1, lean_box(0), x_5, x_4, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_modify(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_modify___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
x_9 = lean_ctor_get(x_5, 2);
x_10 = lean_ctor_get(x_5, 3);
x_11 = lean_ctor_get(x_5, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_4);
x_12 = lean_apply_2(x_1, x_4, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; lean_object* x_15; 
lean_free_object(x_5);
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_10);
x_15 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_8, x_9, x_14, x_11);
return x_15;
}
case 1:
{
lean_object* x_16; lean_object* x_17; 
lean_dec(x_8);
lean_dec(x_1);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_9);
x_17 = lean_apply_1(x_3, x_16);
if (lean_obj_tag(x_17) == 0)
{
lean_free_object(x_5);
lean_dec(x_7);
lean_dec(x_4);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_11) == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_18 = lean_ctor_get(x_10, 0);
lean_inc(x_18);
x_19 = lean_ctor_get(x_10, 1);
lean_inc(x_19);
x_20 = lean_ctor_get(x_10, 2);
lean_inc(x_20);
x_21 = lean_ctor_get(x_10, 3);
lean_inc(x_21);
x_22 = lean_ctor_get(x_10, 4);
lean_inc(x_22);
x_23 = lean_ctor_get(x_11, 0);
lean_inc(x_23);
x_24 = lean_ctor_get(x_11, 1);
lean_inc(x_24);
x_25 = lean_ctor_get(x_11, 2);
lean_inc(x_25);
x_26 = lean_ctor_get(x_11, 3);
lean_inc(x_26);
x_27 = lean_ctor_get(x_11, 4);
lean_inc(x_27);
x_28 = lean_nat_dec_lt(x_18, x_23);
if (x_28 == 0)
{
uint8_t x_29; 
lean_dec(x_18);
x_29 = !lean_is_exclusive(x_10);
if (x_29 == 0)
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_30 = lean_ctor_get(x_10, 4);
lean_dec(x_30);
x_31 = lean_ctor_get(x_10, 3);
lean_dec(x_31);
x_32 = lean_ctor_get(x_10, 2);
lean_dec(x_32);
x_33 = lean_ctor_get(x_10, 1);
lean_dec(x_33);
x_34 = lean_ctor_get(x_10, 0);
lean_dec(x_34);
x_35 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_19, x_20, x_21, x_22);
x_36 = lean_ctor_get(x_35, 2);
lean_inc(x_36);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; uint8_t x_42; 
x_37 = lean_ctor_get(x_35, 0);
lean_inc(x_37);
x_38 = lean_ctor_get(x_35, 1);
lean_inc(x_38);
lean_dec(x_35);
x_39 = lean_ctor_get(x_36, 0);
lean_inc(x_39);
x_40 = lean_unsigned_to_nat(3u);
x_41 = lean_nat_mul(x_40, x_39);
x_42 = lean_nat_dec_lt(x_41, x_23);
lean_dec(x_41);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
lean_dec(x_27);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_43 = lean_unsigned_to_nat(1u);
x_44 = lean_nat_add(x_43, x_39);
lean_dec(x_39);
x_45 = lean_nat_add(x_44, x_23);
lean_dec(x_23);
lean_dec(x_44);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 3, x_36);
lean_ctor_set(x_10, 2, x_38);
lean_ctor_set(x_10, 1, x_37);
lean_ctor_set(x_10, 0, x_45);
return x_10;
}
else
{
uint8_t x_46; 
x_46 = !lean_is_exclusive(x_11);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_47 = lean_ctor_get(x_11, 4);
lean_dec(x_47);
x_48 = lean_ctor_get(x_11, 3);
lean_dec(x_48);
x_49 = lean_ctor_get(x_11, 2);
lean_dec(x_49);
x_50 = lean_ctor_get(x_11, 1);
lean_dec(x_50);
x_51 = lean_ctor_get(x_11, 0);
lean_dec(x_51);
if (lean_obj_tag(x_26) == 0)
{
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; 
x_52 = lean_ctor_get(x_26, 0);
lean_inc(x_52);
x_53 = lean_ctor_get(x_26, 1);
lean_inc(x_53);
x_54 = lean_ctor_get(x_26, 2);
lean_inc(x_54);
x_55 = lean_ctor_get(x_26, 3);
lean_inc(x_55);
x_56 = lean_ctor_get(x_26, 4);
lean_inc(x_56);
x_57 = lean_ctor_get(x_27, 0);
lean_inc(x_57);
x_58 = lean_unsigned_to_nat(2u);
x_59 = lean_nat_mul(x_58, x_57);
x_60 = lean_nat_dec_lt(x_52, x_59);
lean_dec(x_59);
if (x_60 == 0)
{
uint8_t x_61; 
lean_dec(x_52);
lean_free_object(x_10);
x_61 = !lean_is_exclusive(x_26);
if (x_61 == 0)
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_62 = lean_ctor_get(x_26, 4);
lean_dec(x_62);
x_63 = lean_ctor_get(x_26, 3);
lean_dec(x_63);
x_64 = lean_ctor_get(x_26, 2);
lean_dec(x_64);
x_65 = lean_ctor_get(x_26, 1);
lean_dec(x_65);
x_66 = lean_ctor_get(x_26, 0);
lean_dec(x_66);
x_67 = lean_unsigned_to_nat(1u);
x_68 = lean_nat_add(x_67, x_39);
lean_dec(x_39);
x_69 = lean_nat_add(x_68, x_23);
lean_dec(x_23);
x_70 = lean_nat_add(x_67, x_57);
lean_dec(x_57);
if (lean_obj_tag(x_55) == 0)
{
lean_object* x_71; lean_object* x_72; uint8_t x_73; 
x_71 = lean_ctor_get(x_55, 0);
lean_inc(x_71);
x_72 = lean_nat_add(x_68, x_71);
lean_dec(x_71);
lean_dec(x_68);
lean_inc(x_36);
lean_ctor_set(x_26, 4, x_55);
lean_ctor_set(x_26, 3, x_36);
lean_ctor_set(x_26, 2, x_38);
lean_ctor_set(x_26, 1, x_37);
lean_ctor_set(x_26, 0, x_72);
x_73 = !lean_is_exclusive(x_36);
if (x_73 == 0)
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_74 = lean_ctor_get(x_36, 4);
lean_dec(x_74);
x_75 = lean_ctor_get(x_36, 3);
lean_dec(x_75);
x_76 = lean_ctor_get(x_36, 2);
lean_dec(x_76);
x_77 = lean_ctor_get(x_36, 1);
lean_dec(x_77);
x_78 = lean_ctor_get(x_36, 0);
lean_dec(x_78);
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_79; lean_object* x_80; 
x_79 = lean_ctor_get(x_56, 0);
lean_inc(x_79);
x_80 = lean_nat_add(x_70, x_79);
lean_dec(x_79);
lean_dec(x_70);
lean_ctor_set(x_36, 4, x_27);
lean_ctor_set(x_36, 3, x_56);
lean_ctor_set(x_36, 2, x_25);
lean_ctor_set(x_36, 1, x_24);
lean_ctor_set(x_36, 0, x_80);
lean_ctor_set(x_11, 4, x_36);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
else
{
lean_object* x_81; lean_object* x_82; 
x_81 = lean_unsigned_to_nat(0u);
x_82 = lean_nat_add(x_70, x_81);
lean_dec(x_70);
lean_ctor_set(x_36, 4, x_27);
lean_ctor_set(x_36, 3, x_56);
lean_ctor_set(x_36, 2, x_25);
lean_ctor_set(x_36, 1, x_24);
lean_ctor_set(x_36, 0, x_82);
lean_ctor_set(x_11, 4, x_36);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
}
else
{
lean_dec(x_36);
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_83 = lean_ctor_get(x_56, 0);
lean_inc(x_83);
x_84 = lean_nat_add(x_70, x_83);
lean_dec(x_83);
lean_dec(x_70);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_24);
lean_ctor_set(x_85, 2, x_25);
lean_ctor_set(x_85, 3, x_56);
lean_ctor_set(x_85, 4, x_27);
lean_ctor_set(x_11, 4, x_85);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; 
x_86 = lean_unsigned_to_nat(0u);
x_87 = lean_nat_add(x_70, x_86);
lean_dec(x_70);
x_88 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_88, 0, x_87);
lean_ctor_set(x_88, 1, x_24);
lean_ctor_set(x_88, 2, x_25);
lean_ctor_set(x_88, 3, x_56);
lean_ctor_set(x_88, 4, x_27);
lean_ctor_set(x_11, 4, x_88);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
}
}
else
{
lean_object* x_89; lean_object* x_90; uint8_t x_91; 
x_89 = lean_unsigned_to_nat(0u);
x_90 = lean_nat_add(x_68, x_89);
lean_dec(x_68);
lean_inc(x_36);
lean_ctor_set(x_26, 4, x_55);
lean_ctor_set(x_26, 3, x_36);
lean_ctor_set(x_26, 2, x_38);
lean_ctor_set(x_26, 1, x_37);
lean_ctor_set(x_26, 0, x_90);
x_91 = !lean_is_exclusive(x_36);
if (x_91 == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; 
x_92 = lean_ctor_get(x_36, 4);
lean_dec(x_92);
x_93 = lean_ctor_get(x_36, 3);
lean_dec(x_93);
x_94 = lean_ctor_get(x_36, 2);
lean_dec(x_94);
x_95 = lean_ctor_get(x_36, 1);
lean_dec(x_95);
x_96 = lean_ctor_get(x_36, 0);
lean_dec(x_96);
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_97; lean_object* x_98; 
x_97 = lean_ctor_get(x_56, 0);
lean_inc(x_97);
x_98 = lean_nat_add(x_70, x_97);
lean_dec(x_97);
lean_dec(x_70);
lean_ctor_set(x_36, 4, x_27);
lean_ctor_set(x_36, 3, x_56);
lean_ctor_set(x_36, 2, x_25);
lean_ctor_set(x_36, 1, x_24);
lean_ctor_set(x_36, 0, x_98);
lean_ctor_set(x_11, 4, x_36);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
else
{
lean_object* x_99; 
x_99 = lean_nat_add(x_70, x_89);
lean_dec(x_70);
lean_ctor_set(x_36, 4, x_27);
lean_ctor_set(x_36, 3, x_56);
lean_ctor_set(x_36, 2, x_25);
lean_ctor_set(x_36, 1, x_24);
lean_ctor_set(x_36, 0, x_99);
lean_ctor_set(x_11, 4, x_36);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
}
else
{
lean_dec(x_36);
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_100; lean_object* x_101; lean_object* x_102; 
x_100 = lean_ctor_get(x_56, 0);
lean_inc(x_100);
x_101 = lean_nat_add(x_70, x_100);
lean_dec(x_100);
lean_dec(x_70);
x_102 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_102, 0, x_101);
lean_ctor_set(x_102, 1, x_24);
lean_ctor_set(x_102, 2, x_25);
lean_ctor_set(x_102, 3, x_56);
lean_ctor_set(x_102, 4, x_27);
lean_ctor_set(x_11, 4, x_102);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
else
{
lean_object* x_103; lean_object* x_104; 
x_103 = lean_nat_add(x_70, x_89);
lean_dec(x_70);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_24);
lean_ctor_set(x_104, 2, x_25);
lean_ctor_set(x_104, 3, x_56);
lean_ctor_set(x_104, 4, x_27);
lean_ctor_set(x_11, 4, x_104);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_69);
return x_11;
}
}
}
}
else
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
lean_dec(x_26);
x_105 = lean_unsigned_to_nat(1u);
x_106 = lean_nat_add(x_105, x_39);
lean_dec(x_39);
x_107 = lean_nat_add(x_106, x_23);
lean_dec(x_23);
x_108 = lean_nat_add(x_105, x_57);
lean_dec(x_57);
if (lean_obj_tag(x_55) == 0)
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; 
x_109 = lean_ctor_get(x_55, 0);
lean_inc(x_109);
x_110 = lean_nat_add(x_106, x_109);
lean_dec(x_109);
lean_dec(x_106);
lean_inc(x_36);
x_111 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_37);
lean_ctor_set(x_111, 2, x_38);
lean_ctor_set(x_111, 3, x_36);
lean_ctor_set(x_111, 4, x_55);
if (lean_is_exclusive(x_36)) {
 lean_ctor_release(x_36, 0);
 lean_ctor_release(x_36, 1);
 lean_ctor_release(x_36, 2);
 lean_ctor_release(x_36, 3);
 lean_ctor_release(x_36, 4);
 x_112 = x_36;
} else {
 lean_dec_ref(x_36);
 x_112 = lean_box(0);
}
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_113 = lean_ctor_get(x_56, 0);
lean_inc(x_113);
x_114 = lean_nat_add(x_108, x_113);
lean_dec(x_113);
lean_dec(x_108);
if (lean_is_scalar(x_112)) {
 x_115 = lean_alloc_ctor(0, 5, 0);
} else {
 x_115 = x_112;
}
lean_ctor_set(x_115, 0, x_114);
lean_ctor_set(x_115, 1, x_24);
lean_ctor_set(x_115, 2, x_25);
lean_ctor_set(x_115, 3, x_56);
lean_ctor_set(x_115, 4, x_27);
lean_ctor_set(x_11, 4, x_115);
lean_ctor_set(x_11, 3, x_111);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_107);
return x_11;
}
else
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; 
x_116 = lean_unsigned_to_nat(0u);
x_117 = lean_nat_add(x_108, x_116);
lean_dec(x_108);
if (lean_is_scalar(x_112)) {
 x_118 = lean_alloc_ctor(0, 5, 0);
} else {
 x_118 = x_112;
}
lean_ctor_set(x_118, 0, x_117);
lean_ctor_set(x_118, 1, x_24);
lean_ctor_set(x_118, 2, x_25);
lean_ctor_set(x_118, 3, x_56);
lean_ctor_set(x_118, 4, x_27);
lean_ctor_set(x_11, 4, x_118);
lean_ctor_set(x_11, 3, x_111);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_107);
return x_11;
}
}
else
{
lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; 
x_119 = lean_unsigned_to_nat(0u);
x_120 = lean_nat_add(x_106, x_119);
lean_dec(x_106);
lean_inc(x_36);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_120);
lean_ctor_set(x_121, 1, x_37);
lean_ctor_set(x_121, 2, x_38);
lean_ctor_set(x_121, 3, x_36);
lean_ctor_set(x_121, 4, x_55);
if (lean_is_exclusive(x_36)) {
 lean_ctor_release(x_36, 0);
 lean_ctor_release(x_36, 1);
 lean_ctor_release(x_36, 2);
 lean_ctor_release(x_36, 3);
 lean_ctor_release(x_36, 4);
 x_122 = x_36;
} else {
 lean_dec_ref(x_36);
 x_122 = lean_box(0);
}
if (lean_obj_tag(x_56) == 0)
{
lean_object* x_123; lean_object* x_124; lean_object* x_125; 
x_123 = lean_ctor_get(x_56, 0);
lean_inc(x_123);
x_124 = lean_nat_add(x_108, x_123);
lean_dec(x_123);
lean_dec(x_108);
if (lean_is_scalar(x_122)) {
 x_125 = lean_alloc_ctor(0, 5, 0);
} else {
 x_125 = x_122;
}
lean_ctor_set(x_125, 0, x_124);
lean_ctor_set(x_125, 1, x_24);
lean_ctor_set(x_125, 2, x_25);
lean_ctor_set(x_125, 3, x_56);
lean_ctor_set(x_125, 4, x_27);
lean_ctor_set(x_11, 4, x_125);
lean_ctor_set(x_11, 3, x_121);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_107);
return x_11;
}
else
{
lean_object* x_126; lean_object* x_127; 
x_126 = lean_nat_add(x_108, x_119);
lean_dec(x_108);
if (lean_is_scalar(x_122)) {
 x_127 = lean_alloc_ctor(0, 5, 0);
} else {
 x_127 = x_122;
}
lean_ctor_set(x_127, 0, x_126);
lean_ctor_set(x_127, 1, x_24);
lean_ctor_set(x_127, 2, x_25);
lean_ctor_set(x_127, 3, x_56);
lean_ctor_set(x_127, 4, x_27);
lean_ctor_set(x_11, 4, x_127);
lean_ctor_set(x_11, 3, x_121);
lean_ctor_set(x_11, 2, x_54);
lean_ctor_set(x_11, 1, x_53);
lean_ctor_set(x_11, 0, x_107);
return x_11;
}
}
}
}
else
{
lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; 
lean_dec(x_57);
lean_dec(x_56);
lean_dec(x_55);
lean_dec(x_54);
lean_dec(x_53);
x_128 = lean_unsigned_to_nat(1u);
x_129 = lean_nat_add(x_128, x_39);
lean_dec(x_39);
x_130 = lean_nat_add(x_129, x_23);
lean_dec(x_23);
x_131 = lean_nat_add(x_129, x_52);
lean_dec(x_52);
lean_dec(x_129);
lean_ctor_set(x_11, 4, x_26);
lean_ctor_set(x_11, 3, x_36);
lean_ctor_set(x_11, 2, x_38);
lean_ctor_set(x_11, 1, x_37);
lean_ctor_set(x_11, 0, x_131);
lean_ctor_set(x_10, 4, x_27);
lean_ctor_set(x_10, 3, x_11);
lean_ctor_set(x_10, 2, x_25);
lean_ctor_set(x_10, 1, x_24);
lean_ctor_set(x_10, 0, x_130);
return x_10;
}
}
else
{
lean_object* x_132; lean_object* x_133; 
lean_free_object(x_11);
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_dec(x_36);
lean_free_object(x_10);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_23);
x_132 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_133 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2___rarg(x_132);
return x_133;
}
}
else
{
lean_object* x_134; lean_object* x_135; 
lean_free_object(x_11);
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_dec(x_36);
lean_free_object(x_10);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_23);
x_134 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_135 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3___rarg(x_134);
return x_135;
}
}
else
{
lean_dec(x_11);
if (lean_obj_tag(x_26) == 0)
{
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; uint8_t x_144; 
x_136 = lean_ctor_get(x_26, 0);
lean_inc(x_136);
x_137 = lean_ctor_get(x_26, 1);
lean_inc(x_137);
x_138 = lean_ctor_get(x_26, 2);
lean_inc(x_138);
x_139 = lean_ctor_get(x_26, 3);
lean_inc(x_139);
x_140 = lean_ctor_get(x_26, 4);
lean_inc(x_140);
x_141 = lean_ctor_get(x_27, 0);
lean_inc(x_141);
x_142 = lean_unsigned_to_nat(2u);
x_143 = lean_nat_mul(x_142, x_141);
x_144 = lean_nat_dec_lt(x_136, x_143);
lean_dec(x_143);
if (x_144 == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; 
lean_dec(x_136);
lean_free_object(x_10);
if (lean_is_exclusive(x_26)) {
 lean_ctor_release(x_26, 0);
 lean_ctor_release(x_26, 1);
 lean_ctor_release(x_26, 2);
 lean_ctor_release(x_26, 3);
 lean_ctor_release(x_26, 4);
 x_145 = x_26;
} else {
 lean_dec_ref(x_26);
 x_145 = lean_box(0);
}
x_146 = lean_unsigned_to_nat(1u);
x_147 = lean_nat_add(x_146, x_39);
lean_dec(x_39);
x_148 = lean_nat_add(x_147, x_23);
lean_dec(x_23);
x_149 = lean_nat_add(x_146, x_141);
lean_dec(x_141);
if (lean_obj_tag(x_139) == 0)
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; 
x_150 = lean_ctor_get(x_139, 0);
lean_inc(x_150);
x_151 = lean_nat_add(x_147, x_150);
lean_dec(x_150);
lean_dec(x_147);
lean_inc(x_36);
if (lean_is_scalar(x_145)) {
 x_152 = lean_alloc_ctor(0, 5, 0);
} else {
 x_152 = x_145;
}
lean_ctor_set(x_152, 0, x_151);
lean_ctor_set(x_152, 1, x_37);
lean_ctor_set(x_152, 2, x_38);
lean_ctor_set(x_152, 3, x_36);
lean_ctor_set(x_152, 4, x_139);
if (lean_is_exclusive(x_36)) {
 lean_ctor_release(x_36, 0);
 lean_ctor_release(x_36, 1);
 lean_ctor_release(x_36, 2);
 lean_ctor_release(x_36, 3);
 lean_ctor_release(x_36, 4);
 x_153 = x_36;
} else {
 lean_dec_ref(x_36);
 x_153 = lean_box(0);
}
if (lean_obj_tag(x_140) == 0)
{
lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
x_154 = lean_ctor_get(x_140, 0);
lean_inc(x_154);
x_155 = lean_nat_add(x_149, x_154);
lean_dec(x_154);
lean_dec(x_149);
if (lean_is_scalar(x_153)) {
 x_156 = lean_alloc_ctor(0, 5, 0);
} else {
 x_156 = x_153;
}
lean_ctor_set(x_156, 0, x_155);
lean_ctor_set(x_156, 1, x_24);
lean_ctor_set(x_156, 2, x_25);
lean_ctor_set(x_156, 3, x_140);
lean_ctor_set(x_156, 4, x_27);
x_157 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_157, 0, x_148);
lean_ctor_set(x_157, 1, x_137);
lean_ctor_set(x_157, 2, x_138);
lean_ctor_set(x_157, 3, x_152);
lean_ctor_set(x_157, 4, x_156);
return x_157;
}
else
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; 
x_158 = lean_unsigned_to_nat(0u);
x_159 = lean_nat_add(x_149, x_158);
lean_dec(x_149);
if (lean_is_scalar(x_153)) {
 x_160 = lean_alloc_ctor(0, 5, 0);
} else {
 x_160 = x_153;
}
lean_ctor_set(x_160, 0, x_159);
lean_ctor_set(x_160, 1, x_24);
lean_ctor_set(x_160, 2, x_25);
lean_ctor_set(x_160, 3, x_140);
lean_ctor_set(x_160, 4, x_27);
x_161 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_161, 0, x_148);
lean_ctor_set(x_161, 1, x_137);
lean_ctor_set(x_161, 2, x_138);
lean_ctor_set(x_161, 3, x_152);
lean_ctor_set(x_161, 4, x_160);
return x_161;
}
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 
x_162 = lean_unsigned_to_nat(0u);
x_163 = lean_nat_add(x_147, x_162);
lean_dec(x_147);
lean_inc(x_36);
if (lean_is_scalar(x_145)) {
 x_164 = lean_alloc_ctor(0, 5, 0);
} else {
 x_164 = x_145;
}
lean_ctor_set(x_164, 0, x_163);
lean_ctor_set(x_164, 1, x_37);
lean_ctor_set(x_164, 2, x_38);
lean_ctor_set(x_164, 3, x_36);
lean_ctor_set(x_164, 4, x_139);
if (lean_is_exclusive(x_36)) {
 lean_ctor_release(x_36, 0);
 lean_ctor_release(x_36, 1);
 lean_ctor_release(x_36, 2);
 lean_ctor_release(x_36, 3);
 lean_ctor_release(x_36, 4);
 x_165 = x_36;
} else {
 lean_dec_ref(x_36);
 x_165 = lean_box(0);
}
if (lean_obj_tag(x_140) == 0)
{
lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; 
x_166 = lean_ctor_get(x_140, 0);
lean_inc(x_166);
x_167 = lean_nat_add(x_149, x_166);
lean_dec(x_166);
lean_dec(x_149);
if (lean_is_scalar(x_165)) {
 x_168 = lean_alloc_ctor(0, 5, 0);
} else {
 x_168 = x_165;
}
lean_ctor_set(x_168, 0, x_167);
lean_ctor_set(x_168, 1, x_24);
lean_ctor_set(x_168, 2, x_25);
lean_ctor_set(x_168, 3, x_140);
lean_ctor_set(x_168, 4, x_27);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_148);
lean_ctor_set(x_169, 1, x_137);
lean_ctor_set(x_169, 2, x_138);
lean_ctor_set(x_169, 3, x_164);
lean_ctor_set(x_169, 4, x_168);
return x_169;
}
else
{
lean_object* x_170; lean_object* x_171; lean_object* x_172; 
x_170 = lean_nat_add(x_149, x_162);
lean_dec(x_149);
if (lean_is_scalar(x_165)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_165;
}
lean_ctor_set(x_171, 0, x_170);
lean_ctor_set(x_171, 1, x_24);
lean_ctor_set(x_171, 2, x_25);
lean_ctor_set(x_171, 3, x_140);
lean_ctor_set(x_171, 4, x_27);
x_172 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_172, 0, x_148);
lean_ctor_set(x_172, 1, x_137);
lean_ctor_set(x_172, 2, x_138);
lean_ctor_set(x_172, 3, x_164);
lean_ctor_set(x_172, 4, x_171);
return x_172;
}
}
}
else
{
lean_object* x_173; lean_object* x_174; lean_object* x_175; lean_object* x_176; lean_object* x_177; 
lean_dec(x_141);
lean_dec(x_140);
lean_dec(x_139);
lean_dec(x_138);
lean_dec(x_137);
x_173 = lean_unsigned_to_nat(1u);
x_174 = lean_nat_add(x_173, x_39);
lean_dec(x_39);
x_175 = lean_nat_add(x_174, x_23);
lean_dec(x_23);
x_176 = lean_nat_add(x_174, x_136);
lean_dec(x_136);
lean_dec(x_174);
x_177 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_177, 0, x_176);
lean_ctor_set(x_177, 1, x_37);
lean_ctor_set(x_177, 2, x_38);
lean_ctor_set(x_177, 3, x_36);
lean_ctor_set(x_177, 4, x_26);
lean_ctor_set(x_10, 4, x_27);
lean_ctor_set(x_10, 3, x_177);
lean_ctor_set(x_10, 2, x_25);
lean_ctor_set(x_10, 1, x_24);
lean_ctor_set(x_10, 0, x_175);
return x_10;
}
}
else
{
lean_object* x_178; lean_object* x_179; 
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_dec(x_36);
lean_free_object(x_10);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_23);
x_178 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_179 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2___rarg(x_178);
return x_179;
}
}
else
{
lean_object* x_180; lean_object* x_181; 
lean_dec(x_39);
lean_dec(x_38);
lean_dec(x_37);
lean_dec(x_36);
lean_free_object(x_10);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_23);
x_180 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_181 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3___rarg(x_180);
return x_181;
}
}
}
}
else
{
if (lean_obj_tag(x_26) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_11);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; 
x_183 = lean_ctor_get(x_11, 4);
lean_dec(x_183);
x_184 = lean_ctor_get(x_11, 3);
lean_dec(x_184);
x_185 = lean_ctor_get(x_11, 2);
lean_dec(x_185);
x_186 = lean_ctor_get(x_11, 1);
lean_dec(x_186);
x_187 = lean_ctor_get(x_11, 0);
lean_dec(x_187);
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; 
x_188 = lean_ctor_get(x_35, 0);
lean_inc(x_188);
x_189 = lean_ctor_get(x_35, 1);
lean_inc(x_189);
lean_dec(x_35);
x_190 = lean_ctor_get(x_26, 0);
lean_inc(x_190);
x_191 = lean_unsigned_to_nat(1u);
x_192 = lean_nat_add(x_191, x_23);
lean_dec(x_23);
x_193 = lean_nat_add(x_191, x_190);
lean_dec(x_190);
x_194 = lean_box(1);
lean_ctor_set(x_11, 4, x_26);
lean_ctor_set(x_11, 3, x_194);
lean_ctor_set(x_11, 2, x_189);
lean_ctor_set(x_11, 1, x_188);
lean_ctor_set(x_11, 0, x_193);
lean_ctor_set(x_10, 4, x_27);
lean_ctor_set(x_10, 3, x_11);
lean_ctor_set(x_10, 2, x_25);
lean_ctor_set(x_10, 1, x_24);
lean_ctor_set(x_10, 0, x_192);
return x_10;
}
else
{
lean_object* x_195; lean_object* x_196; uint8_t x_197; 
lean_dec(x_23);
x_195 = lean_ctor_get(x_35, 0);
lean_inc(x_195);
x_196 = lean_ctor_get(x_35, 1);
lean_inc(x_196);
lean_dec(x_35);
x_197 = !lean_is_exclusive(x_26);
if (x_197 == 0)
{
lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; lean_object* x_203; lean_object* x_204; lean_object* x_205; 
x_198 = lean_ctor_get(x_26, 1);
x_199 = lean_ctor_get(x_26, 2);
x_200 = lean_ctor_get(x_26, 4);
lean_dec(x_200);
x_201 = lean_ctor_get(x_26, 3);
lean_dec(x_201);
x_202 = lean_ctor_get(x_26, 0);
lean_dec(x_202);
x_203 = lean_box(1);
x_204 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_26, 4, x_203);
lean_ctor_set(x_26, 3, x_203);
lean_ctor_set(x_26, 2, x_196);
lean_ctor_set(x_26, 1, x_195);
lean_ctor_set(x_26, 0, x_204);
lean_ctor_set(x_11, 4, x_203);
lean_ctor_set(x_11, 3, x_203);
lean_ctor_set(x_11, 0, x_204);
x_205 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 3, x_26);
lean_ctor_set(x_10, 2, x_199);
lean_ctor_set(x_10, 1, x_198);
lean_ctor_set(x_10, 0, x_205);
return x_10;
}
else
{
lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 
x_206 = lean_ctor_get(x_26, 1);
x_207 = lean_ctor_get(x_26, 2);
lean_inc(x_207);
lean_inc(x_206);
lean_dec(x_26);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
x_210 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_210, 0, x_209);
lean_ctor_set(x_210, 1, x_195);
lean_ctor_set(x_210, 2, x_196);
lean_ctor_set(x_210, 3, x_208);
lean_ctor_set(x_210, 4, x_208);
lean_ctor_set(x_11, 4, x_208);
lean_ctor_set(x_11, 3, x_208);
lean_ctor_set(x_11, 0, x_209);
x_211 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 3, x_210);
lean_ctor_set(x_10, 2, x_207);
lean_ctor_set(x_10, 1, x_206);
lean_ctor_set(x_10, 0, x_211);
return x_10;
}
}
}
else
{
lean_dec(x_11);
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; 
x_212 = lean_ctor_get(x_35, 0);
lean_inc(x_212);
x_213 = lean_ctor_get(x_35, 1);
lean_inc(x_213);
lean_dec(x_35);
x_214 = lean_ctor_get(x_26, 0);
lean_inc(x_214);
x_215 = lean_unsigned_to_nat(1u);
x_216 = lean_nat_add(x_215, x_23);
lean_dec(x_23);
x_217 = lean_nat_add(x_215, x_214);
lean_dec(x_214);
x_218 = lean_box(1);
x_219 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_219, 0, x_217);
lean_ctor_set(x_219, 1, x_212);
lean_ctor_set(x_219, 2, x_213);
lean_ctor_set(x_219, 3, x_218);
lean_ctor_set(x_219, 4, x_26);
lean_ctor_set(x_10, 4, x_27);
lean_ctor_set(x_10, 3, x_219);
lean_ctor_set(x_10, 2, x_25);
lean_ctor_set(x_10, 1, x_24);
lean_ctor_set(x_10, 0, x_216);
return x_10;
}
else
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; 
lean_dec(x_23);
x_220 = lean_ctor_get(x_35, 0);
lean_inc(x_220);
x_221 = lean_ctor_get(x_35, 1);
lean_inc(x_221);
lean_dec(x_35);
x_222 = lean_ctor_get(x_26, 1);
lean_inc(x_222);
x_223 = lean_ctor_get(x_26, 2);
lean_inc(x_223);
if (lean_is_exclusive(x_26)) {
 lean_ctor_release(x_26, 0);
 lean_ctor_release(x_26, 1);
 lean_ctor_release(x_26, 2);
 lean_ctor_release(x_26, 3);
 lean_ctor_release(x_26, 4);
 x_224 = x_26;
} else {
 lean_dec_ref(x_26);
 x_224 = lean_box(0);
}
x_225 = lean_box(1);
x_226 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_224)) {
 x_227 = lean_alloc_ctor(0, 5, 0);
} else {
 x_227 = x_224;
}
lean_ctor_set(x_227, 0, x_226);
lean_ctor_set(x_227, 1, x_220);
lean_ctor_set(x_227, 2, x_221);
lean_ctor_set(x_227, 3, x_225);
lean_ctor_set(x_227, 4, x_225);
x_228 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_228, 0, x_226);
lean_ctor_set(x_228, 1, x_24);
lean_ctor_set(x_228, 2, x_25);
lean_ctor_set(x_228, 3, x_225);
lean_ctor_set(x_228, 4, x_225);
x_229 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_228);
lean_ctor_set(x_10, 3, x_227);
lean_ctor_set(x_10, 2, x_223);
lean_ctor_set(x_10, 1, x_222);
lean_ctor_set(x_10, 0, x_229);
return x_10;
}
}
}
else
{
lean_dec(x_23);
if (lean_obj_tag(x_27) == 0)
{
uint8_t x_230; 
x_230 = !lean_is_exclusive(x_11);
if (x_230 == 0)
{
lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; 
x_231 = lean_ctor_get(x_11, 4);
lean_dec(x_231);
x_232 = lean_ctor_get(x_11, 3);
lean_dec(x_232);
x_233 = lean_ctor_get(x_11, 2);
lean_dec(x_233);
x_234 = lean_ctor_get(x_11, 1);
lean_dec(x_234);
x_235 = lean_ctor_get(x_11, 0);
lean_dec(x_235);
x_236 = lean_ctor_get(x_35, 0);
lean_inc(x_236);
x_237 = lean_ctor_get(x_35, 1);
lean_inc(x_237);
lean_dec(x_35);
x_238 = lean_box(1);
x_239 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_11, 4, x_238);
lean_ctor_set(x_11, 3, x_238);
lean_ctor_set(x_11, 2, x_237);
lean_ctor_set(x_11, 1, x_236);
lean_ctor_set(x_11, 0, x_239);
x_240 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_27);
lean_ctor_set(x_10, 3, x_11);
lean_ctor_set(x_10, 2, x_25);
lean_ctor_set(x_10, 1, x_24);
lean_ctor_set(x_10, 0, x_240);
return x_10;
}
else
{
lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; 
lean_dec(x_11);
x_241 = lean_ctor_get(x_35, 0);
lean_inc(x_241);
x_242 = lean_ctor_get(x_35, 1);
lean_inc(x_242);
lean_dec(x_35);
x_243 = lean_box(1);
x_244 = lean_unsigned_to_nat(1u);
x_245 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_245, 0, x_244);
lean_ctor_set(x_245, 1, x_241);
lean_ctor_set(x_245, 2, x_242);
lean_ctor_set(x_245, 3, x_243);
lean_ctor_set(x_245, 4, x_243);
x_246 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_27);
lean_ctor_set(x_10, 3, x_245);
lean_ctor_set(x_10, 2, x_25);
lean_ctor_set(x_10, 1, x_24);
lean_ctor_set(x_10, 0, x_246);
return x_10;
}
}
else
{
lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; 
lean_dec(x_25);
lean_dec(x_24);
x_247 = lean_ctor_get(x_35, 0);
lean_inc(x_247);
x_248 = lean_ctor_get(x_35, 1);
lean_inc(x_248);
lean_dec(x_35);
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 3, x_249);
lean_ctor_set(x_10, 2, x_248);
lean_ctor_set(x_10, 1, x_247);
lean_ctor_set(x_10, 0, x_250);
return x_10;
}
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
lean_dec(x_10);
x_251 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_19, x_20, x_21, x_22);
x_252 = lean_ctor_get(x_251, 2);
lean_inc(x_252);
if (lean_obj_tag(x_252) == 0)
{
lean_object* x_253; lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; uint8_t x_258; 
x_253 = lean_ctor_get(x_251, 0);
lean_inc(x_253);
x_254 = lean_ctor_get(x_251, 1);
lean_inc(x_254);
lean_dec(x_251);
x_255 = lean_ctor_get(x_252, 0);
lean_inc(x_255);
x_256 = lean_unsigned_to_nat(3u);
x_257 = lean_nat_mul(x_256, x_255);
x_258 = lean_nat_dec_lt(x_257, x_23);
lean_dec(x_257);
if (x_258 == 0)
{
lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; 
lean_dec(x_27);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
x_259 = lean_unsigned_to_nat(1u);
x_260 = lean_nat_add(x_259, x_255);
lean_dec(x_255);
x_261 = lean_nat_add(x_260, x_23);
lean_dec(x_23);
lean_dec(x_260);
x_262 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_262, 0, x_261);
lean_ctor_set(x_262, 1, x_253);
lean_ctor_set(x_262, 2, x_254);
lean_ctor_set(x_262, 3, x_252);
lean_ctor_set(x_262, 4, x_11);
return x_262;
}
else
{
lean_object* x_263; 
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_263 = x_11;
} else {
 lean_dec_ref(x_11);
 x_263 = lean_box(0);
}
if (lean_obj_tag(x_26) == 0)
{
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; uint8_t x_272; 
x_264 = lean_ctor_get(x_26, 0);
lean_inc(x_264);
x_265 = lean_ctor_get(x_26, 1);
lean_inc(x_265);
x_266 = lean_ctor_get(x_26, 2);
lean_inc(x_266);
x_267 = lean_ctor_get(x_26, 3);
lean_inc(x_267);
x_268 = lean_ctor_get(x_26, 4);
lean_inc(x_268);
x_269 = lean_ctor_get(x_27, 0);
lean_inc(x_269);
x_270 = lean_unsigned_to_nat(2u);
x_271 = lean_nat_mul(x_270, x_269);
x_272 = lean_nat_dec_lt(x_264, x_271);
lean_dec(x_271);
if (x_272 == 0)
{
lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; 
lean_dec(x_264);
if (lean_is_exclusive(x_26)) {
 lean_ctor_release(x_26, 0);
 lean_ctor_release(x_26, 1);
 lean_ctor_release(x_26, 2);
 lean_ctor_release(x_26, 3);
 lean_ctor_release(x_26, 4);
 x_273 = x_26;
} else {
 lean_dec_ref(x_26);
 x_273 = lean_box(0);
}
x_274 = lean_unsigned_to_nat(1u);
x_275 = lean_nat_add(x_274, x_255);
lean_dec(x_255);
x_276 = lean_nat_add(x_275, x_23);
lean_dec(x_23);
x_277 = lean_nat_add(x_274, x_269);
lean_dec(x_269);
if (lean_obj_tag(x_267) == 0)
{
lean_object* x_278; lean_object* x_279; lean_object* x_280; lean_object* x_281; 
x_278 = lean_ctor_get(x_267, 0);
lean_inc(x_278);
x_279 = lean_nat_add(x_275, x_278);
lean_dec(x_278);
lean_dec(x_275);
lean_inc(x_252);
if (lean_is_scalar(x_273)) {
 x_280 = lean_alloc_ctor(0, 5, 0);
} else {
 x_280 = x_273;
}
lean_ctor_set(x_280, 0, x_279);
lean_ctor_set(x_280, 1, x_253);
lean_ctor_set(x_280, 2, x_254);
lean_ctor_set(x_280, 3, x_252);
lean_ctor_set(x_280, 4, x_267);
if (lean_is_exclusive(x_252)) {
 lean_ctor_release(x_252, 0);
 lean_ctor_release(x_252, 1);
 lean_ctor_release(x_252, 2);
 lean_ctor_release(x_252, 3);
 lean_ctor_release(x_252, 4);
 x_281 = x_252;
} else {
 lean_dec_ref(x_252);
 x_281 = lean_box(0);
}
if (lean_obj_tag(x_268) == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; 
x_282 = lean_ctor_get(x_268, 0);
lean_inc(x_282);
x_283 = lean_nat_add(x_277, x_282);
lean_dec(x_282);
lean_dec(x_277);
if (lean_is_scalar(x_281)) {
 x_284 = lean_alloc_ctor(0, 5, 0);
} else {
 x_284 = x_281;
}
lean_ctor_set(x_284, 0, x_283);
lean_ctor_set(x_284, 1, x_24);
lean_ctor_set(x_284, 2, x_25);
lean_ctor_set(x_284, 3, x_268);
lean_ctor_set(x_284, 4, x_27);
if (lean_is_scalar(x_263)) {
 x_285 = lean_alloc_ctor(0, 5, 0);
} else {
 x_285 = x_263;
}
lean_ctor_set(x_285, 0, x_276);
lean_ctor_set(x_285, 1, x_265);
lean_ctor_set(x_285, 2, x_266);
lean_ctor_set(x_285, 3, x_280);
lean_ctor_set(x_285, 4, x_284);
return x_285;
}
else
{
lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; 
x_286 = lean_unsigned_to_nat(0u);
x_287 = lean_nat_add(x_277, x_286);
lean_dec(x_277);
if (lean_is_scalar(x_281)) {
 x_288 = lean_alloc_ctor(0, 5, 0);
} else {
 x_288 = x_281;
}
lean_ctor_set(x_288, 0, x_287);
lean_ctor_set(x_288, 1, x_24);
lean_ctor_set(x_288, 2, x_25);
lean_ctor_set(x_288, 3, x_268);
lean_ctor_set(x_288, 4, x_27);
if (lean_is_scalar(x_263)) {
 x_289 = lean_alloc_ctor(0, 5, 0);
} else {
 x_289 = x_263;
}
lean_ctor_set(x_289, 0, x_276);
lean_ctor_set(x_289, 1, x_265);
lean_ctor_set(x_289, 2, x_266);
lean_ctor_set(x_289, 3, x_280);
lean_ctor_set(x_289, 4, x_288);
return x_289;
}
}
else
{
lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; 
x_290 = lean_unsigned_to_nat(0u);
x_291 = lean_nat_add(x_275, x_290);
lean_dec(x_275);
lean_inc(x_252);
if (lean_is_scalar(x_273)) {
 x_292 = lean_alloc_ctor(0, 5, 0);
} else {
 x_292 = x_273;
}
lean_ctor_set(x_292, 0, x_291);
lean_ctor_set(x_292, 1, x_253);
lean_ctor_set(x_292, 2, x_254);
lean_ctor_set(x_292, 3, x_252);
lean_ctor_set(x_292, 4, x_267);
if (lean_is_exclusive(x_252)) {
 lean_ctor_release(x_252, 0);
 lean_ctor_release(x_252, 1);
 lean_ctor_release(x_252, 2);
 lean_ctor_release(x_252, 3);
 lean_ctor_release(x_252, 4);
 x_293 = x_252;
} else {
 lean_dec_ref(x_252);
 x_293 = lean_box(0);
}
if (lean_obj_tag(x_268) == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_294 = lean_ctor_get(x_268, 0);
lean_inc(x_294);
x_295 = lean_nat_add(x_277, x_294);
lean_dec(x_294);
lean_dec(x_277);
if (lean_is_scalar(x_293)) {
 x_296 = lean_alloc_ctor(0, 5, 0);
} else {
 x_296 = x_293;
}
lean_ctor_set(x_296, 0, x_295);
lean_ctor_set(x_296, 1, x_24);
lean_ctor_set(x_296, 2, x_25);
lean_ctor_set(x_296, 3, x_268);
lean_ctor_set(x_296, 4, x_27);
if (lean_is_scalar(x_263)) {
 x_297 = lean_alloc_ctor(0, 5, 0);
} else {
 x_297 = x_263;
}
lean_ctor_set(x_297, 0, x_276);
lean_ctor_set(x_297, 1, x_265);
lean_ctor_set(x_297, 2, x_266);
lean_ctor_set(x_297, 3, x_292);
lean_ctor_set(x_297, 4, x_296);
return x_297;
}
else
{
lean_object* x_298; lean_object* x_299; lean_object* x_300; 
x_298 = lean_nat_add(x_277, x_290);
lean_dec(x_277);
if (lean_is_scalar(x_293)) {
 x_299 = lean_alloc_ctor(0, 5, 0);
} else {
 x_299 = x_293;
}
lean_ctor_set(x_299, 0, x_298);
lean_ctor_set(x_299, 1, x_24);
lean_ctor_set(x_299, 2, x_25);
lean_ctor_set(x_299, 3, x_268);
lean_ctor_set(x_299, 4, x_27);
if (lean_is_scalar(x_263)) {
 x_300 = lean_alloc_ctor(0, 5, 0);
} else {
 x_300 = x_263;
}
lean_ctor_set(x_300, 0, x_276);
lean_ctor_set(x_300, 1, x_265);
lean_ctor_set(x_300, 2, x_266);
lean_ctor_set(x_300, 3, x_292);
lean_ctor_set(x_300, 4, x_299);
return x_300;
}
}
}
else
{
lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; lean_object* x_306; 
lean_dec(x_269);
lean_dec(x_268);
lean_dec(x_267);
lean_dec(x_266);
lean_dec(x_265);
x_301 = lean_unsigned_to_nat(1u);
x_302 = lean_nat_add(x_301, x_255);
lean_dec(x_255);
x_303 = lean_nat_add(x_302, x_23);
lean_dec(x_23);
x_304 = lean_nat_add(x_302, x_264);
lean_dec(x_264);
lean_dec(x_302);
if (lean_is_scalar(x_263)) {
 x_305 = lean_alloc_ctor(0, 5, 0);
} else {
 x_305 = x_263;
}
lean_ctor_set(x_305, 0, x_304);
lean_ctor_set(x_305, 1, x_253);
lean_ctor_set(x_305, 2, x_254);
lean_ctor_set(x_305, 3, x_252);
lean_ctor_set(x_305, 4, x_26);
x_306 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_306, 0, x_303);
lean_ctor_set(x_306, 1, x_24);
lean_ctor_set(x_306, 2, x_25);
lean_ctor_set(x_306, 3, x_305);
lean_ctor_set(x_306, 4, x_27);
return x_306;
}
}
else
{
lean_object* x_307; lean_object* x_308; 
lean_dec(x_263);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_26);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_23);
x_307 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_308 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2___rarg(x_307);
return x_308;
}
}
else
{
lean_object* x_309; lean_object* x_310; 
lean_dec(x_263);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_27);
lean_dec(x_25);
lean_dec(x_24);
lean_dec(x_23);
x_309 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_310 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3___rarg(x_309);
return x_310;
}
}
}
else
{
if (lean_obj_tag(x_26) == 0)
{
lean_object* x_311; 
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_311 = x_11;
} else {
 lean_dec_ref(x_11);
 x_311 = lean_box(0);
}
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; lean_object* x_318; lean_object* x_319; lean_object* x_320; 
x_312 = lean_ctor_get(x_251, 0);
lean_inc(x_312);
x_313 = lean_ctor_get(x_251, 1);
lean_inc(x_313);
lean_dec(x_251);
x_314 = lean_ctor_get(x_26, 0);
lean_inc(x_314);
x_315 = lean_unsigned_to_nat(1u);
x_316 = lean_nat_add(x_315, x_23);
lean_dec(x_23);
x_317 = lean_nat_add(x_315, x_314);
lean_dec(x_314);
x_318 = lean_box(1);
if (lean_is_scalar(x_311)) {
 x_319 = lean_alloc_ctor(0, 5, 0);
} else {
 x_319 = x_311;
}
lean_ctor_set(x_319, 0, x_317);
lean_ctor_set(x_319, 1, x_312);
lean_ctor_set(x_319, 2, x_313);
lean_ctor_set(x_319, 3, x_318);
lean_ctor_set(x_319, 4, x_26);
x_320 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_320, 0, x_316);
lean_ctor_set(x_320, 1, x_24);
lean_ctor_set(x_320, 2, x_25);
lean_ctor_set(x_320, 3, x_319);
lean_ctor_set(x_320, 4, x_27);
return x_320;
}
else
{
lean_object* x_321; lean_object* x_322; lean_object* x_323; lean_object* x_324; lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; lean_object* x_330; lean_object* x_331; 
lean_dec(x_23);
x_321 = lean_ctor_get(x_251, 0);
lean_inc(x_321);
x_322 = lean_ctor_get(x_251, 1);
lean_inc(x_322);
lean_dec(x_251);
x_323 = lean_ctor_get(x_26, 1);
lean_inc(x_323);
x_324 = lean_ctor_get(x_26, 2);
lean_inc(x_324);
if (lean_is_exclusive(x_26)) {
 lean_ctor_release(x_26, 0);
 lean_ctor_release(x_26, 1);
 lean_ctor_release(x_26, 2);
 lean_ctor_release(x_26, 3);
 lean_ctor_release(x_26, 4);
 x_325 = x_26;
} else {
 lean_dec_ref(x_26);
 x_325 = lean_box(0);
}
x_326 = lean_box(1);
x_327 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_325)) {
 x_328 = lean_alloc_ctor(0, 5, 0);
} else {
 x_328 = x_325;
}
lean_ctor_set(x_328, 0, x_327);
lean_ctor_set(x_328, 1, x_321);
lean_ctor_set(x_328, 2, x_322);
lean_ctor_set(x_328, 3, x_326);
lean_ctor_set(x_328, 4, x_326);
if (lean_is_scalar(x_311)) {
 x_329 = lean_alloc_ctor(0, 5, 0);
} else {
 x_329 = x_311;
}
lean_ctor_set(x_329, 0, x_327);
lean_ctor_set(x_329, 1, x_24);
lean_ctor_set(x_329, 2, x_25);
lean_ctor_set(x_329, 3, x_326);
lean_ctor_set(x_329, 4, x_326);
x_330 = lean_unsigned_to_nat(3u);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_323);
lean_ctor_set(x_331, 2, x_324);
lean_ctor_set(x_331, 3, x_328);
lean_ctor_set(x_331, 4, x_329);
return x_331;
}
}
else
{
lean_dec(x_23);
if (lean_obj_tag(x_27) == 0)
{
lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; 
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_332 = x_11;
} else {
 lean_dec_ref(x_11);
 x_332 = lean_box(0);
}
x_333 = lean_ctor_get(x_251, 0);
lean_inc(x_333);
x_334 = lean_ctor_get(x_251, 1);
lean_inc(x_334);
lean_dec(x_251);
x_335 = lean_box(1);
x_336 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_332)) {
 x_337 = lean_alloc_ctor(0, 5, 0);
} else {
 x_337 = x_332;
}
lean_ctor_set(x_337, 0, x_336);
lean_ctor_set(x_337, 1, x_333);
lean_ctor_set(x_337, 2, x_334);
lean_ctor_set(x_337, 3, x_335);
lean_ctor_set(x_337, 4, x_335);
x_338 = lean_unsigned_to_nat(3u);
x_339 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_339, 0, x_338);
lean_ctor_set(x_339, 1, x_24);
lean_ctor_set(x_339, 2, x_25);
lean_ctor_set(x_339, 3, x_337);
lean_ctor_set(x_339, 4, x_27);
return x_339;
}
else
{
lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; lean_object* x_344; 
lean_dec(x_25);
lean_dec(x_24);
x_340 = lean_ctor_get(x_251, 0);
lean_inc(x_340);
x_341 = lean_ctor_get(x_251, 1);
lean_inc(x_341);
lean_dec(x_251);
x_342 = lean_box(1);
x_343 = lean_unsigned_to_nat(2u);
x_344 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_344, 0, x_343);
lean_ctor_set(x_344, 1, x_340);
lean_ctor_set(x_344, 2, x_341);
lean_ctor_set(x_344, 3, x_342);
lean_ctor_set(x_344, 4, x_11);
return x_344;
}
}
}
}
}
else
{
uint8_t x_345; 
lean_dec(x_23);
x_345 = !lean_is_exclusive(x_11);
if (x_345 == 0)
{
lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; 
x_346 = lean_ctor_get(x_11, 4);
lean_dec(x_346);
x_347 = lean_ctor_get(x_11, 3);
lean_dec(x_347);
x_348 = lean_ctor_get(x_11, 2);
lean_dec(x_348);
x_349 = lean_ctor_get(x_11, 1);
lean_dec(x_349);
x_350 = lean_ctor_get(x_11, 0);
lean_dec(x_350);
x_351 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_24, x_25, x_26, x_27);
x_352 = lean_ctor_get(x_351, 2);
lean_inc(x_352);
if (lean_obj_tag(x_352) == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; uint8_t x_358; 
x_353 = lean_ctor_get(x_351, 0);
lean_inc(x_353);
x_354 = lean_ctor_get(x_351, 1);
lean_inc(x_354);
lean_dec(x_351);
x_355 = lean_ctor_get(x_352, 0);
lean_inc(x_355);
x_356 = lean_unsigned_to_nat(3u);
x_357 = lean_nat_mul(x_356, x_355);
x_358 = lean_nat_dec_lt(x_357, x_18);
lean_dec(x_357);
if (x_358 == 0)
{
lean_object* x_359; lean_object* x_360; lean_object* x_361; 
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_359 = lean_unsigned_to_nat(1u);
x_360 = lean_nat_add(x_359, x_18);
lean_dec(x_18);
x_361 = lean_nat_add(x_360, x_355);
lean_dec(x_355);
lean_dec(x_360);
lean_ctor_set(x_11, 4, x_352);
lean_ctor_set(x_11, 3, x_10);
lean_ctor_set(x_11, 2, x_354);
lean_ctor_set(x_11, 1, x_353);
lean_ctor_set(x_11, 0, x_361);
return x_11;
}
else
{
uint8_t x_362; 
x_362 = !lean_is_exclusive(x_10);
if (x_362 == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; 
x_363 = lean_ctor_get(x_10, 4);
lean_dec(x_363);
x_364 = lean_ctor_get(x_10, 3);
lean_dec(x_364);
x_365 = lean_ctor_get(x_10, 2);
lean_dec(x_365);
x_366 = lean_ctor_get(x_10, 1);
lean_dec(x_366);
x_367 = lean_ctor_get(x_10, 0);
lean_dec(x_367);
if (lean_obj_tag(x_21) == 0)
{
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_368; lean_object* x_369; lean_object* x_370; lean_object* x_371; lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; uint8_t x_376; 
x_368 = lean_ctor_get(x_21, 0);
lean_inc(x_368);
x_369 = lean_ctor_get(x_22, 0);
lean_inc(x_369);
x_370 = lean_ctor_get(x_22, 1);
lean_inc(x_370);
x_371 = lean_ctor_get(x_22, 2);
lean_inc(x_371);
x_372 = lean_ctor_get(x_22, 3);
lean_inc(x_372);
x_373 = lean_ctor_get(x_22, 4);
lean_inc(x_373);
x_374 = lean_unsigned_to_nat(2u);
x_375 = lean_nat_mul(x_374, x_368);
x_376 = lean_nat_dec_lt(x_369, x_375);
lean_dec(x_375);
if (x_376 == 0)
{
uint8_t x_377; 
lean_dec(x_369);
lean_free_object(x_10);
lean_free_object(x_11);
x_377 = !lean_is_exclusive(x_22);
if (x_377 == 0)
{
lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; lean_object* x_386; lean_object* x_387; 
x_378 = lean_ctor_get(x_22, 4);
lean_dec(x_378);
x_379 = lean_ctor_get(x_22, 3);
lean_dec(x_379);
x_380 = lean_ctor_get(x_22, 2);
lean_dec(x_380);
x_381 = lean_ctor_get(x_22, 1);
lean_dec(x_381);
x_382 = lean_ctor_get(x_22, 0);
lean_dec(x_382);
x_383 = lean_unsigned_to_nat(1u);
x_384 = lean_nat_add(x_383, x_18);
lean_dec(x_18);
x_385 = lean_nat_add(x_384, x_355);
lean_dec(x_384);
x_386 = lean_nat_add(x_383, x_368);
lean_dec(x_368);
x_387 = lean_nat_add(x_383, x_355);
lean_dec(x_355);
if (lean_obj_tag(x_372) == 0)
{
lean_object* x_388; lean_object* x_389; uint8_t x_390; 
x_388 = lean_ctor_get(x_372, 0);
lean_inc(x_388);
x_389 = lean_nat_add(x_386, x_388);
lean_dec(x_388);
lean_dec(x_386);
lean_inc(x_21);
lean_ctor_set(x_22, 4, x_372);
lean_ctor_set(x_22, 3, x_21);
lean_ctor_set(x_22, 2, x_20);
lean_ctor_set(x_22, 1, x_19);
lean_ctor_set(x_22, 0, x_389);
x_390 = !lean_is_exclusive(x_21);
if (x_390 == 0)
{
lean_object* x_391; lean_object* x_392; lean_object* x_393; lean_object* x_394; lean_object* x_395; 
x_391 = lean_ctor_get(x_21, 4);
lean_dec(x_391);
x_392 = lean_ctor_get(x_21, 3);
lean_dec(x_392);
x_393 = lean_ctor_get(x_21, 2);
lean_dec(x_393);
x_394 = lean_ctor_get(x_21, 1);
lean_dec(x_394);
x_395 = lean_ctor_get(x_21, 0);
lean_dec(x_395);
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_396; lean_object* x_397; uint8_t x_398; 
x_396 = lean_ctor_get(x_373, 0);
lean_inc(x_396);
x_397 = lean_nat_add(x_387, x_396);
lean_dec(x_396);
lean_dec(x_387);
lean_inc(x_352);
lean_ctor_set(x_21, 4, x_352);
lean_ctor_set(x_21, 3, x_373);
lean_ctor_set(x_21, 2, x_354);
lean_ctor_set(x_21, 1, x_353);
lean_ctor_set(x_21, 0, x_397);
x_398 = !lean_is_exclusive(x_352);
if (x_398 == 0)
{
lean_object* x_399; lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; 
x_399 = lean_ctor_get(x_352, 4);
lean_dec(x_399);
x_400 = lean_ctor_get(x_352, 3);
lean_dec(x_400);
x_401 = lean_ctor_get(x_352, 2);
lean_dec(x_401);
x_402 = lean_ctor_get(x_352, 1);
lean_dec(x_402);
x_403 = lean_ctor_get(x_352, 0);
lean_dec(x_403);
lean_ctor_set(x_352, 4, x_21);
lean_ctor_set(x_352, 3, x_22);
lean_ctor_set(x_352, 2, x_371);
lean_ctor_set(x_352, 1, x_370);
lean_ctor_set(x_352, 0, x_385);
return x_352;
}
else
{
lean_object* x_404; 
lean_dec(x_352);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_385);
lean_ctor_set(x_404, 1, x_370);
lean_ctor_set(x_404, 2, x_371);
lean_ctor_set(x_404, 3, x_22);
lean_ctor_set(x_404, 4, x_21);
return x_404;
}
}
else
{
lean_object* x_405; lean_object* x_406; uint8_t x_407; 
x_405 = lean_unsigned_to_nat(0u);
x_406 = lean_nat_add(x_387, x_405);
lean_dec(x_387);
lean_inc(x_352);
lean_ctor_set(x_21, 4, x_352);
lean_ctor_set(x_21, 3, x_373);
lean_ctor_set(x_21, 2, x_354);
lean_ctor_set(x_21, 1, x_353);
lean_ctor_set(x_21, 0, x_406);
x_407 = !lean_is_exclusive(x_352);
if (x_407 == 0)
{
lean_object* x_408; lean_object* x_409; lean_object* x_410; lean_object* x_411; lean_object* x_412; 
x_408 = lean_ctor_get(x_352, 4);
lean_dec(x_408);
x_409 = lean_ctor_get(x_352, 3);
lean_dec(x_409);
x_410 = lean_ctor_get(x_352, 2);
lean_dec(x_410);
x_411 = lean_ctor_get(x_352, 1);
lean_dec(x_411);
x_412 = lean_ctor_get(x_352, 0);
lean_dec(x_412);
lean_ctor_set(x_352, 4, x_21);
lean_ctor_set(x_352, 3, x_22);
lean_ctor_set(x_352, 2, x_371);
lean_ctor_set(x_352, 1, x_370);
lean_ctor_set(x_352, 0, x_385);
return x_352;
}
else
{
lean_object* x_413; 
lean_dec(x_352);
x_413 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_413, 0, x_385);
lean_ctor_set(x_413, 1, x_370);
lean_ctor_set(x_413, 2, x_371);
lean_ctor_set(x_413, 3, x_22);
lean_ctor_set(x_413, 4, x_21);
return x_413;
}
}
}
else
{
lean_dec(x_21);
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_414; lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; 
x_414 = lean_ctor_get(x_373, 0);
lean_inc(x_414);
x_415 = lean_nat_add(x_387, x_414);
lean_dec(x_414);
lean_dec(x_387);
lean_inc(x_352);
x_416 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_416, 0, x_415);
lean_ctor_set(x_416, 1, x_353);
lean_ctor_set(x_416, 2, x_354);
lean_ctor_set(x_416, 3, x_373);
lean_ctor_set(x_416, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_417 = x_352;
} else {
 lean_dec_ref(x_352);
 x_417 = lean_box(0);
}
if (lean_is_scalar(x_417)) {
 x_418 = lean_alloc_ctor(0, 5, 0);
} else {
 x_418 = x_417;
}
lean_ctor_set(x_418, 0, x_385);
lean_ctor_set(x_418, 1, x_370);
lean_ctor_set(x_418, 2, x_371);
lean_ctor_set(x_418, 3, x_22);
lean_ctor_set(x_418, 4, x_416);
return x_418;
}
else
{
lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; 
x_419 = lean_unsigned_to_nat(0u);
x_420 = lean_nat_add(x_387, x_419);
lean_dec(x_387);
lean_inc(x_352);
x_421 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_421, 0, x_420);
lean_ctor_set(x_421, 1, x_353);
lean_ctor_set(x_421, 2, x_354);
lean_ctor_set(x_421, 3, x_373);
lean_ctor_set(x_421, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_422 = x_352;
} else {
 lean_dec_ref(x_352);
 x_422 = lean_box(0);
}
if (lean_is_scalar(x_422)) {
 x_423 = lean_alloc_ctor(0, 5, 0);
} else {
 x_423 = x_422;
}
lean_ctor_set(x_423, 0, x_385);
lean_ctor_set(x_423, 1, x_370);
lean_ctor_set(x_423, 2, x_371);
lean_ctor_set(x_423, 3, x_22);
lean_ctor_set(x_423, 4, x_421);
return x_423;
}
}
}
else
{
lean_object* x_424; lean_object* x_425; uint8_t x_426; 
x_424 = lean_unsigned_to_nat(0u);
x_425 = lean_nat_add(x_386, x_424);
lean_dec(x_386);
lean_inc(x_21);
lean_ctor_set(x_22, 4, x_372);
lean_ctor_set(x_22, 3, x_21);
lean_ctor_set(x_22, 2, x_20);
lean_ctor_set(x_22, 1, x_19);
lean_ctor_set(x_22, 0, x_425);
x_426 = !lean_is_exclusive(x_21);
if (x_426 == 0)
{
lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; 
x_427 = lean_ctor_get(x_21, 4);
lean_dec(x_427);
x_428 = lean_ctor_get(x_21, 3);
lean_dec(x_428);
x_429 = lean_ctor_get(x_21, 2);
lean_dec(x_429);
x_430 = lean_ctor_get(x_21, 1);
lean_dec(x_430);
x_431 = lean_ctor_get(x_21, 0);
lean_dec(x_431);
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_432; lean_object* x_433; uint8_t x_434; 
x_432 = lean_ctor_get(x_373, 0);
lean_inc(x_432);
x_433 = lean_nat_add(x_387, x_432);
lean_dec(x_432);
lean_dec(x_387);
lean_inc(x_352);
lean_ctor_set(x_21, 4, x_352);
lean_ctor_set(x_21, 3, x_373);
lean_ctor_set(x_21, 2, x_354);
lean_ctor_set(x_21, 1, x_353);
lean_ctor_set(x_21, 0, x_433);
x_434 = !lean_is_exclusive(x_352);
if (x_434 == 0)
{
lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; lean_object* x_439; 
x_435 = lean_ctor_get(x_352, 4);
lean_dec(x_435);
x_436 = lean_ctor_get(x_352, 3);
lean_dec(x_436);
x_437 = lean_ctor_get(x_352, 2);
lean_dec(x_437);
x_438 = lean_ctor_get(x_352, 1);
lean_dec(x_438);
x_439 = lean_ctor_get(x_352, 0);
lean_dec(x_439);
lean_ctor_set(x_352, 4, x_21);
lean_ctor_set(x_352, 3, x_22);
lean_ctor_set(x_352, 2, x_371);
lean_ctor_set(x_352, 1, x_370);
lean_ctor_set(x_352, 0, x_385);
return x_352;
}
else
{
lean_object* x_440; 
lean_dec(x_352);
x_440 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_440, 0, x_385);
lean_ctor_set(x_440, 1, x_370);
lean_ctor_set(x_440, 2, x_371);
lean_ctor_set(x_440, 3, x_22);
lean_ctor_set(x_440, 4, x_21);
return x_440;
}
}
else
{
lean_object* x_441; uint8_t x_442; 
x_441 = lean_nat_add(x_387, x_424);
lean_dec(x_387);
lean_inc(x_352);
lean_ctor_set(x_21, 4, x_352);
lean_ctor_set(x_21, 3, x_373);
lean_ctor_set(x_21, 2, x_354);
lean_ctor_set(x_21, 1, x_353);
lean_ctor_set(x_21, 0, x_441);
x_442 = !lean_is_exclusive(x_352);
if (x_442 == 0)
{
lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; lean_object* x_447; 
x_443 = lean_ctor_get(x_352, 4);
lean_dec(x_443);
x_444 = lean_ctor_get(x_352, 3);
lean_dec(x_444);
x_445 = lean_ctor_get(x_352, 2);
lean_dec(x_445);
x_446 = lean_ctor_get(x_352, 1);
lean_dec(x_446);
x_447 = lean_ctor_get(x_352, 0);
lean_dec(x_447);
lean_ctor_set(x_352, 4, x_21);
lean_ctor_set(x_352, 3, x_22);
lean_ctor_set(x_352, 2, x_371);
lean_ctor_set(x_352, 1, x_370);
lean_ctor_set(x_352, 0, x_385);
return x_352;
}
else
{
lean_object* x_448; 
lean_dec(x_352);
x_448 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_448, 0, x_385);
lean_ctor_set(x_448, 1, x_370);
lean_ctor_set(x_448, 2, x_371);
lean_ctor_set(x_448, 3, x_22);
lean_ctor_set(x_448, 4, x_21);
return x_448;
}
}
}
else
{
lean_dec(x_21);
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; 
x_449 = lean_ctor_get(x_373, 0);
lean_inc(x_449);
x_450 = lean_nat_add(x_387, x_449);
lean_dec(x_449);
lean_dec(x_387);
lean_inc(x_352);
x_451 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_451, 0, x_450);
lean_ctor_set(x_451, 1, x_353);
lean_ctor_set(x_451, 2, x_354);
lean_ctor_set(x_451, 3, x_373);
lean_ctor_set(x_451, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_452 = x_352;
} else {
 lean_dec_ref(x_352);
 x_452 = lean_box(0);
}
if (lean_is_scalar(x_452)) {
 x_453 = lean_alloc_ctor(0, 5, 0);
} else {
 x_453 = x_452;
}
lean_ctor_set(x_453, 0, x_385);
lean_ctor_set(x_453, 1, x_370);
lean_ctor_set(x_453, 2, x_371);
lean_ctor_set(x_453, 3, x_22);
lean_ctor_set(x_453, 4, x_451);
return x_453;
}
else
{
lean_object* x_454; lean_object* x_455; lean_object* x_456; lean_object* x_457; 
x_454 = lean_nat_add(x_387, x_424);
lean_dec(x_387);
lean_inc(x_352);
x_455 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_455, 0, x_454);
lean_ctor_set(x_455, 1, x_353);
lean_ctor_set(x_455, 2, x_354);
lean_ctor_set(x_455, 3, x_373);
lean_ctor_set(x_455, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_456 = x_352;
} else {
 lean_dec_ref(x_352);
 x_456 = lean_box(0);
}
if (lean_is_scalar(x_456)) {
 x_457 = lean_alloc_ctor(0, 5, 0);
} else {
 x_457 = x_456;
}
lean_ctor_set(x_457, 0, x_385);
lean_ctor_set(x_457, 1, x_370);
lean_ctor_set(x_457, 2, x_371);
lean_ctor_set(x_457, 3, x_22);
lean_ctor_set(x_457, 4, x_455);
return x_457;
}
}
}
}
else
{
lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; 
lean_dec(x_22);
x_458 = lean_unsigned_to_nat(1u);
x_459 = lean_nat_add(x_458, x_18);
lean_dec(x_18);
x_460 = lean_nat_add(x_459, x_355);
lean_dec(x_459);
x_461 = lean_nat_add(x_458, x_368);
lean_dec(x_368);
x_462 = lean_nat_add(x_458, x_355);
lean_dec(x_355);
if (lean_obj_tag(x_372) == 0)
{
lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; 
x_463 = lean_ctor_get(x_372, 0);
lean_inc(x_463);
x_464 = lean_nat_add(x_461, x_463);
lean_dec(x_463);
lean_dec(x_461);
lean_inc(x_21);
x_465 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_465, 0, x_464);
lean_ctor_set(x_465, 1, x_19);
lean_ctor_set(x_465, 2, x_20);
lean_ctor_set(x_465, 3, x_21);
lean_ctor_set(x_465, 4, x_372);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 lean_ctor_release(x_21, 1);
 lean_ctor_release(x_21, 2);
 lean_ctor_release(x_21, 3);
 lean_ctor_release(x_21, 4);
 x_466 = x_21;
} else {
 lean_dec_ref(x_21);
 x_466 = lean_box(0);
}
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_467; lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; 
x_467 = lean_ctor_get(x_373, 0);
lean_inc(x_467);
x_468 = lean_nat_add(x_462, x_467);
lean_dec(x_467);
lean_dec(x_462);
lean_inc(x_352);
if (lean_is_scalar(x_466)) {
 x_469 = lean_alloc_ctor(0, 5, 0);
} else {
 x_469 = x_466;
}
lean_ctor_set(x_469, 0, x_468);
lean_ctor_set(x_469, 1, x_353);
lean_ctor_set(x_469, 2, x_354);
lean_ctor_set(x_469, 3, x_373);
lean_ctor_set(x_469, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_470 = x_352;
} else {
 lean_dec_ref(x_352);
 x_470 = lean_box(0);
}
if (lean_is_scalar(x_470)) {
 x_471 = lean_alloc_ctor(0, 5, 0);
} else {
 x_471 = x_470;
}
lean_ctor_set(x_471, 0, x_460);
lean_ctor_set(x_471, 1, x_370);
lean_ctor_set(x_471, 2, x_371);
lean_ctor_set(x_471, 3, x_465);
lean_ctor_set(x_471, 4, x_469);
return x_471;
}
else
{
lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; 
x_472 = lean_unsigned_to_nat(0u);
x_473 = lean_nat_add(x_462, x_472);
lean_dec(x_462);
lean_inc(x_352);
if (lean_is_scalar(x_466)) {
 x_474 = lean_alloc_ctor(0, 5, 0);
} else {
 x_474 = x_466;
}
lean_ctor_set(x_474, 0, x_473);
lean_ctor_set(x_474, 1, x_353);
lean_ctor_set(x_474, 2, x_354);
lean_ctor_set(x_474, 3, x_373);
lean_ctor_set(x_474, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_475 = x_352;
} else {
 lean_dec_ref(x_352);
 x_475 = lean_box(0);
}
if (lean_is_scalar(x_475)) {
 x_476 = lean_alloc_ctor(0, 5, 0);
} else {
 x_476 = x_475;
}
lean_ctor_set(x_476, 0, x_460);
lean_ctor_set(x_476, 1, x_370);
lean_ctor_set(x_476, 2, x_371);
lean_ctor_set(x_476, 3, x_465);
lean_ctor_set(x_476, 4, x_474);
return x_476;
}
}
else
{
lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; 
x_477 = lean_unsigned_to_nat(0u);
x_478 = lean_nat_add(x_461, x_477);
lean_dec(x_461);
lean_inc(x_21);
x_479 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_479, 0, x_478);
lean_ctor_set(x_479, 1, x_19);
lean_ctor_set(x_479, 2, x_20);
lean_ctor_set(x_479, 3, x_21);
lean_ctor_set(x_479, 4, x_372);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 lean_ctor_release(x_21, 1);
 lean_ctor_release(x_21, 2);
 lean_ctor_release(x_21, 3);
 lean_ctor_release(x_21, 4);
 x_480 = x_21;
} else {
 lean_dec_ref(x_21);
 x_480 = lean_box(0);
}
if (lean_obj_tag(x_373) == 0)
{
lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; lean_object* x_485; 
x_481 = lean_ctor_get(x_373, 0);
lean_inc(x_481);
x_482 = lean_nat_add(x_462, x_481);
lean_dec(x_481);
lean_dec(x_462);
lean_inc(x_352);
if (lean_is_scalar(x_480)) {
 x_483 = lean_alloc_ctor(0, 5, 0);
} else {
 x_483 = x_480;
}
lean_ctor_set(x_483, 0, x_482);
lean_ctor_set(x_483, 1, x_353);
lean_ctor_set(x_483, 2, x_354);
lean_ctor_set(x_483, 3, x_373);
lean_ctor_set(x_483, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_484 = x_352;
} else {
 lean_dec_ref(x_352);
 x_484 = lean_box(0);
}
if (lean_is_scalar(x_484)) {
 x_485 = lean_alloc_ctor(0, 5, 0);
} else {
 x_485 = x_484;
}
lean_ctor_set(x_485, 0, x_460);
lean_ctor_set(x_485, 1, x_370);
lean_ctor_set(x_485, 2, x_371);
lean_ctor_set(x_485, 3, x_479);
lean_ctor_set(x_485, 4, x_483);
return x_485;
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; 
x_486 = lean_nat_add(x_462, x_477);
lean_dec(x_462);
lean_inc(x_352);
if (lean_is_scalar(x_480)) {
 x_487 = lean_alloc_ctor(0, 5, 0);
} else {
 x_487 = x_480;
}
lean_ctor_set(x_487, 0, x_486);
lean_ctor_set(x_487, 1, x_353);
lean_ctor_set(x_487, 2, x_354);
lean_ctor_set(x_487, 3, x_373);
lean_ctor_set(x_487, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_488 = x_352;
} else {
 lean_dec_ref(x_352);
 x_488 = lean_box(0);
}
if (lean_is_scalar(x_488)) {
 x_489 = lean_alloc_ctor(0, 5, 0);
} else {
 x_489 = x_488;
}
lean_ctor_set(x_489, 0, x_460);
lean_ctor_set(x_489, 1, x_370);
lean_ctor_set(x_489, 2, x_371);
lean_ctor_set(x_489, 3, x_479);
lean_ctor_set(x_489, 4, x_487);
return x_489;
}
}
}
}
else
{
lean_object* x_490; lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; 
lean_dec(x_373);
lean_dec(x_372);
lean_dec(x_371);
lean_dec(x_370);
lean_dec(x_368);
x_490 = lean_unsigned_to_nat(1u);
x_491 = lean_nat_add(x_490, x_18);
lean_dec(x_18);
x_492 = lean_nat_add(x_491, x_355);
lean_dec(x_491);
x_493 = lean_nat_add(x_490, x_355);
lean_dec(x_355);
x_494 = lean_nat_add(x_493, x_369);
lean_dec(x_369);
lean_dec(x_493);
lean_ctor_set(x_11, 4, x_352);
lean_ctor_set(x_11, 3, x_22);
lean_ctor_set(x_11, 2, x_354);
lean_ctor_set(x_11, 1, x_353);
lean_ctor_set(x_11, 0, x_494);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 0, x_492);
return x_10;
}
}
else
{
lean_object* x_495; lean_object* x_496; 
lean_free_object(x_10);
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_dec(x_352);
lean_free_object(x_11);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
x_495 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_496 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4___rarg(x_495);
return x_496;
}
}
else
{
lean_object* x_497; lean_object* x_498; 
lean_free_object(x_10);
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_dec(x_352);
lean_free_object(x_11);
lean_dec(x_22);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
x_497 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_498 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5___rarg(x_497);
return x_498;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_21) == 0)
{
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; uint8_t x_507; 
x_499 = lean_ctor_get(x_21, 0);
lean_inc(x_499);
x_500 = lean_ctor_get(x_22, 0);
lean_inc(x_500);
x_501 = lean_ctor_get(x_22, 1);
lean_inc(x_501);
x_502 = lean_ctor_get(x_22, 2);
lean_inc(x_502);
x_503 = lean_ctor_get(x_22, 3);
lean_inc(x_503);
x_504 = lean_ctor_get(x_22, 4);
lean_inc(x_504);
x_505 = lean_unsigned_to_nat(2u);
x_506 = lean_nat_mul(x_505, x_499);
x_507 = lean_nat_dec_lt(x_500, x_506);
lean_dec(x_506);
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_dec(x_500);
lean_free_object(x_11);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_508 = x_22;
} else {
 lean_dec_ref(x_22);
 x_508 = lean_box(0);
}
x_509 = lean_unsigned_to_nat(1u);
x_510 = lean_nat_add(x_509, x_18);
lean_dec(x_18);
x_511 = lean_nat_add(x_510, x_355);
lean_dec(x_510);
x_512 = lean_nat_add(x_509, x_499);
lean_dec(x_499);
x_513 = lean_nat_add(x_509, x_355);
lean_dec(x_355);
if (lean_obj_tag(x_503) == 0)
{
lean_object* x_514; lean_object* x_515; lean_object* x_516; lean_object* x_517; 
x_514 = lean_ctor_get(x_503, 0);
lean_inc(x_514);
x_515 = lean_nat_add(x_512, x_514);
lean_dec(x_514);
lean_dec(x_512);
lean_inc(x_21);
if (lean_is_scalar(x_508)) {
 x_516 = lean_alloc_ctor(0, 5, 0);
} else {
 x_516 = x_508;
}
lean_ctor_set(x_516, 0, x_515);
lean_ctor_set(x_516, 1, x_19);
lean_ctor_set(x_516, 2, x_20);
lean_ctor_set(x_516, 3, x_21);
lean_ctor_set(x_516, 4, x_503);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 lean_ctor_release(x_21, 1);
 lean_ctor_release(x_21, 2);
 lean_ctor_release(x_21, 3);
 lean_ctor_release(x_21, 4);
 x_517 = x_21;
} else {
 lean_dec_ref(x_21);
 x_517 = lean_box(0);
}
if (lean_obj_tag(x_504) == 0)
{
lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
x_518 = lean_ctor_get(x_504, 0);
lean_inc(x_518);
x_519 = lean_nat_add(x_513, x_518);
lean_dec(x_518);
lean_dec(x_513);
lean_inc(x_352);
if (lean_is_scalar(x_517)) {
 x_520 = lean_alloc_ctor(0, 5, 0);
} else {
 x_520 = x_517;
}
lean_ctor_set(x_520, 0, x_519);
lean_ctor_set(x_520, 1, x_353);
lean_ctor_set(x_520, 2, x_354);
lean_ctor_set(x_520, 3, x_504);
lean_ctor_set(x_520, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_521 = x_352;
} else {
 lean_dec_ref(x_352);
 x_521 = lean_box(0);
}
if (lean_is_scalar(x_521)) {
 x_522 = lean_alloc_ctor(0, 5, 0);
} else {
 x_522 = x_521;
}
lean_ctor_set(x_522, 0, x_511);
lean_ctor_set(x_522, 1, x_501);
lean_ctor_set(x_522, 2, x_502);
lean_ctor_set(x_522, 3, x_516);
lean_ctor_set(x_522, 4, x_520);
return x_522;
}
else
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; 
x_523 = lean_unsigned_to_nat(0u);
x_524 = lean_nat_add(x_513, x_523);
lean_dec(x_513);
lean_inc(x_352);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_353);
lean_ctor_set(x_525, 2, x_354);
lean_ctor_set(x_525, 3, x_504);
lean_ctor_set(x_525, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_526 = x_352;
} else {
 lean_dec_ref(x_352);
 x_526 = lean_box(0);
}
if (lean_is_scalar(x_526)) {
 x_527 = lean_alloc_ctor(0, 5, 0);
} else {
 x_527 = x_526;
}
lean_ctor_set(x_527, 0, x_511);
lean_ctor_set(x_527, 1, x_501);
lean_ctor_set(x_527, 2, x_502);
lean_ctor_set(x_527, 3, x_516);
lean_ctor_set(x_527, 4, x_525);
return x_527;
}
}
else
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 
x_528 = lean_unsigned_to_nat(0u);
x_529 = lean_nat_add(x_512, x_528);
lean_dec(x_512);
lean_inc(x_21);
if (lean_is_scalar(x_508)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_508;
}
lean_ctor_set(x_530, 0, x_529);
lean_ctor_set(x_530, 1, x_19);
lean_ctor_set(x_530, 2, x_20);
lean_ctor_set(x_530, 3, x_21);
lean_ctor_set(x_530, 4, x_503);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 lean_ctor_release(x_21, 1);
 lean_ctor_release(x_21, 2);
 lean_ctor_release(x_21, 3);
 lean_ctor_release(x_21, 4);
 x_531 = x_21;
} else {
 lean_dec_ref(x_21);
 x_531 = lean_box(0);
}
if (lean_obj_tag(x_504) == 0)
{
lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; lean_object* x_536; 
x_532 = lean_ctor_get(x_504, 0);
lean_inc(x_532);
x_533 = lean_nat_add(x_513, x_532);
lean_dec(x_532);
lean_dec(x_513);
lean_inc(x_352);
if (lean_is_scalar(x_531)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_531;
}
lean_ctor_set(x_534, 0, x_533);
lean_ctor_set(x_534, 1, x_353);
lean_ctor_set(x_534, 2, x_354);
lean_ctor_set(x_534, 3, x_504);
lean_ctor_set(x_534, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_535 = x_352;
} else {
 lean_dec_ref(x_352);
 x_535 = lean_box(0);
}
if (lean_is_scalar(x_535)) {
 x_536 = lean_alloc_ctor(0, 5, 0);
} else {
 x_536 = x_535;
}
lean_ctor_set(x_536, 0, x_511);
lean_ctor_set(x_536, 1, x_501);
lean_ctor_set(x_536, 2, x_502);
lean_ctor_set(x_536, 3, x_530);
lean_ctor_set(x_536, 4, x_534);
return x_536;
}
else
{
lean_object* x_537; lean_object* x_538; lean_object* x_539; lean_object* x_540; 
x_537 = lean_nat_add(x_513, x_528);
lean_dec(x_513);
lean_inc(x_352);
if (lean_is_scalar(x_531)) {
 x_538 = lean_alloc_ctor(0, 5, 0);
} else {
 x_538 = x_531;
}
lean_ctor_set(x_538, 0, x_537);
lean_ctor_set(x_538, 1, x_353);
lean_ctor_set(x_538, 2, x_354);
lean_ctor_set(x_538, 3, x_504);
lean_ctor_set(x_538, 4, x_352);
if (lean_is_exclusive(x_352)) {
 lean_ctor_release(x_352, 0);
 lean_ctor_release(x_352, 1);
 lean_ctor_release(x_352, 2);
 lean_ctor_release(x_352, 3);
 lean_ctor_release(x_352, 4);
 x_539 = x_352;
} else {
 lean_dec_ref(x_352);
 x_539 = lean_box(0);
}
if (lean_is_scalar(x_539)) {
 x_540 = lean_alloc_ctor(0, 5, 0);
} else {
 x_540 = x_539;
}
lean_ctor_set(x_540, 0, x_511);
lean_ctor_set(x_540, 1, x_501);
lean_ctor_set(x_540, 2, x_502);
lean_ctor_set(x_540, 3, x_530);
lean_ctor_set(x_540, 4, x_538);
return x_540;
}
}
}
else
{
lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; 
lean_dec(x_504);
lean_dec(x_503);
lean_dec(x_502);
lean_dec(x_501);
lean_dec(x_499);
x_541 = lean_unsigned_to_nat(1u);
x_542 = lean_nat_add(x_541, x_18);
lean_dec(x_18);
x_543 = lean_nat_add(x_542, x_355);
lean_dec(x_542);
x_544 = lean_nat_add(x_541, x_355);
lean_dec(x_355);
x_545 = lean_nat_add(x_544, x_500);
lean_dec(x_500);
lean_dec(x_544);
lean_ctor_set(x_11, 4, x_352);
lean_ctor_set(x_11, 3, x_22);
lean_ctor_set(x_11, 2, x_354);
lean_ctor_set(x_11, 1, x_353);
lean_ctor_set(x_11, 0, x_545);
x_546 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_546, 0, x_543);
lean_ctor_set(x_546, 1, x_19);
lean_ctor_set(x_546, 2, x_20);
lean_ctor_set(x_546, 3, x_21);
lean_ctor_set(x_546, 4, x_11);
return x_546;
}
}
else
{
lean_object* x_547; lean_object* x_548; 
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_dec(x_352);
lean_free_object(x_11);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
x_547 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_548 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4___rarg(x_547);
return x_548;
}
}
else
{
lean_object* x_549; lean_object* x_550; 
lean_dec(x_355);
lean_dec(x_354);
lean_dec(x_353);
lean_dec(x_352);
lean_free_object(x_11);
lean_dec(x_22);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
x_549 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_550 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5___rarg(x_549);
return x_550;
}
}
}
}
else
{
if (lean_obj_tag(x_21) == 0)
{
uint8_t x_551; 
x_551 = !lean_is_exclusive(x_10);
if (x_551 == 0)
{
lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; 
x_552 = lean_ctor_get(x_10, 4);
lean_dec(x_552);
x_553 = lean_ctor_get(x_10, 3);
lean_dec(x_553);
x_554 = lean_ctor_get(x_10, 2);
lean_dec(x_554);
x_555 = lean_ctor_get(x_10, 1);
lean_dec(x_555);
x_556 = lean_ctor_get(x_10, 0);
lean_dec(x_556);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_557; lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; 
x_557 = lean_ctor_get(x_351, 0);
lean_inc(x_557);
x_558 = lean_ctor_get(x_351, 1);
lean_inc(x_558);
lean_dec(x_351);
x_559 = lean_ctor_get(x_22, 0);
lean_inc(x_559);
x_560 = lean_unsigned_to_nat(1u);
x_561 = lean_nat_add(x_560, x_18);
lean_dec(x_18);
x_562 = lean_nat_add(x_560, x_559);
lean_dec(x_559);
x_563 = lean_box(1);
lean_ctor_set(x_11, 4, x_563);
lean_ctor_set(x_11, 3, x_22);
lean_ctor_set(x_11, 2, x_558);
lean_ctor_set(x_11, 1, x_557);
lean_ctor_set(x_11, 0, x_562);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 0, x_561);
return x_10;
}
else
{
lean_object* x_564; lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; 
lean_dec(x_18);
x_564 = lean_ctor_get(x_351, 0);
lean_inc(x_564);
x_565 = lean_ctor_get(x_351, 1);
lean_inc(x_565);
lean_dec(x_351);
x_566 = lean_box(1);
x_567 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_11, 4, x_566);
lean_ctor_set(x_11, 3, x_566);
lean_ctor_set(x_11, 2, x_565);
lean_ctor_set(x_11, 1, x_564);
lean_ctor_set(x_11, 0, x_567);
x_568 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 0, x_568);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; 
x_569 = lean_ctor_get(x_351, 0);
lean_inc(x_569);
x_570 = lean_ctor_get(x_351, 1);
lean_inc(x_570);
lean_dec(x_351);
x_571 = lean_ctor_get(x_22, 0);
lean_inc(x_571);
x_572 = lean_unsigned_to_nat(1u);
x_573 = lean_nat_add(x_572, x_18);
lean_dec(x_18);
x_574 = lean_nat_add(x_572, x_571);
lean_dec(x_571);
x_575 = lean_box(1);
lean_ctor_set(x_11, 4, x_575);
lean_ctor_set(x_11, 3, x_22);
lean_ctor_set(x_11, 2, x_570);
lean_ctor_set(x_11, 1, x_569);
lean_ctor_set(x_11, 0, x_574);
x_576 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_576, 0, x_573);
lean_ctor_set(x_576, 1, x_19);
lean_ctor_set(x_576, 2, x_20);
lean_ctor_set(x_576, 3, x_21);
lean_ctor_set(x_576, 4, x_11);
return x_576;
}
else
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; 
lean_dec(x_18);
x_577 = lean_ctor_get(x_351, 0);
lean_inc(x_577);
x_578 = lean_ctor_get(x_351, 1);
lean_inc(x_578);
lean_dec(x_351);
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_11, 4, x_579);
lean_ctor_set(x_11, 3, x_579);
lean_ctor_set(x_11, 2, x_578);
lean_ctor_set(x_11, 1, x_577);
lean_ctor_set(x_11, 0, x_580);
x_581 = lean_unsigned_to_nat(3u);
x_582 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_582, 0, x_581);
lean_ctor_set(x_582, 1, x_19);
lean_ctor_set(x_582, 2, x_20);
lean_ctor_set(x_582, 3, x_21);
lean_ctor_set(x_582, 4, x_11);
return x_582;
}
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_22) == 0)
{
uint8_t x_583; 
x_583 = !lean_is_exclusive(x_10);
if (x_583 == 0)
{
lean_object* x_584; lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; uint8_t x_591; 
x_584 = lean_ctor_get(x_10, 4);
lean_dec(x_584);
x_585 = lean_ctor_get(x_10, 3);
lean_dec(x_585);
x_586 = lean_ctor_get(x_10, 2);
lean_dec(x_586);
x_587 = lean_ctor_get(x_10, 1);
lean_dec(x_587);
x_588 = lean_ctor_get(x_10, 0);
lean_dec(x_588);
x_589 = lean_ctor_get(x_351, 0);
lean_inc(x_589);
x_590 = lean_ctor_get(x_351, 1);
lean_inc(x_590);
lean_dec(x_351);
x_591 = !lean_is_exclusive(x_22);
if (x_591 == 0)
{
lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_592 = lean_ctor_get(x_22, 1);
x_593 = lean_ctor_get(x_22, 2);
x_594 = lean_ctor_get(x_22, 4);
lean_dec(x_594);
x_595 = lean_ctor_get(x_22, 3);
lean_dec(x_595);
x_596 = lean_ctor_get(x_22, 0);
lean_dec(x_596);
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_22, 4, x_597);
lean_ctor_set(x_22, 3, x_597);
lean_ctor_set(x_22, 2, x_20);
lean_ctor_set(x_22, 1, x_19);
lean_ctor_set(x_22, 0, x_598);
lean_ctor_set(x_11, 4, x_597);
lean_ctor_set(x_11, 3, x_597);
lean_ctor_set(x_11, 2, x_590);
lean_ctor_set(x_11, 1, x_589);
lean_ctor_set(x_11, 0, x_598);
x_599 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 3, x_22);
lean_ctor_set(x_10, 2, x_593);
lean_ctor_set(x_10, 1, x_592);
lean_ctor_set(x_10, 0, x_599);
return x_10;
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; lean_object* x_603; lean_object* x_604; lean_object* x_605; 
x_600 = lean_ctor_get(x_22, 1);
x_601 = lean_ctor_get(x_22, 2);
lean_inc(x_601);
lean_inc(x_600);
lean_dec(x_22);
x_602 = lean_box(1);
x_603 = lean_unsigned_to_nat(1u);
x_604 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_604, 0, x_603);
lean_ctor_set(x_604, 1, x_19);
lean_ctor_set(x_604, 2, x_20);
lean_ctor_set(x_604, 3, x_602);
lean_ctor_set(x_604, 4, x_602);
lean_ctor_set(x_11, 4, x_602);
lean_ctor_set(x_11, 3, x_602);
lean_ctor_set(x_11, 2, x_590);
lean_ctor_set(x_11, 1, x_589);
lean_ctor_set(x_11, 0, x_603);
x_605 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_10, 4, x_11);
lean_ctor_set(x_10, 3, x_604);
lean_ctor_set(x_10, 2, x_601);
lean_ctor_set(x_10, 1, x_600);
lean_ctor_set(x_10, 0, x_605);
return x_10;
}
}
else
{
lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; lean_object* x_615; 
lean_dec(x_10);
x_606 = lean_ctor_get(x_351, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_351, 1);
lean_inc(x_607);
lean_dec(x_351);
x_608 = lean_ctor_get(x_22, 1);
lean_inc(x_608);
x_609 = lean_ctor_get(x_22, 2);
lean_inc(x_609);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_610 = x_22;
} else {
 lean_dec_ref(x_22);
 x_610 = lean_box(0);
}
x_611 = lean_box(1);
x_612 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_610)) {
 x_613 = lean_alloc_ctor(0, 5, 0);
} else {
 x_613 = x_610;
}
lean_ctor_set(x_613, 0, x_612);
lean_ctor_set(x_613, 1, x_19);
lean_ctor_set(x_613, 2, x_20);
lean_ctor_set(x_613, 3, x_611);
lean_ctor_set(x_613, 4, x_611);
lean_ctor_set(x_11, 4, x_611);
lean_ctor_set(x_11, 3, x_611);
lean_ctor_set(x_11, 2, x_607);
lean_ctor_set(x_11, 1, x_606);
lean_ctor_set(x_11, 0, x_612);
x_614 = lean_unsigned_to_nat(3u);
x_615 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_615, 0, x_614);
lean_ctor_set(x_615, 1, x_608);
lean_ctor_set(x_615, 2, x_609);
lean_ctor_set(x_615, 3, x_613);
lean_ctor_set(x_615, 4, x_11);
return x_615;
}
}
else
{
lean_object* x_616; lean_object* x_617; lean_object* x_618; lean_object* x_619; 
lean_dec(x_20);
lean_dec(x_19);
x_616 = lean_ctor_get(x_351, 0);
lean_inc(x_616);
x_617 = lean_ctor_get(x_351, 1);
lean_inc(x_617);
lean_dec(x_351);
x_618 = lean_box(1);
x_619 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_11, 4, x_618);
lean_ctor_set(x_11, 3, x_10);
lean_ctor_set(x_11, 2, x_617);
lean_ctor_set(x_11, 1, x_616);
lean_ctor_set(x_11, 0, x_619);
return x_11;
}
}
}
}
else
{
lean_object* x_620; lean_object* x_621; 
lean_dec(x_11);
x_620 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_24, x_25, x_26, x_27);
x_621 = lean_ctor_get(x_620, 2);
lean_inc(x_621);
if (lean_obj_tag(x_621) == 0)
{
lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_622 = lean_ctor_get(x_620, 0);
lean_inc(x_622);
x_623 = lean_ctor_get(x_620, 1);
lean_inc(x_623);
lean_dec(x_620);
x_624 = lean_ctor_get(x_621, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(3u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_626, x_18);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; 
lean_dec(x_22);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
x_628 = lean_unsigned_to_nat(1u);
x_629 = lean_nat_add(x_628, x_18);
lean_dec(x_18);
x_630 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
lean_dec(x_629);
x_631 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_631, 0, x_630);
lean_ctor_set(x_631, 1, x_622);
lean_ctor_set(x_631, 2, x_623);
lean_ctor_set(x_631, 3, x_10);
lean_ctor_set(x_631, 4, x_621);
return x_631;
}
else
{
lean_object* x_632; 
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_632 = x_10;
} else {
 lean_dec_ref(x_10);
 x_632 = lean_box(0);
}
if (lean_obj_tag(x_21) == 0)
{
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; uint8_t x_641; 
x_633 = lean_ctor_get(x_21, 0);
lean_inc(x_633);
x_634 = lean_ctor_get(x_22, 0);
lean_inc(x_634);
x_635 = lean_ctor_get(x_22, 1);
lean_inc(x_635);
x_636 = lean_ctor_get(x_22, 2);
lean_inc(x_636);
x_637 = lean_ctor_get(x_22, 3);
lean_inc(x_637);
x_638 = lean_ctor_get(x_22, 4);
lean_inc(x_638);
x_639 = lean_unsigned_to_nat(2u);
x_640 = lean_nat_mul(x_639, x_633);
x_641 = lean_nat_dec_lt(x_634, x_640);
lean_dec(x_640);
if (x_641 == 0)
{
lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; lean_object* x_646; lean_object* x_647; 
lean_dec(x_634);
lean_dec(x_632);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_642 = x_22;
} else {
 lean_dec_ref(x_22);
 x_642 = lean_box(0);
}
x_643 = lean_unsigned_to_nat(1u);
x_644 = lean_nat_add(x_643, x_18);
lean_dec(x_18);
x_645 = lean_nat_add(x_644, x_624);
lean_dec(x_644);
x_646 = lean_nat_add(x_643, x_633);
lean_dec(x_633);
x_647 = lean_nat_add(x_643, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_637) == 0)
{
lean_object* x_648; lean_object* x_649; lean_object* x_650; lean_object* x_651; 
x_648 = lean_ctor_get(x_637, 0);
lean_inc(x_648);
x_649 = lean_nat_add(x_646, x_648);
lean_dec(x_648);
lean_dec(x_646);
lean_inc(x_21);
if (lean_is_scalar(x_642)) {
 x_650 = lean_alloc_ctor(0, 5, 0);
} else {
 x_650 = x_642;
}
lean_ctor_set(x_650, 0, x_649);
lean_ctor_set(x_650, 1, x_19);
lean_ctor_set(x_650, 2, x_20);
lean_ctor_set(x_650, 3, x_21);
lean_ctor_set(x_650, 4, x_637);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 lean_ctor_release(x_21, 1);
 lean_ctor_release(x_21, 2);
 lean_ctor_release(x_21, 3);
 lean_ctor_release(x_21, 4);
 x_651 = x_21;
} else {
 lean_dec_ref(x_21);
 x_651 = lean_box(0);
}
if (lean_obj_tag(x_638) == 0)
{
lean_object* x_652; lean_object* x_653; lean_object* x_654; lean_object* x_655; lean_object* x_656; 
x_652 = lean_ctor_get(x_638, 0);
lean_inc(x_652);
x_653 = lean_nat_add(x_647, x_652);
lean_dec(x_652);
lean_dec(x_647);
lean_inc(x_621);
if (lean_is_scalar(x_651)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_651;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_622);
lean_ctor_set(x_654, 2, x_623);
lean_ctor_set(x_654, 3, x_638);
lean_ctor_set(x_654, 4, x_621);
if (lean_is_exclusive(x_621)) {
 lean_ctor_release(x_621, 0);
 lean_ctor_release(x_621, 1);
 lean_ctor_release(x_621, 2);
 lean_ctor_release(x_621, 3);
 lean_ctor_release(x_621, 4);
 x_655 = x_621;
} else {
 lean_dec_ref(x_621);
 x_655 = lean_box(0);
}
if (lean_is_scalar(x_655)) {
 x_656 = lean_alloc_ctor(0, 5, 0);
} else {
 x_656 = x_655;
}
lean_ctor_set(x_656, 0, x_645);
lean_ctor_set(x_656, 1, x_635);
lean_ctor_set(x_656, 2, x_636);
lean_ctor_set(x_656, 3, x_650);
lean_ctor_set(x_656, 4, x_654);
return x_656;
}
else
{
lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; 
x_657 = lean_unsigned_to_nat(0u);
x_658 = lean_nat_add(x_647, x_657);
lean_dec(x_647);
lean_inc(x_621);
if (lean_is_scalar(x_651)) {
 x_659 = lean_alloc_ctor(0, 5, 0);
} else {
 x_659 = x_651;
}
lean_ctor_set(x_659, 0, x_658);
lean_ctor_set(x_659, 1, x_622);
lean_ctor_set(x_659, 2, x_623);
lean_ctor_set(x_659, 3, x_638);
lean_ctor_set(x_659, 4, x_621);
if (lean_is_exclusive(x_621)) {
 lean_ctor_release(x_621, 0);
 lean_ctor_release(x_621, 1);
 lean_ctor_release(x_621, 2);
 lean_ctor_release(x_621, 3);
 lean_ctor_release(x_621, 4);
 x_660 = x_621;
} else {
 lean_dec_ref(x_621);
 x_660 = lean_box(0);
}
if (lean_is_scalar(x_660)) {
 x_661 = lean_alloc_ctor(0, 5, 0);
} else {
 x_661 = x_660;
}
lean_ctor_set(x_661, 0, x_645);
lean_ctor_set(x_661, 1, x_635);
lean_ctor_set(x_661, 2, x_636);
lean_ctor_set(x_661, 3, x_650);
lean_ctor_set(x_661, 4, x_659);
return x_661;
}
}
else
{
lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; 
x_662 = lean_unsigned_to_nat(0u);
x_663 = lean_nat_add(x_646, x_662);
lean_dec(x_646);
lean_inc(x_21);
if (lean_is_scalar(x_642)) {
 x_664 = lean_alloc_ctor(0, 5, 0);
} else {
 x_664 = x_642;
}
lean_ctor_set(x_664, 0, x_663);
lean_ctor_set(x_664, 1, x_19);
lean_ctor_set(x_664, 2, x_20);
lean_ctor_set(x_664, 3, x_21);
lean_ctor_set(x_664, 4, x_637);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 lean_ctor_release(x_21, 1);
 lean_ctor_release(x_21, 2);
 lean_ctor_release(x_21, 3);
 lean_ctor_release(x_21, 4);
 x_665 = x_21;
} else {
 lean_dec_ref(x_21);
 x_665 = lean_box(0);
}
if (lean_obj_tag(x_638) == 0)
{
lean_object* x_666; lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; 
x_666 = lean_ctor_get(x_638, 0);
lean_inc(x_666);
x_667 = lean_nat_add(x_647, x_666);
lean_dec(x_666);
lean_dec(x_647);
lean_inc(x_621);
if (lean_is_scalar(x_665)) {
 x_668 = lean_alloc_ctor(0, 5, 0);
} else {
 x_668 = x_665;
}
lean_ctor_set(x_668, 0, x_667);
lean_ctor_set(x_668, 1, x_622);
lean_ctor_set(x_668, 2, x_623);
lean_ctor_set(x_668, 3, x_638);
lean_ctor_set(x_668, 4, x_621);
if (lean_is_exclusive(x_621)) {
 lean_ctor_release(x_621, 0);
 lean_ctor_release(x_621, 1);
 lean_ctor_release(x_621, 2);
 lean_ctor_release(x_621, 3);
 lean_ctor_release(x_621, 4);
 x_669 = x_621;
} else {
 lean_dec_ref(x_621);
 x_669 = lean_box(0);
}
if (lean_is_scalar(x_669)) {
 x_670 = lean_alloc_ctor(0, 5, 0);
} else {
 x_670 = x_669;
}
lean_ctor_set(x_670, 0, x_645);
lean_ctor_set(x_670, 1, x_635);
lean_ctor_set(x_670, 2, x_636);
lean_ctor_set(x_670, 3, x_664);
lean_ctor_set(x_670, 4, x_668);
return x_670;
}
else
{
lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; 
x_671 = lean_nat_add(x_647, x_662);
lean_dec(x_647);
lean_inc(x_621);
if (lean_is_scalar(x_665)) {
 x_672 = lean_alloc_ctor(0, 5, 0);
} else {
 x_672 = x_665;
}
lean_ctor_set(x_672, 0, x_671);
lean_ctor_set(x_672, 1, x_622);
lean_ctor_set(x_672, 2, x_623);
lean_ctor_set(x_672, 3, x_638);
lean_ctor_set(x_672, 4, x_621);
if (lean_is_exclusive(x_621)) {
 lean_ctor_release(x_621, 0);
 lean_ctor_release(x_621, 1);
 lean_ctor_release(x_621, 2);
 lean_ctor_release(x_621, 3);
 lean_ctor_release(x_621, 4);
 x_673 = x_621;
} else {
 lean_dec_ref(x_621);
 x_673 = lean_box(0);
}
if (lean_is_scalar(x_673)) {
 x_674 = lean_alloc_ctor(0, 5, 0);
} else {
 x_674 = x_673;
}
lean_ctor_set(x_674, 0, x_645);
lean_ctor_set(x_674, 1, x_635);
lean_ctor_set(x_674, 2, x_636);
lean_ctor_set(x_674, 3, x_664);
lean_ctor_set(x_674, 4, x_672);
return x_674;
}
}
}
else
{
lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; 
lean_dec(x_638);
lean_dec(x_637);
lean_dec(x_636);
lean_dec(x_635);
lean_dec(x_633);
x_675 = lean_unsigned_to_nat(1u);
x_676 = lean_nat_add(x_675, x_18);
lean_dec(x_18);
x_677 = lean_nat_add(x_676, x_624);
lean_dec(x_676);
x_678 = lean_nat_add(x_675, x_624);
lean_dec(x_624);
x_679 = lean_nat_add(x_678, x_634);
lean_dec(x_634);
lean_dec(x_678);
x_680 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_680, 0, x_679);
lean_ctor_set(x_680, 1, x_622);
lean_ctor_set(x_680, 2, x_623);
lean_ctor_set(x_680, 3, x_22);
lean_ctor_set(x_680, 4, x_621);
if (lean_is_scalar(x_632)) {
 x_681 = lean_alloc_ctor(0, 5, 0);
} else {
 x_681 = x_632;
}
lean_ctor_set(x_681, 0, x_677);
lean_ctor_set(x_681, 1, x_19);
lean_ctor_set(x_681, 2, x_20);
lean_ctor_set(x_681, 3, x_21);
lean_ctor_set(x_681, 4, x_680);
return x_681;
}
}
else
{
lean_object* x_682; lean_object* x_683; 
lean_dec(x_632);
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_21);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
x_682 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_683 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4___rarg(x_682);
return x_683;
}
}
else
{
lean_object* x_684; lean_object* x_685; 
lean_dec(x_632);
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_22);
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
x_684 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_685 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5___rarg(x_684);
return x_685;
}
}
}
else
{
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_686; 
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_686 = x_10;
} else {
 lean_dec_ref(x_10);
 x_686 = lean_box(0);
}
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; 
x_687 = lean_ctor_get(x_620, 0);
lean_inc(x_687);
x_688 = lean_ctor_get(x_620, 1);
lean_inc(x_688);
lean_dec(x_620);
x_689 = lean_ctor_get(x_22, 0);
lean_inc(x_689);
x_690 = lean_unsigned_to_nat(1u);
x_691 = lean_nat_add(x_690, x_18);
lean_dec(x_18);
x_692 = lean_nat_add(x_690, x_689);
lean_dec(x_689);
x_693 = lean_box(1);
x_694 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_687);
lean_ctor_set(x_694, 2, x_688);
lean_ctor_set(x_694, 3, x_22);
lean_ctor_set(x_694, 4, x_693);
if (lean_is_scalar(x_686)) {
 x_695 = lean_alloc_ctor(0, 5, 0);
} else {
 x_695 = x_686;
}
lean_ctor_set(x_695, 0, x_691);
lean_ctor_set(x_695, 1, x_19);
lean_ctor_set(x_695, 2, x_20);
lean_ctor_set(x_695, 3, x_21);
lean_ctor_set(x_695, 4, x_694);
return x_695;
}
else
{
lean_object* x_696; lean_object* x_697; lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; 
lean_dec(x_18);
x_696 = lean_ctor_get(x_620, 0);
lean_inc(x_696);
x_697 = lean_ctor_get(x_620, 1);
lean_inc(x_697);
lean_dec(x_620);
x_698 = lean_box(1);
x_699 = lean_unsigned_to_nat(1u);
x_700 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_700, 0, x_699);
lean_ctor_set(x_700, 1, x_696);
lean_ctor_set(x_700, 2, x_697);
lean_ctor_set(x_700, 3, x_698);
lean_ctor_set(x_700, 4, x_698);
x_701 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_686)) {
 x_702 = lean_alloc_ctor(0, 5, 0);
} else {
 x_702 = x_686;
}
lean_ctor_set(x_702, 0, x_701);
lean_ctor_set(x_702, 1, x_19);
lean_ctor_set(x_702, 2, x_20);
lean_ctor_set(x_702, 3, x_21);
lean_ctor_set(x_702, 4, x_700);
return x_702;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_22) == 0)
{
lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; lean_object* x_713; lean_object* x_714; 
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_703 = x_10;
} else {
 lean_dec_ref(x_10);
 x_703 = lean_box(0);
}
x_704 = lean_ctor_get(x_620, 0);
lean_inc(x_704);
x_705 = lean_ctor_get(x_620, 1);
lean_inc(x_705);
lean_dec(x_620);
x_706 = lean_ctor_get(x_22, 1);
lean_inc(x_706);
x_707 = lean_ctor_get(x_22, 2);
lean_inc(x_707);
if (lean_is_exclusive(x_22)) {
 lean_ctor_release(x_22, 0);
 lean_ctor_release(x_22, 1);
 lean_ctor_release(x_22, 2);
 lean_ctor_release(x_22, 3);
 lean_ctor_release(x_22, 4);
 x_708 = x_22;
} else {
 lean_dec_ref(x_22);
 x_708 = lean_box(0);
}
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_708)) {
 x_711 = lean_alloc_ctor(0, 5, 0);
} else {
 x_711 = x_708;
}
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_19);
lean_ctor_set(x_711, 2, x_20);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
x_712 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_712, 0, x_710);
lean_ctor_set(x_712, 1, x_704);
lean_ctor_set(x_712, 2, x_705);
lean_ctor_set(x_712, 3, x_709);
lean_ctor_set(x_712, 4, x_709);
x_713 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_703)) {
 x_714 = lean_alloc_ctor(0, 5, 0);
} else {
 x_714 = x_703;
}
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_706);
lean_ctor_set(x_714, 2, x_707);
lean_ctor_set(x_714, 3, x_711);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
else
{
lean_object* x_715; lean_object* x_716; lean_object* x_717; lean_object* x_718; lean_object* x_719; 
lean_dec(x_20);
lean_dec(x_19);
x_715 = lean_ctor_get(x_620, 0);
lean_inc(x_715);
x_716 = lean_ctor_get(x_620, 1);
lean_inc(x_716);
lean_dec(x_620);
x_717 = lean_box(1);
x_718 = lean_unsigned_to_nat(2u);
x_719 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_719, 0, x_718);
lean_ctor_set(x_719, 1, x_715);
lean_ctor_set(x_719, 2, x_716);
lean_ctor_set(x_719, 3, x_10);
lean_ctor_set(x_719, 4, x_717);
return x_719;
}
}
}
}
}
}
else
{
return x_10;
}
}
else
{
return x_11;
}
}
else
{
lean_object* x_720; 
x_720 = lean_ctor_get(x_17, 0);
lean_inc(x_720);
lean_dec(x_17);
lean_ctor_set(x_5, 2, x_720);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
default: 
{
lean_object* x_721; lean_object* x_722; 
lean_free_object(x_5);
lean_dec(x_7);
x_721 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_11);
x_722 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_8, x_9, x_10, x_721);
return x_722;
}
}
}
else
{
lean_object* x_723; lean_object* x_724; lean_object* x_725; lean_object* x_726; lean_object* x_727; lean_object* x_728; uint8_t x_729; 
x_723 = lean_ctor_get(x_5, 0);
x_724 = lean_ctor_get(x_5, 1);
x_725 = lean_ctor_get(x_5, 2);
x_726 = lean_ctor_get(x_5, 3);
x_727 = lean_ctor_get(x_5, 4);
lean_inc(x_727);
lean_inc(x_726);
lean_inc(x_725);
lean_inc(x_724);
lean_inc(x_723);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_724);
lean_inc(x_4);
x_728 = lean_apply_2(x_1, x_4, x_724);
x_729 = lean_unbox(x_728);
lean_dec(x_728);
switch (x_729) {
case 0:
{
lean_object* x_730; lean_object* x_731; 
lean_dec(x_723);
x_730 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_726);
x_731 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_724, x_725, x_730, x_727);
return x_731;
}
case 1:
{
lean_object* x_732; lean_object* x_733; 
lean_dec(x_724);
lean_dec(x_1);
x_732 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_732, 0, x_725);
x_733 = lean_apply_1(x_3, x_732);
if (lean_obj_tag(x_733) == 0)
{
lean_dec(x_723);
lean_dec(x_4);
if (lean_obj_tag(x_726) == 0)
{
if (lean_obj_tag(x_727) == 0)
{
lean_object* x_734; lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; lean_object* x_741; lean_object* x_742; lean_object* x_743; uint8_t x_744; 
x_734 = lean_ctor_get(x_726, 0);
lean_inc(x_734);
x_735 = lean_ctor_get(x_726, 1);
lean_inc(x_735);
x_736 = lean_ctor_get(x_726, 2);
lean_inc(x_736);
x_737 = lean_ctor_get(x_726, 3);
lean_inc(x_737);
x_738 = lean_ctor_get(x_726, 4);
lean_inc(x_738);
x_739 = lean_ctor_get(x_727, 0);
lean_inc(x_739);
x_740 = lean_ctor_get(x_727, 1);
lean_inc(x_740);
x_741 = lean_ctor_get(x_727, 2);
lean_inc(x_741);
x_742 = lean_ctor_get(x_727, 3);
lean_inc(x_742);
x_743 = lean_ctor_get(x_727, 4);
lean_inc(x_743);
x_744 = lean_nat_dec_lt(x_734, x_739);
if (x_744 == 0)
{
lean_object* x_745; lean_object* x_746; lean_object* x_747; 
lean_dec(x_734);
if (lean_is_exclusive(x_726)) {
 lean_ctor_release(x_726, 0);
 lean_ctor_release(x_726, 1);
 lean_ctor_release(x_726, 2);
 lean_ctor_release(x_726, 3);
 lean_ctor_release(x_726, 4);
 x_745 = x_726;
} else {
 lean_dec_ref(x_726);
 x_745 = lean_box(0);
}
x_746 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_735, x_736, x_737, x_738);
x_747 = lean_ctor_get(x_746, 2);
lean_inc(x_747);
if (lean_obj_tag(x_747) == 0)
{
lean_object* x_748; lean_object* x_749; lean_object* x_750; lean_object* x_751; lean_object* x_752; uint8_t x_753; 
x_748 = lean_ctor_get(x_746, 0);
lean_inc(x_748);
x_749 = lean_ctor_get(x_746, 1);
lean_inc(x_749);
lean_dec(x_746);
x_750 = lean_ctor_get(x_747, 0);
lean_inc(x_750);
x_751 = lean_unsigned_to_nat(3u);
x_752 = lean_nat_mul(x_751, x_750);
x_753 = lean_nat_dec_lt(x_752, x_739);
lean_dec(x_752);
if (x_753 == 0)
{
lean_object* x_754; lean_object* x_755; lean_object* x_756; lean_object* x_757; 
lean_dec(x_743);
lean_dec(x_742);
lean_dec(x_741);
lean_dec(x_740);
x_754 = lean_unsigned_to_nat(1u);
x_755 = lean_nat_add(x_754, x_750);
lean_dec(x_750);
x_756 = lean_nat_add(x_755, x_739);
lean_dec(x_739);
lean_dec(x_755);
if (lean_is_scalar(x_745)) {
 x_757 = lean_alloc_ctor(0, 5, 0);
} else {
 x_757 = x_745;
}
lean_ctor_set(x_757, 0, x_756);
lean_ctor_set(x_757, 1, x_748);
lean_ctor_set(x_757, 2, x_749);
lean_ctor_set(x_757, 3, x_747);
lean_ctor_set(x_757, 4, x_727);
return x_757;
}
else
{
lean_object* x_758; 
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_758 = x_727;
} else {
 lean_dec_ref(x_727);
 x_758 = lean_box(0);
}
if (lean_obj_tag(x_742) == 0)
{
if (lean_obj_tag(x_743) == 0)
{
lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; lean_object* x_764; lean_object* x_765; lean_object* x_766; uint8_t x_767; 
x_759 = lean_ctor_get(x_742, 0);
lean_inc(x_759);
x_760 = lean_ctor_get(x_742, 1);
lean_inc(x_760);
x_761 = lean_ctor_get(x_742, 2);
lean_inc(x_761);
x_762 = lean_ctor_get(x_742, 3);
lean_inc(x_762);
x_763 = lean_ctor_get(x_742, 4);
lean_inc(x_763);
x_764 = lean_ctor_get(x_743, 0);
lean_inc(x_764);
x_765 = lean_unsigned_to_nat(2u);
x_766 = lean_nat_mul(x_765, x_764);
x_767 = lean_nat_dec_lt(x_759, x_766);
lean_dec(x_766);
if (x_767 == 0)
{
lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; 
lean_dec(x_759);
lean_dec(x_745);
if (lean_is_exclusive(x_742)) {
 lean_ctor_release(x_742, 0);
 lean_ctor_release(x_742, 1);
 lean_ctor_release(x_742, 2);
 lean_ctor_release(x_742, 3);
 lean_ctor_release(x_742, 4);
 x_768 = x_742;
} else {
 lean_dec_ref(x_742);
 x_768 = lean_box(0);
}
x_769 = lean_unsigned_to_nat(1u);
x_770 = lean_nat_add(x_769, x_750);
lean_dec(x_750);
x_771 = lean_nat_add(x_770, x_739);
lean_dec(x_739);
x_772 = lean_nat_add(x_769, x_764);
lean_dec(x_764);
if (lean_obj_tag(x_762) == 0)
{
lean_object* x_773; lean_object* x_774; lean_object* x_775; lean_object* x_776; 
x_773 = lean_ctor_get(x_762, 0);
lean_inc(x_773);
x_774 = lean_nat_add(x_770, x_773);
lean_dec(x_773);
lean_dec(x_770);
lean_inc(x_747);
if (lean_is_scalar(x_768)) {
 x_775 = lean_alloc_ctor(0, 5, 0);
} else {
 x_775 = x_768;
}
lean_ctor_set(x_775, 0, x_774);
lean_ctor_set(x_775, 1, x_748);
lean_ctor_set(x_775, 2, x_749);
lean_ctor_set(x_775, 3, x_747);
lean_ctor_set(x_775, 4, x_762);
if (lean_is_exclusive(x_747)) {
 lean_ctor_release(x_747, 0);
 lean_ctor_release(x_747, 1);
 lean_ctor_release(x_747, 2);
 lean_ctor_release(x_747, 3);
 lean_ctor_release(x_747, 4);
 x_776 = x_747;
} else {
 lean_dec_ref(x_747);
 x_776 = lean_box(0);
}
if (lean_obj_tag(x_763) == 0)
{
lean_object* x_777; lean_object* x_778; lean_object* x_779; lean_object* x_780; 
x_777 = lean_ctor_get(x_763, 0);
lean_inc(x_777);
x_778 = lean_nat_add(x_772, x_777);
lean_dec(x_777);
lean_dec(x_772);
if (lean_is_scalar(x_776)) {
 x_779 = lean_alloc_ctor(0, 5, 0);
} else {
 x_779 = x_776;
}
lean_ctor_set(x_779, 0, x_778);
lean_ctor_set(x_779, 1, x_740);
lean_ctor_set(x_779, 2, x_741);
lean_ctor_set(x_779, 3, x_763);
lean_ctor_set(x_779, 4, x_743);
if (lean_is_scalar(x_758)) {
 x_780 = lean_alloc_ctor(0, 5, 0);
} else {
 x_780 = x_758;
}
lean_ctor_set(x_780, 0, x_771);
lean_ctor_set(x_780, 1, x_760);
lean_ctor_set(x_780, 2, x_761);
lean_ctor_set(x_780, 3, x_775);
lean_ctor_set(x_780, 4, x_779);
return x_780;
}
else
{
lean_object* x_781; lean_object* x_782; lean_object* x_783; lean_object* x_784; 
x_781 = lean_unsigned_to_nat(0u);
x_782 = lean_nat_add(x_772, x_781);
lean_dec(x_772);
if (lean_is_scalar(x_776)) {
 x_783 = lean_alloc_ctor(0, 5, 0);
} else {
 x_783 = x_776;
}
lean_ctor_set(x_783, 0, x_782);
lean_ctor_set(x_783, 1, x_740);
lean_ctor_set(x_783, 2, x_741);
lean_ctor_set(x_783, 3, x_763);
lean_ctor_set(x_783, 4, x_743);
if (lean_is_scalar(x_758)) {
 x_784 = lean_alloc_ctor(0, 5, 0);
} else {
 x_784 = x_758;
}
lean_ctor_set(x_784, 0, x_771);
lean_ctor_set(x_784, 1, x_760);
lean_ctor_set(x_784, 2, x_761);
lean_ctor_set(x_784, 3, x_775);
lean_ctor_set(x_784, 4, x_783);
return x_784;
}
}
else
{
lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; 
x_785 = lean_unsigned_to_nat(0u);
x_786 = lean_nat_add(x_770, x_785);
lean_dec(x_770);
lean_inc(x_747);
if (lean_is_scalar(x_768)) {
 x_787 = lean_alloc_ctor(0, 5, 0);
} else {
 x_787 = x_768;
}
lean_ctor_set(x_787, 0, x_786);
lean_ctor_set(x_787, 1, x_748);
lean_ctor_set(x_787, 2, x_749);
lean_ctor_set(x_787, 3, x_747);
lean_ctor_set(x_787, 4, x_762);
if (lean_is_exclusive(x_747)) {
 lean_ctor_release(x_747, 0);
 lean_ctor_release(x_747, 1);
 lean_ctor_release(x_747, 2);
 lean_ctor_release(x_747, 3);
 lean_ctor_release(x_747, 4);
 x_788 = x_747;
} else {
 lean_dec_ref(x_747);
 x_788 = lean_box(0);
}
if (lean_obj_tag(x_763) == 0)
{
lean_object* x_789; lean_object* x_790; lean_object* x_791; lean_object* x_792; 
x_789 = lean_ctor_get(x_763, 0);
lean_inc(x_789);
x_790 = lean_nat_add(x_772, x_789);
lean_dec(x_789);
lean_dec(x_772);
if (lean_is_scalar(x_788)) {
 x_791 = lean_alloc_ctor(0, 5, 0);
} else {
 x_791 = x_788;
}
lean_ctor_set(x_791, 0, x_790);
lean_ctor_set(x_791, 1, x_740);
lean_ctor_set(x_791, 2, x_741);
lean_ctor_set(x_791, 3, x_763);
lean_ctor_set(x_791, 4, x_743);
if (lean_is_scalar(x_758)) {
 x_792 = lean_alloc_ctor(0, 5, 0);
} else {
 x_792 = x_758;
}
lean_ctor_set(x_792, 0, x_771);
lean_ctor_set(x_792, 1, x_760);
lean_ctor_set(x_792, 2, x_761);
lean_ctor_set(x_792, 3, x_787);
lean_ctor_set(x_792, 4, x_791);
return x_792;
}
else
{
lean_object* x_793; lean_object* x_794; lean_object* x_795; 
x_793 = lean_nat_add(x_772, x_785);
lean_dec(x_772);
if (lean_is_scalar(x_788)) {
 x_794 = lean_alloc_ctor(0, 5, 0);
} else {
 x_794 = x_788;
}
lean_ctor_set(x_794, 0, x_793);
lean_ctor_set(x_794, 1, x_740);
lean_ctor_set(x_794, 2, x_741);
lean_ctor_set(x_794, 3, x_763);
lean_ctor_set(x_794, 4, x_743);
if (lean_is_scalar(x_758)) {
 x_795 = lean_alloc_ctor(0, 5, 0);
} else {
 x_795 = x_758;
}
lean_ctor_set(x_795, 0, x_771);
lean_ctor_set(x_795, 1, x_760);
lean_ctor_set(x_795, 2, x_761);
lean_ctor_set(x_795, 3, x_787);
lean_ctor_set(x_795, 4, x_794);
return x_795;
}
}
}
else
{
lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; 
lean_dec(x_764);
lean_dec(x_763);
lean_dec(x_762);
lean_dec(x_761);
lean_dec(x_760);
x_796 = lean_unsigned_to_nat(1u);
x_797 = lean_nat_add(x_796, x_750);
lean_dec(x_750);
x_798 = lean_nat_add(x_797, x_739);
lean_dec(x_739);
x_799 = lean_nat_add(x_797, x_759);
lean_dec(x_759);
lean_dec(x_797);
if (lean_is_scalar(x_758)) {
 x_800 = lean_alloc_ctor(0, 5, 0);
} else {
 x_800 = x_758;
}
lean_ctor_set(x_800, 0, x_799);
lean_ctor_set(x_800, 1, x_748);
lean_ctor_set(x_800, 2, x_749);
lean_ctor_set(x_800, 3, x_747);
lean_ctor_set(x_800, 4, x_742);
if (lean_is_scalar(x_745)) {
 x_801 = lean_alloc_ctor(0, 5, 0);
} else {
 x_801 = x_745;
}
lean_ctor_set(x_801, 0, x_798);
lean_ctor_set(x_801, 1, x_740);
lean_ctor_set(x_801, 2, x_741);
lean_ctor_set(x_801, 3, x_800);
lean_ctor_set(x_801, 4, x_743);
return x_801;
}
}
else
{
lean_object* x_802; lean_object* x_803; 
lean_dec(x_758);
lean_dec(x_750);
lean_dec(x_749);
lean_dec(x_748);
lean_dec(x_747);
lean_dec(x_745);
lean_dec(x_742);
lean_dec(x_741);
lean_dec(x_740);
lean_dec(x_739);
x_802 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_803 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__2___rarg(x_802);
return x_803;
}
}
else
{
lean_object* x_804; lean_object* x_805; 
lean_dec(x_758);
lean_dec(x_750);
lean_dec(x_749);
lean_dec(x_748);
lean_dec(x_747);
lean_dec(x_745);
lean_dec(x_743);
lean_dec(x_741);
lean_dec(x_740);
lean_dec(x_739);
x_804 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_805 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__3___rarg(x_804);
return x_805;
}
}
}
else
{
if (lean_obj_tag(x_742) == 0)
{
lean_object* x_806; 
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_806 = x_727;
} else {
 lean_dec_ref(x_727);
 x_806 = lean_box(0);
}
if (lean_obj_tag(x_743) == 0)
{
lean_object* x_807; lean_object* x_808; lean_object* x_809; lean_object* x_810; lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; 
x_807 = lean_ctor_get(x_746, 0);
lean_inc(x_807);
x_808 = lean_ctor_get(x_746, 1);
lean_inc(x_808);
lean_dec(x_746);
x_809 = lean_ctor_get(x_742, 0);
lean_inc(x_809);
x_810 = lean_unsigned_to_nat(1u);
x_811 = lean_nat_add(x_810, x_739);
lean_dec(x_739);
x_812 = lean_nat_add(x_810, x_809);
lean_dec(x_809);
x_813 = lean_box(1);
if (lean_is_scalar(x_806)) {
 x_814 = lean_alloc_ctor(0, 5, 0);
} else {
 x_814 = x_806;
}
lean_ctor_set(x_814, 0, x_812);
lean_ctor_set(x_814, 1, x_807);
lean_ctor_set(x_814, 2, x_808);
lean_ctor_set(x_814, 3, x_813);
lean_ctor_set(x_814, 4, x_742);
if (lean_is_scalar(x_745)) {
 x_815 = lean_alloc_ctor(0, 5, 0);
} else {
 x_815 = x_745;
}
lean_ctor_set(x_815, 0, x_811);
lean_ctor_set(x_815, 1, x_740);
lean_ctor_set(x_815, 2, x_741);
lean_ctor_set(x_815, 3, x_814);
lean_ctor_set(x_815, 4, x_743);
return x_815;
}
else
{
lean_object* x_816; lean_object* x_817; lean_object* x_818; lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; 
lean_dec(x_739);
x_816 = lean_ctor_get(x_746, 0);
lean_inc(x_816);
x_817 = lean_ctor_get(x_746, 1);
lean_inc(x_817);
lean_dec(x_746);
x_818 = lean_ctor_get(x_742, 1);
lean_inc(x_818);
x_819 = lean_ctor_get(x_742, 2);
lean_inc(x_819);
if (lean_is_exclusive(x_742)) {
 lean_ctor_release(x_742, 0);
 lean_ctor_release(x_742, 1);
 lean_ctor_release(x_742, 2);
 lean_ctor_release(x_742, 3);
 lean_ctor_release(x_742, 4);
 x_820 = x_742;
} else {
 lean_dec_ref(x_742);
 x_820 = lean_box(0);
}
x_821 = lean_box(1);
x_822 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_820)) {
 x_823 = lean_alloc_ctor(0, 5, 0);
} else {
 x_823 = x_820;
}
lean_ctor_set(x_823, 0, x_822);
lean_ctor_set(x_823, 1, x_816);
lean_ctor_set(x_823, 2, x_817);
lean_ctor_set(x_823, 3, x_821);
lean_ctor_set(x_823, 4, x_821);
if (lean_is_scalar(x_806)) {
 x_824 = lean_alloc_ctor(0, 5, 0);
} else {
 x_824 = x_806;
}
lean_ctor_set(x_824, 0, x_822);
lean_ctor_set(x_824, 1, x_740);
lean_ctor_set(x_824, 2, x_741);
lean_ctor_set(x_824, 3, x_821);
lean_ctor_set(x_824, 4, x_821);
x_825 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_745)) {
 x_826 = lean_alloc_ctor(0, 5, 0);
} else {
 x_826 = x_745;
}
lean_ctor_set(x_826, 0, x_825);
lean_ctor_set(x_826, 1, x_818);
lean_ctor_set(x_826, 2, x_819);
lean_ctor_set(x_826, 3, x_823);
lean_ctor_set(x_826, 4, x_824);
return x_826;
}
}
else
{
lean_dec(x_739);
if (lean_obj_tag(x_743) == 0)
{
lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; lean_object* x_833; lean_object* x_834; 
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_827 = x_727;
} else {
 lean_dec_ref(x_727);
 x_827 = lean_box(0);
}
x_828 = lean_ctor_get(x_746, 0);
lean_inc(x_828);
x_829 = lean_ctor_get(x_746, 1);
lean_inc(x_829);
lean_dec(x_746);
x_830 = lean_box(1);
x_831 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_827)) {
 x_832 = lean_alloc_ctor(0, 5, 0);
} else {
 x_832 = x_827;
}
lean_ctor_set(x_832, 0, x_831);
lean_ctor_set(x_832, 1, x_828);
lean_ctor_set(x_832, 2, x_829);
lean_ctor_set(x_832, 3, x_830);
lean_ctor_set(x_832, 4, x_830);
x_833 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_745)) {
 x_834 = lean_alloc_ctor(0, 5, 0);
} else {
 x_834 = x_745;
}
lean_ctor_set(x_834, 0, x_833);
lean_ctor_set(x_834, 1, x_740);
lean_ctor_set(x_834, 2, x_741);
lean_ctor_set(x_834, 3, x_832);
lean_ctor_set(x_834, 4, x_743);
return x_834;
}
else
{
lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; 
lean_dec(x_741);
lean_dec(x_740);
x_835 = lean_ctor_get(x_746, 0);
lean_inc(x_835);
x_836 = lean_ctor_get(x_746, 1);
lean_inc(x_836);
lean_dec(x_746);
x_837 = lean_box(1);
x_838 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_745)) {
 x_839 = lean_alloc_ctor(0, 5, 0);
} else {
 x_839 = x_745;
}
lean_ctor_set(x_839, 0, x_838);
lean_ctor_set(x_839, 1, x_835);
lean_ctor_set(x_839, 2, x_836);
lean_ctor_set(x_839, 3, x_837);
lean_ctor_set(x_839, 4, x_727);
return x_839;
}
}
}
}
else
{
lean_object* x_840; lean_object* x_841; lean_object* x_842; 
lean_dec(x_739);
if (lean_is_exclusive(x_727)) {
 lean_ctor_release(x_727, 0);
 lean_ctor_release(x_727, 1);
 lean_ctor_release(x_727, 2);
 lean_ctor_release(x_727, 3);
 lean_ctor_release(x_727, 4);
 x_840 = x_727;
} else {
 lean_dec_ref(x_727);
 x_840 = lean_box(0);
}
x_841 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_740, x_741, x_742, x_743);
x_842 = lean_ctor_get(x_841, 2);
lean_inc(x_842);
if (lean_obj_tag(x_842) == 0)
{
lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; lean_object* x_847; uint8_t x_848; 
x_843 = lean_ctor_get(x_841, 0);
lean_inc(x_843);
x_844 = lean_ctor_get(x_841, 1);
lean_inc(x_844);
lean_dec(x_841);
x_845 = lean_ctor_get(x_842, 0);
lean_inc(x_845);
x_846 = lean_unsigned_to_nat(3u);
x_847 = lean_nat_mul(x_846, x_845);
x_848 = lean_nat_dec_lt(x_847, x_734);
lean_dec(x_847);
if (x_848 == 0)
{
lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; 
lean_dec(x_738);
lean_dec(x_737);
lean_dec(x_736);
lean_dec(x_735);
x_849 = lean_unsigned_to_nat(1u);
x_850 = lean_nat_add(x_849, x_734);
lean_dec(x_734);
x_851 = lean_nat_add(x_850, x_845);
lean_dec(x_845);
lean_dec(x_850);
if (lean_is_scalar(x_840)) {
 x_852 = lean_alloc_ctor(0, 5, 0);
} else {
 x_852 = x_840;
}
lean_ctor_set(x_852, 0, x_851);
lean_ctor_set(x_852, 1, x_843);
lean_ctor_set(x_852, 2, x_844);
lean_ctor_set(x_852, 3, x_726);
lean_ctor_set(x_852, 4, x_842);
return x_852;
}
else
{
lean_object* x_853; 
if (lean_is_exclusive(x_726)) {
 lean_ctor_release(x_726, 0);
 lean_ctor_release(x_726, 1);
 lean_ctor_release(x_726, 2);
 lean_ctor_release(x_726, 3);
 lean_ctor_release(x_726, 4);
 x_853 = x_726;
} else {
 lean_dec_ref(x_726);
 x_853 = lean_box(0);
}
if (lean_obj_tag(x_737) == 0)
{
if (lean_obj_tag(x_738) == 0)
{
lean_object* x_854; lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; lean_object* x_859; lean_object* x_860; lean_object* x_861; uint8_t x_862; 
x_854 = lean_ctor_get(x_737, 0);
lean_inc(x_854);
x_855 = lean_ctor_get(x_738, 0);
lean_inc(x_855);
x_856 = lean_ctor_get(x_738, 1);
lean_inc(x_856);
x_857 = lean_ctor_get(x_738, 2);
lean_inc(x_857);
x_858 = lean_ctor_get(x_738, 3);
lean_inc(x_858);
x_859 = lean_ctor_get(x_738, 4);
lean_inc(x_859);
x_860 = lean_unsigned_to_nat(2u);
x_861 = lean_nat_mul(x_860, x_854);
x_862 = lean_nat_dec_lt(x_855, x_861);
lean_dec(x_861);
if (x_862 == 0)
{
lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; lean_object* x_868; 
lean_dec(x_855);
lean_dec(x_853);
lean_dec(x_840);
if (lean_is_exclusive(x_738)) {
 lean_ctor_release(x_738, 0);
 lean_ctor_release(x_738, 1);
 lean_ctor_release(x_738, 2);
 lean_ctor_release(x_738, 3);
 lean_ctor_release(x_738, 4);
 x_863 = x_738;
} else {
 lean_dec_ref(x_738);
 x_863 = lean_box(0);
}
x_864 = lean_unsigned_to_nat(1u);
x_865 = lean_nat_add(x_864, x_734);
lean_dec(x_734);
x_866 = lean_nat_add(x_865, x_845);
lean_dec(x_865);
x_867 = lean_nat_add(x_864, x_854);
lean_dec(x_854);
x_868 = lean_nat_add(x_864, x_845);
lean_dec(x_845);
if (lean_obj_tag(x_858) == 0)
{
lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; 
x_869 = lean_ctor_get(x_858, 0);
lean_inc(x_869);
x_870 = lean_nat_add(x_867, x_869);
lean_dec(x_869);
lean_dec(x_867);
lean_inc(x_737);
if (lean_is_scalar(x_863)) {
 x_871 = lean_alloc_ctor(0, 5, 0);
} else {
 x_871 = x_863;
}
lean_ctor_set(x_871, 0, x_870);
lean_ctor_set(x_871, 1, x_735);
lean_ctor_set(x_871, 2, x_736);
lean_ctor_set(x_871, 3, x_737);
lean_ctor_set(x_871, 4, x_858);
if (lean_is_exclusive(x_737)) {
 lean_ctor_release(x_737, 0);
 lean_ctor_release(x_737, 1);
 lean_ctor_release(x_737, 2);
 lean_ctor_release(x_737, 3);
 lean_ctor_release(x_737, 4);
 x_872 = x_737;
} else {
 lean_dec_ref(x_737);
 x_872 = lean_box(0);
}
if (lean_obj_tag(x_859) == 0)
{
lean_object* x_873; lean_object* x_874; lean_object* x_875; lean_object* x_876; lean_object* x_877; 
x_873 = lean_ctor_get(x_859, 0);
lean_inc(x_873);
x_874 = lean_nat_add(x_868, x_873);
lean_dec(x_873);
lean_dec(x_868);
lean_inc(x_842);
if (lean_is_scalar(x_872)) {
 x_875 = lean_alloc_ctor(0, 5, 0);
} else {
 x_875 = x_872;
}
lean_ctor_set(x_875, 0, x_874);
lean_ctor_set(x_875, 1, x_843);
lean_ctor_set(x_875, 2, x_844);
lean_ctor_set(x_875, 3, x_859);
lean_ctor_set(x_875, 4, x_842);
if (lean_is_exclusive(x_842)) {
 lean_ctor_release(x_842, 0);
 lean_ctor_release(x_842, 1);
 lean_ctor_release(x_842, 2);
 lean_ctor_release(x_842, 3);
 lean_ctor_release(x_842, 4);
 x_876 = x_842;
} else {
 lean_dec_ref(x_842);
 x_876 = lean_box(0);
}
if (lean_is_scalar(x_876)) {
 x_877 = lean_alloc_ctor(0, 5, 0);
} else {
 x_877 = x_876;
}
lean_ctor_set(x_877, 0, x_866);
lean_ctor_set(x_877, 1, x_856);
lean_ctor_set(x_877, 2, x_857);
lean_ctor_set(x_877, 3, x_871);
lean_ctor_set(x_877, 4, x_875);
return x_877;
}
else
{
lean_object* x_878; lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; 
x_878 = lean_unsigned_to_nat(0u);
x_879 = lean_nat_add(x_868, x_878);
lean_dec(x_868);
lean_inc(x_842);
if (lean_is_scalar(x_872)) {
 x_880 = lean_alloc_ctor(0, 5, 0);
} else {
 x_880 = x_872;
}
lean_ctor_set(x_880, 0, x_879);
lean_ctor_set(x_880, 1, x_843);
lean_ctor_set(x_880, 2, x_844);
lean_ctor_set(x_880, 3, x_859);
lean_ctor_set(x_880, 4, x_842);
if (lean_is_exclusive(x_842)) {
 lean_ctor_release(x_842, 0);
 lean_ctor_release(x_842, 1);
 lean_ctor_release(x_842, 2);
 lean_ctor_release(x_842, 3);
 lean_ctor_release(x_842, 4);
 x_881 = x_842;
} else {
 lean_dec_ref(x_842);
 x_881 = lean_box(0);
}
if (lean_is_scalar(x_881)) {
 x_882 = lean_alloc_ctor(0, 5, 0);
} else {
 x_882 = x_881;
}
lean_ctor_set(x_882, 0, x_866);
lean_ctor_set(x_882, 1, x_856);
lean_ctor_set(x_882, 2, x_857);
lean_ctor_set(x_882, 3, x_871);
lean_ctor_set(x_882, 4, x_880);
return x_882;
}
}
else
{
lean_object* x_883; lean_object* x_884; lean_object* x_885; lean_object* x_886; 
x_883 = lean_unsigned_to_nat(0u);
x_884 = lean_nat_add(x_867, x_883);
lean_dec(x_867);
lean_inc(x_737);
if (lean_is_scalar(x_863)) {
 x_885 = lean_alloc_ctor(0, 5, 0);
} else {
 x_885 = x_863;
}
lean_ctor_set(x_885, 0, x_884);
lean_ctor_set(x_885, 1, x_735);
lean_ctor_set(x_885, 2, x_736);
lean_ctor_set(x_885, 3, x_737);
lean_ctor_set(x_885, 4, x_858);
if (lean_is_exclusive(x_737)) {
 lean_ctor_release(x_737, 0);
 lean_ctor_release(x_737, 1);
 lean_ctor_release(x_737, 2);
 lean_ctor_release(x_737, 3);
 lean_ctor_release(x_737, 4);
 x_886 = x_737;
} else {
 lean_dec_ref(x_737);
 x_886 = lean_box(0);
}
if (lean_obj_tag(x_859) == 0)
{
lean_object* x_887; lean_object* x_888; lean_object* x_889; lean_object* x_890; lean_object* x_891; 
x_887 = lean_ctor_get(x_859, 0);
lean_inc(x_887);
x_888 = lean_nat_add(x_868, x_887);
lean_dec(x_887);
lean_dec(x_868);
lean_inc(x_842);
if (lean_is_scalar(x_886)) {
 x_889 = lean_alloc_ctor(0, 5, 0);
} else {
 x_889 = x_886;
}
lean_ctor_set(x_889, 0, x_888);
lean_ctor_set(x_889, 1, x_843);
lean_ctor_set(x_889, 2, x_844);
lean_ctor_set(x_889, 3, x_859);
lean_ctor_set(x_889, 4, x_842);
if (lean_is_exclusive(x_842)) {
 lean_ctor_release(x_842, 0);
 lean_ctor_release(x_842, 1);
 lean_ctor_release(x_842, 2);
 lean_ctor_release(x_842, 3);
 lean_ctor_release(x_842, 4);
 x_890 = x_842;
} else {
 lean_dec_ref(x_842);
 x_890 = lean_box(0);
}
if (lean_is_scalar(x_890)) {
 x_891 = lean_alloc_ctor(0, 5, 0);
} else {
 x_891 = x_890;
}
lean_ctor_set(x_891, 0, x_866);
lean_ctor_set(x_891, 1, x_856);
lean_ctor_set(x_891, 2, x_857);
lean_ctor_set(x_891, 3, x_885);
lean_ctor_set(x_891, 4, x_889);
return x_891;
}
else
{
lean_object* x_892; lean_object* x_893; lean_object* x_894; lean_object* x_895; 
x_892 = lean_nat_add(x_868, x_883);
lean_dec(x_868);
lean_inc(x_842);
if (lean_is_scalar(x_886)) {
 x_893 = lean_alloc_ctor(0, 5, 0);
} else {
 x_893 = x_886;
}
lean_ctor_set(x_893, 0, x_892);
lean_ctor_set(x_893, 1, x_843);
lean_ctor_set(x_893, 2, x_844);
lean_ctor_set(x_893, 3, x_859);
lean_ctor_set(x_893, 4, x_842);
if (lean_is_exclusive(x_842)) {
 lean_ctor_release(x_842, 0);
 lean_ctor_release(x_842, 1);
 lean_ctor_release(x_842, 2);
 lean_ctor_release(x_842, 3);
 lean_ctor_release(x_842, 4);
 x_894 = x_842;
} else {
 lean_dec_ref(x_842);
 x_894 = lean_box(0);
}
if (lean_is_scalar(x_894)) {
 x_895 = lean_alloc_ctor(0, 5, 0);
} else {
 x_895 = x_894;
}
lean_ctor_set(x_895, 0, x_866);
lean_ctor_set(x_895, 1, x_856);
lean_ctor_set(x_895, 2, x_857);
lean_ctor_set(x_895, 3, x_885);
lean_ctor_set(x_895, 4, x_893);
return x_895;
}
}
}
else
{
lean_object* x_896; lean_object* x_897; lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; lean_object* x_902; 
lean_dec(x_859);
lean_dec(x_858);
lean_dec(x_857);
lean_dec(x_856);
lean_dec(x_854);
x_896 = lean_unsigned_to_nat(1u);
x_897 = lean_nat_add(x_896, x_734);
lean_dec(x_734);
x_898 = lean_nat_add(x_897, x_845);
lean_dec(x_897);
x_899 = lean_nat_add(x_896, x_845);
lean_dec(x_845);
x_900 = lean_nat_add(x_899, x_855);
lean_dec(x_855);
lean_dec(x_899);
if (lean_is_scalar(x_840)) {
 x_901 = lean_alloc_ctor(0, 5, 0);
} else {
 x_901 = x_840;
}
lean_ctor_set(x_901, 0, x_900);
lean_ctor_set(x_901, 1, x_843);
lean_ctor_set(x_901, 2, x_844);
lean_ctor_set(x_901, 3, x_738);
lean_ctor_set(x_901, 4, x_842);
if (lean_is_scalar(x_853)) {
 x_902 = lean_alloc_ctor(0, 5, 0);
} else {
 x_902 = x_853;
}
lean_ctor_set(x_902, 0, x_898);
lean_ctor_set(x_902, 1, x_735);
lean_ctor_set(x_902, 2, x_736);
lean_ctor_set(x_902, 3, x_737);
lean_ctor_set(x_902, 4, x_901);
return x_902;
}
}
else
{
lean_object* x_903; lean_object* x_904; 
lean_dec(x_853);
lean_dec(x_845);
lean_dec(x_844);
lean_dec(x_843);
lean_dec(x_842);
lean_dec(x_840);
lean_dec(x_737);
lean_dec(x_736);
lean_dec(x_735);
lean_dec(x_734);
x_903 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_904 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__4___rarg(x_903);
return x_904;
}
}
else
{
lean_object* x_905; lean_object* x_906; 
lean_dec(x_853);
lean_dec(x_845);
lean_dec(x_844);
lean_dec(x_843);
lean_dec(x_842);
lean_dec(x_840);
lean_dec(x_738);
lean_dec(x_736);
lean_dec(x_735);
lean_dec(x_734);
x_905 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_906 = l_panic___at_Std_DTreeMap_Raw_Const_alter___spec__5___rarg(x_905);
return x_906;
}
}
}
else
{
if (lean_obj_tag(x_737) == 0)
{
lean_object* x_907; 
if (lean_is_exclusive(x_726)) {
 lean_ctor_release(x_726, 0);
 lean_ctor_release(x_726, 1);
 lean_ctor_release(x_726, 2);
 lean_ctor_release(x_726, 3);
 lean_ctor_release(x_726, 4);
 x_907 = x_726;
} else {
 lean_dec_ref(x_726);
 x_907 = lean_box(0);
}
if (lean_obj_tag(x_738) == 0)
{
lean_object* x_908; lean_object* x_909; lean_object* x_910; lean_object* x_911; lean_object* x_912; lean_object* x_913; lean_object* x_914; lean_object* x_915; lean_object* x_916; 
x_908 = lean_ctor_get(x_841, 0);
lean_inc(x_908);
x_909 = lean_ctor_get(x_841, 1);
lean_inc(x_909);
lean_dec(x_841);
x_910 = lean_ctor_get(x_738, 0);
lean_inc(x_910);
x_911 = lean_unsigned_to_nat(1u);
x_912 = lean_nat_add(x_911, x_734);
lean_dec(x_734);
x_913 = lean_nat_add(x_911, x_910);
lean_dec(x_910);
x_914 = lean_box(1);
if (lean_is_scalar(x_840)) {
 x_915 = lean_alloc_ctor(0, 5, 0);
} else {
 x_915 = x_840;
}
lean_ctor_set(x_915, 0, x_913);
lean_ctor_set(x_915, 1, x_908);
lean_ctor_set(x_915, 2, x_909);
lean_ctor_set(x_915, 3, x_738);
lean_ctor_set(x_915, 4, x_914);
if (lean_is_scalar(x_907)) {
 x_916 = lean_alloc_ctor(0, 5, 0);
} else {
 x_916 = x_907;
}
lean_ctor_set(x_916, 0, x_912);
lean_ctor_set(x_916, 1, x_735);
lean_ctor_set(x_916, 2, x_736);
lean_ctor_set(x_916, 3, x_737);
lean_ctor_set(x_916, 4, x_915);
return x_916;
}
else
{
lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; lean_object* x_923; 
lean_dec(x_734);
x_917 = lean_ctor_get(x_841, 0);
lean_inc(x_917);
x_918 = lean_ctor_get(x_841, 1);
lean_inc(x_918);
lean_dec(x_841);
x_919 = lean_box(1);
x_920 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_840)) {
 x_921 = lean_alloc_ctor(0, 5, 0);
} else {
 x_921 = x_840;
}
lean_ctor_set(x_921, 0, x_920);
lean_ctor_set(x_921, 1, x_917);
lean_ctor_set(x_921, 2, x_918);
lean_ctor_set(x_921, 3, x_919);
lean_ctor_set(x_921, 4, x_919);
x_922 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_907)) {
 x_923 = lean_alloc_ctor(0, 5, 0);
} else {
 x_923 = x_907;
}
lean_ctor_set(x_923, 0, x_922);
lean_ctor_set(x_923, 1, x_735);
lean_ctor_set(x_923, 2, x_736);
lean_ctor_set(x_923, 3, x_737);
lean_ctor_set(x_923, 4, x_921);
return x_923;
}
}
else
{
lean_dec(x_734);
if (lean_obj_tag(x_738) == 0)
{
lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; 
if (lean_is_exclusive(x_726)) {
 lean_ctor_release(x_726, 0);
 lean_ctor_release(x_726, 1);
 lean_ctor_release(x_726, 2);
 lean_ctor_release(x_726, 3);
 lean_ctor_release(x_726, 4);
 x_924 = x_726;
} else {
 lean_dec_ref(x_726);
 x_924 = lean_box(0);
}
x_925 = lean_ctor_get(x_841, 0);
lean_inc(x_925);
x_926 = lean_ctor_get(x_841, 1);
lean_inc(x_926);
lean_dec(x_841);
x_927 = lean_ctor_get(x_738, 1);
lean_inc(x_927);
x_928 = lean_ctor_get(x_738, 2);
lean_inc(x_928);
if (lean_is_exclusive(x_738)) {
 lean_ctor_release(x_738, 0);
 lean_ctor_release(x_738, 1);
 lean_ctor_release(x_738, 2);
 lean_ctor_release(x_738, 3);
 lean_ctor_release(x_738, 4);
 x_929 = x_738;
} else {
 lean_dec_ref(x_738);
 x_929 = lean_box(0);
}
x_930 = lean_box(1);
x_931 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_929)) {
 x_932 = lean_alloc_ctor(0, 5, 0);
} else {
 x_932 = x_929;
}
lean_ctor_set(x_932, 0, x_931);
lean_ctor_set(x_932, 1, x_735);
lean_ctor_set(x_932, 2, x_736);
lean_ctor_set(x_932, 3, x_930);
lean_ctor_set(x_932, 4, x_930);
if (lean_is_scalar(x_840)) {
 x_933 = lean_alloc_ctor(0, 5, 0);
} else {
 x_933 = x_840;
}
lean_ctor_set(x_933, 0, x_931);
lean_ctor_set(x_933, 1, x_925);
lean_ctor_set(x_933, 2, x_926);
lean_ctor_set(x_933, 3, x_930);
lean_ctor_set(x_933, 4, x_930);
x_934 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_924)) {
 x_935 = lean_alloc_ctor(0, 5, 0);
} else {
 x_935 = x_924;
}
lean_ctor_set(x_935, 0, x_934);
lean_ctor_set(x_935, 1, x_927);
lean_ctor_set(x_935, 2, x_928);
lean_ctor_set(x_935, 3, x_932);
lean_ctor_set(x_935, 4, x_933);
return x_935;
}
else
{
lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; 
lean_dec(x_736);
lean_dec(x_735);
x_936 = lean_ctor_get(x_841, 0);
lean_inc(x_936);
x_937 = lean_ctor_get(x_841, 1);
lean_inc(x_937);
lean_dec(x_841);
x_938 = lean_box(1);
x_939 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_840)) {
 x_940 = lean_alloc_ctor(0, 5, 0);
} else {
 x_940 = x_840;
}
lean_ctor_set(x_940, 0, x_939);
lean_ctor_set(x_940, 1, x_936);
lean_ctor_set(x_940, 2, x_937);
lean_ctor_set(x_940, 3, x_726);
lean_ctor_set(x_940, 4, x_938);
return x_940;
}
}
}
}
}
else
{
return x_726;
}
}
else
{
return x_727;
}
}
else
{
lean_object* x_941; lean_object* x_942; 
x_941 = lean_ctor_get(x_733, 0);
lean_inc(x_941);
lean_dec(x_733);
x_942 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_942, 0, x_723);
lean_ctor_set(x_942, 1, x_4);
lean_ctor_set(x_942, 2, x_941);
lean_ctor_set(x_942, 3, x_726);
lean_ctor_set(x_942, 4, x_727);
return x_942;
}
}
default: 
{
lean_object* x_943; lean_object* x_944; 
lean_dec(x_723);
x_943 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_727);
x_944 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_724, x_725, x_726, x_943);
return x_944;
}
}
}
}
else
{
lean_object* x_945; lean_object* x_946; 
lean_dec(x_1);
x_945 = lean_box(0);
x_946 = lean_apply_1(x_3, x_945);
if (lean_obj_tag(x_946) == 0)
{
lean_object* x_947; 
lean_dec(x_4);
x_947 = lean_box(1);
return x_947;
}
else
{
lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; 
x_948 = lean_ctor_get(x_946, 0);
lean_inc(x_948);
lean_dec(x_946);
x_949 = lean_box(1);
x_950 = lean_unsigned_to_nat(1u);
x_951 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_951, 0, x_950);
lean_ctor_set(x_951, 1, x_4);
lean_ctor_set(x_951, 2, x_948);
lean_ctor_set(x_951, 3, x_949);
lean_ctor_set(x_951, 4, x_949);
return x_951;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_alter___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_alter___spec__1___rarg(x_1, lean_box(0), x_5, x_4, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_alter(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_alter___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_9 = lean_ctor_get(x_7, 0);
x_10 = lean_ctor_get(x_7, 1);
x_11 = lean_ctor_get(x_7, 2);
x_12 = lean_ctor_get(x_7, 3);
x_13 = lean_ctor_get(x_7, 4);
lean_inc(x_1);
lean_inc(x_10);
lean_inc(x_6);
x_14 = lean_apply_2(x_1, x_6, x_10);
x_15 = lean_unbox(x_14);
lean_dec(x_14);
switch (x_15) {
case 0:
{
lean_object* x_16; lean_object* x_17; 
lean_free_object(x_7);
lean_dec(x_9);
x_16 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_12);
x_17 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_16, x_13);
return x_17;
}
case 1:
{
lean_object* x_18; 
lean_dec(x_10);
lean_dec(x_1);
x_18 = lean_apply_3(x_3, x_4, x_11, x_5);
lean_ctor_set(x_7, 2, x_18);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
default: 
{
lean_object* x_19; lean_object* x_20; 
lean_free_object(x_7);
lean_dec(x_9);
x_19 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_13);
x_20 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_12, x_19);
return x_20;
}
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_21 = lean_ctor_get(x_7, 0);
x_22 = lean_ctor_get(x_7, 1);
x_23 = lean_ctor_get(x_7, 2);
x_24 = lean_ctor_get(x_7, 3);
x_25 = lean_ctor_get(x_7, 4);
lean_inc(x_25);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_7);
lean_inc(x_1);
lean_inc(x_22);
lean_inc(x_6);
x_26 = lean_apply_2(x_1, x_6, x_22);
x_27 = lean_unbox(x_26);
lean_dec(x_26);
switch (x_27) {
case 0:
{
lean_object* x_28; lean_object* x_29; 
lean_dec(x_21);
x_28 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_24);
x_29 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_28, x_25);
return x_29;
}
case 1:
{
lean_object* x_30; lean_object* x_31; 
lean_dec(x_22);
lean_dec(x_1);
x_30 = lean_apply_3(x_3, x_4, x_23, x_5);
x_31 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_31, 0, x_21);
lean_ctor_set(x_31, 1, x_6);
lean_ctor_set(x_31, 2, x_30);
lean_ctor_set(x_31, 3, x_24);
lean_ctor_set(x_31, 4, x_25);
return x_31;
}
default: 
{
lean_object* x_32; lean_object* x_33; 
lean_dec(x_21);
x_32 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_25);
x_33 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_24, x_32);
return x_33;
}
}
}
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_34 = lean_box(1);
x_35 = lean_unsigned_to_nat(1u);
x_36 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_6);
lean_ctor_set(x_36, 2, x_5);
lean_ctor_set(x_36, 3, x_34);
lean_ctor_set(x_36, 4, x_34);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg), 7, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
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_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_3);
lean_inc(x_1);
x_10 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_8);
lean_inc(x_6);
lean_inc(x_3);
lean_inc(x_1);
x_11 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeWith___spec__1___rarg(x_1, lean_box(0), x_3, x_6, x_7, x_6, x_10);
x_2 = lean_box(0);
x_4 = x_11;
x_5 = x_9;
goto _start;
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeWith___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeWith___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeWith___spec__2___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeWith___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeWith___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeWith(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_mergeWith___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_9 = lean_ctor_get(x_7, 0);
x_10 = lean_ctor_get(x_7, 1);
x_11 = lean_ctor_get(x_7, 2);
x_12 = lean_ctor_get(x_7, 3);
x_13 = lean_ctor_get(x_7, 4);
lean_inc(x_1);
lean_inc(x_10);
lean_inc(x_6);
x_14 = lean_apply_2(x_1, x_6, x_10);
x_15 = lean_unbox(x_14);
lean_dec(x_14);
switch (x_15) {
case 0:
{
lean_object* x_16; lean_object* x_17; 
lean_free_object(x_7);
lean_dec(x_9);
x_16 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_12);
x_17 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_16, x_13);
return x_17;
}
case 1:
{
lean_object* x_18; 
lean_dec(x_10);
lean_dec(x_1);
x_18 = lean_apply_3(x_3, x_4, x_11, x_5);
lean_ctor_set(x_7, 2, x_18);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
default: 
{
lean_object* x_19; lean_object* x_20; 
lean_free_object(x_7);
lean_dec(x_9);
x_19 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_13);
x_20 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_10, x_11, x_12, x_19);
return x_20;
}
}
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; uint8_t x_27; 
x_21 = lean_ctor_get(x_7, 0);
x_22 = lean_ctor_get(x_7, 1);
x_23 = lean_ctor_get(x_7, 2);
x_24 = lean_ctor_get(x_7, 3);
x_25 = lean_ctor_get(x_7, 4);
lean_inc(x_25);
lean_inc(x_24);
lean_inc(x_23);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_7);
lean_inc(x_1);
lean_inc(x_22);
lean_inc(x_6);
x_26 = lean_apply_2(x_1, x_6, x_22);
x_27 = lean_unbox(x_26);
lean_dec(x_26);
switch (x_27) {
case 0:
{
lean_object* x_28; lean_object* x_29; 
lean_dec(x_21);
x_28 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_24);
x_29 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_28, x_25);
return x_29;
}
case 1:
{
lean_object* x_30; lean_object* x_31; 
lean_dec(x_22);
lean_dec(x_1);
x_30 = lean_apply_3(x_3, x_4, x_23, x_5);
x_31 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_31, 0, x_21);
lean_ctor_set(x_31, 1, x_6);
lean_ctor_set(x_31, 2, x_30);
lean_ctor_set(x_31, 3, x_24);
lean_ctor_set(x_31, 4, x_25);
return x_31;
}
default: 
{
lean_object* x_32; lean_object* x_33; 
lean_dec(x_21);
x_32 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_5, x_6, x_25);
x_33 = l_Std_DTreeMap_Internal_Impl_balance_x21___rarg(x_22, x_23, x_24, x_32);
return x_33;
}
}
}
}
else
{
lean_object* x_34; lean_object* x_35; lean_object* x_36; 
lean_dec(x_4);
lean_dec(x_3);
lean_dec(x_1);
x_34 = lean_box(1);
x_35 = lean_unsigned_to_nat(1u);
x_36 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_6);
lean_ctor_set(x_36, 2, x_5);
lean_ctor_set(x_36, 3, x_34);
lean_ctor_set(x_36, 4, x_34);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg), 7, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
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_6 = lean_ctor_get(x_5, 1);
lean_inc(x_6);
x_7 = lean_ctor_get(x_5, 2);
lean_inc(x_7);
x_8 = lean_ctor_get(x_5, 3);
lean_inc(x_8);
x_9 = lean_ctor_get(x_5, 4);
lean_inc(x_9);
lean_dec(x_5);
lean_inc(x_3);
lean_inc(x_1);
x_10 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_8);
lean_inc(x_6);
lean_inc(x_3);
lean_inc(x_1);
x_11 = l_Std_DTreeMap_Internal_Impl_Const_alter_x21___at_Std_DTreeMap_Raw_Const_mergeBy___spec__1___rarg(x_1, lean_box(0), x_3, x_6, x_7, x_6, x_10);
x_2 = lean_box(0);
x_4 = x_11;
x_5 = x_9;
goto _start;
}
else
{
lean_dec(x_3);
lean_dec(x_1);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeBy___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeBy___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldl___at_Std_DTreeMap_Raw_Const_mergeBy___spec__2___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeBy___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at_Std_DTreeMap_Raw_Const_mergeBy___spec__3___rarg(x_1, lean_box(0), x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_mergeBy(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_mergeBy___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__2___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__3___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__4___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_insertMany___spec__5___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg), 4, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertMany___rarg___lambda__1(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; lean_object* x_7; 
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 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insertMany___spec__1___rarg(x_1, x_4, x_5, x_3);
x_7 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertMany___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_insertMany___rarg___lambda__1), 3, 1);
lean_closure_set(x_6, 0, x_1);
x_7 = l_Id_instMonad;
x_8 = lean_apply_5(x_3, lean_box(0), x_7, x_5, x_4, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_insertMany(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_insertMany___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_5 = lean_ctor_get(x_3, 1);
x_6 = lean_ctor_get(x_3, 2);
x_7 = lean_ctor_get(x_3, 3);
x_8 = lean_ctor_get(x_3, 4);
x_9 = lean_ctor_get(x_3, 0);
lean_dec(x_9);
lean_inc(x_1);
lean_inc(x_5);
lean_inc(x_2);
x_10 = lean_apply_2(x_1, x_2, x_5);
x_11 = lean_unbox(x_10);
lean_dec(x_10);
switch (x_11) {
case 0:
{
lean_object* x_12; 
x_12 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg(x_1, x_2, x_7);
if (lean_obj_tag(x_12) == 0)
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
x_14 = lean_ctor_get(x_8, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_8, 1);
lean_inc(x_15);
x_16 = lean_ctor_get(x_8, 2);
lean_inc(x_16);
x_17 = lean_ctor_get(x_8, 3);
lean_inc(x_17);
x_18 = lean_ctor_get(x_8, 4);
lean_inc(x_18);
x_19 = lean_unsigned_to_nat(3u);
x_20 = lean_nat_mul(x_19, x_13);
x_21 = lean_nat_dec_lt(x_20, x_14);
lean_dec(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
x_22 = lean_unsigned_to_nat(1u);
x_23 = lean_nat_add(x_22, x_13);
lean_dec(x_13);
x_24 = lean_nat_add(x_23, x_14);
lean_dec(x_14);
lean_dec(x_23);
lean_ctor_set(x_3, 3, x_12);
lean_ctor_set(x_3, 0, x_24);
return x_3;
}
else
{
uint8_t x_25; 
lean_free_object(x_3);
x_25 = !lean_is_exclusive(x_8);
if (x_25 == 0)
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_26 = lean_ctor_get(x_8, 4);
lean_dec(x_26);
x_27 = lean_ctor_get(x_8, 3);
lean_dec(x_27);
x_28 = lean_ctor_get(x_8, 2);
lean_dec(x_28);
x_29 = lean_ctor_get(x_8, 1);
lean_dec(x_29);
x_30 = lean_ctor_get(x_8, 0);
lean_dec(x_30);
if (lean_obj_tag(x_17) == 0)
{
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; uint8_t x_39; 
x_31 = lean_ctor_get(x_17, 0);
lean_inc(x_31);
x_32 = lean_ctor_get(x_17, 1);
lean_inc(x_32);
x_33 = lean_ctor_get(x_17, 2);
lean_inc(x_33);
x_34 = lean_ctor_get(x_17, 3);
lean_inc(x_34);
x_35 = lean_ctor_get(x_17, 4);
lean_inc(x_35);
x_36 = lean_ctor_get(x_18, 0);
lean_inc(x_36);
x_37 = lean_unsigned_to_nat(2u);
x_38 = lean_nat_mul(x_37, x_36);
x_39 = lean_nat_dec_lt(x_31, x_38);
lean_dec(x_38);
if (x_39 == 0)
{
uint8_t x_40; 
lean_dec(x_31);
x_40 = !lean_is_exclusive(x_17);
if (x_40 == 0)
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_41 = lean_ctor_get(x_17, 4);
lean_dec(x_41);
x_42 = lean_ctor_get(x_17, 3);
lean_dec(x_42);
x_43 = lean_ctor_get(x_17, 2);
lean_dec(x_43);
x_44 = lean_ctor_get(x_17, 1);
lean_dec(x_44);
x_45 = lean_ctor_get(x_17, 0);
lean_dec(x_45);
x_46 = lean_unsigned_to_nat(1u);
x_47 = lean_nat_add(x_46, x_13);
lean_dec(x_13);
x_48 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
x_49 = lean_nat_add(x_46, x_36);
lean_dec(x_36);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_50; lean_object* x_51; uint8_t x_52; 
x_50 = lean_ctor_get(x_34, 0);
lean_inc(x_50);
x_51 = lean_nat_add(x_47, x_50);
lean_dec(x_50);
lean_dec(x_47);
lean_inc(x_12);
lean_ctor_set(x_17, 4, x_34);
lean_ctor_set(x_17, 3, x_12);
lean_ctor_set(x_17, 2, x_6);
lean_ctor_set(x_17, 1, x_5);
lean_ctor_set(x_17, 0, x_51);
x_52 = !lean_is_exclusive(x_12);
if (x_52 == 0)
{
lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; 
x_53 = lean_ctor_get(x_12, 4);
lean_dec(x_53);
x_54 = lean_ctor_get(x_12, 3);
lean_dec(x_54);
x_55 = lean_ctor_get(x_12, 2);
lean_dec(x_55);
x_56 = lean_ctor_get(x_12, 1);
lean_dec(x_56);
x_57 = lean_ctor_get(x_12, 0);
lean_dec(x_57);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_58; lean_object* x_59; 
x_58 = lean_ctor_get(x_35, 0);
lean_inc(x_58);
x_59 = lean_nat_add(x_49, x_58);
lean_dec(x_58);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_59);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
else
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_unsigned_to_nat(0u);
x_61 = lean_nat_add(x_49, x_60);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_61);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
}
else
{
lean_dec(x_12);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; 
x_62 = lean_ctor_get(x_35, 0);
lean_inc(x_62);
x_63 = lean_nat_add(x_49, x_62);
lean_dec(x_62);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_63);
x_64 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_64, 0, x_48);
lean_ctor_set(x_64, 1, x_32);
lean_ctor_set(x_64, 2, x_33);
lean_ctor_set(x_64, 3, x_17);
lean_ctor_set(x_64, 4, x_8);
return x_64;
}
else
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_65 = lean_unsigned_to_nat(0u);
x_66 = lean_nat_add(x_49, x_65);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_66);
x_67 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_67, 0, x_48);
lean_ctor_set(x_67, 1, x_32);
lean_ctor_set(x_67, 2, x_33);
lean_ctor_set(x_67, 3, x_17);
lean_ctor_set(x_67, 4, x_8);
return x_67;
}
}
}
else
{
lean_object* x_68; lean_object* x_69; uint8_t x_70; 
x_68 = lean_unsigned_to_nat(0u);
x_69 = lean_nat_add(x_47, x_68);
lean_dec(x_47);
lean_inc(x_12);
lean_ctor_set(x_17, 4, x_34);
lean_ctor_set(x_17, 3, x_12);
lean_ctor_set(x_17, 2, x_6);
lean_ctor_set(x_17, 1, x_5);
lean_ctor_set(x_17, 0, x_69);
x_70 = !lean_is_exclusive(x_12);
if (x_70 == 0)
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; 
x_71 = lean_ctor_get(x_12, 4);
lean_dec(x_71);
x_72 = lean_ctor_get(x_12, 3);
lean_dec(x_72);
x_73 = lean_ctor_get(x_12, 2);
lean_dec(x_73);
x_74 = lean_ctor_get(x_12, 1);
lean_dec(x_74);
x_75 = lean_ctor_get(x_12, 0);
lean_dec(x_75);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_76; lean_object* x_77; 
x_76 = lean_ctor_get(x_35, 0);
lean_inc(x_76);
x_77 = lean_nat_add(x_49, x_76);
lean_dec(x_76);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_77);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
else
{
lean_object* x_78; 
x_78 = lean_nat_add(x_49, x_68);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_78);
lean_ctor_set(x_12, 4, x_8);
lean_ctor_set(x_12, 3, x_17);
lean_ctor_set(x_12, 2, x_33);
lean_ctor_set(x_12, 1, x_32);
lean_ctor_set(x_12, 0, x_48);
return x_12;
}
}
else
{
lean_dec(x_12);
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_79 = lean_ctor_get(x_35, 0);
lean_inc(x_79);
x_80 = lean_nat_add(x_49, x_79);
lean_dec(x_79);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_80);
x_81 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_81, 0, x_48);
lean_ctor_set(x_81, 1, x_32);
lean_ctor_set(x_81, 2, x_33);
lean_ctor_set(x_81, 3, x_17);
lean_ctor_set(x_81, 4, x_8);
return x_81;
}
else
{
lean_object* x_82; lean_object* x_83; 
x_82 = lean_nat_add(x_49, x_68);
lean_dec(x_49);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_82);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_48);
lean_ctor_set(x_83, 1, x_32);
lean_ctor_set(x_83, 2, x_33);
lean_ctor_set(x_83, 3, x_17);
lean_ctor_set(x_83, 4, x_8);
return x_83;
}
}
}
}
else
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
lean_dec(x_17);
x_84 = lean_unsigned_to_nat(1u);
x_85 = lean_nat_add(x_84, x_13);
lean_dec(x_13);
x_86 = lean_nat_add(x_85, x_14);
lean_dec(x_14);
x_87 = lean_nat_add(x_84, x_36);
lean_dec(x_36);
if (lean_obj_tag(x_34) == 0)
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
x_88 = lean_ctor_get(x_34, 0);
lean_inc(x_88);
x_89 = lean_nat_add(x_85, x_88);
lean_dec(x_88);
lean_dec(x_85);
lean_inc(x_12);
x_90 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_90, 0, x_89);
lean_ctor_set(x_90, 1, x_5);
lean_ctor_set(x_90, 2, x_6);
lean_ctor_set(x_90, 3, x_12);
lean_ctor_set(x_90, 4, x_34);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_91 = x_12;
} else {
 lean_dec_ref(x_12);
 x_91 = lean_box(0);
}
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_92 = lean_ctor_get(x_35, 0);
lean_inc(x_92);
x_93 = lean_nat_add(x_87, x_92);
lean_dec(x_92);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_93);
if (lean_is_scalar(x_91)) {
 x_94 = lean_alloc_ctor(0, 5, 0);
} else {
 x_94 = x_91;
}
lean_ctor_set(x_94, 0, x_86);
lean_ctor_set(x_94, 1, x_32);
lean_ctor_set(x_94, 2, x_33);
lean_ctor_set(x_94, 3, x_90);
lean_ctor_set(x_94, 4, x_8);
return x_94;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_unsigned_to_nat(0u);
x_96 = lean_nat_add(x_87, x_95);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_96);
if (lean_is_scalar(x_91)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_91;
}
lean_ctor_set(x_97, 0, x_86);
lean_ctor_set(x_97, 1, x_32);
lean_ctor_set(x_97, 2, x_33);
lean_ctor_set(x_97, 3, x_90);
lean_ctor_set(x_97, 4, x_8);
return x_97;
}
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_85, x_98);
lean_dec(x_85);
lean_inc(x_12);
x_100 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_5);
lean_ctor_set(x_100, 2, x_6);
lean_ctor_set(x_100, 3, x_12);
lean_ctor_set(x_100, 4, x_34);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_101 = x_12;
} else {
 lean_dec_ref(x_12);
 x_101 = lean_box(0);
}
if (lean_obj_tag(x_35) == 0)
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_102 = lean_ctor_get(x_35, 0);
lean_inc(x_102);
x_103 = lean_nat_add(x_87, x_102);
lean_dec(x_102);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_103);
if (lean_is_scalar(x_101)) {
 x_104 = lean_alloc_ctor(0, 5, 0);
} else {
 x_104 = x_101;
}
lean_ctor_set(x_104, 0, x_86);
lean_ctor_set(x_104, 1, x_32);
lean_ctor_set(x_104, 2, x_33);
lean_ctor_set(x_104, 3, x_100);
lean_ctor_set(x_104, 4, x_8);
return x_104;
}
else
{
lean_object* x_105; lean_object* x_106; 
x_105 = lean_nat_add(x_87, x_98);
lean_dec(x_87);
lean_ctor_set(x_8, 3, x_35);
lean_ctor_set(x_8, 0, x_105);
if (lean_is_scalar(x_101)) {
 x_106 = lean_alloc_ctor(0, 5, 0);
} else {
 x_106 = x_101;
}
lean_ctor_set(x_106, 0, x_86);
lean_ctor_set(x_106, 1, x_32);
lean_ctor_set(x_106, 2, x_33);
lean_ctor_set(x_106, 3, x_100);
lean_ctor_set(x_106, 4, x_8);
return x_106;
}
}
}
}
else
{
lean_object* x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; uint8_t x_111; 
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_33);
lean_dec(x_32);
x_107 = lean_unsigned_to_nat(1u);
x_108 = lean_nat_add(x_107, x_13);
lean_dec(x_13);
x_109 = lean_nat_add(x_108, x_14);
lean_dec(x_14);
x_110 = lean_nat_add(x_108, x_31);
lean_dec(x_31);
lean_dec(x_108);
lean_inc(x_12);
lean_ctor_set(x_8, 4, x_17);
lean_ctor_set(x_8, 3, x_12);
lean_ctor_set(x_8, 2, x_6);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set(x_8, 0, x_110);
x_111 = !lean_is_exclusive(x_12);
if (x_111 == 0)
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; 
x_112 = lean_ctor_get(x_12, 4);
lean_dec(x_112);
x_113 = lean_ctor_get(x_12, 3);
lean_dec(x_113);
x_114 = lean_ctor_get(x_12, 2);
lean_dec(x_114);
x_115 = lean_ctor_get(x_12, 1);
lean_dec(x_115);
x_116 = lean_ctor_get(x_12, 0);
lean_dec(x_116);
lean_ctor_set(x_12, 4, x_18);
lean_ctor_set(x_12, 3, x_8);
lean_ctor_set(x_12, 2, x_16);
lean_ctor_set(x_12, 1, x_15);
lean_ctor_set(x_12, 0, x_109);
return x_12;
}
else
{
lean_object* x_117; 
lean_dec(x_12);
x_117 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_117, 0, x_109);
lean_ctor_set(x_117, 1, x_15);
lean_ctor_set(x_117, 2, x_16);
lean_ctor_set(x_117, 3, x_8);
lean_ctor_set(x_117, 4, x_18);
return x_117;
}
}
}
else
{
lean_object* x_118; lean_object* x_119; 
lean_free_object(x_8);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_118 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_119 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2___rarg(x_118);
return x_119;
}
}
else
{
lean_object* x_120; lean_object* x_121; 
lean_free_object(x_8);
lean_dec(x_18);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_120 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_121 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3___rarg(x_120);
return x_121;
}
}
else
{
lean_dec(x_8);
if (lean_obj_tag(x_17) == 0)
{
if (lean_obj_tag(x_18) == 0)
{
lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; uint8_t x_130; 
x_122 = lean_ctor_get(x_17, 0);
lean_inc(x_122);
x_123 = lean_ctor_get(x_17, 1);
lean_inc(x_123);
x_124 = lean_ctor_get(x_17, 2);
lean_inc(x_124);
x_125 = lean_ctor_get(x_17, 3);
lean_inc(x_125);
x_126 = lean_ctor_get(x_17, 4);
lean_inc(x_126);
x_127 = lean_ctor_get(x_18, 0);
lean_inc(x_127);
x_128 = lean_unsigned_to_nat(2u);
x_129 = lean_nat_mul(x_128, x_127);
x_130 = lean_nat_dec_lt(x_122, x_129);
lean_dec(x_129);
if (x_130 == 0)
{
lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; 
lean_dec(x_122);
if (lean_is_exclusive(x_17)) {
 lean_ctor_release(x_17, 0);
 lean_ctor_release(x_17, 1);
 lean_ctor_release(x_17, 2);
 lean_ctor_release(x_17, 3);
 lean_ctor_release(x_17, 4);
 x_131 = x_17;
} else {
 lean_dec_ref(x_17);
 x_131 = lean_box(0);
}
x_132 = lean_unsigned_to_nat(1u);
x_133 = lean_nat_add(x_132, x_13);
lean_dec(x_13);
x_134 = lean_nat_add(x_133, x_14);
lean_dec(x_14);
x_135 = lean_nat_add(x_132, x_127);
lean_dec(x_127);
if (lean_obj_tag(x_125) == 0)
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; 
x_136 = lean_ctor_get(x_125, 0);
lean_inc(x_136);
x_137 = lean_nat_add(x_133, x_136);
lean_dec(x_136);
lean_dec(x_133);
lean_inc(x_12);
if (lean_is_scalar(x_131)) {
 x_138 = lean_alloc_ctor(0, 5, 0);
} else {
 x_138 = x_131;
}
lean_ctor_set(x_138, 0, x_137);
lean_ctor_set(x_138, 1, x_5);
lean_ctor_set(x_138, 2, x_6);
lean_ctor_set(x_138, 3, x_12);
lean_ctor_set(x_138, 4, x_125);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_139 = x_12;
} else {
 lean_dec_ref(x_12);
 x_139 = lean_box(0);
}
if (lean_obj_tag(x_126) == 0)
{
lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; 
x_140 = lean_ctor_get(x_126, 0);
lean_inc(x_140);
x_141 = lean_nat_add(x_135, x_140);
lean_dec(x_140);
lean_dec(x_135);
x_142 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_142, 0, x_141);
lean_ctor_set(x_142, 1, x_15);
lean_ctor_set(x_142, 2, x_16);
lean_ctor_set(x_142, 3, x_126);
lean_ctor_set(x_142, 4, x_18);
if (lean_is_scalar(x_139)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_139;
}
lean_ctor_set(x_143, 0, x_134);
lean_ctor_set(x_143, 1, x_123);
lean_ctor_set(x_143, 2, x_124);
lean_ctor_set(x_143, 3, x_138);
lean_ctor_set(x_143, 4, x_142);
return x_143;
}
else
{
lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; 
x_144 = lean_unsigned_to_nat(0u);
x_145 = lean_nat_add(x_135, x_144);
lean_dec(x_135);
x_146 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_146, 0, x_145);
lean_ctor_set(x_146, 1, x_15);
lean_ctor_set(x_146, 2, x_16);
lean_ctor_set(x_146, 3, x_126);
lean_ctor_set(x_146, 4, x_18);
if (lean_is_scalar(x_139)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_139;
}
lean_ctor_set(x_147, 0, x_134);
lean_ctor_set(x_147, 1, x_123);
lean_ctor_set(x_147, 2, x_124);
lean_ctor_set(x_147, 3, x_138);
lean_ctor_set(x_147, 4, x_146);
return x_147;
}
}
else
{
lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; 
x_148 = lean_unsigned_to_nat(0u);
x_149 = lean_nat_add(x_133, x_148);
lean_dec(x_133);
lean_inc(x_12);
if (lean_is_scalar(x_131)) {
 x_150 = lean_alloc_ctor(0, 5, 0);
} else {
 x_150 = x_131;
}
lean_ctor_set(x_150, 0, x_149);
lean_ctor_set(x_150, 1, x_5);
lean_ctor_set(x_150, 2, x_6);
lean_ctor_set(x_150, 3, x_12);
lean_ctor_set(x_150, 4, x_125);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_151 = x_12;
} else {
 lean_dec_ref(x_12);
 x_151 = lean_box(0);
}
if (lean_obj_tag(x_126) == 0)
{
lean_object* x_152; lean_object* x_153; lean_object* x_154; lean_object* x_155; 
x_152 = lean_ctor_get(x_126, 0);
lean_inc(x_152);
x_153 = lean_nat_add(x_135, x_152);
lean_dec(x_152);
lean_dec(x_135);
x_154 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_154, 0, x_153);
lean_ctor_set(x_154, 1, x_15);
lean_ctor_set(x_154, 2, x_16);
lean_ctor_set(x_154, 3, x_126);
lean_ctor_set(x_154, 4, x_18);
if (lean_is_scalar(x_151)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_151;
}
lean_ctor_set(x_155, 0, x_134);
lean_ctor_set(x_155, 1, x_123);
lean_ctor_set(x_155, 2, x_124);
lean_ctor_set(x_155, 3, x_150);
lean_ctor_set(x_155, 4, x_154);
return x_155;
}
else
{
lean_object* x_156; lean_object* x_157; lean_object* x_158; 
x_156 = lean_nat_add(x_135, x_148);
lean_dec(x_135);
x_157 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_157, 0, x_156);
lean_ctor_set(x_157, 1, x_15);
lean_ctor_set(x_157, 2, x_16);
lean_ctor_set(x_157, 3, x_126);
lean_ctor_set(x_157, 4, x_18);
if (lean_is_scalar(x_151)) {
 x_158 = lean_alloc_ctor(0, 5, 0);
} else {
 x_158 = x_151;
}
lean_ctor_set(x_158, 0, x_134);
lean_ctor_set(x_158, 1, x_123);
lean_ctor_set(x_158, 2, x_124);
lean_ctor_set(x_158, 3, x_150);
lean_ctor_set(x_158, 4, x_157);
return x_158;
}
}
}
else
{
lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; lean_object* x_164; lean_object* x_165; 
lean_dec(x_127);
lean_dec(x_126);
lean_dec(x_125);
lean_dec(x_124);
lean_dec(x_123);
x_159 = lean_unsigned_to_nat(1u);
x_160 = lean_nat_add(x_159, x_13);
lean_dec(x_13);
x_161 = lean_nat_add(x_160, x_14);
lean_dec(x_14);
x_162 = lean_nat_add(x_160, x_122);
lean_dec(x_122);
lean_dec(x_160);
lean_inc(x_12);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_162);
lean_ctor_set(x_163, 1, x_5);
lean_ctor_set(x_163, 2, x_6);
lean_ctor_set(x_163, 3, x_12);
lean_ctor_set(x_163, 4, x_17);
if (lean_is_exclusive(x_12)) {
 lean_ctor_release(x_12, 0);
 lean_ctor_release(x_12, 1);
 lean_ctor_release(x_12, 2);
 lean_ctor_release(x_12, 3);
 lean_ctor_release(x_12, 4);
 x_164 = x_12;
} else {
 lean_dec_ref(x_12);
 x_164 = lean_box(0);
}
if (lean_is_scalar(x_164)) {
 x_165 = lean_alloc_ctor(0, 5, 0);
} else {
 x_165 = x_164;
}
lean_ctor_set(x_165, 0, x_161);
lean_ctor_set(x_165, 1, x_15);
lean_ctor_set(x_165, 2, x_16);
lean_ctor_set(x_165, 3, x_163);
lean_ctor_set(x_165, 4, x_18);
return x_165;
}
}
else
{
lean_object* x_166; lean_object* x_167; 
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_166 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_167 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2___rarg(x_166);
return x_167;
}
}
else
{
lean_object* x_168; lean_object* x_169; 
lean_dec(x_18);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_13);
lean_dec(x_12);
lean_dec(x_6);
lean_dec(x_5);
x_168 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_169 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3___rarg(x_168);
return x_169;
}
}
}
}
else
{
lean_object* x_170; lean_object* x_171; lean_object* x_172; lean_object* x_173; 
x_170 = lean_ctor_get(x_12, 0);
lean_inc(x_170);
x_171 = lean_unsigned_to_nat(1u);
x_172 = lean_nat_add(x_171, x_170);
lean_dec(x_170);
x_173 = lean_box(1);
lean_ctor_set(x_3, 4, x_173);
lean_ctor_set(x_3, 3, x_12);
lean_ctor_set(x_3, 0, x_172);
return x_3;
}
}
else
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_174; 
x_174 = lean_ctor_get(x_8, 3);
lean_inc(x_174);
if (lean_obj_tag(x_174) == 0)
{
lean_object* x_175; 
x_175 = lean_ctor_get(x_8, 4);
lean_inc(x_175);
if (lean_obj_tag(x_175) == 0)
{
uint8_t x_176; 
x_176 = !lean_is_exclusive(x_8);
if (x_176 == 0)
{
lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; lean_object* x_181; lean_object* x_182; lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; 
x_177 = lean_ctor_get(x_8, 0);
x_178 = lean_ctor_get(x_8, 1);
x_179 = lean_ctor_get(x_8, 2);
x_180 = lean_ctor_get(x_8, 4);
lean_dec(x_180);
x_181 = lean_ctor_get(x_8, 3);
lean_dec(x_181);
x_182 = lean_ctor_get(x_174, 0);
lean_inc(x_182);
x_183 = lean_unsigned_to_nat(1u);
x_184 = lean_nat_add(x_183, x_177);
lean_dec(x_177);
x_185 = lean_nat_add(x_183, x_182);
lean_dec(x_182);
x_186 = lean_box(1);
lean_ctor_set(x_8, 4, x_174);
lean_ctor_set(x_8, 3, x_186);
lean_ctor_set(x_8, 2, x_6);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set(x_8, 0, x_185);
lean_ctor_set(x_3, 4, x_175);
lean_ctor_set(x_3, 3, x_8);
lean_ctor_set(x_3, 2, x_179);
lean_ctor_set(x_3, 1, x_178);
lean_ctor_set(x_3, 0, x_184);
return x_3;
}
else
{
lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; lean_object* x_194; lean_object* x_195; 
x_187 = lean_ctor_get(x_8, 0);
x_188 = lean_ctor_get(x_8, 1);
x_189 = lean_ctor_get(x_8, 2);
lean_inc(x_189);
lean_inc(x_188);
lean_inc(x_187);
lean_dec(x_8);
x_190 = lean_ctor_get(x_174, 0);
lean_inc(x_190);
x_191 = lean_unsigned_to_nat(1u);
x_192 = lean_nat_add(x_191, x_187);
lean_dec(x_187);
x_193 = lean_nat_add(x_191, x_190);
lean_dec(x_190);
x_194 = lean_box(1);
x_195 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_195, 0, x_193);
lean_ctor_set(x_195, 1, x_5);
lean_ctor_set(x_195, 2, x_6);
lean_ctor_set(x_195, 3, x_194);
lean_ctor_set(x_195, 4, x_174);
lean_ctor_set(x_3, 4, x_175);
lean_ctor_set(x_3, 3, x_195);
lean_ctor_set(x_3, 2, x_189);
lean_ctor_set(x_3, 1, x_188);
lean_ctor_set(x_3, 0, x_192);
return x_3;
}
}
else
{
uint8_t x_196; 
x_196 = !lean_is_exclusive(x_8);
if (x_196 == 0)
{
lean_object* x_197; lean_object* x_198; lean_object* x_199; uint8_t x_200; 
x_197 = lean_ctor_get(x_8, 4);
lean_dec(x_197);
x_198 = lean_ctor_get(x_8, 3);
lean_dec(x_198);
x_199 = lean_ctor_get(x_8, 0);
lean_dec(x_199);
x_200 = !lean_is_exclusive(x_174);
if (x_200 == 0)
{
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; lean_object* x_208; 
x_201 = lean_ctor_get(x_174, 1);
x_202 = lean_ctor_get(x_174, 2);
x_203 = lean_ctor_get(x_174, 4);
lean_dec(x_203);
x_204 = lean_ctor_get(x_174, 3);
lean_dec(x_204);
x_205 = lean_ctor_get(x_174, 0);
lean_dec(x_205);
x_206 = lean_box(1);
x_207 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_174, 4, x_206);
lean_ctor_set(x_174, 3, x_206);
lean_ctor_set(x_174, 2, x_6);
lean_ctor_set(x_174, 1, x_5);
lean_ctor_set(x_174, 0, x_207);
lean_ctor_set(x_8, 4, x_206);
lean_ctor_set(x_8, 3, x_206);
lean_ctor_set(x_8, 0, x_207);
x_208 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 3, x_174);
lean_ctor_set(x_3, 2, x_202);
lean_ctor_set(x_3, 1, x_201);
lean_ctor_set(x_3, 0, x_208);
return x_3;
}
else
{
lean_object* x_209; lean_object* x_210; lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; 
x_209 = lean_ctor_get(x_174, 1);
x_210 = lean_ctor_get(x_174, 2);
lean_inc(x_210);
lean_inc(x_209);
lean_dec(x_174);
x_211 = lean_box(1);
x_212 = lean_unsigned_to_nat(1u);
x_213 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_213, 0, x_212);
lean_ctor_set(x_213, 1, x_5);
lean_ctor_set(x_213, 2, x_6);
lean_ctor_set(x_213, 3, x_211);
lean_ctor_set(x_213, 4, x_211);
lean_ctor_set(x_8, 4, x_211);
lean_ctor_set(x_8, 3, x_211);
lean_ctor_set(x_8, 0, x_212);
x_214 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 3, x_213);
lean_ctor_set(x_3, 2, x_210);
lean_ctor_set(x_3, 1, x_209);
lean_ctor_set(x_3, 0, x_214);
return x_3;
}
}
else
{
lean_object* x_215; lean_object* x_216; lean_object* x_217; lean_object* x_218; lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; 
x_215 = lean_ctor_get(x_8, 1);
x_216 = lean_ctor_get(x_8, 2);
lean_inc(x_216);
lean_inc(x_215);
lean_dec(x_8);
x_217 = lean_ctor_get(x_174, 1);
lean_inc(x_217);
x_218 = lean_ctor_get(x_174, 2);
lean_inc(x_218);
if (lean_is_exclusive(x_174)) {
 lean_ctor_release(x_174, 0);
 lean_ctor_release(x_174, 1);
 lean_ctor_release(x_174, 2);
 lean_ctor_release(x_174, 3);
 lean_ctor_release(x_174, 4);
 x_219 = x_174;
} else {
 lean_dec_ref(x_174);
 x_219 = lean_box(0);
}
x_220 = lean_box(1);
x_221 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_219)) {
 x_222 = lean_alloc_ctor(0, 5, 0);
} else {
 x_222 = x_219;
}
lean_ctor_set(x_222, 0, x_221);
lean_ctor_set(x_222, 1, x_5);
lean_ctor_set(x_222, 2, x_6);
lean_ctor_set(x_222, 3, x_220);
lean_ctor_set(x_222, 4, x_220);
x_223 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_223, 0, x_221);
lean_ctor_set(x_223, 1, x_215);
lean_ctor_set(x_223, 2, x_216);
lean_ctor_set(x_223, 3, x_220);
lean_ctor_set(x_223, 4, x_220);
x_224 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_223);
lean_ctor_set(x_3, 3, x_222);
lean_ctor_set(x_3, 2, x_218);
lean_ctor_set(x_3, 1, x_217);
lean_ctor_set(x_3, 0, x_224);
return x_3;
}
}
}
else
{
lean_object* x_225; 
x_225 = lean_ctor_get(x_8, 4);
lean_inc(x_225);
if (lean_obj_tag(x_225) == 0)
{
uint8_t x_226; 
x_226 = !lean_is_exclusive(x_8);
if (x_226 == 0)
{
lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; lean_object* x_234; 
x_227 = lean_ctor_get(x_8, 1);
x_228 = lean_ctor_get(x_8, 2);
x_229 = lean_ctor_get(x_8, 4);
lean_dec(x_229);
x_230 = lean_ctor_get(x_8, 3);
lean_dec(x_230);
x_231 = lean_ctor_get(x_8, 0);
lean_dec(x_231);
x_232 = lean_box(1);
x_233 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_232);
lean_ctor_set(x_8, 3, x_232);
lean_ctor_set(x_8, 2, x_6);
lean_ctor_set(x_8, 1, x_5);
lean_ctor_set(x_8, 0, x_233);
x_234 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_225);
lean_ctor_set(x_3, 3, x_8);
lean_ctor_set(x_3, 2, x_228);
lean_ctor_set(x_3, 1, x_227);
lean_ctor_set(x_3, 0, x_234);
return x_3;
}
else
{
lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; lean_object* x_240; 
x_235 = lean_ctor_get(x_8, 1);
x_236 = lean_ctor_get(x_8, 2);
lean_inc(x_236);
lean_inc(x_235);
lean_dec(x_8);
x_237 = lean_box(1);
x_238 = lean_unsigned_to_nat(1u);
x_239 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_239, 0, x_238);
lean_ctor_set(x_239, 1, x_5);
lean_ctor_set(x_239, 2, x_6);
lean_ctor_set(x_239, 3, x_237);
lean_ctor_set(x_239, 4, x_237);
x_240 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_225);
lean_ctor_set(x_3, 3, x_239);
lean_ctor_set(x_3, 2, x_236);
lean_ctor_set(x_3, 1, x_235);
lean_ctor_set(x_3, 0, x_240);
return x_3;
}
}
else
{
lean_object* x_241; lean_object* x_242; 
x_241 = lean_box(1);
x_242 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_3, 3, x_241);
lean_ctor_set(x_3, 0, x_242);
return x_3;
}
}
}
else
{
lean_object* x_243; lean_object* x_244; 
x_243 = lean_box(1);
x_244 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_3, 4, x_243);
lean_ctor_set(x_3, 3, x_243);
lean_ctor_set(x_3, 0, x_244);
return x_3;
}
}
}
case 1:
{
lean_free_object(x_3);
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
if (lean_obj_tag(x_7) == 0)
{
if (lean_obj_tag(x_8) == 0)
{
lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; lean_object* x_250; lean_object* x_251; lean_object* x_252; lean_object* x_253; lean_object* x_254; uint8_t x_255; 
x_245 = lean_ctor_get(x_7, 0);
lean_inc(x_245);
x_246 = lean_ctor_get(x_7, 1);
lean_inc(x_246);
x_247 = lean_ctor_get(x_7, 2);
lean_inc(x_247);
x_248 = lean_ctor_get(x_7, 3);
lean_inc(x_248);
x_249 = lean_ctor_get(x_7, 4);
lean_inc(x_249);
x_250 = lean_ctor_get(x_8, 0);
lean_inc(x_250);
x_251 = lean_ctor_get(x_8, 1);
lean_inc(x_251);
x_252 = lean_ctor_get(x_8, 2);
lean_inc(x_252);
x_253 = lean_ctor_get(x_8, 3);
lean_inc(x_253);
x_254 = lean_ctor_get(x_8, 4);
lean_inc(x_254);
x_255 = lean_nat_dec_lt(x_245, x_250);
if (x_255 == 0)
{
uint8_t x_256; 
lean_dec(x_245);
x_256 = !lean_is_exclusive(x_7);
if (x_256 == 0)
{
lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; lean_object* x_263; 
x_257 = lean_ctor_get(x_7, 4);
lean_dec(x_257);
x_258 = lean_ctor_get(x_7, 3);
lean_dec(x_258);
x_259 = lean_ctor_get(x_7, 2);
lean_dec(x_259);
x_260 = lean_ctor_get(x_7, 1);
lean_dec(x_260);
x_261 = lean_ctor_get(x_7, 0);
lean_dec(x_261);
x_262 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_246, x_247, x_248, x_249);
x_263 = lean_ctor_get(x_262, 2);
lean_inc(x_263);
if (lean_obj_tag(x_263) == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; lean_object* x_267; lean_object* x_268; uint8_t x_269; 
x_264 = lean_ctor_get(x_262, 0);
lean_inc(x_264);
x_265 = lean_ctor_get(x_262, 1);
lean_inc(x_265);
lean_dec(x_262);
x_266 = lean_ctor_get(x_263, 0);
lean_inc(x_266);
x_267 = lean_unsigned_to_nat(3u);
x_268 = lean_nat_mul(x_267, x_266);
x_269 = lean_nat_dec_lt(x_268, x_250);
lean_dec(x_268);
if (x_269 == 0)
{
lean_object* x_270; lean_object* x_271; lean_object* x_272; 
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
x_270 = lean_unsigned_to_nat(1u);
x_271 = lean_nat_add(x_270, x_266);
lean_dec(x_266);
x_272 = lean_nat_add(x_271, x_250);
lean_dec(x_250);
lean_dec(x_271);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_263);
lean_ctor_set(x_7, 2, x_265);
lean_ctor_set(x_7, 1, x_264);
lean_ctor_set(x_7, 0, x_272);
return x_7;
}
else
{
uint8_t x_273; 
x_273 = !lean_is_exclusive(x_8);
if (x_273 == 0)
{
lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; 
x_274 = lean_ctor_get(x_8, 4);
lean_dec(x_274);
x_275 = lean_ctor_get(x_8, 3);
lean_dec(x_275);
x_276 = lean_ctor_get(x_8, 2);
lean_dec(x_276);
x_277 = lean_ctor_get(x_8, 1);
lean_dec(x_277);
x_278 = lean_ctor_get(x_8, 0);
lean_dec(x_278);
if (lean_obj_tag(x_253) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_279; lean_object* x_280; lean_object* x_281; lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; uint8_t x_287; 
x_279 = lean_ctor_get(x_253, 0);
lean_inc(x_279);
x_280 = lean_ctor_get(x_253, 1);
lean_inc(x_280);
x_281 = lean_ctor_get(x_253, 2);
lean_inc(x_281);
x_282 = lean_ctor_get(x_253, 3);
lean_inc(x_282);
x_283 = lean_ctor_get(x_253, 4);
lean_inc(x_283);
x_284 = lean_ctor_get(x_254, 0);
lean_inc(x_284);
x_285 = lean_unsigned_to_nat(2u);
x_286 = lean_nat_mul(x_285, x_284);
x_287 = lean_nat_dec_lt(x_279, x_286);
lean_dec(x_286);
if (x_287 == 0)
{
uint8_t x_288; 
lean_dec(x_279);
lean_free_object(x_7);
x_288 = !lean_is_exclusive(x_253);
if (x_288 == 0)
{
lean_object* x_289; lean_object* x_290; lean_object* x_291; lean_object* x_292; lean_object* x_293; lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; 
x_289 = lean_ctor_get(x_253, 4);
lean_dec(x_289);
x_290 = lean_ctor_get(x_253, 3);
lean_dec(x_290);
x_291 = lean_ctor_get(x_253, 2);
lean_dec(x_291);
x_292 = lean_ctor_get(x_253, 1);
lean_dec(x_292);
x_293 = lean_ctor_get(x_253, 0);
lean_dec(x_293);
x_294 = lean_unsigned_to_nat(1u);
x_295 = lean_nat_add(x_294, x_266);
lean_dec(x_266);
x_296 = lean_nat_add(x_295, x_250);
lean_dec(x_250);
x_297 = lean_nat_add(x_294, x_284);
lean_dec(x_284);
if (lean_obj_tag(x_282) == 0)
{
lean_object* x_298; lean_object* x_299; uint8_t x_300; 
x_298 = lean_ctor_get(x_282, 0);
lean_inc(x_298);
x_299 = lean_nat_add(x_295, x_298);
lean_dec(x_298);
lean_dec(x_295);
lean_inc(x_263);
lean_ctor_set(x_253, 4, x_282);
lean_ctor_set(x_253, 3, x_263);
lean_ctor_set(x_253, 2, x_265);
lean_ctor_set(x_253, 1, x_264);
lean_ctor_set(x_253, 0, x_299);
x_300 = !lean_is_exclusive(x_263);
if (x_300 == 0)
{
lean_object* x_301; lean_object* x_302; lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_301 = lean_ctor_get(x_263, 4);
lean_dec(x_301);
x_302 = lean_ctor_get(x_263, 3);
lean_dec(x_302);
x_303 = lean_ctor_get(x_263, 2);
lean_dec(x_303);
x_304 = lean_ctor_get(x_263, 1);
lean_dec(x_304);
x_305 = lean_ctor_get(x_263, 0);
lean_dec(x_305);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_306; lean_object* x_307; 
x_306 = lean_ctor_get(x_283, 0);
lean_inc(x_306);
x_307 = lean_nat_add(x_297, x_306);
lean_dec(x_306);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_307);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_308; lean_object* x_309; 
x_308 = lean_unsigned_to_nat(0u);
x_309 = lean_nat_add(x_297, x_308);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_309);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
else
{
lean_dec(x_263);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_310; lean_object* x_311; lean_object* x_312; 
x_310 = lean_ctor_get(x_283, 0);
lean_inc(x_310);
x_311 = lean_nat_add(x_297, x_310);
lean_dec(x_310);
lean_dec(x_297);
x_312 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_312, 0, x_311);
lean_ctor_set(x_312, 1, x_251);
lean_ctor_set(x_312, 2, x_252);
lean_ctor_set(x_312, 3, x_283);
lean_ctor_set(x_312, 4, x_254);
lean_ctor_set(x_8, 4, x_312);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; 
x_313 = lean_unsigned_to_nat(0u);
x_314 = lean_nat_add(x_297, x_313);
lean_dec(x_297);
x_315 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_315, 0, x_314);
lean_ctor_set(x_315, 1, x_251);
lean_ctor_set(x_315, 2, x_252);
lean_ctor_set(x_315, 3, x_283);
lean_ctor_set(x_315, 4, x_254);
lean_ctor_set(x_8, 4, x_315);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
}
else
{
lean_object* x_316; lean_object* x_317; uint8_t x_318; 
x_316 = lean_unsigned_to_nat(0u);
x_317 = lean_nat_add(x_295, x_316);
lean_dec(x_295);
lean_inc(x_263);
lean_ctor_set(x_253, 4, x_282);
lean_ctor_set(x_253, 3, x_263);
lean_ctor_set(x_253, 2, x_265);
lean_ctor_set(x_253, 1, x_264);
lean_ctor_set(x_253, 0, x_317);
x_318 = !lean_is_exclusive(x_263);
if (x_318 == 0)
{
lean_object* x_319; lean_object* x_320; lean_object* x_321; lean_object* x_322; lean_object* x_323; 
x_319 = lean_ctor_get(x_263, 4);
lean_dec(x_319);
x_320 = lean_ctor_get(x_263, 3);
lean_dec(x_320);
x_321 = lean_ctor_get(x_263, 2);
lean_dec(x_321);
x_322 = lean_ctor_get(x_263, 1);
lean_dec(x_322);
x_323 = lean_ctor_get(x_263, 0);
lean_dec(x_323);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_324; lean_object* x_325; 
x_324 = lean_ctor_get(x_283, 0);
lean_inc(x_324);
x_325 = lean_nat_add(x_297, x_324);
lean_dec(x_324);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_325);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_326; 
x_326 = lean_nat_add(x_297, x_316);
lean_dec(x_297);
lean_ctor_set(x_263, 4, x_254);
lean_ctor_set(x_263, 3, x_283);
lean_ctor_set(x_263, 2, x_252);
lean_ctor_set(x_263, 1, x_251);
lean_ctor_set(x_263, 0, x_326);
lean_ctor_set(x_8, 4, x_263);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
else
{
lean_dec(x_263);
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_327; lean_object* x_328; lean_object* x_329; 
x_327 = lean_ctor_get(x_283, 0);
lean_inc(x_327);
x_328 = lean_nat_add(x_297, x_327);
lean_dec(x_327);
lean_dec(x_297);
x_329 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_329, 0, x_328);
lean_ctor_set(x_329, 1, x_251);
lean_ctor_set(x_329, 2, x_252);
lean_ctor_set(x_329, 3, x_283);
lean_ctor_set(x_329, 4, x_254);
lean_ctor_set(x_8, 4, x_329);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
else
{
lean_object* x_330; lean_object* x_331; 
x_330 = lean_nat_add(x_297, x_316);
lean_dec(x_297);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_251);
lean_ctor_set(x_331, 2, x_252);
lean_ctor_set(x_331, 3, x_283);
lean_ctor_set(x_331, 4, x_254);
lean_ctor_set(x_8, 4, x_331);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_296);
return x_8;
}
}
}
}
else
{
lean_object* x_332; lean_object* x_333; lean_object* x_334; lean_object* x_335; 
lean_dec(x_253);
x_332 = lean_unsigned_to_nat(1u);
x_333 = lean_nat_add(x_332, x_266);
lean_dec(x_266);
x_334 = lean_nat_add(x_333, x_250);
lean_dec(x_250);
x_335 = lean_nat_add(x_332, x_284);
lean_dec(x_284);
if (lean_obj_tag(x_282) == 0)
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; lean_object* x_339; 
x_336 = lean_ctor_get(x_282, 0);
lean_inc(x_336);
x_337 = lean_nat_add(x_333, x_336);
lean_dec(x_336);
lean_dec(x_333);
lean_inc(x_263);
x_338 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_338, 0, x_337);
lean_ctor_set(x_338, 1, x_264);
lean_ctor_set(x_338, 2, x_265);
lean_ctor_set(x_338, 3, x_263);
lean_ctor_set(x_338, 4, x_282);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_339 = x_263;
} else {
 lean_dec_ref(x_263);
 x_339 = lean_box(0);
}
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_340 = lean_ctor_get(x_283, 0);
lean_inc(x_340);
x_341 = lean_nat_add(x_335, x_340);
lean_dec(x_340);
lean_dec(x_335);
if (lean_is_scalar(x_339)) {
 x_342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_342 = x_339;
}
lean_ctor_set(x_342, 0, x_341);
lean_ctor_set(x_342, 1, x_251);
lean_ctor_set(x_342, 2, x_252);
lean_ctor_set(x_342, 3, x_283);
lean_ctor_set(x_342, 4, x_254);
lean_ctor_set(x_8, 4, x_342);
lean_ctor_set(x_8, 3, x_338);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
else
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_unsigned_to_nat(0u);
x_344 = lean_nat_add(x_335, x_343);
lean_dec(x_335);
if (lean_is_scalar(x_339)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_339;
}
lean_ctor_set(x_345, 0, x_344);
lean_ctor_set(x_345, 1, x_251);
lean_ctor_set(x_345, 2, x_252);
lean_ctor_set(x_345, 3, x_283);
lean_ctor_set(x_345, 4, x_254);
lean_ctor_set(x_8, 4, x_345);
lean_ctor_set(x_8, 3, x_338);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
}
else
{
lean_object* x_346; lean_object* x_347; lean_object* x_348; lean_object* x_349; 
x_346 = lean_unsigned_to_nat(0u);
x_347 = lean_nat_add(x_333, x_346);
lean_dec(x_333);
lean_inc(x_263);
x_348 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_348, 0, x_347);
lean_ctor_set(x_348, 1, x_264);
lean_ctor_set(x_348, 2, x_265);
lean_ctor_set(x_348, 3, x_263);
lean_ctor_set(x_348, 4, x_282);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_349 = x_263;
} else {
 lean_dec_ref(x_263);
 x_349 = lean_box(0);
}
if (lean_obj_tag(x_283) == 0)
{
lean_object* x_350; lean_object* x_351; lean_object* x_352; 
x_350 = lean_ctor_get(x_283, 0);
lean_inc(x_350);
x_351 = lean_nat_add(x_335, x_350);
lean_dec(x_350);
lean_dec(x_335);
if (lean_is_scalar(x_349)) {
 x_352 = lean_alloc_ctor(0, 5, 0);
} else {
 x_352 = x_349;
}
lean_ctor_set(x_352, 0, x_351);
lean_ctor_set(x_352, 1, x_251);
lean_ctor_set(x_352, 2, x_252);
lean_ctor_set(x_352, 3, x_283);
lean_ctor_set(x_352, 4, x_254);
lean_ctor_set(x_8, 4, x_352);
lean_ctor_set(x_8, 3, x_348);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
else
{
lean_object* x_353; lean_object* x_354; 
x_353 = lean_nat_add(x_335, x_346);
lean_dec(x_335);
if (lean_is_scalar(x_349)) {
 x_354 = lean_alloc_ctor(0, 5, 0);
} else {
 x_354 = x_349;
}
lean_ctor_set(x_354, 0, x_353);
lean_ctor_set(x_354, 1, x_251);
lean_ctor_set(x_354, 2, x_252);
lean_ctor_set(x_354, 3, x_283);
lean_ctor_set(x_354, 4, x_254);
lean_ctor_set(x_8, 4, x_354);
lean_ctor_set(x_8, 3, x_348);
lean_ctor_set(x_8, 2, x_281);
lean_ctor_set(x_8, 1, x_280);
lean_ctor_set(x_8, 0, x_334);
return x_8;
}
}
}
}
else
{
lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; 
lean_dec(x_284);
lean_dec(x_283);
lean_dec(x_282);
lean_dec(x_281);
lean_dec(x_280);
x_355 = lean_unsigned_to_nat(1u);
x_356 = lean_nat_add(x_355, x_266);
lean_dec(x_266);
x_357 = lean_nat_add(x_356, x_250);
lean_dec(x_250);
x_358 = lean_nat_add(x_356, x_279);
lean_dec(x_279);
lean_dec(x_356);
lean_ctor_set(x_8, 4, x_253);
lean_ctor_set(x_8, 3, x_263);
lean_ctor_set(x_8, 2, x_265);
lean_ctor_set(x_8, 1, x_264);
lean_ctor_set(x_8, 0, x_358);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_8);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_357);
return x_7;
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_8);
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_8);
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_254);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_8);
if (lean_obj_tag(x_253) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_253, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_253, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_253, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_253, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_253, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_254, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
lean_free_object(x_7);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_372 = x_253;
} else {
 lean_dec_ref(x_253);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_266);
lean_dec(x_266);
x_375 = lean_nat_add(x_374, x_250);
lean_dec(x_250);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_263);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_264);
lean_ctor_set(x_379, 2, x_265);
lean_ctor_set(x_379, 3, x_263);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_380 = x_263;
} else {
 lean_dec_ref(x_263);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
if (lean_is_scalar(x_380)) {
 x_383 = lean_alloc_ctor(0, 5, 0);
} else {
 x_383 = x_380;
}
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_251);
lean_ctor_set(x_383, 2, x_252);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_254);
x_384 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
if (lean_is_scalar(x_380)) {
 x_387 = lean_alloc_ctor(0, 5, 0);
} else {
 x_387 = x_380;
}
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_251);
lean_ctor_set(x_387, 2, x_252);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_254);
x_388 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_263);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_264);
lean_ctor_set(x_391, 2, x_265);
lean_ctor_set(x_391, 3, x_263);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_263)) {
 lean_ctor_release(x_263, 0);
 lean_ctor_release(x_263, 1);
 lean_ctor_release(x_263, 2);
 lean_ctor_release(x_263, 3);
 lean_ctor_release(x_263, 4);
 x_392 = x_263;
} else {
 lean_dec_ref(x_263);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
if (lean_is_scalar(x_392)) {
 x_395 = lean_alloc_ctor(0, 5, 0);
} else {
 x_395 = x_392;
}
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_251);
lean_ctor_set(x_395, 2, x_252);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_254);
x_396 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
if (lean_is_scalar(x_392)) {
 x_398 = lean_alloc_ctor(0, 5, 0);
} else {
 x_398 = x_392;
}
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_251);
lean_ctor_set(x_398, 2, x_252);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_254);
x_399 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_266);
lean_dec(x_266);
x_402 = lean_nat_add(x_401, x_250);
lean_dec(x_250);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_264);
lean_ctor_set(x_404, 2, x_265);
lean_ctor_set(x_404, 3, x_263);
lean_ctor_set(x_404, 4, x_253);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_404);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_402);
return x_7;
}
}
else
{
lean_object* x_405; lean_object* x_406; 
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_405 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_406 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4___rarg(x_405);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_266);
lean_dec(x_265);
lean_dec(x_264);
lean_dec(x_263);
lean_free_object(x_7);
lean_dec(x_254);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_408 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5___rarg(x_407);
return x_408;
}
}
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
uint8_t x_409; 
x_409 = !lean_is_exclusive(x_8);
if (x_409 == 0)
{
lean_object* x_410; lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_410 = lean_ctor_get(x_8, 4);
lean_dec(x_410);
x_411 = lean_ctor_get(x_8, 3);
lean_dec(x_411);
x_412 = lean_ctor_get(x_8, 2);
lean_dec(x_412);
x_413 = lean_ctor_get(x_8, 1);
lean_dec(x_413);
x_414 = lean_ctor_get(x_8, 0);
lean_dec(x_414);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_415; lean_object* x_416; lean_object* x_417; lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; 
x_415 = lean_ctor_get(x_262, 0);
lean_inc(x_415);
x_416 = lean_ctor_get(x_262, 1);
lean_inc(x_416);
lean_dec(x_262);
x_417 = lean_ctor_get(x_253, 0);
lean_inc(x_417);
x_418 = lean_unsigned_to_nat(1u);
x_419 = lean_nat_add(x_418, x_250);
lean_dec(x_250);
x_420 = lean_nat_add(x_418, x_417);
lean_dec(x_417);
x_421 = lean_box(1);
lean_ctor_set(x_8, 4, x_253);
lean_ctor_set(x_8, 3, x_421);
lean_ctor_set(x_8, 2, x_416);
lean_ctor_set(x_8, 1, x_415);
lean_ctor_set(x_8, 0, x_420);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_8);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_419);
return x_7;
}
else
{
lean_object* x_422; lean_object* x_423; uint8_t x_424; 
lean_dec(x_250);
x_422 = lean_ctor_get(x_262, 0);
lean_inc(x_422);
x_423 = lean_ctor_get(x_262, 1);
lean_inc(x_423);
lean_dec(x_262);
x_424 = !lean_is_exclusive(x_253);
if (x_424 == 0)
{
lean_object* x_425; lean_object* x_426; lean_object* x_427; lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; 
x_425 = lean_ctor_get(x_253, 1);
x_426 = lean_ctor_get(x_253, 2);
x_427 = lean_ctor_get(x_253, 4);
lean_dec(x_427);
x_428 = lean_ctor_get(x_253, 3);
lean_dec(x_428);
x_429 = lean_ctor_get(x_253, 0);
lean_dec(x_429);
x_430 = lean_box(1);
x_431 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_430);
lean_ctor_set(x_253, 3, x_430);
lean_ctor_set(x_253, 2, x_423);
lean_ctor_set(x_253, 1, x_422);
lean_ctor_set(x_253, 0, x_431);
lean_ctor_set(x_8, 4, x_430);
lean_ctor_set(x_8, 3, x_430);
lean_ctor_set(x_8, 0, x_431);
x_432 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_253);
lean_ctor_set(x_7, 2, x_426);
lean_ctor_set(x_7, 1, x_425);
lean_ctor_set(x_7, 0, x_432);
return x_7;
}
else
{
lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; lean_object* x_438; 
x_433 = lean_ctor_get(x_253, 1);
x_434 = lean_ctor_get(x_253, 2);
lean_inc(x_434);
lean_inc(x_433);
lean_dec(x_253);
x_435 = lean_box(1);
x_436 = lean_unsigned_to_nat(1u);
x_437 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_437, 0, x_436);
lean_ctor_set(x_437, 1, x_422);
lean_ctor_set(x_437, 2, x_423);
lean_ctor_set(x_437, 3, x_435);
lean_ctor_set(x_437, 4, x_435);
lean_ctor_set(x_8, 4, x_435);
lean_ctor_set(x_8, 3, x_435);
lean_ctor_set(x_8, 0, x_436);
x_438 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_437);
lean_ctor_set(x_7, 2, x_434);
lean_ctor_set(x_7, 1, x_433);
lean_ctor_set(x_7, 0, x_438);
return x_7;
}
}
}
else
{
lean_dec(x_8);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; lean_object* x_442; lean_object* x_443; lean_object* x_444; lean_object* x_445; lean_object* x_446; 
x_439 = lean_ctor_get(x_262, 0);
lean_inc(x_439);
x_440 = lean_ctor_get(x_262, 1);
lean_inc(x_440);
lean_dec(x_262);
x_441 = lean_ctor_get(x_253, 0);
lean_inc(x_441);
x_442 = lean_unsigned_to_nat(1u);
x_443 = lean_nat_add(x_442, x_250);
lean_dec(x_250);
x_444 = lean_nat_add(x_442, x_441);
lean_dec(x_441);
x_445 = lean_box(1);
x_446 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_446, 0, x_444);
lean_ctor_set(x_446, 1, x_439);
lean_ctor_set(x_446, 2, x_440);
lean_ctor_set(x_446, 3, x_445);
lean_ctor_set(x_446, 4, x_253);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_446);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_443);
return x_7;
}
else
{
lean_object* x_447; lean_object* x_448; lean_object* x_449; lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; 
lean_dec(x_250);
x_447 = lean_ctor_get(x_262, 0);
lean_inc(x_447);
x_448 = lean_ctor_get(x_262, 1);
lean_inc(x_448);
lean_dec(x_262);
x_449 = lean_ctor_get(x_253, 1);
lean_inc(x_449);
x_450 = lean_ctor_get(x_253, 2);
lean_inc(x_450);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_451 = x_253;
} else {
 lean_dec_ref(x_253);
 x_451 = lean_box(0);
}
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_451)) {
 x_454 = lean_alloc_ctor(0, 5, 0);
} else {
 x_454 = x_451;
}
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_447);
lean_ctor_set(x_454, 2, x_448);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
x_455 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_455, 0, x_453);
lean_ctor_set(x_455, 1, x_251);
lean_ctor_set(x_455, 2, x_252);
lean_ctor_set(x_455, 3, x_452);
lean_ctor_set(x_455, 4, x_452);
x_456 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_455);
lean_ctor_set(x_7, 3, x_454);
lean_ctor_set(x_7, 2, x_450);
lean_ctor_set(x_7, 1, x_449);
lean_ctor_set(x_7, 0, x_456);
return x_7;
}
}
}
else
{
lean_dec(x_250);
if (lean_obj_tag(x_254) == 0)
{
uint8_t x_457; 
x_457 = !lean_is_exclusive(x_8);
if (x_457 == 0)
{
lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; lean_object* x_467; 
x_458 = lean_ctor_get(x_8, 4);
lean_dec(x_458);
x_459 = lean_ctor_get(x_8, 3);
lean_dec(x_459);
x_460 = lean_ctor_get(x_8, 2);
lean_dec(x_460);
x_461 = lean_ctor_get(x_8, 1);
lean_dec(x_461);
x_462 = lean_ctor_get(x_8, 0);
lean_dec(x_462);
x_463 = lean_ctor_get(x_262, 0);
lean_inc(x_463);
x_464 = lean_ctor_get(x_262, 1);
lean_inc(x_464);
lean_dec(x_262);
x_465 = lean_box(1);
x_466 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_465);
lean_ctor_set(x_8, 3, x_465);
lean_ctor_set(x_8, 2, x_464);
lean_ctor_set(x_8, 1, x_463);
lean_ctor_set(x_8, 0, x_466);
x_467 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_8);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_467);
return x_7;
}
else
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; 
lean_dec(x_8);
x_468 = lean_ctor_get(x_262, 0);
lean_inc(x_468);
x_469 = lean_ctor_get(x_262, 1);
lean_inc(x_469);
lean_dec(x_262);
x_470 = lean_box(1);
x_471 = lean_unsigned_to_nat(1u);
x_472 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_472, 0, x_471);
lean_ctor_set(x_472, 1, x_468);
lean_ctor_set(x_472, 2, x_469);
lean_ctor_set(x_472, 3, x_470);
lean_ctor_set(x_472, 4, x_470);
x_473 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_254);
lean_ctor_set(x_7, 3, x_472);
lean_ctor_set(x_7, 2, x_252);
lean_ctor_set(x_7, 1, x_251);
lean_ctor_set(x_7, 0, x_473);
return x_7;
}
}
else
{
lean_object* x_474; lean_object* x_475; lean_object* x_476; lean_object* x_477; 
lean_dec(x_252);
lean_dec(x_251);
x_474 = lean_ctor_get(x_262, 0);
lean_inc(x_474);
x_475 = lean_ctor_get(x_262, 1);
lean_inc(x_475);
lean_dec(x_262);
x_476 = lean_box(1);
x_477 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_476);
lean_ctor_set(x_7, 2, x_475);
lean_ctor_set(x_7, 1, x_474);
lean_ctor_set(x_7, 0, x_477);
return x_7;
}
}
}
}
else
{
lean_object* x_478; lean_object* x_479; 
lean_dec(x_7);
x_478 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_246, x_247, x_248, x_249);
x_479 = lean_ctor_get(x_478, 2);
lean_inc(x_479);
if (lean_obj_tag(x_479) == 0)
{
lean_object* x_480; lean_object* x_481; lean_object* x_482; lean_object* x_483; lean_object* x_484; uint8_t x_485; 
x_480 = lean_ctor_get(x_478, 0);
lean_inc(x_480);
x_481 = lean_ctor_get(x_478, 1);
lean_inc(x_481);
lean_dec(x_478);
x_482 = lean_ctor_get(x_479, 0);
lean_inc(x_482);
x_483 = lean_unsigned_to_nat(3u);
x_484 = lean_nat_mul(x_483, x_482);
x_485 = lean_nat_dec_lt(x_484, x_250);
lean_dec(x_484);
if (x_485 == 0)
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; 
lean_dec(x_254);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
x_486 = lean_unsigned_to_nat(1u);
x_487 = lean_nat_add(x_486, x_482);
lean_dec(x_482);
x_488 = lean_nat_add(x_487, x_250);
lean_dec(x_250);
lean_dec(x_487);
x_489 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_489, 0, x_488);
lean_ctor_set(x_489, 1, x_480);
lean_ctor_set(x_489, 2, x_481);
lean_ctor_set(x_489, 3, x_479);
lean_ctor_set(x_489, 4, x_8);
return x_489;
}
else
{
lean_object* x_490; 
if (lean_is_exclusive(x_8)) {
 lean_ctor_release(x_8, 0);
 lean_ctor_release(x_8, 1);
 lean_ctor_release(x_8, 2);
 lean_ctor_release(x_8, 3);
 lean_ctor_release(x_8, 4);
 x_490 = x_8;
} else {
 lean_dec_ref(x_8);
 x_490 = lean_box(0);
}
if (lean_obj_tag(x_253) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_491; lean_object* x_492; lean_object* x_493; lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; uint8_t x_499; 
x_491 = lean_ctor_get(x_253, 0);
lean_inc(x_491);
x_492 = lean_ctor_get(x_253, 1);
lean_inc(x_492);
x_493 = lean_ctor_get(x_253, 2);
lean_inc(x_493);
x_494 = lean_ctor_get(x_253, 3);
lean_inc(x_494);
x_495 = lean_ctor_get(x_253, 4);
lean_inc(x_495);
x_496 = lean_ctor_get(x_254, 0);
lean_inc(x_496);
x_497 = lean_unsigned_to_nat(2u);
x_498 = lean_nat_mul(x_497, x_496);
x_499 = lean_nat_dec_lt(x_491, x_498);
lean_dec(x_498);
if (x_499 == 0)
{
lean_object* x_500; lean_object* x_501; lean_object* x_502; lean_object* x_503; lean_object* x_504; 
lean_dec(x_491);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_500 = x_253;
} else {
 lean_dec_ref(x_253);
 x_500 = lean_box(0);
}
x_501 = lean_unsigned_to_nat(1u);
x_502 = lean_nat_add(x_501, x_482);
lean_dec(x_482);
x_503 = lean_nat_add(x_502, x_250);
lean_dec(x_250);
x_504 = lean_nat_add(x_501, x_496);
lean_dec(x_496);
if (lean_obj_tag(x_494) == 0)
{
lean_object* x_505; lean_object* x_506; lean_object* x_507; lean_object* x_508; 
x_505 = lean_ctor_get(x_494, 0);
lean_inc(x_505);
x_506 = lean_nat_add(x_502, x_505);
lean_dec(x_505);
lean_dec(x_502);
lean_inc(x_479);
if (lean_is_scalar(x_500)) {
 x_507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_507 = x_500;
}
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_480);
lean_ctor_set(x_507, 2, x_481);
lean_ctor_set(x_507, 3, x_479);
lean_ctor_set(x_507, 4, x_494);
if (lean_is_exclusive(x_479)) {
 lean_ctor_release(x_479, 0);
 lean_ctor_release(x_479, 1);
 lean_ctor_release(x_479, 2);
 lean_ctor_release(x_479, 3);
 lean_ctor_release(x_479, 4);
 x_508 = x_479;
} else {
 lean_dec_ref(x_479);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_495) == 0)
{
lean_object* x_509; lean_object* x_510; lean_object* x_511; lean_object* x_512; 
x_509 = lean_ctor_get(x_495, 0);
lean_inc(x_509);
x_510 = lean_nat_add(x_504, x_509);
lean_dec(x_509);
lean_dec(x_504);
if (lean_is_scalar(x_508)) {
 x_511 = lean_alloc_ctor(0, 5, 0);
} else {
 x_511 = x_508;
}
lean_ctor_set(x_511, 0, x_510);
lean_ctor_set(x_511, 1, x_251);
lean_ctor_set(x_511, 2, x_252);
lean_ctor_set(x_511, 3, x_495);
lean_ctor_set(x_511, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_512 = lean_alloc_ctor(0, 5, 0);
} else {
 x_512 = x_490;
}
lean_ctor_set(x_512, 0, x_503);
lean_ctor_set(x_512, 1, x_492);
lean_ctor_set(x_512, 2, x_493);
lean_ctor_set(x_512, 3, x_507);
lean_ctor_set(x_512, 4, x_511);
return x_512;
}
else
{
lean_object* x_513; lean_object* x_514; lean_object* x_515; lean_object* x_516; 
x_513 = lean_unsigned_to_nat(0u);
x_514 = lean_nat_add(x_504, x_513);
lean_dec(x_504);
if (lean_is_scalar(x_508)) {
 x_515 = lean_alloc_ctor(0, 5, 0);
} else {
 x_515 = x_508;
}
lean_ctor_set(x_515, 0, x_514);
lean_ctor_set(x_515, 1, x_251);
lean_ctor_set(x_515, 2, x_252);
lean_ctor_set(x_515, 3, x_495);
lean_ctor_set(x_515, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_516 = lean_alloc_ctor(0, 5, 0);
} else {
 x_516 = x_490;
}
lean_ctor_set(x_516, 0, x_503);
lean_ctor_set(x_516, 1, x_492);
lean_ctor_set(x_516, 2, x_493);
lean_ctor_set(x_516, 3, x_507);
lean_ctor_set(x_516, 4, x_515);
return x_516;
}
}
else
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; 
x_517 = lean_unsigned_to_nat(0u);
x_518 = lean_nat_add(x_502, x_517);
lean_dec(x_502);
lean_inc(x_479);
if (lean_is_scalar(x_500)) {
 x_519 = lean_alloc_ctor(0, 5, 0);
} else {
 x_519 = x_500;
}
lean_ctor_set(x_519, 0, x_518);
lean_ctor_set(x_519, 1, x_480);
lean_ctor_set(x_519, 2, x_481);
lean_ctor_set(x_519, 3, x_479);
lean_ctor_set(x_519, 4, x_494);
if (lean_is_exclusive(x_479)) {
 lean_ctor_release(x_479, 0);
 lean_ctor_release(x_479, 1);
 lean_ctor_release(x_479, 2);
 lean_ctor_release(x_479, 3);
 lean_ctor_release(x_479, 4);
 x_520 = x_479;
} else {
 lean_dec_ref(x_479);
 x_520 = lean_box(0);
}
if (lean_obj_tag(x_495) == 0)
{
lean_object* x_521; lean_object* x_522; lean_object* x_523; lean_object* x_524; 
x_521 = lean_ctor_get(x_495, 0);
lean_inc(x_521);
x_522 = lean_nat_add(x_504, x_521);
lean_dec(x_521);
lean_dec(x_504);
if (lean_is_scalar(x_520)) {
 x_523 = lean_alloc_ctor(0, 5, 0);
} else {
 x_523 = x_520;
}
lean_ctor_set(x_523, 0, x_522);
lean_ctor_set(x_523, 1, x_251);
lean_ctor_set(x_523, 2, x_252);
lean_ctor_set(x_523, 3, x_495);
lean_ctor_set(x_523, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_524 = lean_alloc_ctor(0, 5, 0);
} else {
 x_524 = x_490;
}
lean_ctor_set(x_524, 0, x_503);
lean_ctor_set(x_524, 1, x_492);
lean_ctor_set(x_524, 2, x_493);
lean_ctor_set(x_524, 3, x_519);
lean_ctor_set(x_524, 4, x_523);
return x_524;
}
else
{
lean_object* x_525; lean_object* x_526; lean_object* x_527; 
x_525 = lean_nat_add(x_504, x_517);
lean_dec(x_504);
if (lean_is_scalar(x_520)) {
 x_526 = lean_alloc_ctor(0, 5, 0);
} else {
 x_526 = x_520;
}
lean_ctor_set(x_526, 0, x_525);
lean_ctor_set(x_526, 1, x_251);
lean_ctor_set(x_526, 2, x_252);
lean_ctor_set(x_526, 3, x_495);
lean_ctor_set(x_526, 4, x_254);
if (lean_is_scalar(x_490)) {
 x_527 = lean_alloc_ctor(0, 5, 0);
} else {
 x_527 = x_490;
}
lean_ctor_set(x_527, 0, x_503);
lean_ctor_set(x_527, 1, x_492);
lean_ctor_set(x_527, 2, x_493);
lean_ctor_set(x_527, 3, x_519);
lean_ctor_set(x_527, 4, x_526);
return x_527;
}
}
}
else
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; lean_object* x_532; lean_object* x_533; 
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_493);
lean_dec(x_492);
x_528 = lean_unsigned_to_nat(1u);
x_529 = lean_nat_add(x_528, x_482);
lean_dec(x_482);
x_530 = lean_nat_add(x_529, x_250);
lean_dec(x_250);
x_531 = lean_nat_add(x_529, x_491);
lean_dec(x_491);
lean_dec(x_529);
if (lean_is_scalar(x_490)) {
 x_532 = lean_alloc_ctor(0, 5, 0);
} else {
 x_532 = x_490;
}
lean_ctor_set(x_532, 0, x_531);
lean_ctor_set(x_532, 1, x_480);
lean_ctor_set(x_532, 2, x_481);
lean_ctor_set(x_532, 3, x_479);
lean_ctor_set(x_532, 4, x_253);
x_533 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_533, 0, x_530);
lean_ctor_set(x_533, 1, x_251);
lean_ctor_set(x_533, 2, x_252);
lean_ctor_set(x_533, 3, x_532);
lean_ctor_set(x_533, 4, x_254);
return x_533;
}
}
else
{
lean_object* x_534; lean_object* x_535; 
lean_dec(x_490);
lean_dec(x_482);
lean_dec(x_481);
lean_dec(x_480);
lean_dec(x_479);
lean_dec(x_253);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_534 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_535 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4___rarg(x_534);
return x_535;
}
}
else
{
lean_object* x_536; lean_object* x_537; 
lean_dec(x_490);
lean_dec(x_482);
lean_dec(x_481);
lean_dec(x_480);
lean_dec(x_479);
lean_dec(x_254);
lean_dec(x_252);
lean_dec(x_251);
lean_dec(x_250);
x_536 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_537 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5___rarg(x_536);
return x_537;
}
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_538; 
if (lean_is_exclusive(x_8)) {
 lean_ctor_release(x_8, 0);
 lean_ctor_release(x_8, 1);
 lean_ctor_release(x_8, 2);
 lean_ctor_release(x_8, 3);
 lean_ctor_release(x_8, 4);
 x_538 = x_8;
} else {
 lean_dec_ref(x_8);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; lean_object* x_544; lean_object* x_545; lean_object* x_546; lean_object* x_547; 
x_539 = lean_ctor_get(x_478, 0);
lean_inc(x_539);
x_540 = lean_ctor_get(x_478, 1);
lean_inc(x_540);
lean_dec(x_478);
x_541 = lean_ctor_get(x_253, 0);
lean_inc(x_541);
x_542 = lean_unsigned_to_nat(1u);
x_543 = lean_nat_add(x_542, x_250);
lean_dec(x_250);
x_544 = lean_nat_add(x_542, x_541);
lean_dec(x_541);
x_545 = lean_box(1);
if (lean_is_scalar(x_538)) {
 x_546 = lean_alloc_ctor(0, 5, 0);
} else {
 x_546 = x_538;
}
lean_ctor_set(x_546, 0, x_544);
lean_ctor_set(x_546, 1, x_539);
lean_ctor_set(x_546, 2, x_540);
lean_ctor_set(x_546, 3, x_545);
lean_ctor_set(x_546, 4, x_253);
x_547 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_547, 0, x_543);
lean_ctor_set(x_547, 1, x_251);
lean_ctor_set(x_547, 2, x_252);
lean_ctor_set(x_547, 3, x_546);
lean_ctor_set(x_547, 4, x_254);
return x_547;
}
else
{
lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; lean_object* x_555; lean_object* x_556; lean_object* x_557; lean_object* x_558; 
lean_dec(x_250);
x_548 = lean_ctor_get(x_478, 0);
lean_inc(x_548);
x_549 = lean_ctor_get(x_478, 1);
lean_inc(x_549);
lean_dec(x_478);
x_550 = lean_ctor_get(x_253, 1);
lean_inc(x_550);
x_551 = lean_ctor_get(x_253, 2);
lean_inc(x_551);
if (lean_is_exclusive(x_253)) {
 lean_ctor_release(x_253, 0);
 lean_ctor_release(x_253, 1);
 lean_ctor_release(x_253, 2);
 lean_ctor_release(x_253, 3);
 lean_ctor_release(x_253, 4);
 x_552 = x_253;
} else {
 lean_dec_ref(x_253);
 x_552 = lean_box(0);
}
x_553 = lean_box(1);
x_554 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_552)) {
 x_555 = lean_alloc_ctor(0, 5, 0);
} else {
 x_555 = x_552;
}
lean_ctor_set(x_555, 0, x_554);
lean_ctor_set(x_555, 1, x_548);
lean_ctor_set(x_555, 2, x_549);
lean_ctor_set(x_555, 3, x_553);
lean_ctor_set(x_555, 4, x_553);
if (lean_is_scalar(x_538)) {
 x_556 = lean_alloc_ctor(0, 5, 0);
} else {
 x_556 = x_538;
}
lean_ctor_set(x_556, 0, x_554);
lean_ctor_set(x_556, 1, x_251);
lean_ctor_set(x_556, 2, x_252);
lean_ctor_set(x_556, 3, x_553);
lean_ctor_set(x_556, 4, x_553);
x_557 = lean_unsigned_to_nat(3u);
x_558 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_558, 0, x_557);
lean_ctor_set(x_558, 1, x_550);
lean_ctor_set(x_558, 2, x_551);
lean_ctor_set(x_558, 3, x_555);
lean_ctor_set(x_558, 4, x_556);
return x_558;
}
}
else
{
lean_dec(x_250);
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; lean_object* x_564; lean_object* x_565; lean_object* x_566; 
if (lean_is_exclusive(x_8)) {
 lean_ctor_release(x_8, 0);
 lean_ctor_release(x_8, 1);
 lean_ctor_release(x_8, 2);
 lean_ctor_release(x_8, 3);
 lean_ctor_release(x_8, 4);
 x_559 = x_8;
} else {
 lean_dec_ref(x_8);
 x_559 = lean_box(0);
}
x_560 = lean_ctor_get(x_478, 0);
lean_inc(x_560);
x_561 = lean_ctor_get(x_478, 1);
lean_inc(x_561);
lean_dec(x_478);
x_562 = lean_box(1);
x_563 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_559)) {
 x_564 = lean_alloc_ctor(0, 5, 0);
} else {
 x_564 = x_559;
}
lean_ctor_set(x_564, 0, x_563);
lean_ctor_set(x_564, 1, x_560);
lean_ctor_set(x_564, 2, x_561);
lean_ctor_set(x_564, 3, x_562);
lean_ctor_set(x_564, 4, x_562);
x_565 = lean_unsigned_to_nat(3u);
x_566 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_566, 0, x_565);
lean_ctor_set(x_566, 1, x_251);
lean_ctor_set(x_566, 2, x_252);
lean_ctor_set(x_566, 3, x_564);
lean_ctor_set(x_566, 4, x_254);
return x_566;
}
else
{
lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; 
lean_dec(x_252);
lean_dec(x_251);
x_567 = lean_ctor_get(x_478, 0);
lean_inc(x_567);
x_568 = lean_ctor_get(x_478, 1);
lean_inc(x_568);
lean_dec(x_478);
x_569 = lean_box(1);
x_570 = lean_unsigned_to_nat(2u);
x_571 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_571, 0, x_570);
lean_ctor_set(x_571, 1, x_567);
lean_ctor_set(x_571, 2, x_568);
lean_ctor_set(x_571, 3, x_569);
lean_ctor_set(x_571, 4, x_8);
return x_571;
}
}
}
}
}
else
{
uint8_t x_572; 
lean_dec(x_250);
x_572 = !lean_is_exclusive(x_8);
if (x_572 == 0)
{
lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; 
x_573 = lean_ctor_get(x_8, 4);
lean_dec(x_573);
x_574 = lean_ctor_get(x_8, 3);
lean_dec(x_574);
x_575 = lean_ctor_get(x_8, 2);
lean_dec(x_575);
x_576 = lean_ctor_get(x_8, 1);
lean_dec(x_576);
x_577 = lean_ctor_get(x_8, 0);
lean_dec(x_577);
x_578 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_251, x_252, x_253, x_254);
x_579 = lean_ctor_get(x_578, 2);
lean_inc(x_579);
if (lean_obj_tag(x_579) == 0)
{
lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; uint8_t x_585; 
x_580 = lean_ctor_get(x_578, 0);
lean_inc(x_580);
x_581 = lean_ctor_get(x_578, 1);
lean_inc(x_581);
lean_dec(x_578);
x_582 = lean_ctor_get(x_579, 0);
lean_inc(x_582);
x_583 = lean_unsigned_to_nat(3u);
x_584 = lean_nat_mul(x_583, x_582);
x_585 = lean_nat_dec_lt(x_584, x_245);
lean_dec(x_584);
if (x_585 == 0)
{
lean_object* x_586; lean_object* x_587; lean_object* x_588; 
lean_dec(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
x_586 = lean_unsigned_to_nat(1u);
x_587 = lean_nat_add(x_586, x_245);
lean_dec(x_245);
x_588 = lean_nat_add(x_587, x_582);
lean_dec(x_582);
lean_dec(x_587);
lean_ctor_set(x_8, 4, x_579);
lean_ctor_set(x_8, 3, x_7);
lean_ctor_set(x_8, 2, x_581);
lean_ctor_set(x_8, 1, x_580);
lean_ctor_set(x_8, 0, x_588);
return x_8;
}
else
{
uint8_t x_589; 
x_589 = !lean_is_exclusive(x_7);
if (x_589 == 0)
{
lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; 
x_590 = lean_ctor_get(x_7, 4);
lean_dec(x_590);
x_591 = lean_ctor_get(x_7, 3);
lean_dec(x_591);
x_592 = lean_ctor_get(x_7, 2);
lean_dec(x_592);
x_593 = lean_ctor_get(x_7, 1);
lean_dec(x_593);
x_594 = lean_ctor_get(x_7, 0);
lean_dec(x_594);
if (lean_obj_tag(x_248) == 0)
{
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_595; lean_object* x_596; lean_object* x_597; lean_object* x_598; lean_object* x_599; lean_object* x_600; lean_object* x_601; lean_object* x_602; uint8_t x_603; 
x_595 = lean_ctor_get(x_248, 0);
lean_inc(x_595);
x_596 = lean_ctor_get(x_249, 0);
lean_inc(x_596);
x_597 = lean_ctor_get(x_249, 1);
lean_inc(x_597);
x_598 = lean_ctor_get(x_249, 2);
lean_inc(x_598);
x_599 = lean_ctor_get(x_249, 3);
lean_inc(x_599);
x_600 = lean_ctor_get(x_249, 4);
lean_inc(x_600);
x_601 = lean_unsigned_to_nat(2u);
x_602 = lean_nat_mul(x_601, x_595);
x_603 = lean_nat_dec_lt(x_596, x_602);
lean_dec(x_602);
if (x_603 == 0)
{
uint8_t x_604; 
lean_dec(x_596);
lean_free_object(x_7);
lean_free_object(x_8);
x_604 = !lean_is_exclusive(x_249);
if (x_604 == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; lean_object* x_614; 
x_605 = lean_ctor_get(x_249, 4);
lean_dec(x_605);
x_606 = lean_ctor_get(x_249, 3);
lean_dec(x_606);
x_607 = lean_ctor_get(x_249, 2);
lean_dec(x_607);
x_608 = lean_ctor_get(x_249, 1);
lean_dec(x_608);
x_609 = lean_ctor_get(x_249, 0);
lean_dec(x_609);
x_610 = lean_unsigned_to_nat(1u);
x_611 = lean_nat_add(x_610, x_245);
lean_dec(x_245);
x_612 = lean_nat_add(x_611, x_582);
lean_dec(x_611);
x_613 = lean_nat_add(x_610, x_595);
lean_dec(x_595);
x_614 = lean_nat_add(x_610, x_582);
lean_dec(x_582);
if (lean_obj_tag(x_599) == 0)
{
lean_object* x_615; lean_object* x_616; uint8_t x_617; 
x_615 = lean_ctor_get(x_599, 0);
lean_inc(x_615);
x_616 = lean_nat_add(x_613, x_615);
lean_dec(x_615);
lean_dec(x_613);
lean_inc(x_248);
lean_ctor_set(x_249, 4, x_599);
lean_ctor_set(x_249, 3, x_248);
lean_ctor_set(x_249, 2, x_247);
lean_ctor_set(x_249, 1, x_246);
lean_ctor_set(x_249, 0, x_616);
x_617 = !lean_is_exclusive(x_248);
if (x_617 == 0)
{
lean_object* x_618; lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; 
x_618 = lean_ctor_get(x_248, 4);
lean_dec(x_618);
x_619 = lean_ctor_get(x_248, 3);
lean_dec(x_619);
x_620 = lean_ctor_get(x_248, 2);
lean_dec(x_620);
x_621 = lean_ctor_get(x_248, 1);
lean_dec(x_621);
x_622 = lean_ctor_get(x_248, 0);
lean_dec(x_622);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_623; lean_object* x_624; uint8_t x_625; 
x_623 = lean_ctor_get(x_600, 0);
lean_inc(x_623);
x_624 = lean_nat_add(x_614, x_623);
lean_dec(x_623);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_624);
x_625 = !lean_is_exclusive(x_579);
if (x_625 == 0)
{
lean_object* x_626; lean_object* x_627; lean_object* x_628; lean_object* x_629; lean_object* x_630; 
x_626 = lean_ctor_get(x_579, 4);
lean_dec(x_626);
x_627 = lean_ctor_get(x_579, 3);
lean_dec(x_627);
x_628 = lean_ctor_get(x_579, 2);
lean_dec(x_628);
x_629 = lean_ctor_get(x_579, 1);
lean_dec(x_629);
x_630 = lean_ctor_get(x_579, 0);
lean_dec(x_630);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_631; 
lean_dec(x_579);
x_631 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_631, 0, x_612);
lean_ctor_set(x_631, 1, x_597);
lean_ctor_set(x_631, 2, x_598);
lean_ctor_set(x_631, 3, x_249);
lean_ctor_set(x_631, 4, x_248);
return x_631;
}
}
else
{
lean_object* x_632; lean_object* x_633; uint8_t x_634; 
x_632 = lean_unsigned_to_nat(0u);
x_633 = lean_nat_add(x_614, x_632);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_633);
x_634 = !lean_is_exclusive(x_579);
if (x_634 == 0)
{
lean_object* x_635; lean_object* x_636; lean_object* x_637; lean_object* x_638; lean_object* x_639; 
x_635 = lean_ctor_get(x_579, 4);
lean_dec(x_635);
x_636 = lean_ctor_get(x_579, 3);
lean_dec(x_636);
x_637 = lean_ctor_get(x_579, 2);
lean_dec(x_637);
x_638 = lean_ctor_get(x_579, 1);
lean_dec(x_638);
x_639 = lean_ctor_get(x_579, 0);
lean_dec(x_639);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_640; 
lean_dec(x_579);
x_640 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_640, 0, x_612);
lean_ctor_set(x_640, 1, x_597);
lean_ctor_set(x_640, 2, x_598);
lean_ctor_set(x_640, 3, x_249);
lean_ctor_set(x_640, 4, x_248);
return x_640;
}
}
}
else
{
lean_dec(x_248);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; 
x_641 = lean_ctor_get(x_600, 0);
lean_inc(x_641);
x_642 = lean_nat_add(x_614, x_641);
lean_dec(x_641);
lean_dec(x_614);
lean_inc(x_579);
x_643 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_580);
lean_ctor_set(x_643, 2, x_581);
lean_ctor_set(x_643, 3, x_600);
lean_ctor_set(x_643, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_644 = x_579;
} else {
 lean_dec_ref(x_579);
 x_644 = lean_box(0);
}
if (lean_is_scalar(x_644)) {
 x_645 = lean_alloc_ctor(0, 5, 0);
} else {
 x_645 = x_644;
}
lean_ctor_set(x_645, 0, x_612);
lean_ctor_set(x_645, 1, x_597);
lean_ctor_set(x_645, 2, x_598);
lean_ctor_set(x_645, 3, x_249);
lean_ctor_set(x_645, 4, x_643);
return x_645;
}
else
{
lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; lean_object* x_650; 
x_646 = lean_unsigned_to_nat(0u);
x_647 = lean_nat_add(x_614, x_646);
lean_dec(x_614);
lean_inc(x_579);
x_648 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_648, 0, x_647);
lean_ctor_set(x_648, 1, x_580);
lean_ctor_set(x_648, 2, x_581);
lean_ctor_set(x_648, 3, x_600);
lean_ctor_set(x_648, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_649 = x_579;
} else {
 lean_dec_ref(x_579);
 x_649 = lean_box(0);
}
if (lean_is_scalar(x_649)) {
 x_650 = lean_alloc_ctor(0, 5, 0);
} else {
 x_650 = x_649;
}
lean_ctor_set(x_650, 0, x_612);
lean_ctor_set(x_650, 1, x_597);
lean_ctor_set(x_650, 2, x_598);
lean_ctor_set(x_650, 3, x_249);
lean_ctor_set(x_650, 4, x_648);
return x_650;
}
}
}
else
{
lean_object* x_651; lean_object* x_652; uint8_t x_653; 
x_651 = lean_unsigned_to_nat(0u);
x_652 = lean_nat_add(x_613, x_651);
lean_dec(x_613);
lean_inc(x_248);
lean_ctor_set(x_249, 4, x_599);
lean_ctor_set(x_249, 3, x_248);
lean_ctor_set(x_249, 2, x_247);
lean_ctor_set(x_249, 1, x_246);
lean_ctor_set(x_249, 0, x_652);
x_653 = !lean_is_exclusive(x_248);
if (x_653 == 0)
{
lean_object* x_654; lean_object* x_655; lean_object* x_656; lean_object* x_657; lean_object* x_658; 
x_654 = lean_ctor_get(x_248, 4);
lean_dec(x_654);
x_655 = lean_ctor_get(x_248, 3);
lean_dec(x_655);
x_656 = lean_ctor_get(x_248, 2);
lean_dec(x_656);
x_657 = lean_ctor_get(x_248, 1);
lean_dec(x_657);
x_658 = lean_ctor_get(x_248, 0);
lean_dec(x_658);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_659; lean_object* x_660; uint8_t x_661; 
x_659 = lean_ctor_get(x_600, 0);
lean_inc(x_659);
x_660 = lean_nat_add(x_614, x_659);
lean_dec(x_659);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_660);
x_661 = !lean_is_exclusive(x_579);
if (x_661 == 0)
{
lean_object* x_662; lean_object* x_663; lean_object* x_664; lean_object* x_665; lean_object* x_666; 
x_662 = lean_ctor_get(x_579, 4);
lean_dec(x_662);
x_663 = lean_ctor_get(x_579, 3);
lean_dec(x_663);
x_664 = lean_ctor_get(x_579, 2);
lean_dec(x_664);
x_665 = lean_ctor_get(x_579, 1);
lean_dec(x_665);
x_666 = lean_ctor_get(x_579, 0);
lean_dec(x_666);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_667; 
lean_dec(x_579);
x_667 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_667, 0, x_612);
lean_ctor_set(x_667, 1, x_597);
lean_ctor_set(x_667, 2, x_598);
lean_ctor_set(x_667, 3, x_249);
lean_ctor_set(x_667, 4, x_248);
return x_667;
}
}
else
{
lean_object* x_668; uint8_t x_669; 
x_668 = lean_nat_add(x_614, x_651);
lean_dec(x_614);
lean_inc(x_579);
lean_ctor_set(x_248, 4, x_579);
lean_ctor_set(x_248, 3, x_600);
lean_ctor_set(x_248, 2, x_581);
lean_ctor_set(x_248, 1, x_580);
lean_ctor_set(x_248, 0, x_668);
x_669 = !lean_is_exclusive(x_579);
if (x_669 == 0)
{
lean_object* x_670; lean_object* x_671; lean_object* x_672; lean_object* x_673; lean_object* x_674; 
x_670 = lean_ctor_get(x_579, 4);
lean_dec(x_670);
x_671 = lean_ctor_get(x_579, 3);
lean_dec(x_671);
x_672 = lean_ctor_get(x_579, 2);
lean_dec(x_672);
x_673 = lean_ctor_get(x_579, 1);
lean_dec(x_673);
x_674 = lean_ctor_get(x_579, 0);
lean_dec(x_674);
lean_ctor_set(x_579, 4, x_248);
lean_ctor_set(x_579, 3, x_249);
lean_ctor_set(x_579, 2, x_598);
lean_ctor_set(x_579, 1, x_597);
lean_ctor_set(x_579, 0, x_612);
return x_579;
}
else
{
lean_object* x_675; 
lean_dec(x_579);
x_675 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_675, 0, x_612);
lean_ctor_set(x_675, 1, x_597);
lean_ctor_set(x_675, 2, x_598);
lean_ctor_set(x_675, 3, x_249);
lean_ctor_set(x_675, 4, x_248);
return x_675;
}
}
}
else
{
lean_dec(x_248);
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; 
x_676 = lean_ctor_get(x_600, 0);
lean_inc(x_676);
x_677 = lean_nat_add(x_614, x_676);
lean_dec(x_676);
lean_dec(x_614);
lean_inc(x_579);
x_678 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_678, 0, x_677);
lean_ctor_set(x_678, 1, x_580);
lean_ctor_set(x_678, 2, x_581);
lean_ctor_set(x_678, 3, x_600);
lean_ctor_set(x_678, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_679 = x_579;
} else {
 lean_dec_ref(x_579);
 x_679 = lean_box(0);
}
if (lean_is_scalar(x_679)) {
 x_680 = lean_alloc_ctor(0, 5, 0);
} else {
 x_680 = x_679;
}
lean_ctor_set(x_680, 0, x_612);
lean_ctor_set(x_680, 1, x_597);
lean_ctor_set(x_680, 2, x_598);
lean_ctor_set(x_680, 3, x_249);
lean_ctor_set(x_680, 4, x_678);
return x_680;
}
else
{
lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_681 = lean_nat_add(x_614, x_651);
lean_dec(x_614);
lean_inc(x_579);
x_682 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_682, 0, x_681);
lean_ctor_set(x_682, 1, x_580);
lean_ctor_set(x_682, 2, x_581);
lean_ctor_set(x_682, 3, x_600);
lean_ctor_set(x_682, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_683 = x_579;
} else {
 lean_dec_ref(x_579);
 x_683 = lean_box(0);
}
if (lean_is_scalar(x_683)) {
 x_684 = lean_alloc_ctor(0, 5, 0);
} else {
 x_684 = x_683;
}
lean_ctor_set(x_684, 0, x_612);
lean_ctor_set(x_684, 1, x_597);
lean_ctor_set(x_684, 2, x_598);
lean_ctor_set(x_684, 3, x_249);
lean_ctor_set(x_684, 4, x_682);
return x_684;
}
}
}
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; 
lean_dec(x_249);
x_685 = lean_unsigned_to_nat(1u);
x_686 = lean_nat_add(x_685, x_245);
lean_dec(x_245);
x_687 = lean_nat_add(x_686, x_582);
lean_dec(x_686);
x_688 = lean_nat_add(x_685, x_595);
lean_dec(x_595);
x_689 = lean_nat_add(x_685, x_582);
lean_dec(x_582);
if (lean_obj_tag(x_599) == 0)
{
lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; 
x_690 = lean_ctor_get(x_599, 0);
lean_inc(x_690);
x_691 = lean_nat_add(x_688, x_690);
lean_dec(x_690);
lean_dec(x_688);
lean_inc(x_248);
x_692 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_692, 0, x_691);
lean_ctor_set(x_692, 1, x_246);
lean_ctor_set(x_692, 2, x_247);
lean_ctor_set(x_692, 3, x_248);
lean_ctor_set(x_692, 4, x_599);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_693 = x_248;
} else {
 lean_dec_ref(x_248);
 x_693 = lean_box(0);
}
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; lean_object* x_698; 
x_694 = lean_ctor_get(x_600, 0);
lean_inc(x_694);
x_695 = lean_nat_add(x_689, x_694);
lean_dec(x_694);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_693)) {
 x_696 = lean_alloc_ctor(0, 5, 0);
} else {
 x_696 = x_693;
}
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_580);
lean_ctor_set(x_696, 2, x_581);
lean_ctor_set(x_696, 3, x_600);
lean_ctor_set(x_696, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_697 = x_579;
} else {
 lean_dec_ref(x_579);
 x_697 = lean_box(0);
}
if (lean_is_scalar(x_697)) {
 x_698 = lean_alloc_ctor(0, 5, 0);
} else {
 x_698 = x_697;
}
lean_ctor_set(x_698, 0, x_687);
lean_ctor_set(x_698, 1, x_597);
lean_ctor_set(x_698, 2, x_598);
lean_ctor_set(x_698, 3, x_692);
lean_ctor_set(x_698, 4, x_696);
return x_698;
}
else
{
lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; 
x_699 = lean_unsigned_to_nat(0u);
x_700 = lean_nat_add(x_689, x_699);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_693)) {
 x_701 = lean_alloc_ctor(0, 5, 0);
} else {
 x_701 = x_693;
}
lean_ctor_set(x_701, 0, x_700);
lean_ctor_set(x_701, 1, x_580);
lean_ctor_set(x_701, 2, x_581);
lean_ctor_set(x_701, 3, x_600);
lean_ctor_set(x_701, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_702 = x_579;
} else {
 lean_dec_ref(x_579);
 x_702 = lean_box(0);
}
if (lean_is_scalar(x_702)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_702;
}
lean_ctor_set(x_703, 0, x_687);
lean_ctor_set(x_703, 1, x_597);
lean_ctor_set(x_703, 2, x_598);
lean_ctor_set(x_703, 3, x_692);
lean_ctor_set(x_703, 4, x_701);
return x_703;
}
}
else
{
lean_object* x_704; lean_object* x_705; lean_object* x_706; lean_object* x_707; 
x_704 = lean_unsigned_to_nat(0u);
x_705 = lean_nat_add(x_688, x_704);
lean_dec(x_688);
lean_inc(x_248);
x_706 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_706, 0, x_705);
lean_ctor_set(x_706, 1, x_246);
lean_ctor_set(x_706, 2, x_247);
lean_ctor_set(x_706, 3, x_248);
lean_ctor_set(x_706, 4, x_599);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_707 = x_248;
} else {
 lean_dec_ref(x_248);
 x_707 = lean_box(0);
}
if (lean_obj_tag(x_600) == 0)
{
lean_object* x_708; lean_object* x_709; lean_object* x_710; lean_object* x_711; lean_object* x_712; 
x_708 = lean_ctor_get(x_600, 0);
lean_inc(x_708);
x_709 = lean_nat_add(x_689, x_708);
lean_dec(x_708);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_707)) {
 x_710 = lean_alloc_ctor(0, 5, 0);
} else {
 x_710 = x_707;
}
lean_ctor_set(x_710, 0, x_709);
lean_ctor_set(x_710, 1, x_580);
lean_ctor_set(x_710, 2, x_581);
lean_ctor_set(x_710, 3, x_600);
lean_ctor_set(x_710, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_711 = x_579;
} else {
 lean_dec_ref(x_579);
 x_711 = lean_box(0);
}
if (lean_is_scalar(x_711)) {
 x_712 = lean_alloc_ctor(0, 5, 0);
} else {
 x_712 = x_711;
}
lean_ctor_set(x_712, 0, x_687);
lean_ctor_set(x_712, 1, x_597);
lean_ctor_set(x_712, 2, x_598);
lean_ctor_set(x_712, 3, x_706);
lean_ctor_set(x_712, 4, x_710);
return x_712;
}
else
{
lean_object* x_713; lean_object* x_714; lean_object* x_715; lean_object* x_716; 
x_713 = lean_nat_add(x_689, x_704);
lean_dec(x_689);
lean_inc(x_579);
if (lean_is_scalar(x_707)) {
 x_714 = lean_alloc_ctor(0, 5, 0);
} else {
 x_714 = x_707;
}
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_580);
lean_ctor_set(x_714, 2, x_581);
lean_ctor_set(x_714, 3, x_600);
lean_ctor_set(x_714, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_715 = x_579;
} else {
 lean_dec_ref(x_579);
 x_715 = lean_box(0);
}
if (lean_is_scalar(x_715)) {
 x_716 = lean_alloc_ctor(0, 5, 0);
} else {
 x_716 = x_715;
}
lean_ctor_set(x_716, 0, x_687);
lean_ctor_set(x_716, 1, x_597);
lean_ctor_set(x_716, 2, x_598);
lean_ctor_set(x_716, 3, x_706);
lean_ctor_set(x_716, 4, x_714);
return x_716;
}
}
}
}
else
{
lean_object* x_717; lean_object* x_718; lean_object* x_719; lean_object* x_720; lean_object* x_721; 
lean_dec(x_600);
lean_dec(x_599);
lean_dec(x_598);
lean_dec(x_597);
lean_dec(x_595);
x_717 = lean_unsigned_to_nat(1u);
x_718 = lean_nat_add(x_717, x_245);
lean_dec(x_245);
x_719 = lean_nat_add(x_718, x_582);
lean_dec(x_718);
x_720 = lean_nat_add(x_717, x_582);
lean_dec(x_582);
x_721 = lean_nat_add(x_720, x_596);
lean_dec(x_596);
lean_dec(x_720);
lean_ctor_set(x_8, 4, x_579);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_581);
lean_ctor_set(x_8, 1, x_580);
lean_ctor_set(x_8, 0, x_721);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 0, x_719);
return x_7;
}
}
else
{
lean_object* x_722; lean_object* x_723; 
lean_free_object(x_7);
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_722 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_723 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6___rarg(x_722);
return x_723;
}
}
else
{
lean_object* x_724; lean_object* x_725; 
lean_free_object(x_7);
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_249);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_724 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_725 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7___rarg(x_724);
return x_725;
}
}
else
{
lean_dec(x_7);
if (lean_obj_tag(x_248) == 0)
{
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_726; lean_object* x_727; lean_object* x_728; lean_object* x_729; lean_object* x_730; lean_object* x_731; lean_object* x_732; lean_object* x_733; uint8_t x_734; 
x_726 = lean_ctor_get(x_248, 0);
lean_inc(x_726);
x_727 = lean_ctor_get(x_249, 0);
lean_inc(x_727);
x_728 = lean_ctor_get(x_249, 1);
lean_inc(x_728);
x_729 = lean_ctor_get(x_249, 2);
lean_inc(x_729);
x_730 = lean_ctor_get(x_249, 3);
lean_inc(x_730);
x_731 = lean_ctor_get(x_249, 4);
lean_inc(x_731);
x_732 = lean_unsigned_to_nat(2u);
x_733 = lean_nat_mul(x_732, x_726);
x_734 = lean_nat_dec_lt(x_727, x_733);
lean_dec(x_733);
if (x_734 == 0)
{
lean_object* x_735; lean_object* x_736; lean_object* x_737; lean_object* x_738; lean_object* x_739; lean_object* x_740; 
lean_dec(x_727);
lean_free_object(x_8);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_735 = x_249;
} else {
 lean_dec_ref(x_249);
 x_735 = lean_box(0);
}
x_736 = lean_unsigned_to_nat(1u);
x_737 = lean_nat_add(x_736, x_245);
lean_dec(x_245);
x_738 = lean_nat_add(x_737, x_582);
lean_dec(x_737);
x_739 = lean_nat_add(x_736, x_726);
lean_dec(x_726);
x_740 = lean_nat_add(x_736, x_582);
lean_dec(x_582);
if (lean_obj_tag(x_730) == 0)
{
lean_object* x_741; lean_object* x_742; lean_object* x_743; lean_object* x_744; 
x_741 = lean_ctor_get(x_730, 0);
lean_inc(x_741);
x_742 = lean_nat_add(x_739, x_741);
lean_dec(x_741);
lean_dec(x_739);
lean_inc(x_248);
if (lean_is_scalar(x_735)) {
 x_743 = lean_alloc_ctor(0, 5, 0);
} else {
 x_743 = x_735;
}
lean_ctor_set(x_743, 0, x_742);
lean_ctor_set(x_743, 1, x_246);
lean_ctor_set(x_743, 2, x_247);
lean_ctor_set(x_743, 3, x_248);
lean_ctor_set(x_743, 4, x_730);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_744 = x_248;
} else {
 lean_dec_ref(x_248);
 x_744 = lean_box(0);
}
if (lean_obj_tag(x_731) == 0)
{
lean_object* x_745; lean_object* x_746; lean_object* x_747; lean_object* x_748; lean_object* x_749; 
x_745 = lean_ctor_get(x_731, 0);
lean_inc(x_745);
x_746 = lean_nat_add(x_740, x_745);
lean_dec(x_745);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_744)) {
 x_747 = lean_alloc_ctor(0, 5, 0);
} else {
 x_747 = x_744;
}
lean_ctor_set(x_747, 0, x_746);
lean_ctor_set(x_747, 1, x_580);
lean_ctor_set(x_747, 2, x_581);
lean_ctor_set(x_747, 3, x_731);
lean_ctor_set(x_747, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_748 = x_579;
} else {
 lean_dec_ref(x_579);
 x_748 = lean_box(0);
}
if (lean_is_scalar(x_748)) {
 x_749 = lean_alloc_ctor(0, 5, 0);
} else {
 x_749 = x_748;
}
lean_ctor_set(x_749, 0, x_738);
lean_ctor_set(x_749, 1, x_728);
lean_ctor_set(x_749, 2, x_729);
lean_ctor_set(x_749, 3, x_743);
lean_ctor_set(x_749, 4, x_747);
return x_749;
}
else
{
lean_object* x_750; lean_object* x_751; lean_object* x_752; lean_object* x_753; lean_object* x_754; 
x_750 = lean_unsigned_to_nat(0u);
x_751 = lean_nat_add(x_740, x_750);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_744)) {
 x_752 = lean_alloc_ctor(0, 5, 0);
} else {
 x_752 = x_744;
}
lean_ctor_set(x_752, 0, x_751);
lean_ctor_set(x_752, 1, x_580);
lean_ctor_set(x_752, 2, x_581);
lean_ctor_set(x_752, 3, x_731);
lean_ctor_set(x_752, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_753 = x_579;
} else {
 lean_dec_ref(x_579);
 x_753 = lean_box(0);
}
if (lean_is_scalar(x_753)) {
 x_754 = lean_alloc_ctor(0, 5, 0);
} else {
 x_754 = x_753;
}
lean_ctor_set(x_754, 0, x_738);
lean_ctor_set(x_754, 1, x_728);
lean_ctor_set(x_754, 2, x_729);
lean_ctor_set(x_754, 3, x_743);
lean_ctor_set(x_754, 4, x_752);
return x_754;
}
}
else
{
lean_object* x_755; lean_object* x_756; lean_object* x_757; lean_object* x_758; 
x_755 = lean_unsigned_to_nat(0u);
x_756 = lean_nat_add(x_739, x_755);
lean_dec(x_739);
lean_inc(x_248);
if (lean_is_scalar(x_735)) {
 x_757 = lean_alloc_ctor(0, 5, 0);
} else {
 x_757 = x_735;
}
lean_ctor_set(x_757, 0, x_756);
lean_ctor_set(x_757, 1, x_246);
lean_ctor_set(x_757, 2, x_247);
lean_ctor_set(x_757, 3, x_248);
lean_ctor_set(x_757, 4, x_730);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_758 = x_248;
} else {
 lean_dec_ref(x_248);
 x_758 = lean_box(0);
}
if (lean_obj_tag(x_731) == 0)
{
lean_object* x_759; lean_object* x_760; lean_object* x_761; lean_object* x_762; lean_object* x_763; 
x_759 = lean_ctor_get(x_731, 0);
lean_inc(x_759);
x_760 = lean_nat_add(x_740, x_759);
lean_dec(x_759);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_758)) {
 x_761 = lean_alloc_ctor(0, 5, 0);
} else {
 x_761 = x_758;
}
lean_ctor_set(x_761, 0, x_760);
lean_ctor_set(x_761, 1, x_580);
lean_ctor_set(x_761, 2, x_581);
lean_ctor_set(x_761, 3, x_731);
lean_ctor_set(x_761, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_762 = x_579;
} else {
 lean_dec_ref(x_579);
 x_762 = lean_box(0);
}
if (lean_is_scalar(x_762)) {
 x_763 = lean_alloc_ctor(0, 5, 0);
} else {
 x_763 = x_762;
}
lean_ctor_set(x_763, 0, x_738);
lean_ctor_set(x_763, 1, x_728);
lean_ctor_set(x_763, 2, x_729);
lean_ctor_set(x_763, 3, x_757);
lean_ctor_set(x_763, 4, x_761);
return x_763;
}
else
{
lean_object* x_764; lean_object* x_765; lean_object* x_766; lean_object* x_767; 
x_764 = lean_nat_add(x_740, x_755);
lean_dec(x_740);
lean_inc(x_579);
if (lean_is_scalar(x_758)) {
 x_765 = lean_alloc_ctor(0, 5, 0);
} else {
 x_765 = x_758;
}
lean_ctor_set(x_765, 0, x_764);
lean_ctor_set(x_765, 1, x_580);
lean_ctor_set(x_765, 2, x_581);
lean_ctor_set(x_765, 3, x_731);
lean_ctor_set(x_765, 4, x_579);
if (lean_is_exclusive(x_579)) {
 lean_ctor_release(x_579, 0);
 lean_ctor_release(x_579, 1);
 lean_ctor_release(x_579, 2);
 lean_ctor_release(x_579, 3);
 lean_ctor_release(x_579, 4);
 x_766 = x_579;
} else {
 lean_dec_ref(x_579);
 x_766 = lean_box(0);
}
if (lean_is_scalar(x_766)) {
 x_767 = lean_alloc_ctor(0, 5, 0);
} else {
 x_767 = x_766;
}
lean_ctor_set(x_767, 0, x_738);
lean_ctor_set(x_767, 1, x_728);
lean_ctor_set(x_767, 2, x_729);
lean_ctor_set(x_767, 3, x_757);
lean_ctor_set(x_767, 4, x_765);
return x_767;
}
}
}
else
{
lean_object* x_768; lean_object* x_769; lean_object* x_770; lean_object* x_771; lean_object* x_772; lean_object* x_773; 
lean_dec(x_731);
lean_dec(x_730);
lean_dec(x_729);
lean_dec(x_728);
lean_dec(x_726);
x_768 = lean_unsigned_to_nat(1u);
x_769 = lean_nat_add(x_768, x_245);
lean_dec(x_245);
x_770 = lean_nat_add(x_769, x_582);
lean_dec(x_769);
x_771 = lean_nat_add(x_768, x_582);
lean_dec(x_582);
x_772 = lean_nat_add(x_771, x_727);
lean_dec(x_727);
lean_dec(x_771);
lean_ctor_set(x_8, 4, x_579);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_581);
lean_ctor_set(x_8, 1, x_580);
lean_ctor_set(x_8, 0, x_772);
x_773 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_773, 0, x_770);
lean_ctor_set(x_773, 1, x_246);
lean_ctor_set(x_773, 2, x_247);
lean_ctor_set(x_773, 3, x_248);
lean_ctor_set(x_773, 4, x_8);
return x_773;
}
}
else
{
lean_object* x_774; lean_object* x_775; 
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_774 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_775 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6___rarg(x_774);
return x_775;
}
}
else
{
lean_object* x_776; lean_object* x_777; 
lean_dec(x_582);
lean_dec(x_581);
lean_dec(x_580);
lean_dec(x_579);
lean_free_object(x_8);
lean_dec(x_249);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_776 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_777 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7___rarg(x_776);
return x_777;
}
}
}
}
else
{
if (lean_obj_tag(x_248) == 0)
{
uint8_t x_778; 
x_778 = !lean_is_exclusive(x_7);
if (x_778 == 0)
{
lean_object* x_779; lean_object* x_780; lean_object* x_781; lean_object* x_782; lean_object* x_783; 
x_779 = lean_ctor_get(x_7, 4);
lean_dec(x_779);
x_780 = lean_ctor_get(x_7, 3);
lean_dec(x_780);
x_781 = lean_ctor_get(x_7, 2);
lean_dec(x_781);
x_782 = lean_ctor_get(x_7, 1);
lean_dec(x_782);
x_783 = lean_ctor_get(x_7, 0);
lean_dec(x_783);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_784; lean_object* x_785; lean_object* x_786; lean_object* x_787; lean_object* x_788; lean_object* x_789; lean_object* x_790; 
x_784 = lean_ctor_get(x_578, 0);
lean_inc(x_784);
x_785 = lean_ctor_get(x_578, 1);
lean_inc(x_785);
lean_dec(x_578);
x_786 = lean_ctor_get(x_249, 0);
lean_inc(x_786);
x_787 = lean_unsigned_to_nat(1u);
x_788 = lean_nat_add(x_787, x_245);
lean_dec(x_245);
x_789 = lean_nat_add(x_787, x_786);
lean_dec(x_786);
x_790 = lean_box(1);
lean_ctor_set(x_8, 4, x_790);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_785);
lean_ctor_set(x_8, 1, x_784);
lean_ctor_set(x_8, 0, x_789);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 0, x_788);
return x_7;
}
else
{
lean_object* x_791; lean_object* x_792; lean_object* x_793; lean_object* x_794; lean_object* x_795; 
lean_dec(x_245);
x_791 = lean_ctor_get(x_578, 0);
lean_inc(x_791);
x_792 = lean_ctor_get(x_578, 1);
lean_inc(x_792);
lean_dec(x_578);
x_793 = lean_box(1);
x_794 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_793);
lean_ctor_set(x_8, 3, x_793);
lean_ctor_set(x_8, 2, x_792);
lean_ctor_set(x_8, 1, x_791);
lean_ctor_set(x_8, 0, x_794);
x_795 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 0, x_795);
return x_7;
}
}
else
{
lean_dec(x_7);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_796; lean_object* x_797; lean_object* x_798; lean_object* x_799; lean_object* x_800; lean_object* x_801; lean_object* x_802; lean_object* x_803; 
x_796 = lean_ctor_get(x_578, 0);
lean_inc(x_796);
x_797 = lean_ctor_get(x_578, 1);
lean_inc(x_797);
lean_dec(x_578);
x_798 = lean_ctor_get(x_249, 0);
lean_inc(x_798);
x_799 = lean_unsigned_to_nat(1u);
x_800 = lean_nat_add(x_799, x_245);
lean_dec(x_245);
x_801 = lean_nat_add(x_799, x_798);
lean_dec(x_798);
x_802 = lean_box(1);
lean_ctor_set(x_8, 4, x_802);
lean_ctor_set(x_8, 3, x_249);
lean_ctor_set(x_8, 2, x_797);
lean_ctor_set(x_8, 1, x_796);
lean_ctor_set(x_8, 0, x_801);
x_803 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_803, 0, x_800);
lean_ctor_set(x_803, 1, x_246);
lean_ctor_set(x_803, 2, x_247);
lean_ctor_set(x_803, 3, x_248);
lean_ctor_set(x_803, 4, x_8);
return x_803;
}
else
{
lean_object* x_804; lean_object* x_805; lean_object* x_806; lean_object* x_807; lean_object* x_808; lean_object* x_809; 
lean_dec(x_245);
x_804 = lean_ctor_get(x_578, 0);
lean_inc(x_804);
x_805 = lean_ctor_get(x_578, 1);
lean_inc(x_805);
lean_dec(x_578);
x_806 = lean_box(1);
x_807 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_8, 4, x_806);
lean_ctor_set(x_8, 3, x_806);
lean_ctor_set(x_8, 2, x_805);
lean_ctor_set(x_8, 1, x_804);
lean_ctor_set(x_8, 0, x_807);
x_808 = lean_unsigned_to_nat(3u);
x_809 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_809, 0, x_808);
lean_ctor_set(x_809, 1, x_246);
lean_ctor_set(x_809, 2, x_247);
lean_ctor_set(x_809, 3, x_248);
lean_ctor_set(x_809, 4, x_8);
return x_809;
}
}
}
else
{
lean_dec(x_245);
if (lean_obj_tag(x_249) == 0)
{
uint8_t x_810; 
x_810 = !lean_is_exclusive(x_7);
if (x_810 == 0)
{
lean_object* x_811; lean_object* x_812; lean_object* x_813; lean_object* x_814; lean_object* x_815; lean_object* x_816; lean_object* x_817; uint8_t x_818; 
x_811 = lean_ctor_get(x_7, 4);
lean_dec(x_811);
x_812 = lean_ctor_get(x_7, 3);
lean_dec(x_812);
x_813 = lean_ctor_get(x_7, 2);
lean_dec(x_813);
x_814 = lean_ctor_get(x_7, 1);
lean_dec(x_814);
x_815 = lean_ctor_get(x_7, 0);
lean_dec(x_815);
x_816 = lean_ctor_get(x_578, 0);
lean_inc(x_816);
x_817 = lean_ctor_get(x_578, 1);
lean_inc(x_817);
lean_dec(x_578);
x_818 = !lean_is_exclusive(x_249);
if (x_818 == 0)
{
lean_object* x_819; lean_object* x_820; lean_object* x_821; lean_object* x_822; lean_object* x_823; lean_object* x_824; lean_object* x_825; lean_object* x_826; 
x_819 = lean_ctor_get(x_249, 1);
x_820 = lean_ctor_get(x_249, 2);
x_821 = lean_ctor_get(x_249, 4);
lean_dec(x_821);
x_822 = lean_ctor_get(x_249, 3);
lean_dec(x_822);
x_823 = lean_ctor_get(x_249, 0);
lean_dec(x_823);
x_824 = lean_box(1);
x_825 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_249, 4, x_824);
lean_ctor_set(x_249, 3, x_824);
lean_ctor_set(x_249, 2, x_247);
lean_ctor_set(x_249, 1, x_246);
lean_ctor_set(x_249, 0, x_825);
lean_ctor_set(x_8, 4, x_824);
lean_ctor_set(x_8, 3, x_824);
lean_ctor_set(x_8, 2, x_817);
lean_ctor_set(x_8, 1, x_816);
lean_ctor_set(x_8, 0, x_825);
x_826 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_249);
lean_ctor_set(x_7, 2, x_820);
lean_ctor_set(x_7, 1, x_819);
lean_ctor_set(x_7, 0, x_826);
return x_7;
}
else
{
lean_object* x_827; lean_object* x_828; lean_object* x_829; lean_object* x_830; lean_object* x_831; lean_object* x_832; 
x_827 = lean_ctor_get(x_249, 1);
x_828 = lean_ctor_get(x_249, 2);
lean_inc(x_828);
lean_inc(x_827);
lean_dec(x_249);
x_829 = lean_box(1);
x_830 = lean_unsigned_to_nat(1u);
x_831 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_831, 0, x_830);
lean_ctor_set(x_831, 1, x_246);
lean_ctor_set(x_831, 2, x_247);
lean_ctor_set(x_831, 3, x_829);
lean_ctor_set(x_831, 4, x_829);
lean_ctor_set(x_8, 4, x_829);
lean_ctor_set(x_8, 3, x_829);
lean_ctor_set(x_8, 2, x_817);
lean_ctor_set(x_8, 1, x_816);
lean_ctor_set(x_8, 0, x_830);
x_832 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_7, 4, x_8);
lean_ctor_set(x_7, 3, x_831);
lean_ctor_set(x_7, 2, x_828);
lean_ctor_set(x_7, 1, x_827);
lean_ctor_set(x_7, 0, x_832);
return x_7;
}
}
else
{
lean_object* x_833; lean_object* x_834; lean_object* x_835; lean_object* x_836; lean_object* x_837; lean_object* x_838; lean_object* x_839; lean_object* x_840; lean_object* x_841; lean_object* x_842; 
lean_dec(x_7);
x_833 = lean_ctor_get(x_578, 0);
lean_inc(x_833);
x_834 = lean_ctor_get(x_578, 1);
lean_inc(x_834);
lean_dec(x_578);
x_835 = lean_ctor_get(x_249, 1);
lean_inc(x_835);
x_836 = lean_ctor_get(x_249, 2);
lean_inc(x_836);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_837 = x_249;
} else {
 lean_dec_ref(x_249);
 x_837 = lean_box(0);
}
x_838 = lean_box(1);
x_839 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_837)) {
 x_840 = lean_alloc_ctor(0, 5, 0);
} else {
 x_840 = x_837;
}
lean_ctor_set(x_840, 0, x_839);
lean_ctor_set(x_840, 1, x_246);
lean_ctor_set(x_840, 2, x_247);
lean_ctor_set(x_840, 3, x_838);
lean_ctor_set(x_840, 4, x_838);
lean_ctor_set(x_8, 4, x_838);
lean_ctor_set(x_8, 3, x_838);
lean_ctor_set(x_8, 2, x_834);
lean_ctor_set(x_8, 1, x_833);
lean_ctor_set(x_8, 0, x_839);
x_841 = lean_unsigned_to_nat(3u);
x_842 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_842, 0, x_841);
lean_ctor_set(x_842, 1, x_835);
lean_ctor_set(x_842, 2, x_836);
lean_ctor_set(x_842, 3, x_840);
lean_ctor_set(x_842, 4, x_8);
return x_842;
}
}
else
{
lean_object* x_843; lean_object* x_844; lean_object* x_845; lean_object* x_846; 
lean_dec(x_247);
lean_dec(x_246);
x_843 = lean_ctor_get(x_578, 0);
lean_inc(x_843);
x_844 = lean_ctor_get(x_578, 1);
lean_inc(x_844);
lean_dec(x_578);
x_845 = lean_box(1);
x_846 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_8, 4, x_845);
lean_ctor_set(x_8, 3, x_7);
lean_ctor_set(x_8, 2, x_844);
lean_ctor_set(x_8, 1, x_843);
lean_ctor_set(x_8, 0, x_846);
return x_8;
}
}
}
}
else
{
lean_object* x_847; lean_object* x_848; 
lean_dec(x_8);
x_847 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_251, x_252, x_253, x_254);
x_848 = lean_ctor_get(x_847, 2);
lean_inc(x_848);
if (lean_obj_tag(x_848) == 0)
{
lean_object* x_849; lean_object* x_850; lean_object* x_851; lean_object* x_852; lean_object* x_853; uint8_t x_854; 
x_849 = lean_ctor_get(x_847, 0);
lean_inc(x_849);
x_850 = lean_ctor_get(x_847, 1);
lean_inc(x_850);
lean_dec(x_847);
x_851 = lean_ctor_get(x_848, 0);
lean_inc(x_851);
x_852 = lean_unsigned_to_nat(3u);
x_853 = lean_nat_mul(x_852, x_851);
x_854 = lean_nat_dec_lt(x_853, x_245);
lean_dec(x_853);
if (x_854 == 0)
{
lean_object* x_855; lean_object* x_856; lean_object* x_857; lean_object* x_858; 
lean_dec(x_249);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
x_855 = lean_unsigned_to_nat(1u);
x_856 = lean_nat_add(x_855, x_245);
lean_dec(x_245);
x_857 = lean_nat_add(x_856, x_851);
lean_dec(x_851);
lean_dec(x_856);
x_858 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_858, 0, x_857);
lean_ctor_set(x_858, 1, x_849);
lean_ctor_set(x_858, 2, x_850);
lean_ctor_set(x_858, 3, x_7);
lean_ctor_set(x_858, 4, x_848);
return x_858;
}
else
{
lean_object* x_859; 
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 lean_ctor_release(x_7, 2);
 lean_ctor_release(x_7, 3);
 lean_ctor_release(x_7, 4);
 x_859 = x_7;
} else {
 lean_dec_ref(x_7);
 x_859 = lean_box(0);
}
if (lean_obj_tag(x_248) == 0)
{
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_860; lean_object* x_861; lean_object* x_862; lean_object* x_863; lean_object* x_864; lean_object* x_865; lean_object* x_866; lean_object* x_867; uint8_t x_868; 
x_860 = lean_ctor_get(x_248, 0);
lean_inc(x_860);
x_861 = lean_ctor_get(x_249, 0);
lean_inc(x_861);
x_862 = lean_ctor_get(x_249, 1);
lean_inc(x_862);
x_863 = lean_ctor_get(x_249, 2);
lean_inc(x_863);
x_864 = lean_ctor_get(x_249, 3);
lean_inc(x_864);
x_865 = lean_ctor_get(x_249, 4);
lean_inc(x_865);
x_866 = lean_unsigned_to_nat(2u);
x_867 = lean_nat_mul(x_866, x_860);
x_868 = lean_nat_dec_lt(x_861, x_867);
lean_dec(x_867);
if (x_868 == 0)
{
lean_object* x_869; lean_object* x_870; lean_object* x_871; lean_object* x_872; lean_object* x_873; lean_object* x_874; 
lean_dec(x_861);
lean_dec(x_859);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_869 = x_249;
} else {
 lean_dec_ref(x_249);
 x_869 = lean_box(0);
}
x_870 = lean_unsigned_to_nat(1u);
x_871 = lean_nat_add(x_870, x_245);
lean_dec(x_245);
x_872 = lean_nat_add(x_871, x_851);
lean_dec(x_871);
x_873 = lean_nat_add(x_870, x_860);
lean_dec(x_860);
x_874 = lean_nat_add(x_870, x_851);
lean_dec(x_851);
if (lean_obj_tag(x_864) == 0)
{
lean_object* x_875; lean_object* x_876; lean_object* x_877; lean_object* x_878; 
x_875 = lean_ctor_get(x_864, 0);
lean_inc(x_875);
x_876 = lean_nat_add(x_873, x_875);
lean_dec(x_875);
lean_dec(x_873);
lean_inc(x_248);
if (lean_is_scalar(x_869)) {
 x_877 = lean_alloc_ctor(0, 5, 0);
} else {
 x_877 = x_869;
}
lean_ctor_set(x_877, 0, x_876);
lean_ctor_set(x_877, 1, x_246);
lean_ctor_set(x_877, 2, x_247);
lean_ctor_set(x_877, 3, x_248);
lean_ctor_set(x_877, 4, x_864);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_878 = x_248;
} else {
 lean_dec_ref(x_248);
 x_878 = lean_box(0);
}
if (lean_obj_tag(x_865) == 0)
{
lean_object* x_879; lean_object* x_880; lean_object* x_881; lean_object* x_882; lean_object* x_883; 
x_879 = lean_ctor_get(x_865, 0);
lean_inc(x_879);
x_880 = lean_nat_add(x_874, x_879);
lean_dec(x_879);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_878)) {
 x_881 = lean_alloc_ctor(0, 5, 0);
} else {
 x_881 = x_878;
}
lean_ctor_set(x_881, 0, x_880);
lean_ctor_set(x_881, 1, x_849);
lean_ctor_set(x_881, 2, x_850);
lean_ctor_set(x_881, 3, x_865);
lean_ctor_set(x_881, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_882 = x_848;
} else {
 lean_dec_ref(x_848);
 x_882 = lean_box(0);
}
if (lean_is_scalar(x_882)) {
 x_883 = lean_alloc_ctor(0, 5, 0);
} else {
 x_883 = x_882;
}
lean_ctor_set(x_883, 0, x_872);
lean_ctor_set(x_883, 1, x_862);
lean_ctor_set(x_883, 2, x_863);
lean_ctor_set(x_883, 3, x_877);
lean_ctor_set(x_883, 4, x_881);
return x_883;
}
else
{
lean_object* x_884; lean_object* x_885; lean_object* x_886; lean_object* x_887; lean_object* x_888; 
x_884 = lean_unsigned_to_nat(0u);
x_885 = lean_nat_add(x_874, x_884);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_878)) {
 x_886 = lean_alloc_ctor(0, 5, 0);
} else {
 x_886 = x_878;
}
lean_ctor_set(x_886, 0, x_885);
lean_ctor_set(x_886, 1, x_849);
lean_ctor_set(x_886, 2, x_850);
lean_ctor_set(x_886, 3, x_865);
lean_ctor_set(x_886, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_887 = x_848;
} else {
 lean_dec_ref(x_848);
 x_887 = lean_box(0);
}
if (lean_is_scalar(x_887)) {
 x_888 = lean_alloc_ctor(0, 5, 0);
} else {
 x_888 = x_887;
}
lean_ctor_set(x_888, 0, x_872);
lean_ctor_set(x_888, 1, x_862);
lean_ctor_set(x_888, 2, x_863);
lean_ctor_set(x_888, 3, x_877);
lean_ctor_set(x_888, 4, x_886);
return x_888;
}
}
else
{
lean_object* x_889; lean_object* x_890; lean_object* x_891; lean_object* x_892; 
x_889 = lean_unsigned_to_nat(0u);
x_890 = lean_nat_add(x_873, x_889);
lean_dec(x_873);
lean_inc(x_248);
if (lean_is_scalar(x_869)) {
 x_891 = lean_alloc_ctor(0, 5, 0);
} else {
 x_891 = x_869;
}
lean_ctor_set(x_891, 0, x_890);
lean_ctor_set(x_891, 1, x_246);
lean_ctor_set(x_891, 2, x_247);
lean_ctor_set(x_891, 3, x_248);
lean_ctor_set(x_891, 4, x_864);
if (lean_is_exclusive(x_248)) {
 lean_ctor_release(x_248, 0);
 lean_ctor_release(x_248, 1);
 lean_ctor_release(x_248, 2);
 lean_ctor_release(x_248, 3);
 lean_ctor_release(x_248, 4);
 x_892 = x_248;
} else {
 lean_dec_ref(x_248);
 x_892 = lean_box(0);
}
if (lean_obj_tag(x_865) == 0)
{
lean_object* x_893; lean_object* x_894; lean_object* x_895; lean_object* x_896; lean_object* x_897; 
x_893 = lean_ctor_get(x_865, 0);
lean_inc(x_893);
x_894 = lean_nat_add(x_874, x_893);
lean_dec(x_893);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_892)) {
 x_895 = lean_alloc_ctor(0, 5, 0);
} else {
 x_895 = x_892;
}
lean_ctor_set(x_895, 0, x_894);
lean_ctor_set(x_895, 1, x_849);
lean_ctor_set(x_895, 2, x_850);
lean_ctor_set(x_895, 3, x_865);
lean_ctor_set(x_895, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_896 = x_848;
} else {
 lean_dec_ref(x_848);
 x_896 = lean_box(0);
}
if (lean_is_scalar(x_896)) {
 x_897 = lean_alloc_ctor(0, 5, 0);
} else {
 x_897 = x_896;
}
lean_ctor_set(x_897, 0, x_872);
lean_ctor_set(x_897, 1, x_862);
lean_ctor_set(x_897, 2, x_863);
lean_ctor_set(x_897, 3, x_891);
lean_ctor_set(x_897, 4, x_895);
return x_897;
}
else
{
lean_object* x_898; lean_object* x_899; lean_object* x_900; lean_object* x_901; 
x_898 = lean_nat_add(x_874, x_889);
lean_dec(x_874);
lean_inc(x_848);
if (lean_is_scalar(x_892)) {
 x_899 = lean_alloc_ctor(0, 5, 0);
} else {
 x_899 = x_892;
}
lean_ctor_set(x_899, 0, x_898);
lean_ctor_set(x_899, 1, x_849);
lean_ctor_set(x_899, 2, x_850);
lean_ctor_set(x_899, 3, x_865);
lean_ctor_set(x_899, 4, x_848);
if (lean_is_exclusive(x_848)) {
 lean_ctor_release(x_848, 0);
 lean_ctor_release(x_848, 1);
 lean_ctor_release(x_848, 2);
 lean_ctor_release(x_848, 3);
 lean_ctor_release(x_848, 4);
 x_900 = x_848;
} else {
 lean_dec_ref(x_848);
 x_900 = lean_box(0);
}
if (lean_is_scalar(x_900)) {
 x_901 = lean_alloc_ctor(0, 5, 0);
} else {
 x_901 = x_900;
}
lean_ctor_set(x_901, 0, x_872);
lean_ctor_set(x_901, 1, x_862);
lean_ctor_set(x_901, 2, x_863);
lean_ctor_set(x_901, 3, x_891);
lean_ctor_set(x_901, 4, x_899);
return x_901;
}
}
}
else
{
lean_object* x_902; lean_object* x_903; lean_object* x_904; lean_object* x_905; lean_object* x_906; lean_object* x_907; lean_object* x_908; 
lean_dec(x_865);
lean_dec(x_864);
lean_dec(x_863);
lean_dec(x_862);
lean_dec(x_860);
x_902 = lean_unsigned_to_nat(1u);
x_903 = lean_nat_add(x_902, x_245);
lean_dec(x_245);
x_904 = lean_nat_add(x_903, x_851);
lean_dec(x_903);
x_905 = lean_nat_add(x_902, x_851);
lean_dec(x_851);
x_906 = lean_nat_add(x_905, x_861);
lean_dec(x_861);
lean_dec(x_905);
x_907 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_907, 0, x_906);
lean_ctor_set(x_907, 1, x_849);
lean_ctor_set(x_907, 2, x_850);
lean_ctor_set(x_907, 3, x_249);
lean_ctor_set(x_907, 4, x_848);
if (lean_is_scalar(x_859)) {
 x_908 = lean_alloc_ctor(0, 5, 0);
} else {
 x_908 = x_859;
}
lean_ctor_set(x_908, 0, x_904);
lean_ctor_set(x_908, 1, x_246);
lean_ctor_set(x_908, 2, x_247);
lean_ctor_set(x_908, 3, x_248);
lean_ctor_set(x_908, 4, x_907);
return x_908;
}
}
else
{
lean_object* x_909; lean_object* x_910; 
lean_dec(x_859);
lean_dec(x_851);
lean_dec(x_850);
lean_dec(x_849);
lean_dec(x_848);
lean_dec(x_248);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_909 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_910 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6___rarg(x_909);
return x_910;
}
}
else
{
lean_object* x_911; lean_object* x_912; 
lean_dec(x_859);
lean_dec(x_851);
lean_dec(x_850);
lean_dec(x_849);
lean_dec(x_848);
lean_dec(x_249);
lean_dec(x_247);
lean_dec(x_246);
lean_dec(x_245);
x_911 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_912 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7___rarg(x_911);
return x_912;
}
}
}
else
{
if (lean_obj_tag(x_248) == 0)
{
lean_object* x_913; 
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 lean_ctor_release(x_7, 2);
 lean_ctor_release(x_7, 3);
 lean_ctor_release(x_7, 4);
 x_913 = x_7;
} else {
 lean_dec_ref(x_7);
 x_913 = lean_box(0);
}
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_914; lean_object* x_915; lean_object* x_916; lean_object* x_917; lean_object* x_918; lean_object* x_919; lean_object* x_920; lean_object* x_921; lean_object* x_922; 
x_914 = lean_ctor_get(x_847, 0);
lean_inc(x_914);
x_915 = lean_ctor_get(x_847, 1);
lean_inc(x_915);
lean_dec(x_847);
x_916 = lean_ctor_get(x_249, 0);
lean_inc(x_916);
x_917 = lean_unsigned_to_nat(1u);
x_918 = lean_nat_add(x_917, x_245);
lean_dec(x_245);
x_919 = lean_nat_add(x_917, x_916);
lean_dec(x_916);
x_920 = lean_box(1);
x_921 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_921, 0, x_919);
lean_ctor_set(x_921, 1, x_914);
lean_ctor_set(x_921, 2, x_915);
lean_ctor_set(x_921, 3, x_249);
lean_ctor_set(x_921, 4, x_920);
if (lean_is_scalar(x_913)) {
 x_922 = lean_alloc_ctor(0, 5, 0);
} else {
 x_922 = x_913;
}
lean_ctor_set(x_922, 0, x_918);
lean_ctor_set(x_922, 1, x_246);
lean_ctor_set(x_922, 2, x_247);
lean_ctor_set(x_922, 3, x_248);
lean_ctor_set(x_922, 4, x_921);
return x_922;
}
else
{
lean_object* x_923; lean_object* x_924; lean_object* x_925; lean_object* x_926; lean_object* x_927; lean_object* x_928; lean_object* x_929; 
lean_dec(x_245);
x_923 = lean_ctor_get(x_847, 0);
lean_inc(x_923);
x_924 = lean_ctor_get(x_847, 1);
lean_inc(x_924);
lean_dec(x_847);
x_925 = lean_box(1);
x_926 = lean_unsigned_to_nat(1u);
x_927 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_927, 0, x_926);
lean_ctor_set(x_927, 1, x_923);
lean_ctor_set(x_927, 2, x_924);
lean_ctor_set(x_927, 3, x_925);
lean_ctor_set(x_927, 4, x_925);
x_928 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_913)) {
 x_929 = lean_alloc_ctor(0, 5, 0);
} else {
 x_929 = x_913;
}
lean_ctor_set(x_929, 0, x_928);
lean_ctor_set(x_929, 1, x_246);
lean_ctor_set(x_929, 2, x_247);
lean_ctor_set(x_929, 3, x_248);
lean_ctor_set(x_929, 4, x_927);
return x_929;
}
}
else
{
lean_dec(x_245);
if (lean_obj_tag(x_249) == 0)
{
lean_object* x_930; lean_object* x_931; lean_object* x_932; lean_object* x_933; lean_object* x_934; lean_object* x_935; lean_object* x_936; lean_object* x_937; lean_object* x_938; lean_object* x_939; lean_object* x_940; lean_object* x_941; 
if (lean_is_exclusive(x_7)) {
 lean_ctor_release(x_7, 0);
 lean_ctor_release(x_7, 1);
 lean_ctor_release(x_7, 2);
 lean_ctor_release(x_7, 3);
 lean_ctor_release(x_7, 4);
 x_930 = x_7;
} else {
 lean_dec_ref(x_7);
 x_930 = lean_box(0);
}
x_931 = lean_ctor_get(x_847, 0);
lean_inc(x_931);
x_932 = lean_ctor_get(x_847, 1);
lean_inc(x_932);
lean_dec(x_847);
x_933 = lean_ctor_get(x_249, 1);
lean_inc(x_933);
x_934 = lean_ctor_get(x_249, 2);
lean_inc(x_934);
if (lean_is_exclusive(x_249)) {
 lean_ctor_release(x_249, 0);
 lean_ctor_release(x_249, 1);
 lean_ctor_release(x_249, 2);
 lean_ctor_release(x_249, 3);
 lean_ctor_release(x_249, 4);
 x_935 = x_249;
} else {
 lean_dec_ref(x_249);
 x_935 = lean_box(0);
}
x_936 = lean_box(1);
x_937 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_935)) {
 x_938 = lean_alloc_ctor(0, 5, 0);
} else {
 x_938 = x_935;
}
lean_ctor_set(x_938, 0, x_937);
lean_ctor_set(x_938, 1, x_246);
lean_ctor_set(x_938, 2, x_247);
lean_ctor_set(x_938, 3, x_936);
lean_ctor_set(x_938, 4, x_936);
x_939 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_939, 0, x_937);
lean_ctor_set(x_939, 1, x_931);
lean_ctor_set(x_939, 2, x_932);
lean_ctor_set(x_939, 3, x_936);
lean_ctor_set(x_939, 4, x_936);
x_940 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_930)) {
 x_941 = lean_alloc_ctor(0, 5, 0);
} else {
 x_941 = x_930;
}
lean_ctor_set(x_941, 0, x_940);
lean_ctor_set(x_941, 1, x_933);
lean_ctor_set(x_941, 2, x_934);
lean_ctor_set(x_941, 3, x_938);
lean_ctor_set(x_941, 4, x_939);
return x_941;
}
else
{
lean_object* x_942; lean_object* x_943; lean_object* x_944; lean_object* x_945; lean_object* x_946; 
lean_dec(x_247);
lean_dec(x_246);
x_942 = lean_ctor_get(x_847, 0);
lean_inc(x_942);
x_943 = lean_ctor_get(x_847, 1);
lean_inc(x_943);
lean_dec(x_847);
x_944 = lean_box(1);
x_945 = lean_unsigned_to_nat(2u);
x_946 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_946, 0, x_945);
lean_ctor_set(x_946, 1, x_942);
lean_ctor_set(x_946, 2, x_943);
lean_ctor_set(x_946, 3, x_7);
lean_ctor_set(x_946, 4, x_944);
return x_946;
}
}
}
}
}
}
else
{
return x_7;
}
}
else
{
return x_8;
}
}
default: 
{
lean_object* x_947; 
x_947 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg(x_1, x_2, x_8);
if (lean_obj_tag(x_947) == 0)
{
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_948; lean_object* x_949; lean_object* x_950; lean_object* x_951; lean_object* x_952; lean_object* x_953; lean_object* x_954; lean_object* x_955; uint8_t x_956; 
x_948 = lean_ctor_get(x_947, 0);
lean_inc(x_948);
x_949 = lean_ctor_get(x_7, 0);
lean_inc(x_949);
x_950 = lean_ctor_get(x_7, 1);
lean_inc(x_950);
x_951 = lean_ctor_get(x_7, 2);
lean_inc(x_951);
x_952 = lean_ctor_get(x_7, 3);
lean_inc(x_952);
x_953 = lean_ctor_get(x_7, 4);
lean_inc(x_953);
x_954 = lean_unsigned_to_nat(3u);
x_955 = lean_nat_mul(x_954, x_948);
x_956 = lean_nat_dec_lt(x_955, x_949);
lean_dec(x_955);
if (x_956 == 0)
{
lean_object* x_957; lean_object* x_958; lean_object* x_959; 
lean_dec(x_953);
lean_dec(x_952);
lean_dec(x_951);
lean_dec(x_950);
x_957 = lean_unsigned_to_nat(1u);
x_958 = lean_nat_add(x_957, x_949);
lean_dec(x_949);
x_959 = lean_nat_add(x_958, x_948);
lean_dec(x_948);
lean_dec(x_958);
lean_ctor_set(x_3, 4, x_947);
lean_ctor_set(x_3, 0, x_959);
return x_3;
}
else
{
uint8_t x_960; 
lean_free_object(x_3);
x_960 = !lean_is_exclusive(x_7);
if (x_960 == 0)
{
lean_object* x_961; lean_object* x_962; lean_object* x_963; lean_object* x_964; lean_object* x_965; 
x_961 = lean_ctor_get(x_7, 4);
lean_dec(x_961);
x_962 = lean_ctor_get(x_7, 3);
lean_dec(x_962);
x_963 = lean_ctor_get(x_7, 2);
lean_dec(x_963);
x_964 = lean_ctor_get(x_7, 1);
lean_dec(x_964);
x_965 = lean_ctor_get(x_7, 0);
lean_dec(x_965);
if (lean_obj_tag(x_952) == 0)
{
if (lean_obj_tag(x_953) == 0)
{
lean_object* x_966; lean_object* x_967; lean_object* x_968; lean_object* x_969; lean_object* x_970; lean_object* x_971; lean_object* x_972; lean_object* x_973; uint8_t x_974; 
x_966 = lean_ctor_get(x_952, 0);
lean_inc(x_966);
x_967 = lean_ctor_get(x_953, 0);
lean_inc(x_967);
x_968 = lean_ctor_get(x_953, 1);
lean_inc(x_968);
x_969 = lean_ctor_get(x_953, 2);
lean_inc(x_969);
x_970 = lean_ctor_get(x_953, 3);
lean_inc(x_970);
x_971 = lean_ctor_get(x_953, 4);
lean_inc(x_971);
x_972 = lean_unsigned_to_nat(2u);
x_973 = lean_nat_mul(x_972, x_966);
x_974 = lean_nat_dec_lt(x_967, x_973);
lean_dec(x_973);
if (x_974 == 0)
{
uint8_t x_975; 
lean_dec(x_967);
x_975 = !lean_is_exclusive(x_953);
if (x_975 == 0)
{
lean_object* x_976; lean_object* x_977; lean_object* x_978; lean_object* x_979; lean_object* x_980; lean_object* x_981; lean_object* x_982; lean_object* x_983; lean_object* x_984; lean_object* x_985; 
x_976 = lean_ctor_get(x_953, 4);
lean_dec(x_976);
x_977 = lean_ctor_get(x_953, 3);
lean_dec(x_977);
x_978 = lean_ctor_get(x_953, 2);
lean_dec(x_978);
x_979 = lean_ctor_get(x_953, 1);
lean_dec(x_979);
x_980 = lean_ctor_get(x_953, 0);
lean_dec(x_980);
x_981 = lean_unsigned_to_nat(1u);
x_982 = lean_nat_add(x_981, x_949);
lean_dec(x_949);
x_983 = lean_nat_add(x_982, x_948);
lean_dec(x_982);
x_984 = lean_nat_add(x_981, x_966);
lean_dec(x_966);
x_985 = lean_nat_add(x_981, x_948);
lean_dec(x_948);
if (lean_obj_tag(x_970) == 0)
{
lean_object* x_986; lean_object* x_987; uint8_t x_988; 
x_986 = lean_ctor_get(x_970, 0);
lean_inc(x_986);
x_987 = lean_nat_add(x_984, x_986);
lean_dec(x_986);
lean_dec(x_984);
lean_inc(x_952);
lean_ctor_set(x_953, 4, x_970);
lean_ctor_set(x_953, 3, x_952);
lean_ctor_set(x_953, 2, x_951);
lean_ctor_set(x_953, 1, x_950);
lean_ctor_set(x_953, 0, x_987);
x_988 = !lean_is_exclusive(x_952);
if (x_988 == 0)
{
lean_object* x_989; lean_object* x_990; lean_object* x_991; lean_object* x_992; lean_object* x_993; 
x_989 = lean_ctor_get(x_952, 4);
lean_dec(x_989);
x_990 = lean_ctor_get(x_952, 3);
lean_dec(x_990);
x_991 = lean_ctor_get(x_952, 2);
lean_dec(x_991);
x_992 = lean_ctor_get(x_952, 1);
lean_dec(x_992);
x_993 = lean_ctor_get(x_952, 0);
lean_dec(x_993);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_994; lean_object* x_995; 
x_994 = lean_ctor_get(x_971, 0);
lean_inc(x_994);
x_995 = lean_nat_add(x_985, x_994);
lean_dec(x_994);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_995);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_996; lean_object* x_997; 
x_996 = lean_unsigned_to_nat(0u);
x_997 = lean_nat_add(x_985, x_996);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_997);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
else
{
lean_dec(x_952);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_998; lean_object* x_999; lean_object* x_1000; 
x_998 = lean_ctor_get(x_971, 0);
lean_inc(x_998);
x_999 = lean_nat_add(x_985, x_998);
lean_dec(x_998);
lean_dec(x_985);
x_1000 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1000, 0, x_999);
lean_ctor_set(x_1000, 1, x_5);
lean_ctor_set(x_1000, 2, x_6);
lean_ctor_set(x_1000, 3, x_971);
lean_ctor_set(x_1000, 4, x_947);
lean_ctor_set(x_7, 4, x_1000);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_1001; lean_object* x_1002; lean_object* x_1003; 
x_1001 = lean_unsigned_to_nat(0u);
x_1002 = lean_nat_add(x_985, x_1001);
lean_dec(x_985);
x_1003 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1003, 0, x_1002);
lean_ctor_set(x_1003, 1, x_5);
lean_ctor_set(x_1003, 2, x_6);
lean_ctor_set(x_1003, 3, x_971);
lean_ctor_set(x_1003, 4, x_947);
lean_ctor_set(x_7, 4, x_1003);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
}
else
{
lean_object* x_1004; lean_object* x_1005; uint8_t x_1006; 
x_1004 = lean_unsigned_to_nat(0u);
x_1005 = lean_nat_add(x_984, x_1004);
lean_dec(x_984);
lean_inc(x_952);
lean_ctor_set(x_953, 4, x_970);
lean_ctor_set(x_953, 3, x_952);
lean_ctor_set(x_953, 2, x_951);
lean_ctor_set(x_953, 1, x_950);
lean_ctor_set(x_953, 0, x_1005);
x_1006 = !lean_is_exclusive(x_952);
if (x_1006 == 0)
{
lean_object* x_1007; lean_object* x_1008; lean_object* x_1009; lean_object* x_1010; lean_object* x_1011; 
x_1007 = lean_ctor_get(x_952, 4);
lean_dec(x_1007);
x_1008 = lean_ctor_get(x_952, 3);
lean_dec(x_1008);
x_1009 = lean_ctor_get(x_952, 2);
lean_dec(x_1009);
x_1010 = lean_ctor_get(x_952, 1);
lean_dec(x_1010);
x_1011 = lean_ctor_get(x_952, 0);
lean_dec(x_1011);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1012; lean_object* x_1013; 
x_1012 = lean_ctor_get(x_971, 0);
lean_inc(x_1012);
x_1013 = lean_nat_add(x_985, x_1012);
lean_dec(x_1012);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_1013);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_1014; 
x_1014 = lean_nat_add(x_985, x_1004);
lean_dec(x_985);
lean_ctor_set(x_952, 4, x_947);
lean_ctor_set(x_952, 3, x_971);
lean_ctor_set(x_952, 2, x_6);
lean_ctor_set(x_952, 1, x_5);
lean_ctor_set(x_952, 0, x_1014);
lean_ctor_set(x_7, 4, x_952);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
else
{
lean_dec(x_952);
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1015; lean_object* x_1016; lean_object* x_1017; 
x_1015 = lean_ctor_get(x_971, 0);
lean_inc(x_1015);
x_1016 = lean_nat_add(x_985, x_1015);
lean_dec(x_1015);
lean_dec(x_985);
x_1017 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1017, 0, x_1016);
lean_ctor_set(x_1017, 1, x_5);
lean_ctor_set(x_1017, 2, x_6);
lean_ctor_set(x_1017, 3, x_971);
lean_ctor_set(x_1017, 4, x_947);
lean_ctor_set(x_7, 4, x_1017);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
else
{
lean_object* x_1018; lean_object* x_1019; 
x_1018 = lean_nat_add(x_985, x_1004);
lean_dec(x_985);
x_1019 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1019, 0, x_1018);
lean_ctor_set(x_1019, 1, x_5);
lean_ctor_set(x_1019, 2, x_6);
lean_ctor_set(x_1019, 3, x_971);
lean_ctor_set(x_1019, 4, x_947);
lean_ctor_set(x_7, 4, x_1019);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_983);
return x_7;
}
}
}
}
else
{
lean_object* x_1020; lean_object* x_1021; lean_object* x_1022; lean_object* x_1023; lean_object* x_1024; 
lean_dec(x_953);
x_1020 = lean_unsigned_to_nat(1u);
x_1021 = lean_nat_add(x_1020, x_949);
lean_dec(x_949);
x_1022 = lean_nat_add(x_1021, x_948);
lean_dec(x_1021);
x_1023 = lean_nat_add(x_1020, x_966);
lean_dec(x_966);
x_1024 = lean_nat_add(x_1020, x_948);
lean_dec(x_948);
if (lean_obj_tag(x_970) == 0)
{
lean_object* x_1025; lean_object* x_1026; lean_object* x_1027; lean_object* x_1028; 
x_1025 = lean_ctor_get(x_970, 0);
lean_inc(x_1025);
x_1026 = lean_nat_add(x_1023, x_1025);
lean_dec(x_1025);
lean_dec(x_1023);
lean_inc(x_952);
x_1027 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1027, 0, x_1026);
lean_ctor_set(x_1027, 1, x_950);
lean_ctor_set(x_1027, 2, x_951);
lean_ctor_set(x_1027, 3, x_952);
lean_ctor_set(x_1027, 4, x_970);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1028 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1028 = lean_box(0);
}
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1029; lean_object* x_1030; lean_object* x_1031; 
x_1029 = lean_ctor_get(x_971, 0);
lean_inc(x_1029);
x_1030 = lean_nat_add(x_1024, x_1029);
lean_dec(x_1029);
lean_dec(x_1024);
if (lean_is_scalar(x_1028)) {
 x_1031 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1031 = x_1028;
}
lean_ctor_set(x_1031, 0, x_1030);
lean_ctor_set(x_1031, 1, x_5);
lean_ctor_set(x_1031, 2, x_6);
lean_ctor_set(x_1031, 3, x_971);
lean_ctor_set(x_1031, 4, x_947);
lean_ctor_set(x_7, 4, x_1031);
lean_ctor_set(x_7, 3, x_1027);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
else
{
lean_object* x_1032; lean_object* x_1033; lean_object* x_1034; 
x_1032 = lean_unsigned_to_nat(0u);
x_1033 = lean_nat_add(x_1024, x_1032);
lean_dec(x_1024);
if (lean_is_scalar(x_1028)) {
 x_1034 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1034 = x_1028;
}
lean_ctor_set(x_1034, 0, x_1033);
lean_ctor_set(x_1034, 1, x_5);
lean_ctor_set(x_1034, 2, x_6);
lean_ctor_set(x_1034, 3, x_971);
lean_ctor_set(x_1034, 4, x_947);
lean_ctor_set(x_7, 4, x_1034);
lean_ctor_set(x_7, 3, x_1027);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
}
else
{
lean_object* x_1035; lean_object* x_1036; lean_object* x_1037; lean_object* x_1038; 
x_1035 = lean_unsigned_to_nat(0u);
x_1036 = lean_nat_add(x_1023, x_1035);
lean_dec(x_1023);
lean_inc(x_952);
x_1037 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1037, 0, x_1036);
lean_ctor_set(x_1037, 1, x_950);
lean_ctor_set(x_1037, 2, x_951);
lean_ctor_set(x_1037, 3, x_952);
lean_ctor_set(x_1037, 4, x_970);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1038 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1038 = lean_box(0);
}
if (lean_obj_tag(x_971) == 0)
{
lean_object* x_1039; lean_object* x_1040; lean_object* x_1041; 
x_1039 = lean_ctor_get(x_971, 0);
lean_inc(x_1039);
x_1040 = lean_nat_add(x_1024, x_1039);
lean_dec(x_1039);
lean_dec(x_1024);
if (lean_is_scalar(x_1038)) {
 x_1041 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1041 = x_1038;
}
lean_ctor_set(x_1041, 0, x_1040);
lean_ctor_set(x_1041, 1, x_5);
lean_ctor_set(x_1041, 2, x_6);
lean_ctor_set(x_1041, 3, x_971);
lean_ctor_set(x_1041, 4, x_947);
lean_ctor_set(x_7, 4, x_1041);
lean_ctor_set(x_7, 3, x_1037);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
else
{
lean_object* x_1042; lean_object* x_1043; 
x_1042 = lean_nat_add(x_1024, x_1035);
lean_dec(x_1024);
if (lean_is_scalar(x_1038)) {
 x_1043 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1043 = x_1038;
}
lean_ctor_set(x_1043, 0, x_1042);
lean_ctor_set(x_1043, 1, x_5);
lean_ctor_set(x_1043, 2, x_6);
lean_ctor_set(x_1043, 3, x_971);
lean_ctor_set(x_1043, 4, x_947);
lean_ctor_set(x_7, 4, x_1043);
lean_ctor_set(x_7, 3, x_1037);
lean_ctor_set(x_7, 2, x_969);
lean_ctor_set(x_7, 1, x_968);
lean_ctor_set(x_7, 0, x_1022);
return x_7;
}
}
}
}
else
{
lean_object* x_1044; lean_object* x_1045; lean_object* x_1046; lean_object* x_1047; lean_object* x_1048; uint8_t x_1049; 
lean_dec(x_971);
lean_dec(x_970);
lean_dec(x_969);
lean_dec(x_968);
lean_dec(x_966);
x_1044 = lean_unsigned_to_nat(1u);
x_1045 = lean_nat_add(x_1044, x_949);
lean_dec(x_949);
x_1046 = lean_nat_add(x_1045, x_948);
lean_dec(x_1045);
x_1047 = lean_nat_add(x_1044, x_948);
lean_dec(x_948);
x_1048 = lean_nat_add(x_1047, x_967);
lean_dec(x_967);
lean_dec(x_1047);
lean_inc(x_947);
lean_ctor_set(x_7, 4, x_947);
lean_ctor_set(x_7, 3, x_953);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1048);
x_1049 = !lean_is_exclusive(x_947);
if (x_1049 == 0)
{
lean_object* x_1050; lean_object* x_1051; lean_object* x_1052; lean_object* x_1053; lean_object* x_1054; 
x_1050 = lean_ctor_get(x_947, 4);
lean_dec(x_1050);
x_1051 = lean_ctor_get(x_947, 3);
lean_dec(x_1051);
x_1052 = lean_ctor_get(x_947, 2);
lean_dec(x_1052);
x_1053 = lean_ctor_get(x_947, 1);
lean_dec(x_1053);
x_1054 = lean_ctor_get(x_947, 0);
lean_dec(x_1054);
lean_ctor_set(x_947, 4, x_7);
lean_ctor_set(x_947, 3, x_952);
lean_ctor_set(x_947, 2, x_951);
lean_ctor_set(x_947, 1, x_950);
lean_ctor_set(x_947, 0, x_1046);
return x_947;
}
else
{
lean_object* x_1055; 
lean_dec(x_947);
x_1055 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1055, 0, x_1046);
lean_ctor_set(x_1055, 1, x_950);
lean_ctor_set(x_1055, 2, x_951);
lean_ctor_set(x_1055, 3, x_952);
lean_ctor_set(x_1055, 4, x_7);
return x_1055;
}
}
}
else
{
lean_object* x_1056; lean_object* x_1057; 
lean_free_object(x_7);
lean_dec(x_952);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1056 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1057 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8___rarg(x_1056);
return x_1057;
}
}
else
{
lean_object* x_1058; lean_object* x_1059; 
lean_free_object(x_7);
lean_dec(x_953);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1058 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1059 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9___rarg(x_1058);
return x_1059;
}
}
else
{
lean_dec(x_7);
if (lean_obj_tag(x_952) == 0)
{
if (lean_obj_tag(x_953) == 0)
{
lean_object* x_1060; lean_object* x_1061; lean_object* x_1062; lean_object* x_1063; lean_object* x_1064; lean_object* x_1065; lean_object* x_1066; lean_object* x_1067; uint8_t x_1068; 
x_1060 = lean_ctor_get(x_952, 0);
lean_inc(x_1060);
x_1061 = lean_ctor_get(x_953, 0);
lean_inc(x_1061);
x_1062 = lean_ctor_get(x_953, 1);
lean_inc(x_1062);
x_1063 = lean_ctor_get(x_953, 2);
lean_inc(x_1063);
x_1064 = lean_ctor_get(x_953, 3);
lean_inc(x_1064);
x_1065 = lean_ctor_get(x_953, 4);
lean_inc(x_1065);
x_1066 = lean_unsigned_to_nat(2u);
x_1067 = lean_nat_mul(x_1066, x_1060);
x_1068 = lean_nat_dec_lt(x_1061, x_1067);
lean_dec(x_1067);
if (x_1068 == 0)
{
lean_object* x_1069; lean_object* x_1070; lean_object* x_1071; lean_object* x_1072; lean_object* x_1073; lean_object* x_1074; 
lean_dec(x_1061);
if (lean_is_exclusive(x_953)) {
 lean_ctor_release(x_953, 0);
 lean_ctor_release(x_953, 1);
 lean_ctor_release(x_953, 2);
 lean_ctor_release(x_953, 3);
 lean_ctor_release(x_953, 4);
 x_1069 = x_953;
} else {
 lean_dec_ref(x_953);
 x_1069 = lean_box(0);
}
x_1070 = lean_unsigned_to_nat(1u);
x_1071 = lean_nat_add(x_1070, x_949);
lean_dec(x_949);
x_1072 = lean_nat_add(x_1071, x_948);
lean_dec(x_1071);
x_1073 = lean_nat_add(x_1070, x_1060);
lean_dec(x_1060);
x_1074 = lean_nat_add(x_1070, x_948);
lean_dec(x_948);
if (lean_obj_tag(x_1064) == 0)
{
lean_object* x_1075; lean_object* x_1076; lean_object* x_1077; lean_object* x_1078; 
x_1075 = lean_ctor_get(x_1064, 0);
lean_inc(x_1075);
x_1076 = lean_nat_add(x_1073, x_1075);
lean_dec(x_1075);
lean_dec(x_1073);
lean_inc(x_952);
if (lean_is_scalar(x_1069)) {
 x_1077 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1077 = x_1069;
}
lean_ctor_set(x_1077, 0, x_1076);
lean_ctor_set(x_1077, 1, x_950);
lean_ctor_set(x_1077, 2, x_951);
lean_ctor_set(x_1077, 3, x_952);
lean_ctor_set(x_1077, 4, x_1064);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1078 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1078 = lean_box(0);
}
if (lean_obj_tag(x_1065) == 0)
{
lean_object* x_1079; lean_object* x_1080; lean_object* x_1081; lean_object* x_1082; 
x_1079 = lean_ctor_get(x_1065, 0);
lean_inc(x_1079);
x_1080 = lean_nat_add(x_1074, x_1079);
lean_dec(x_1079);
lean_dec(x_1074);
if (lean_is_scalar(x_1078)) {
 x_1081 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1081 = x_1078;
}
lean_ctor_set(x_1081, 0, x_1080);
lean_ctor_set(x_1081, 1, x_5);
lean_ctor_set(x_1081, 2, x_6);
lean_ctor_set(x_1081, 3, x_1065);
lean_ctor_set(x_1081, 4, x_947);
x_1082 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1082, 0, x_1072);
lean_ctor_set(x_1082, 1, x_1062);
lean_ctor_set(x_1082, 2, x_1063);
lean_ctor_set(x_1082, 3, x_1077);
lean_ctor_set(x_1082, 4, x_1081);
return x_1082;
}
else
{
lean_object* x_1083; lean_object* x_1084; lean_object* x_1085; lean_object* x_1086; 
x_1083 = lean_unsigned_to_nat(0u);
x_1084 = lean_nat_add(x_1074, x_1083);
lean_dec(x_1074);
if (lean_is_scalar(x_1078)) {
 x_1085 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1085 = x_1078;
}
lean_ctor_set(x_1085, 0, x_1084);
lean_ctor_set(x_1085, 1, x_5);
lean_ctor_set(x_1085, 2, x_6);
lean_ctor_set(x_1085, 3, x_1065);
lean_ctor_set(x_1085, 4, x_947);
x_1086 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1086, 0, x_1072);
lean_ctor_set(x_1086, 1, x_1062);
lean_ctor_set(x_1086, 2, x_1063);
lean_ctor_set(x_1086, 3, x_1077);
lean_ctor_set(x_1086, 4, x_1085);
return x_1086;
}
}
else
{
lean_object* x_1087; lean_object* x_1088; lean_object* x_1089; lean_object* x_1090; 
x_1087 = lean_unsigned_to_nat(0u);
x_1088 = lean_nat_add(x_1073, x_1087);
lean_dec(x_1073);
lean_inc(x_952);
if (lean_is_scalar(x_1069)) {
 x_1089 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1089 = x_1069;
}
lean_ctor_set(x_1089, 0, x_1088);
lean_ctor_set(x_1089, 1, x_950);
lean_ctor_set(x_1089, 2, x_951);
lean_ctor_set(x_1089, 3, x_952);
lean_ctor_set(x_1089, 4, x_1064);
if (lean_is_exclusive(x_952)) {
 lean_ctor_release(x_952, 0);
 lean_ctor_release(x_952, 1);
 lean_ctor_release(x_952, 2);
 lean_ctor_release(x_952, 3);
 lean_ctor_release(x_952, 4);
 x_1090 = x_952;
} else {
 lean_dec_ref(x_952);
 x_1090 = lean_box(0);
}
if (lean_obj_tag(x_1065) == 0)
{
lean_object* x_1091; lean_object* x_1092; lean_object* x_1093; lean_object* x_1094; 
x_1091 = lean_ctor_get(x_1065, 0);
lean_inc(x_1091);
x_1092 = lean_nat_add(x_1074, x_1091);
lean_dec(x_1091);
lean_dec(x_1074);
if (lean_is_scalar(x_1090)) {
 x_1093 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1093 = x_1090;
}
lean_ctor_set(x_1093, 0, x_1092);
lean_ctor_set(x_1093, 1, x_5);
lean_ctor_set(x_1093, 2, x_6);
lean_ctor_set(x_1093, 3, x_1065);
lean_ctor_set(x_1093, 4, x_947);
x_1094 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1094, 0, x_1072);
lean_ctor_set(x_1094, 1, x_1062);
lean_ctor_set(x_1094, 2, x_1063);
lean_ctor_set(x_1094, 3, x_1089);
lean_ctor_set(x_1094, 4, x_1093);
return x_1094;
}
else
{
lean_object* x_1095; lean_object* x_1096; lean_object* x_1097; 
x_1095 = lean_nat_add(x_1074, x_1087);
lean_dec(x_1074);
if (lean_is_scalar(x_1090)) {
 x_1096 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1096 = x_1090;
}
lean_ctor_set(x_1096, 0, x_1095);
lean_ctor_set(x_1096, 1, x_5);
lean_ctor_set(x_1096, 2, x_6);
lean_ctor_set(x_1096, 3, x_1065);
lean_ctor_set(x_1096, 4, x_947);
x_1097 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1097, 0, x_1072);
lean_ctor_set(x_1097, 1, x_1062);
lean_ctor_set(x_1097, 2, x_1063);
lean_ctor_set(x_1097, 3, x_1089);
lean_ctor_set(x_1097, 4, x_1096);
return x_1097;
}
}
}
else
{
lean_object* x_1098; lean_object* x_1099; lean_object* x_1100; lean_object* x_1101; lean_object* x_1102; lean_object* x_1103; lean_object* x_1104; lean_object* x_1105; 
lean_dec(x_1065);
lean_dec(x_1064);
lean_dec(x_1063);
lean_dec(x_1062);
lean_dec(x_1060);
x_1098 = lean_unsigned_to_nat(1u);
x_1099 = lean_nat_add(x_1098, x_949);
lean_dec(x_949);
x_1100 = lean_nat_add(x_1099, x_948);
lean_dec(x_1099);
x_1101 = lean_nat_add(x_1098, x_948);
lean_dec(x_948);
x_1102 = lean_nat_add(x_1101, x_1061);
lean_dec(x_1061);
lean_dec(x_1101);
lean_inc(x_947);
x_1103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1103, 0, x_1102);
lean_ctor_set(x_1103, 1, x_5);
lean_ctor_set(x_1103, 2, x_6);
lean_ctor_set(x_1103, 3, x_953);
lean_ctor_set(x_1103, 4, x_947);
if (lean_is_exclusive(x_947)) {
 lean_ctor_release(x_947, 0);
 lean_ctor_release(x_947, 1);
 lean_ctor_release(x_947, 2);
 lean_ctor_release(x_947, 3);
 lean_ctor_release(x_947, 4);
 x_1104 = x_947;
} else {
 lean_dec_ref(x_947);
 x_1104 = lean_box(0);
}
if (lean_is_scalar(x_1104)) {
 x_1105 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1105 = x_1104;
}
lean_ctor_set(x_1105, 0, x_1100);
lean_ctor_set(x_1105, 1, x_950);
lean_ctor_set(x_1105, 2, x_951);
lean_ctor_set(x_1105, 3, x_952);
lean_ctor_set(x_1105, 4, x_1103);
return x_1105;
}
}
else
{
lean_object* x_1106; lean_object* x_1107; 
lean_dec(x_952);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1106 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1107 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8___rarg(x_1106);
return x_1107;
}
}
else
{
lean_object* x_1108; lean_object* x_1109; 
lean_dec(x_953);
lean_dec(x_951);
lean_dec(x_950);
lean_dec(x_949);
lean_dec(x_948);
lean_dec(x_947);
lean_dec(x_6);
lean_dec(x_5);
x_1108 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1109 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9___rarg(x_1108);
return x_1109;
}
}
}
}
else
{
lean_object* x_1110; lean_object* x_1111; lean_object* x_1112; lean_object* x_1113; 
x_1110 = lean_ctor_get(x_947, 0);
lean_inc(x_1110);
x_1111 = lean_unsigned_to_nat(1u);
x_1112 = lean_nat_add(x_1111, x_1110);
lean_dec(x_1110);
x_1113 = lean_box(1);
lean_ctor_set(x_3, 4, x_947);
lean_ctor_set(x_3, 3, x_1113);
lean_ctor_set(x_3, 0, x_1112);
return x_3;
}
}
else
{
if (lean_obj_tag(x_7) == 0)
{
lean_object* x_1114; 
x_1114 = lean_ctor_get(x_7, 3);
lean_inc(x_1114);
if (lean_obj_tag(x_1114) == 0)
{
lean_object* x_1115; 
x_1115 = lean_ctor_get(x_7, 4);
lean_inc(x_1115);
if (lean_obj_tag(x_1115) == 0)
{
uint8_t x_1116; 
x_1116 = !lean_is_exclusive(x_7);
if (x_1116 == 0)
{
lean_object* x_1117; lean_object* x_1118; lean_object* x_1119; lean_object* x_1120; lean_object* x_1121; lean_object* x_1122; lean_object* x_1123; lean_object* x_1124; lean_object* x_1125; lean_object* x_1126; 
x_1117 = lean_ctor_get(x_7, 0);
x_1118 = lean_ctor_get(x_7, 1);
x_1119 = lean_ctor_get(x_7, 2);
x_1120 = lean_ctor_get(x_7, 4);
lean_dec(x_1120);
x_1121 = lean_ctor_get(x_7, 3);
lean_dec(x_1121);
x_1122 = lean_ctor_get(x_1115, 0);
lean_inc(x_1122);
x_1123 = lean_unsigned_to_nat(1u);
x_1124 = lean_nat_add(x_1123, x_1117);
lean_dec(x_1117);
x_1125 = lean_nat_add(x_1123, x_1122);
lean_dec(x_1122);
x_1126 = lean_box(1);
lean_ctor_set(x_7, 4, x_1126);
lean_ctor_set(x_7, 3, x_1115);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1125);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1119);
lean_ctor_set(x_3, 1, x_1118);
lean_ctor_set(x_3, 0, x_1124);
return x_3;
}
else
{
lean_object* x_1127; lean_object* x_1128; lean_object* x_1129; lean_object* x_1130; lean_object* x_1131; lean_object* x_1132; lean_object* x_1133; lean_object* x_1134; lean_object* x_1135; 
x_1127 = lean_ctor_get(x_7, 0);
x_1128 = lean_ctor_get(x_7, 1);
x_1129 = lean_ctor_get(x_7, 2);
lean_inc(x_1129);
lean_inc(x_1128);
lean_inc(x_1127);
lean_dec(x_7);
x_1130 = lean_ctor_get(x_1115, 0);
lean_inc(x_1130);
x_1131 = lean_unsigned_to_nat(1u);
x_1132 = lean_nat_add(x_1131, x_1127);
lean_dec(x_1127);
x_1133 = lean_nat_add(x_1131, x_1130);
lean_dec(x_1130);
x_1134 = lean_box(1);
x_1135 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1135, 0, x_1133);
lean_ctor_set(x_1135, 1, x_5);
lean_ctor_set(x_1135, 2, x_6);
lean_ctor_set(x_1135, 3, x_1115);
lean_ctor_set(x_1135, 4, x_1134);
lean_ctor_set(x_3, 4, x_1135);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1129);
lean_ctor_set(x_3, 1, x_1128);
lean_ctor_set(x_3, 0, x_1132);
return x_3;
}
}
else
{
uint8_t x_1136; 
x_1136 = !lean_is_exclusive(x_7);
if (x_1136 == 0)
{
lean_object* x_1137; lean_object* x_1138; lean_object* x_1139; lean_object* x_1140; lean_object* x_1141; lean_object* x_1142; lean_object* x_1143; lean_object* x_1144; 
x_1137 = lean_ctor_get(x_7, 1);
x_1138 = lean_ctor_get(x_7, 2);
x_1139 = lean_ctor_get(x_7, 4);
lean_dec(x_1139);
x_1140 = lean_ctor_get(x_7, 3);
lean_dec(x_1140);
x_1141 = lean_ctor_get(x_7, 0);
lean_dec(x_1141);
x_1142 = lean_box(1);
x_1143 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_7, 4, x_1142);
lean_ctor_set(x_7, 3, x_1142);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1143);
x_1144 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1138);
lean_ctor_set(x_3, 1, x_1137);
lean_ctor_set(x_3, 0, x_1144);
return x_3;
}
else
{
lean_object* x_1145; lean_object* x_1146; lean_object* x_1147; lean_object* x_1148; lean_object* x_1149; lean_object* x_1150; 
x_1145 = lean_ctor_get(x_7, 1);
x_1146 = lean_ctor_get(x_7, 2);
lean_inc(x_1146);
lean_inc(x_1145);
lean_dec(x_7);
x_1147 = lean_box(1);
x_1148 = lean_unsigned_to_nat(1u);
x_1149 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1149, 0, x_1148);
lean_ctor_set(x_1149, 1, x_5);
lean_ctor_set(x_1149, 2, x_6);
lean_ctor_set(x_1149, 3, x_1147);
lean_ctor_set(x_1149, 4, x_1147);
x_1150 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_1149);
lean_ctor_set(x_3, 3, x_1114);
lean_ctor_set(x_3, 2, x_1146);
lean_ctor_set(x_3, 1, x_1145);
lean_ctor_set(x_3, 0, x_1150);
return x_3;
}
}
}
else
{
lean_object* x_1151; 
x_1151 = lean_ctor_get(x_7, 4);
lean_inc(x_1151);
if (lean_obj_tag(x_1151) == 0)
{
uint8_t x_1152; 
x_1152 = !lean_is_exclusive(x_7);
if (x_1152 == 0)
{
lean_object* x_1153; lean_object* x_1154; lean_object* x_1155; lean_object* x_1156; lean_object* x_1157; uint8_t x_1158; 
x_1153 = lean_ctor_get(x_7, 1);
x_1154 = lean_ctor_get(x_7, 2);
x_1155 = lean_ctor_get(x_7, 4);
lean_dec(x_1155);
x_1156 = lean_ctor_get(x_7, 3);
lean_dec(x_1156);
x_1157 = lean_ctor_get(x_7, 0);
lean_dec(x_1157);
x_1158 = !lean_is_exclusive(x_1151);
if (x_1158 == 0)
{
lean_object* x_1159; lean_object* x_1160; lean_object* x_1161; lean_object* x_1162; lean_object* x_1163; lean_object* x_1164; lean_object* x_1165; lean_object* x_1166; 
x_1159 = lean_ctor_get(x_1151, 1);
x_1160 = lean_ctor_get(x_1151, 2);
x_1161 = lean_ctor_get(x_1151, 4);
lean_dec(x_1161);
x_1162 = lean_ctor_get(x_1151, 3);
lean_dec(x_1162);
x_1163 = lean_ctor_get(x_1151, 0);
lean_dec(x_1163);
x_1164 = lean_box(1);
x_1165 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_1151, 4, x_1164);
lean_ctor_set(x_1151, 3, x_1164);
lean_ctor_set(x_1151, 2, x_1154);
lean_ctor_set(x_1151, 1, x_1153);
lean_ctor_set(x_1151, 0, x_1165);
lean_ctor_set(x_7, 4, x_1164);
lean_ctor_set(x_7, 3, x_1164);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1165);
x_1166 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1151);
lean_ctor_set(x_3, 2, x_1160);
lean_ctor_set(x_3, 1, x_1159);
lean_ctor_set(x_3, 0, x_1166);
return x_3;
}
else
{
lean_object* x_1167; lean_object* x_1168; lean_object* x_1169; lean_object* x_1170; lean_object* x_1171; lean_object* x_1172; 
x_1167 = lean_ctor_get(x_1151, 1);
x_1168 = lean_ctor_get(x_1151, 2);
lean_inc(x_1168);
lean_inc(x_1167);
lean_dec(x_1151);
x_1169 = lean_box(1);
x_1170 = lean_unsigned_to_nat(1u);
x_1171 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1171, 0, x_1170);
lean_ctor_set(x_1171, 1, x_1153);
lean_ctor_set(x_1171, 2, x_1154);
lean_ctor_set(x_1171, 3, x_1169);
lean_ctor_set(x_1171, 4, x_1169);
lean_ctor_set(x_7, 4, x_1169);
lean_ctor_set(x_7, 3, x_1169);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 0, x_1170);
x_1172 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_7);
lean_ctor_set(x_3, 3, x_1171);
lean_ctor_set(x_3, 2, x_1168);
lean_ctor_set(x_3, 1, x_1167);
lean_ctor_set(x_3, 0, x_1172);
return x_3;
}
}
else
{
lean_object* x_1173; lean_object* x_1174; lean_object* x_1175; lean_object* x_1176; lean_object* x_1177; lean_object* x_1178; lean_object* x_1179; lean_object* x_1180; lean_object* x_1181; lean_object* x_1182; 
x_1173 = lean_ctor_get(x_7, 1);
x_1174 = lean_ctor_get(x_7, 2);
lean_inc(x_1174);
lean_inc(x_1173);
lean_dec(x_7);
x_1175 = lean_ctor_get(x_1151, 1);
lean_inc(x_1175);
x_1176 = lean_ctor_get(x_1151, 2);
lean_inc(x_1176);
if (lean_is_exclusive(x_1151)) {
 lean_ctor_release(x_1151, 0);
 lean_ctor_release(x_1151, 1);
 lean_ctor_release(x_1151, 2);
 lean_ctor_release(x_1151, 3);
 lean_ctor_release(x_1151, 4);
 x_1177 = x_1151;
} else {
 lean_dec_ref(x_1151);
 x_1177 = lean_box(0);
}
x_1178 = lean_box(1);
x_1179 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1177)) {
 x_1180 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1180 = x_1177;
}
lean_ctor_set(x_1180, 0, x_1179);
lean_ctor_set(x_1180, 1, x_1173);
lean_ctor_set(x_1180, 2, x_1174);
lean_ctor_set(x_1180, 3, x_1178);
lean_ctor_set(x_1180, 4, x_1178);
x_1181 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1181, 0, x_1179);
lean_ctor_set(x_1181, 1, x_5);
lean_ctor_set(x_1181, 2, x_6);
lean_ctor_set(x_1181, 3, x_1178);
lean_ctor_set(x_1181, 4, x_1178);
x_1182 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_3, 4, x_1181);
lean_ctor_set(x_3, 3, x_1180);
lean_ctor_set(x_3, 2, x_1176);
lean_ctor_set(x_3, 1, x_1175);
lean_ctor_set(x_3, 0, x_1182);
return x_3;
}
}
else
{
lean_object* x_1183; lean_object* x_1184; 
x_1183 = lean_box(1);
x_1184 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_3, 4, x_1183);
lean_ctor_set(x_3, 0, x_1184);
return x_3;
}
}
}
else
{
lean_object* x_1185; lean_object* x_1186; 
x_1185 = lean_box(1);
x_1186 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_3, 4, x_1185);
lean_ctor_set(x_3, 3, x_1185);
lean_ctor_set(x_3, 0, x_1186);
return x_3;
}
}
}
}
}
else
{
lean_object* x_1187; lean_object* x_1188; lean_object* x_1189; lean_object* x_1190; lean_object* x_1191; uint8_t x_1192; 
x_1187 = lean_ctor_get(x_3, 1);
x_1188 = lean_ctor_get(x_3, 2);
x_1189 = lean_ctor_get(x_3, 3);
x_1190 = lean_ctor_get(x_3, 4);
lean_inc(x_1190);
lean_inc(x_1189);
lean_inc(x_1188);
lean_inc(x_1187);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_1187);
lean_inc(x_2);
x_1191 = lean_apply_2(x_1, x_2, x_1187);
x_1192 = lean_unbox(x_1191);
lean_dec(x_1191);
switch (x_1192) {
case 0:
{
lean_object* x_1193; 
x_1193 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg(x_1, x_2, x_1189);
if (lean_obj_tag(x_1193) == 0)
{
if (lean_obj_tag(x_1190) == 0)
{
lean_object* x_1194; lean_object* x_1195; lean_object* x_1196; lean_object* x_1197; lean_object* x_1198; lean_object* x_1199; lean_object* x_1200; lean_object* x_1201; uint8_t x_1202; 
x_1194 = lean_ctor_get(x_1193, 0);
lean_inc(x_1194);
x_1195 = lean_ctor_get(x_1190, 0);
lean_inc(x_1195);
x_1196 = lean_ctor_get(x_1190, 1);
lean_inc(x_1196);
x_1197 = lean_ctor_get(x_1190, 2);
lean_inc(x_1197);
x_1198 = lean_ctor_get(x_1190, 3);
lean_inc(x_1198);
x_1199 = lean_ctor_get(x_1190, 4);
lean_inc(x_1199);
x_1200 = lean_unsigned_to_nat(3u);
x_1201 = lean_nat_mul(x_1200, x_1194);
x_1202 = lean_nat_dec_lt(x_1201, x_1195);
lean_dec(x_1201);
if (x_1202 == 0)
{
lean_object* x_1203; lean_object* x_1204; lean_object* x_1205; lean_object* x_1206; 
lean_dec(x_1199);
lean_dec(x_1198);
lean_dec(x_1197);
lean_dec(x_1196);
x_1203 = lean_unsigned_to_nat(1u);
x_1204 = lean_nat_add(x_1203, x_1194);
lean_dec(x_1194);
x_1205 = lean_nat_add(x_1204, x_1195);
lean_dec(x_1195);
lean_dec(x_1204);
x_1206 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1206, 0, x_1205);
lean_ctor_set(x_1206, 1, x_1187);
lean_ctor_set(x_1206, 2, x_1188);
lean_ctor_set(x_1206, 3, x_1193);
lean_ctor_set(x_1206, 4, x_1190);
return x_1206;
}
else
{
lean_object* x_1207; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1207 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1207 = lean_box(0);
}
if (lean_obj_tag(x_1198) == 0)
{
if (lean_obj_tag(x_1199) == 0)
{
lean_object* x_1208; lean_object* x_1209; lean_object* x_1210; lean_object* x_1211; lean_object* x_1212; lean_object* x_1213; lean_object* x_1214; lean_object* x_1215; uint8_t x_1216; 
x_1208 = lean_ctor_get(x_1198, 0);
lean_inc(x_1208);
x_1209 = lean_ctor_get(x_1198, 1);
lean_inc(x_1209);
x_1210 = lean_ctor_get(x_1198, 2);
lean_inc(x_1210);
x_1211 = lean_ctor_get(x_1198, 3);
lean_inc(x_1211);
x_1212 = lean_ctor_get(x_1198, 4);
lean_inc(x_1212);
x_1213 = lean_ctor_get(x_1199, 0);
lean_inc(x_1213);
x_1214 = lean_unsigned_to_nat(2u);
x_1215 = lean_nat_mul(x_1214, x_1213);
x_1216 = lean_nat_dec_lt(x_1208, x_1215);
lean_dec(x_1215);
if (x_1216 == 0)
{
lean_object* x_1217; lean_object* x_1218; lean_object* x_1219; lean_object* x_1220; lean_object* x_1221; 
lean_dec(x_1208);
if (lean_is_exclusive(x_1198)) {
 lean_ctor_release(x_1198, 0);
 lean_ctor_release(x_1198, 1);
 lean_ctor_release(x_1198, 2);
 lean_ctor_release(x_1198, 3);
 lean_ctor_release(x_1198, 4);
 x_1217 = x_1198;
} else {
 lean_dec_ref(x_1198);
 x_1217 = lean_box(0);
}
x_1218 = lean_unsigned_to_nat(1u);
x_1219 = lean_nat_add(x_1218, x_1194);
lean_dec(x_1194);
x_1220 = lean_nat_add(x_1219, x_1195);
lean_dec(x_1195);
x_1221 = lean_nat_add(x_1218, x_1213);
lean_dec(x_1213);
if (lean_obj_tag(x_1211) == 0)
{
lean_object* x_1222; lean_object* x_1223; lean_object* x_1224; lean_object* x_1225; 
x_1222 = lean_ctor_get(x_1211, 0);
lean_inc(x_1222);
x_1223 = lean_nat_add(x_1219, x_1222);
lean_dec(x_1222);
lean_dec(x_1219);
lean_inc(x_1193);
if (lean_is_scalar(x_1217)) {
 x_1224 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1224 = x_1217;
}
lean_ctor_set(x_1224, 0, x_1223);
lean_ctor_set(x_1224, 1, x_1187);
lean_ctor_set(x_1224, 2, x_1188);
lean_ctor_set(x_1224, 3, x_1193);
lean_ctor_set(x_1224, 4, x_1211);
if (lean_is_exclusive(x_1193)) {
 lean_ctor_release(x_1193, 0);
 lean_ctor_release(x_1193, 1);
 lean_ctor_release(x_1193, 2);
 lean_ctor_release(x_1193, 3);
 lean_ctor_release(x_1193, 4);
 x_1225 = x_1193;
} else {
 lean_dec_ref(x_1193);
 x_1225 = lean_box(0);
}
if (lean_obj_tag(x_1212) == 0)
{
lean_object* x_1226; lean_object* x_1227; lean_object* x_1228; lean_object* x_1229; 
x_1226 = lean_ctor_get(x_1212, 0);
lean_inc(x_1226);
x_1227 = lean_nat_add(x_1221, x_1226);
lean_dec(x_1226);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1228 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1228 = x_1207;
}
lean_ctor_set(x_1228, 0, x_1227);
lean_ctor_set(x_1228, 1, x_1196);
lean_ctor_set(x_1228, 2, x_1197);
lean_ctor_set(x_1228, 3, x_1212);
lean_ctor_set(x_1228, 4, x_1199);
if (lean_is_scalar(x_1225)) {
 x_1229 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1229 = x_1225;
}
lean_ctor_set(x_1229, 0, x_1220);
lean_ctor_set(x_1229, 1, x_1209);
lean_ctor_set(x_1229, 2, x_1210);
lean_ctor_set(x_1229, 3, x_1224);
lean_ctor_set(x_1229, 4, x_1228);
return x_1229;
}
else
{
lean_object* x_1230; lean_object* x_1231; lean_object* x_1232; lean_object* x_1233; 
x_1230 = lean_unsigned_to_nat(0u);
x_1231 = lean_nat_add(x_1221, x_1230);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1232 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1232 = x_1207;
}
lean_ctor_set(x_1232, 0, x_1231);
lean_ctor_set(x_1232, 1, x_1196);
lean_ctor_set(x_1232, 2, x_1197);
lean_ctor_set(x_1232, 3, x_1212);
lean_ctor_set(x_1232, 4, x_1199);
if (lean_is_scalar(x_1225)) {
 x_1233 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1233 = x_1225;
}
lean_ctor_set(x_1233, 0, x_1220);
lean_ctor_set(x_1233, 1, x_1209);
lean_ctor_set(x_1233, 2, x_1210);
lean_ctor_set(x_1233, 3, x_1224);
lean_ctor_set(x_1233, 4, x_1232);
return x_1233;
}
}
else
{
lean_object* x_1234; lean_object* x_1235; lean_object* x_1236; lean_object* x_1237; 
x_1234 = lean_unsigned_to_nat(0u);
x_1235 = lean_nat_add(x_1219, x_1234);
lean_dec(x_1219);
lean_inc(x_1193);
if (lean_is_scalar(x_1217)) {
 x_1236 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1236 = x_1217;
}
lean_ctor_set(x_1236, 0, x_1235);
lean_ctor_set(x_1236, 1, x_1187);
lean_ctor_set(x_1236, 2, x_1188);
lean_ctor_set(x_1236, 3, x_1193);
lean_ctor_set(x_1236, 4, x_1211);
if (lean_is_exclusive(x_1193)) {
 lean_ctor_release(x_1193, 0);
 lean_ctor_release(x_1193, 1);
 lean_ctor_release(x_1193, 2);
 lean_ctor_release(x_1193, 3);
 lean_ctor_release(x_1193, 4);
 x_1237 = x_1193;
} else {
 lean_dec_ref(x_1193);
 x_1237 = lean_box(0);
}
if (lean_obj_tag(x_1212) == 0)
{
lean_object* x_1238; lean_object* x_1239; lean_object* x_1240; lean_object* x_1241; 
x_1238 = lean_ctor_get(x_1212, 0);
lean_inc(x_1238);
x_1239 = lean_nat_add(x_1221, x_1238);
lean_dec(x_1238);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1240 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1240 = x_1207;
}
lean_ctor_set(x_1240, 0, x_1239);
lean_ctor_set(x_1240, 1, x_1196);
lean_ctor_set(x_1240, 2, x_1197);
lean_ctor_set(x_1240, 3, x_1212);
lean_ctor_set(x_1240, 4, x_1199);
if (lean_is_scalar(x_1237)) {
 x_1241 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1241 = x_1237;
}
lean_ctor_set(x_1241, 0, x_1220);
lean_ctor_set(x_1241, 1, x_1209);
lean_ctor_set(x_1241, 2, x_1210);
lean_ctor_set(x_1241, 3, x_1236);
lean_ctor_set(x_1241, 4, x_1240);
return x_1241;
}
else
{
lean_object* x_1242; lean_object* x_1243; lean_object* x_1244; 
x_1242 = lean_nat_add(x_1221, x_1234);
lean_dec(x_1221);
if (lean_is_scalar(x_1207)) {
 x_1243 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1243 = x_1207;
}
lean_ctor_set(x_1243, 0, x_1242);
lean_ctor_set(x_1243, 1, x_1196);
lean_ctor_set(x_1243, 2, x_1197);
lean_ctor_set(x_1243, 3, x_1212);
lean_ctor_set(x_1243, 4, x_1199);
if (lean_is_scalar(x_1237)) {
 x_1244 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1244 = x_1237;
}
lean_ctor_set(x_1244, 0, x_1220);
lean_ctor_set(x_1244, 1, x_1209);
lean_ctor_set(x_1244, 2, x_1210);
lean_ctor_set(x_1244, 3, x_1236);
lean_ctor_set(x_1244, 4, x_1243);
return x_1244;
}
}
}
else
{
lean_object* x_1245; lean_object* x_1246; lean_object* x_1247; lean_object* x_1248; lean_object* x_1249; lean_object* x_1250; lean_object* x_1251; 
lean_dec(x_1213);
lean_dec(x_1212);
lean_dec(x_1211);
lean_dec(x_1210);
lean_dec(x_1209);
x_1245 = lean_unsigned_to_nat(1u);
x_1246 = lean_nat_add(x_1245, x_1194);
lean_dec(x_1194);
x_1247 = lean_nat_add(x_1246, x_1195);
lean_dec(x_1195);
x_1248 = lean_nat_add(x_1246, x_1208);
lean_dec(x_1208);
lean_dec(x_1246);
lean_inc(x_1193);
if (lean_is_scalar(x_1207)) {
 x_1249 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1249 = x_1207;
}
lean_ctor_set(x_1249, 0, x_1248);
lean_ctor_set(x_1249, 1, x_1187);
lean_ctor_set(x_1249, 2, x_1188);
lean_ctor_set(x_1249, 3, x_1193);
lean_ctor_set(x_1249, 4, x_1198);
if (lean_is_exclusive(x_1193)) {
 lean_ctor_release(x_1193, 0);
 lean_ctor_release(x_1193, 1);
 lean_ctor_release(x_1193, 2);
 lean_ctor_release(x_1193, 3);
 lean_ctor_release(x_1193, 4);
 x_1250 = x_1193;
} else {
 lean_dec_ref(x_1193);
 x_1250 = lean_box(0);
}
if (lean_is_scalar(x_1250)) {
 x_1251 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1251 = x_1250;
}
lean_ctor_set(x_1251, 0, x_1247);
lean_ctor_set(x_1251, 1, x_1196);
lean_ctor_set(x_1251, 2, x_1197);
lean_ctor_set(x_1251, 3, x_1249);
lean_ctor_set(x_1251, 4, x_1199);
return x_1251;
}
}
else
{
lean_object* x_1252; lean_object* x_1253; 
lean_dec(x_1207);
lean_dec(x_1198);
lean_dec(x_1197);
lean_dec(x_1196);
lean_dec(x_1195);
lean_dec(x_1194);
lean_dec(x_1193);
lean_dec(x_1188);
lean_dec(x_1187);
x_1252 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_1253 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__2___rarg(x_1252);
return x_1253;
}
}
else
{
lean_object* x_1254; lean_object* x_1255; 
lean_dec(x_1207);
lean_dec(x_1199);
lean_dec(x_1197);
lean_dec(x_1196);
lean_dec(x_1195);
lean_dec(x_1194);
lean_dec(x_1193);
lean_dec(x_1188);
lean_dec(x_1187);
x_1254 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_1255 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__3___rarg(x_1254);
return x_1255;
}
}
}
else
{
lean_object* x_1256; lean_object* x_1257; lean_object* x_1258; lean_object* x_1259; lean_object* x_1260; 
x_1256 = lean_ctor_get(x_1193, 0);
lean_inc(x_1256);
x_1257 = lean_unsigned_to_nat(1u);
x_1258 = lean_nat_add(x_1257, x_1256);
lean_dec(x_1256);
x_1259 = lean_box(1);
x_1260 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1260, 0, x_1258);
lean_ctor_set(x_1260, 1, x_1187);
lean_ctor_set(x_1260, 2, x_1188);
lean_ctor_set(x_1260, 3, x_1193);
lean_ctor_set(x_1260, 4, x_1259);
return x_1260;
}
}
else
{
if (lean_obj_tag(x_1190) == 0)
{
lean_object* x_1261; 
x_1261 = lean_ctor_get(x_1190, 3);
lean_inc(x_1261);
if (lean_obj_tag(x_1261) == 0)
{
lean_object* x_1262; 
x_1262 = lean_ctor_get(x_1190, 4);
lean_inc(x_1262);
if (lean_obj_tag(x_1262) == 0)
{
lean_object* x_1263; lean_object* x_1264; lean_object* x_1265; lean_object* x_1266; lean_object* x_1267; lean_object* x_1268; lean_object* x_1269; lean_object* x_1270; lean_object* x_1271; lean_object* x_1272; lean_object* x_1273; 
x_1263 = lean_ctor_get(x_1190, 0);
lean_inc(x_1263);
x_1264 = lean_ctor_get(x_1190, 1);
lean_inc(x_1264);
x_1265 = lean_ctor_get(x_1190, 2);
lean_inc(x_1265);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1266 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1266 = lean_box(0);
}
x_1267 = lean_ctor_get(x_1261, 0);
lean_inc(x_1267);
x_1268 = lean_unsigned_to_nat(1u);
x_1269 = lean_nat_add(x_1268, x_1263);
lean_dec(x_1263);
x_1270 = lean_nat_add(x_1268, x_1267);
lean_dec(x_1267);
x_1271 = lean_box(1);
if (lean_is_scalar(x_1266)) {
 x_1272 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1272 = x_1266;
}
lean_ctor_set(x_1272, 0, x_1270);
lean_ctor_set(x_1272, 1, x_1187);
lean_ctor_set(x_1272, 2, x_1188);
lean_ctor_set(x_1272, 3, x_1271);
lean_ctor_set(x_1272, 4, x_1261);
x_1273 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1273, 0, x_1269);
lean_ctor_set(x_1273, 1, x_1264);
lean_ctor_set(x_1273, 2, x_1265);
lean_ctor_set(x_1273, 3, x_1272);
lean_ctor_set(x_1273, 4, x_1262);
return x_1273;
}
else
{
lean_object* x_1274; lean_object* x_1275; lean_object* x_1276; lean_object* x_1277; lean_object* x_1278; lean_object* x_1279; lean_object* x_1280; lean_object* x_1281; lean_object* x_1282; lean_object* x_1283; lean_object* x_1284; lean_object* x_1285; 
x_1274 = lean_ctor_get(x_1190, 1);
lean_inc(x_1274);
x_1275 = lean_ctor_get(x_1190, 2);
lean_inc(x_1275);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1276 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1276 = lean_box(0);
}
x_1277 = lean_ctor_get(x_1261, 1);
lean_inc(x_1277);
x_1278 = lean_ctor_get(x_1261, 2);
lean_inc(x_1278);
if (lean_is_exclusive(x_1261)) {
 lean_ctor_release(x_1261, 0);
 lean_ctor_release(x_1261, 1);
 lean_ctor_release(x_1261, 2);
 lean_ctor_release(x_1261, 3);
 lean_ctor_release(x_1261, 4);
 x_1279 = x_1261;
} else {
 lean_dec_ref(x_1261);
 x_1279 = lean_box(0);
}
x_1280 = lean_box(1);
x_1281 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1279)) {
 x_1282 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1282 = x_1279;
}
lean_ctor_set(x_1282, 0, x_1281);
lean_ctor_set(x_1282, 1, x_1187);
lean_ctor_set(x_1282, 2, x_1188);
lean_ctor_set(x_1282, 3, x_1280);
lean_ctor_set(x_1282, 4, x_1280);
if (lean_is_scalar(x_1276)) {
 x_1283 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1283 = x_1276;
}
lean_ctor_set(x_1283, 0, x_1281);
lean_ctor_set(x_1283, 1, x_1274);
lean_ctor_set(x_1283, 2, x_1275);
lean_ctor_set(x_1283, 3, x_1280);
lean_ctor_set(x_1283, 4, x_1280);
x_1284 = lean_unsigned_to_nat(3u);
x_1285 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1285, 0, x_1284);
lean_ctor_set(x_1285, 1, x_1277);
lean_ctor_set(x_1285, 2, x_1278);
lean_ctor_set(x_1285, 3, x_1282);
lean_ctor_set(x_1285, 4, x_1283);
return x_1285;
}
}
else
{
lean_object* x_1286; 
x_1286 = lean_ctor_get(x_1190, 4);
lean_inc(x_1286);
if (lean_obj_tag(x_1286) == 0)
{
lean_object* x_1287; lean_object* x_1288; lean_object* x_1289; lean_object* x_1290; lean_object* x_1291; lean_object* x_1292; lean_object* x_1293; lean_object* x_1294; 
x_1287 = lean_ctor_get(x_1190, 1);
lean_inc(x_1287);
x_1288 = lean_ctor_get(x_1190, 2);
lean_inc(x_1288);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1289 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1289 = lean_box(0);
}
x_1290 = lean_box(1);
x_1291 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1289)) {
 x_1292 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1292 = x_1289;
}
lean_ctor_set(x_1292, 0, x_1291);
lean_ctor_set(x_1292, 1, x_1187);
lean_ctor_set(x_1292, 2, x_1188);
lean_ctor_set(x_1292, 3, x_1290);
lean_ctor_set(x_1292, 4, x_1290);
x_1293 = lean_unsigned_to_nat(3u);
x_1294 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1294, 0, x_1293);
lean_ctor_set(x_1294, 1, x_1287);
lean_ctor_set(x_1294, 2, x_1288);
lean_ctor_set(x_1294, 3, x_1292);
lean_ctor_set(x_1294, 4, x_1286);
return x_1294;
}
else
{
lean_object* x_1295; lean_object* x_1296; lean_object* x_1297; 
x_1295 = lean_box(1);
x_1296 = lean_unsigned_to_nat(2u);
x_1297 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1297, 0, x_1296);
lean_ctor_set(x_1297, 1, x_1187);
lean_ctor_set(x_1297, 2, x_1188);
lean_ctor_set(x_1297, 3, x_1295);
lean_ctor_set(x_1297, 4, x_1190);
return x_1297;
}
}
}
else
{
lean_object* x_1298; lean_object* x_1299; lean_object* x_1300; 
x_1298 = lean_box(1);
x_1299 = lean_unsigned_to_nat(1u);
x_1300 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1300, 0, x_1299);
lean_ctor_set(x_1300, 1, x_1187);
lean_ctor_set(x_1300, 2, x_1188);
lean_ctor_set(x_1300, 3, x_1298);
lean_ctor_set(x_1300, 4, x_1298);
return x_1300;
}
}
}
case 1:
{
lean_dec(x_1188);
lean_dec(x_1187);
lean_dec(x_2);
lean_dec(x_1);
if (lean_obj_tag(x_1189) == 0)
{
if (lean_obj_tag(x_1190) == 0)
{
lean_object* x_1301; lean_object* x_1302; lean_object* x_1303; lean_object* x_1304; lean_object* x_1305; lean_object* x_1306; lean_object* x_1307; lean_object* x_1308; lean_object* x_1309; lean_object* x_1310; uint8_t x_1311; 
x_1301 = lean_ctor_get(x_1189, 0);
lean_inc(x_1301);
x_1302 = lean_ctor_get(x_1189, 1);
lean_inc(x_1302);
x_1303 = lean_ctor_get(x_1189, 2);
lean_inc(x_1303);
x_1304 = lean_ctor_get(x_1189, 3);
lean_inc(x_1304);
x_1305 = lean_ctor_get(x_1189, 4);
lean_inc(x_1305);
x_1306 = lean_ctor_get(x_1190, 0);
lean_inc(x_1306);
x_1307 = lean_ctor_get(x_1190, 1);
lean_inc(x_1307);
x_1308 = lean_ctor_get(x_1190, 2);
lean_inc(x_1308);
x_1309 = lean_ctor_get(x_1190, 3);
lean_inc(x_1309);
x_1310 = lean_ctor_get(x_1190, 4);
lean_inc(x_1310);
x_1311 = lean_nat_dec_lt(x_1301, x_1306);
if (x_1311 == 0)
{
lean_object* x_1312; lean_object* x_1313; lean_object* x_1314; 
lean_dec(x_1301);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1312 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1312 = lean_box(0);
}
x_1313 = l_Std_DTreeMap_Internal_Impl_maxView_x21___rarg(x_1302, x_1303, x_1304, x_1305);
x_1314 = lean_ctor_get(x_1313, 2);
lean_inc(x_1314);
if (lean_obj_tag(x_1314) == 0)
{
lean_object* x_1315; lean_object* x_1316; lean_object* x_1317; lean_object* x_1318; lean_object* x_1319; uint8_t x_1320; 
x_1315 = lean_ctor_get(x_1313, 0);
lean_inc(x_1315);
x_1316 = lean_ctor_get(x_1313, 1);
lean_inc(x_1316);
lean_dec(x_1313);
x_1317 = lean_ctor_get(x_1314, 0);
lean_inc(x_1317);
x_1318 = lean_unsigned_to_nat(3u);
x_1319 = lean_nat_mul(x_1318, x_1317);
x_1320 = lean_nat_dec_lt(x_1319, x_1306);
lean_dec(x_1319);
if (x_1320 == 0)
{
lean_object* x_1321; lean_object* x_1322; lean_object* x_1323; lean_object* x_1324; 
lean_dec(x_1310);
lean_dec(x_1309);
lean_dec(x_1308);
lean_dec(x_1307);
x_1321 = lean_unsigned_to_nat(1u);
x_1322 = lean_nat_add(x_1321, x_1317);
lean_dec(x_1317);
x_1323 = lean_nat_add(x_1322, x_1306);
lean_dec(x_1306);
lean_dec(x_1322);
if (lean_is_scalar(x_1312)) {
 x_1324 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1324 = x_1312;
}
lean_ctor_set(x_1324, 0, x_1323);
lean_ctor_set(x_1324, 1, x_1315);
lean_ctor_set(x_1324, 2, x_1316);
lean_ctor_set(x_1324, 3, x_1314);
lean_ctor_set(x_1324, 4, x_1190);
return x_1324;
}
else
{
lean_object* x_1325; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1325 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1325 = lean_box(0);
}
if (lean_obj_tag(x_1309) == 0)
{
if (lean_obj_tag(x_1310) == 0)
{
lean_object* x_1326; lean_object* x_1327; lean_object* x_1328; lean_object* x_1329; lean_object* x_1330; lean_object* x_1331; lean_object* x_1332; lean_object* x_1333; uint8_t x_1334; 
x_1326 = lean_ctor_get(x_1309, 0);
lean_inc(x_1326);
x_1327 = lean_ctor_get(x_1309, 1);
lean_inc(x_1327);
x_1328 = lean_ctor_get(x_1309, 2);
lean_inc(x_1328);
x_1329 = lean_ctor_get(x_1309, 3);
lean_inc(x_1329);
x_1330 = lean_ctor_get(x_1309, 4);
lean_inc(x_1330);
x_1331 = lean_ctor_get(x_1310, 0);
lean_inc(x_1331);
x_1332 = lean_unsigned_to_nat(2u);
x_1333 = lean_nat_mul(x_1332, x_1331);
x_1334 = lean_nat_dec_lt(x_1326, x_1333);
lean_dec(x_1333);
if (x_1334 == 0)
{
lean_object* x_1335; lean_object* x_1336; lean_object* x_1337; lean_object* x_1338; lean_object* x_1339; 
lean_dec(x_1326);
lean_dec(x_1312);
if (lean_is_exclusive(x_1309)) {
 lean_ctor_release(x_1309, 0);
 lean_ctor_release(x_1309, 1);
 lean_ctor_release(x_1309, 2);
 lean_ctor_release(x_1309, 3);
 lean_ctor_release(x_1309, 4);
 x_1335 = x_1309;
} else {
 lean_dec_ref(x_1309);
 x_1335 = lean_box(0);
}
x_1336 = lean_unsigned_to_nat(1u);
x_1337 = lean_nat_add(x_1336, x_1317);
lean_dec(x_1317);
x_1338 = lean_nat_add(x_1337, x_1306);
lean_dec(x_1306);
x_1339 = lean_nat_add(x_1336, x_1331);
lean_dec(x_1331);
if (lean_obj_tag(x_1329) == 0)
{
lean_object* x_1340; lean_object* x_1341; lean_object* x_1342; lean_object* x_1343; 
x_1340 = lean_ctor_get(x_1329, 0);
lean_inc(x_1340);
x_1341 = lean_nat_add(x_1337, x_1340);
lean_dec(x_1340);
lean_dec(x_1337);
lean_inc(x_1314);
if (lean_is_scalar(x_1335)) {
 x_1342 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1342 = x_1335;
}
lean_ctor_set(x_1342, 0, x_1341);
lean_ctor_set(x_1342, 1, x_1315);
lean_ctor_set(x_1342, 2, x_1316);
lean_ctor_set(x_1342, 3, x_1314);
lean_ctor_set(x_1342, 4, x_1329);
if (lean_is_exclusive(x_1314)) {
 lean_ctor_release(x_1314, 0);
 lean_ctor_release(x_1314, 1);
 lean_ctor_release(x_1314, 2);
 lean_ctor_release(x_1314, 3);
 lean_ctor_release(x_1314, 4);
 x_1343 = x_1314;
} else {
 lean_dec_ref(x_1314);
 x_1343 = lean_box(0);
}
if (lean_obj_tag(x_1330) == 0)
{
lean_object* x_1344; lean_object* x_1345; lean_object* x_1346; lean_object* x_1347; 
x_1344 = lean_ctor_get(x_1330, 0);
lean_inc(x_1344);
x_1345 = lean_nat_add(x_1339, x_1344);
lean_dec(x_1344);
lean_dec(x_1339);
if (lean_is_scalar(x_1343)) {
 x_1346 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1346 = x_1343;
}
lean_ctor_set(x_1346, 0, x_1345);
lean_ctor_set(x_1346, 1, x_1307);
lean_ctor_set(x_1346, 2, x_1308);
lean_ctor_set(x_1346, 3, x_1330);
lean_ctor_set(x_1346, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1347 = x_1325;
}
lean_ctor_set(x_1347, 0, x_1338);
lean_ctor_set(x_1347, 1, x_1327);
lean_ctor_set(x_1347, 2, x_1328);
lean_ctor_set(x_1347, 3, x_1342);
lean_ctor_set(x_1347, 4, x_1346);
return x_1347;
}
else
{
lean_object* x_1348; lean_object* x_1349; lean_object* x_1350; lean_object* x_1351; 
x_1348 = lean_unsigned_to_nat(0u);
x_1349 = lean_nat_add(x_1339, x_1348);
lean_dec(x_1339);
if (lean_is_scalar(x_1343)) {
 x_1350 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1350 = x_1343;
}
lean_ctor_set(x_1350, 0, x_1349);
lean_ctor_set(x_1350, 1, x_1307);
lean_ctor_set(x_1350, 2, x_1308);
lean_ctor_set(x_1350, 3, x_1330);
lean_ctor_set(x_1350, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1351 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1351 = x_1325;
}
lean_ctor_set(x_1351, 0, x_1338);
lean_ctor_set(x_1351, 1, x_1327);
lean_ctor_set(x_1351, 2, x_1328);
lean_ctor_set(x_1351, 3, x_1342);
lean_ctor_set(x_1351, 4, x_1350);
return x_1351;
}
}
else
{
lean_object* x_1352; lean_object* x_1353; lean_object* x_1354; lean_object* x_1355; 
x_1352 = lean_unsigned_to_nat(0u);
x_1353 = lean_nat_add(x_1337, x_1352);
lean_dec(x_1337);
lean_inc(x_1314);
if (lean_is_scalar(x_1335)) {
 x_1354 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1354 = x_1335;
}
lean_ctor_set(x_1354, 0, x_1353);
lean_ctor_set(x_1354, 1, x_1315);
lean_ctor_set(x_1354, 2, x_1316);
lean_ctor_set(x_1354, 3, x_1314);
lean_ctor_set(x_1354, 4, x_1329);
if (lean_is_exclusive(x_1314)) {
 lean_ctor_release(x_1314, 0);
 lean_ctor_release(x_1314, 1);
 lean_ctor_release(x_1314, 2);
 lean_ctor_release(x_1314, 3);
 lean_ctor_release(x_1314, 4);
 x_1355 = x_1314;
} else {
 lean_dec_ref(x_1314);
 x_1355 = lean_box(0);
}
if (lean_obj_tag(x_1330) == 0)
{
lean_object* x_1356; lean_object* x_1357; lean_object* x_1358; lean_object* x_1359; 
x_1356 = lean_ctor_get(x_1330, 0);
lean_inc(x_1356);
x_1357 = lean_nat_add(x_1339, x_1356);
lean_dec(x_1356);
lean_dec(x_1339);
if (lean_is_scalar(x_1355)) {
 x_1358 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1358 = x_1355;
}
lean_ctor_set(x_1358, 0, x_1357);
lean_ctor_set(x_1358, 1, x_1307);
lean_ctor_set(x_1358, 2, x_1308);
lean_ctor_set(x_1358, 3, x_1330);
lean_ctor_set(x_1358, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1359 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1359 = x_1325;
}
lean_ctor_set(x_1359, 0, x_1338);
lean_ctor_set(x_1359, 1, x_1327);
lean_ctor_set(x_1359, 2, x_1328);
lean_ctor_set(x_1359, 3, x_1354);
lean_ctor_set(x_1359, 4, x_1358);
return x_1359;
}
else
{
lean_object* x_1360; lean_object* x_1361; lean_object* x_1362; 
x_1360 = lean_nat_add(x_1339, x_1352);
lean_dec(x_1339);
if (lean_is_scalar(x_1355)) {
 x_1361 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1361 = x_1355;
}
lean_ctor_set(x_1361, 0, x_1360);
lean_ctor_set(x_1361, 1, x_1307);
lean_ctor_set(x_1361, 2, x_1308);
lean_ctor_set(x_1361, 3, x_1330);
lean_ctor_set(x_1361, 4, x_1310);
if (lean_is_scalar(x_1325)) {
 x_1362 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1362 = x_1325;
}
lean_ctor_set(x_1362, 0, x_1338);
lean_ctor_set(x_1362, 1, x_1327);
lean_ctor_set(x_1362, 2, x_1328);
lean_ctor_set(x_1362, 3, x_1354);
lean_ctor_set(x_1362, 4, x_1361);
return x_1362;
}
}
}
else
{
lean_object* x_1363; lean_object* x_1364; lean_object* x_1365; lean_object* x_1366; lean_object* x_1367; lean_object* x_1368; 
lean_dec(x_1331);
lean_dec(x_1330);
lean_dec(x_1329);
lean_dec(x_1328);
lean_dec(x_1327);
x_1363 = lean_unsigned_to_nat(1u);
x_1364 = lean_nat_add(x_1363, x_1317);
lean_dec(x_1317);
x_1365 = lean_nat_add(x_1364, x_1306);
lean_dec(x_1306);
x_1366 = lean_nat_add(x_1364, x_1326);
lean_dec(x_1326);
lean_dec(x_1364);
if (lean_is_scalar(x_1325)) {
 x_1367 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1367 = x_1325;
}
lean_ctor_set(x_1367, 0, x_1366);
lean_ctor_set(x_1367, 1, x_1315);
lean_ctor_set(x_1367, 2, x_1316);
lean_ctor_set(x_1367, 3, x_1314);
lean_ctor_set(x_1367, 4, x_1309);
if (lean_is_scalar(x_1312)) {
 x_1368 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1368 = x_1312;
}
lean_ctor_set(x_1368, 0, x_1365);
lean_ctor_set(x_1368, 1, x_1307);
lean_ctor_set(x_1368, 2, x_1308);
lean_ctor_set(x_1368, 3, x_1367);
lean_ctor_set(x_1368, 4, x_1310);
return x_1368;
}
}
else
{
lean_object* x_1369; lean_object* x_1370; 
lean_dec(x_1325);
lean_dec(x_1317);
lean_dec(x_1316);
lean_dec(x_1315);
lean_dec(x_1314);
lean_dec(x_1312);
lean_dec(x_1309);
lean_dec(x_1308);
lean_dec(x_1307);
lean_dec(x_1306);
x_1369 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_1370 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__4___rarg(x_1369);
return x_1370;
}
}
else
{
lean_object* x_1371; lean_object* x_1372; 
lean_dec(x_1325);
lean_dec(x_1317);
lean_dec(x_1316);
lean_dec(x_1315);
lean_dec(x_1314);
lean_dec(x_1312);
lean_dec(x_1310);
lean_dec(x_1308);
lean_dec(x_1307);
lean_dec(x_1306);
x_1371 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_1372 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__5___rarg(x_1371);
return x_1372;
}
}
}
else
{
if (lean_obj_tag(x_1309) == 0)
{
lean_object* x_1373; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1373 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1373 = lean_box(0);
}
if (lean_obj_tag(x_1310) == 0)
{
lean_object* x_1374; lean_object* x_1375; lean_object* x_1376; lean_object* x_1377; lean_object* x_1378; lean_object* x_1379; lean_object* x_1380; lean_object* x_1381; lean_object* x_1382; 
x_1374 = lean_ctor_get(x_1313, 0);
lean_inc(x_1374);
x_1375 = lean_ctor_get(x_1313, 1);
lean_inc(x_1375);
lean_dec(x_1313);
x_1376 = lean_ctor_get(x_1309, 0);
lean_inc(x_1376);
x_1377 = lean_unsigned_to_nat(1u);
x_1378 = lean_nat_add(x_1377, x_1306);
lean_dec(x_1306);
x_1379 = lean_nat_add(x_1377, x_1376);
lean_dec(x_1376);
x_1380 = lean_box(1);
if (lean_is_scalar(x_1373)) {
 x_1381 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1381 = x_1373;
}
lean_ctor_set(x_1381, 0, x_1379);
lean_ctor_set(x_1381, 1, x_1374);
lean_ctor_set(x_1381, 2, x_1375);
lean_ctor_set(x_1381, 3, x_1380);
lean_ctor_set(x_1381, 4, x_1309);
if (lean_is_scalar(x_1312)) {
 x_1382 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1382 = x_1312;
}
lean_ctor_set(x_1382, 0, x_1378);
lean_ctor_set(x_1382, 1, x_1307);
lean_ctor_set(x_1382, 2, x_1308);
lean_ctor_set(x_1382, 3, x_1381);
lean_ctor_set(x_1382, 4, x_1310);
return x_1382;
}
else
{
lean_object* x_1383; lean_object* x_1384; lean_object* x_1385; lean_object* x_1386; lean_object* x_1387; lean_object* x_1388; lean_object* x_1389; lean_object* x_1390; lean_object* x_1391; lean_object* x_1392; lean_object* x_1393; 
lean_dec(x_1306);
x_1383 = lean_ctor_get(x_1313, 0);
lean_inc(x_1383);
x_1384 = lean_ctor_get(x_1313, 1);
lean_inc(x_1384);
lean_dec(x_1313);
x_1385 = lean_ctor_get(x_1309, 1);
lean_inc(x_1385);
x_1386 = lean_ctor_get(x_1309, 2);
lean_inc(x_1386);
if (lean_is_exclusive(x_1309)) {
 lean_ctor_release(x_1309, 0);
 lean_ctor_release(x_1309, 1);
 lean_ctor_release(x_1309, 2);
 lean_ctor_release(x_1309, 3);
 lean_ctor_release(x_1309, 4);
 x_1387 = x_1309;
} else {
 lean_dec_ref(x_1309);
 x_1387 = lean_box(0);
}
x_1388 = lean_box(1);
x_1389 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1387)) {
 x_1390 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1390 = x_1387;
}
lean_ctor_set(x_1390, 0, x_1389);
lean_ctor_set(x_1390, 1, x_1383);
lean_ctor_set(x_1390, 2, x_1384);
lean_ctor_set(x_1390, 3, x_1388);
lean_ctor_set(x_1390, 4, x_1388);
if (lean_is_scalar(x_1373)) {
 x_1391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1391 = x_1373;
}
lean_ctor_set(x_1391, 0, x_1389);
lean_ctor_set(x_1391, 1, x_1307);
lean_ctor_set(x_1391, 2, x_1308);
lean_ctor_set(x_1391, 3, x_1388);
lean_ctor_set(x_1391, 4, x_1388);
x_1392 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1312)) {
 x_1393 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1393 = x_1312;
}
lean_ctor_set(x_1393, 0, x_1392);
lean_ctor_set(x_1393, 1, x_1385);
lean_ctor_set(x_1393, 2, x_1386);
lean_ctor_set(x_1393, 3, x_1390);
lean_ctor_set(x_1393, 4, x_1391);
return x_1393;
}
}
else
{
lean_dec(x_1306);
if (lean_obj_tag(x_1310) == 0)
{
lean_object* x_1394; lean_object* x_1395; lean_object* x_1396; lean_object* x_1397; lean_object* x_1398; lean_object* x_1399; lean_object* x_1400; lean_object* x_1401; 
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1394 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1394 = lean_box(0);
}
x_1395 = lean_ctor_get(x_1313, 0);
lean_inc(x_1395);
x_1396 = lean_ctor_get(x_1313, 1);
lean_inc(x_1396);
lean_dec(x_1313);
x_1397 = lean_box(1);
x_1398 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1394)) {
 x_1399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1399 = x_1394;
}
lean_ctor_set(x_1399, 0, x_1398);
lean_ctor_set(x_1399, 1, x_1395);
lean_ctor_set(x_1399, 2, x_1396);
lean_ctor_set(x_1399, 3, x_1397);
lean_ctor_set(x_1399, 4, x_1397);
x_1400 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1312)) {
 x_1401 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1401 = x_1312;
}
lean_ctor_set(x_1401, 0, x_1400);
lean_ctor_set(x_1401, 1, x_1307);
lean_ctor_set(x_1401, 2, x_1308);
lean_ctor_set(x_1401, 3, x_1399);
lean_ctor_set(x_1401, 4, x_1310);
return x_1401;
}
else
{
lean_object* x_1402; lean_object* x_1403; lean_object* x_1404; lean_object* x_1405; lean_object* x_1406; 
lean_dec(x_1308);
lean_dec(x_1307);
x_1402 = lean_ctor_get(x_1313, 0);
lean_inc(x_1402);
x_1403 = lean_ctor_get(x_1313, 1);
lean_inc(x_1403);
lean_dec(x_1313);
x_1404 = lean_box(1);
x_1405 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_1312)) {
 x_1406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1406 = x_1312;
}
lean_ctor_set(x_1406, 0, x_1405);
lean_ctor_set(x_1406, 1, x_1402);
lean_ctor_set(x_1406, 2, x_1403);
lean_ctor_set(x_1406, 3, x_1404);
lean_ctor_set(x_1406, 4, x_1190);
return x_1406;
}
}
}
}
else
{
lean_object* x_1407; lean_object* x_1408; lean_object* x_1409; 
lean_dec(x_1306);
if (lean_is_exclusive(x_1190)) {
 lean_ctor_release(x_1190, 0);
 lean_ctor_release(x_1190, 1);
 lean_ctor_release(x_1190, 2);
 lean_ctor_release(x_1190, 3);
 lean_ctor_release(x_1190, 4);
 x_1407 = x_1190;
} else {
 lean_dec_ref(x_1190);
 x_1407 = lean_box(0);
}
x_1408 = l_Std_DTreeMap_Internal_Impl_minView_x21___rarg(x_1307, x_1308, x_1309, x_1310);
x_1409 = lean_ctor_get(x_1408, 2);
lean_inc(x_1409);
if (lean_obj_tag(x_1409) == 0)
{
lean_object* x_1410; lean_object* x_1411; lean_object* x_1412; lean_object* x_1413; lean_object* x_1414; uint8_t x_1415; 
x_1410 = lean_ctor_get(x_1408, 0);
lean_inc(x_1410);
x_1411 = lean_ctor_get(x_1408, 1);
lean_inc(x_1411);
lean_dec(x_1408);
x_1412 = lean_ctor_get(x_1409, 0);
lean_inc(x_1412);
x_1413 = lean_unsigned_to_nat(3u);
x_1414 = lean_nat_mul(x_1413, x_1412);
x_1415 = lean_nat_dec_lt(x_1414, x_1301);
lean_dec(x_1414);
if (x_1415 == 0)
{
lean_object* x_1416; lean_object* x_1417; lean_object* x_1418; lean_object* x_1419; 
lean_dec(x_1305);
lean_dec(x_1304);
lean_dec(x_1303);
lean_dec(x_1302);
x_1416 = lean_unsigned_to_nat(1u);
x_1417 = lean_nat_add(x_1416, x_1301);
lean_dec(x_1301);
x_1418 = lean_nat_add(x_1417, x_1412);
lean_dec(x_1412);
lean_dec(x_1417);
if (lean_is_scalar(x_1407)) {
 x_1419 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1419 = x_1407;
}
lean_ctor_set(x_1419, 0, x_1418);
lean_ctor_set(x_1419, 1, x_1410);
lean_ctor_set(x_1419, 2, x_1411);
lean_ctor_set(x_1419, 3, x_1189);
lean_ctor_set(x_1419, 4, x_1409);
return x_1419;
}
else
{
lean_object* x_1420; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1420 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1420 = lean_box(0);
}
if (lean_obj_tag(x_1304) == 0)
{
if (lean_obj_tag(x_1305) == 0)
{
lean_object* x_1421; lean_object* x_1422; lean_object* x_1423; lean_object* x_1424; lean_object* x_1425; lean_object* x_1426; lean_object* x_1427; lean_object* x_1428; uint8_t x_1429; 
x_1421 = lean_ctor_get(x_1304, 0);
lean_inc(x_1421);
x_1422 = lean_ctor_get(x_1305, 0);
lean_inc(x_1422);
x_1423 = lean_ctor_get(x_1305, 1);
lean_inc(x_1423);
x_1424 = lean_ctor_get(x_1305, 2);
lean_inc(x_1424);
x_1425 = lean_ctor_get(x_1305, 3);
lean_inc(x_1425);
x_1426 = lean_ctor_get(x_1305, 4);
lean_inc(x_1426);
x_1427 = lean_unsigned_to_nat(2u);
x_1428 = lean_nat_mul(x_1427, x_1421);
x_1429 = lean_nat_dec_lt(x_1422, x_1428);
lean_dec(x_1428);
if (x_1429 == 0)
{
lean_object* x_1430; lean_object* x_1431; lean_object* x_1432; lean_object* x_1433; lean_object* x_1434; lean_object* x_1435; 
lean_dec(x_1422);
lean_dec(x_1420);
lean_dec(x_1407);
if (lean_is_exclusive(x_1305)) {
 lean_ctor_release(x_1305, 0);
 lean_ctor_release(x_1305, 1);
 lean_ctor_release(x_1305, 2);
 lean_ctor_release(x_1305, 3);
 lean_ctor_release(x_1305, 4);
 x_1430 = x_1305;
} else {
 lean_dec_ref(x_1305);
 x_1430 = lean_box(0);
}
x_1431 = lean_unsigned_to_nat(1u);
x_1432 = lean_nat_add(x_1431, x_1301);
lean_dec(x_1301);
x_1433 = lean_nat_add(x_1432, x_1412);
lean_dec(x_1432);
x_1434 = lean_nat_add(x_1431, x_1421);
lean_dec(x_1421);
x_1435 = lean_nat_add(x_1431, x_1412);
lean_dec(x_1412);
if (lean_obj_tag(x_1425) == 0)
{
lean_object* x_1436; lean_object* x_1437; lean_object* x_1438; lean_object* x_1439; 
x_1436 = lean_ctor_get(x_1425, 0);
lean_inc(x_1436);
x_1437 = lean_nat_add(x_1434, x_1436);
lean_dec(x_1436);
lean_dec(x_1434);
lean_inc(x_1304);
if (lean_is_scalar(x_1430)) {
 x_1438 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1438 = x_1430;
}
lean_ctor_set(x_1438, 0, x_1437);
lean_ctor_set(x_1438, 1, x_1302);
lean_ctor_set(x_1438, 2, x_1303);
lean_ctor_set(x_1438, 3, x_1304);
lean_ctor_set(x_1438, 4, x_1425);
if (lean_is_exclusive(x_1304)) {
 lean_ctor_release(x_1304, 0);
 lean_ctor_release(x_1304, 1);
 lean_ctor_release(x_1304, 2);
 lean_ctor_release(x_1304, 3);
 lean_ctor_release(x_1304, 4);
 x_1439 = x_1304;
} else {
 lean_dec_ref(x_1304);
 x_1439 = lean_box(0);
}
if (lean_obj_tag(x_1426) == 0)
{
lean_object* x_1440; lean_object* x_1441; lean_object* x_1442; lean_object* x_1443; lean_object* x_1444; 
x_1440 = lean_ctor_get(x_1426, 0);
lean_inc(x_1440);
x_1441 = lean_nat_add(x_1435, x_1440);
lean_dec(x_1440);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1439)) {
 x_1442 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1442 = x_1439;
}
lean_ctor_set(x_1442, 0, x_1441);
lean_ctor_set(x_1442, 1, x_1410);
lean_ctor_set(x_1442, 2, x_1411);
lean_ctor_set(x_1442, 3, x_1426);
lean_ctor_set(x_1442, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1443 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1443 = lean_box(0);
}
if (lean_is_scalar(x_1443)) {
 x_1444 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1444 = x_1443;
}
lean_ctor_set(x_1444, 0, x_1433);
lean_ctor_set(x_1444, 1, x_1423);
lean_ctor_set(x_1444, 2, x_1424);
lean_ctor_set(x_1444, 3, x_1438);
lean_ctor_set(x_1444, 4, x_1442);
return x_1444;
}
else
{
lean_object* x_1445; lean_object* x_1446; lean_object* x_1447; lean_object* x_1448; lean_object* x_1449; 
x_1445 = lean_unsigned_to_nat(0u);
x_1446 = lean_nat_add(x_1435, x_1445);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1439)) {
 x_1447 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1447 = x_1439;
}
lean_ctor_set(x_1447, 0, x_1446);
lean_ctor_set(x_1447, 1, x_1410);
lean_ctor_set(x_1447, 2, x_1411);
lean_ctor_set(x_1447, 3, x_1426);
lean_ctor_set(x_1447, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1448 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1448 = lean_box(0);
}
if (lean_is_scalar(x_1448)) {
 x_1449 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1449 = x_1448;
}
lean_ctor_set(x_1449, 0, x_1433);
lean_ctor_set(x_1449, 1, x_1423);
lean_ctor_set(x_1449, 2, x_1424);
lean_ctor_set(x_1449, 3, x_1438);
lean_ctor_set(x_1449, 4, x_1447);
return x_1449;
}
}
else
{
lean_object* x_1450; lean_object* x_1451; lean_object* x_1452; lean_object* x_1453; 
x_1450 = lean_unsigned_to_nat(0u);
x_1451 = lean_nat_add(x_1434, x_1450);
lean_dec(x_1434);
lean_inc(x_1304);
if (lean_is_scalar(x_1430)) {
 x_1452 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1452 = x_1430;
}
lean_ctor_set(x_1452, 0, x_1451);
lean_ctor_set(x_1452, 1, x_1302);
lean_ctor_set(x_1452, 2, x_1303);
lean_ctor_set(x_1452, 3, x_1304);
lean_ctor_set(x_1452, 4, x_1425);
if (lean_is_exclusive(x_1304)) {
 lean_ctor_release(x_1304, 0);
 lean_ctor_release(x_1304, 1);
 lean_ctor_release(x_1304, 2);
 lean_ctor_release(x_1304, 3);
 lean_ctor_release(x_1304, 4);
 x_1453 = x_1304;
} else {
 lean_dec_ref(x_1304);
 x_1453 = lean_box(0);
}
if (lean_obj_tag(x_1426) == 0)
{
lean_object* x_1454; lean_object* x_1455; lean_object* x_1456; lean_object* x_1457; lean_object* x_1458; 
x_1454 = lean_ctor_get(x_1426, 0);
lean_inc(x_1454);
x_1455 = lean_nat_add(x_1435, x_1454);
lean_dec(x_1454);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1453)) {
 x_1456 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1456 = x_1453;
}
lean_ctor_set(x_1456, 0, x_1455);
lean_ctor_set(x_1456, 1, x_1410);
lean_ctor_set(x_1456, 2, x_1411);
lean_ctor_set(x_1456, 3, x_1426);
lean_ctor_set(x_1456, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1457 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1457 = lean_box(0);
}
if (lean_is_scalar(x_1457)) {
 x_1458 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1458 = x_1457;
}
lean_ctor_set(x_1458, 0, x_1433);
lean_ctor_set(x_1458, 1, x_1423);
lean_ctor_set(x_1458, 2, x_1424);
lean_ctor_set(x_1458, 3, x_1452);
lean_ctor_set(x_1458, 4, x_1456);
return x_1458;
}
else
{
lean_object* x_1459; lean_object* x_1460; lean_object* x_1461; lean_object* x_1462; 
x_1459 = lean_nat_add(x_1435, x_1450);
lean_dec(x_1435);
lean_inc(x_1409);
if (lean_is_scalar(x_1453)) {
 x_1460 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1460 = x_1453;
}
lean_ctor_set(x_1460, 0, x_1459);
lean_ctor_set(x_1460, 1, x_1410);
lean_ctor_set(x_1460, 2, x_1411);
lean_ctor_set(x_1460, 3, x_1426);
lean_ctor_set(x_1460, 4, x_1409);
if (lean_is_exclusive(x_1409)) {
 lean_ctor_release(x_1409, 0);
 lean_ctor_release(x_1409, 1);
 lean_ctor_release(x_1409, 2);
 lean_ctor_release(x_1409, 3);
 lean_ctor_release(x_1409, 4);
 x_1461 = x_1409;
} else {
 lean_dec_ref(x_1409);
 x_1461 = lean_box(0);
}
if (lean_is_scalar(x_1461)) {
 x_1462 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1462 = x_1461;
}
lean_ctor_set(x_1462, 0, x_1433);
lean_ctor_set(x_1462, 1, x_1423);
lean_ctor_set(x_1462, 2, x_1424);
lean_ctor_set(x_1462, 3, x_1452);
lean_ctor_set(x_1462, 4, x_1460);
return x_1462;
}
}
}
else
{
lean_object* x_1463; lean_object* x_1464; lean_object* x_1465; lean_object* x_1466; lean_object* x_1467; lean_object* x_1468; lean_object* x_1469; 
lean_dec(x_1426);
lean_dec(x_1425);
lean_dec(x_1424);
lean_dec(x_1423);
lean_dec(x_1421);
x_1463 = lean_unsigned_to_nat(1u);
x_1464 = lean_nat_add(x_1463, x_1301);
lean_dec(x_1301);
x_1465 = lean_nat_add(x_1464, x_1412);
lean_dec(x_1464);
x_1466 = lean_nat_add(x_1463, x_1412);
lean_dec(x_1412);
x_1467 = lean_nat_add(x_1466, x_1422);
lean_dec(x_1422);
lean_dec(x_1466);
if (lean_is_scalar(x_1407)) {
 x_1468 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1468 = x_1407;
}
lean_ctor_set(x_1468, 0, x_1467);
lean_ctor_set(x_1468, 1, x_1410);
lean_ctor_set(x_1468, 2, x_1411);
lean_ctor_set(x_1468, 3, x_1305);
lean_ctor_set(x_1468, 4, x_1409);
if (lean_is_scalar(x_1420)) {
 x_1469 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1469 = x_1420;
}
lean_ctor_set(x_1469, 0, x_1465);
lean_ctor_set(x_1469, 1, x_1302);
lean_ctor_set(x_1469, 2, x_1303);
lean_ctor_set(x_1469, 3, x_1304);
lean_ctor_set(x_1469, 4, x_1468);
return x_1469;
}
}
else
{
lean_object* x_1470; lean_object* x_1471; 
lean_dec(x_1420);
lean_dec(x_1412);
lean_dec(x_1411);
lean_dec(x_1410);
lean_dec(x_1409);
lean_dec(x_1407);
lean_dec(x_1304);
lean_dec(x_1303);
lean_dec(x_1302);
lean_dec(x_1301);
x_1470 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1471 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__6___rarg(x_1470);
return x_1471;
}
}
else
{
lean_object* x_1472; lean_object* x_1473; 
lean_dec(x_1420);
lean_dec(x_1412);
lean_dec(x_1411);
lean_dec(x_1410);
lean_dec(x_1409);
lean_dec(x_1407);
lean_dec(x_1305);
lean_dec(x_1303);
lean_dec(x_1302);
lean_dec(x_1301);
x_1472 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1473 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__7___rarg(x_1472);
return x_1473;
}
}
}
else
{
if (lean_obj_tag(x_1304) == 0)
{
lean_object* x_1474; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1474 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1474 = lean_box(0);
}
if (lean_obj_tag(x_1305) == 0)
{
lean_object* x_1475; lean_object* x_1476; lean_object* x_1477; lean_object* x_1478; lean_object* x_1479; lean_object* x_1480; lean_object* x_1481; lean_object* x_1482; lean_object* x_1483; 
x_1475 = lean_ctor_get(x_1408, 0);
lean_inc(x_1475);
x_1476 = lean_ctor_get(x_1408, 1);
lean_inc(x_1476);
lean_dec(x_1408);
x_1477 = lean_ctor_get(x_1305, 0);
lean_inc(x_1477);
x_1478 = lean_unsigned_to_nat(1u);
x_1479 = lean_nat_add(x_1478, x_1301);
lean_dec(x_1301);
x_1480 = lean_nat_add(x_1478, x_1477);
lean_dec(x_1477);
x_1481 = lean_box(1);
if (lean_is_scalar(x_1407)) {
 x_1482 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1482 = x_1407;
}
lean_ctor_set(x_1482, 0, x_1480);
lean_ctor_set(x_1482, 1, x_1475);
lean_ctor_set(x_1482, 2, x_1476);
lean_ctor_set(x_1482, 3, x_1305);
lean_ctor_set(x_1482, 4, x_1481);
if (lean_is_scalar(x_1474)) {
 x_1483 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1483 = x_1474;
}
lean_ctor_set(x_1483, 0, x_1479);
lean_ctor_set(x_1483, 1, x_1302);
lean_ctor_set(x_1483, 2, x_1303);
lean_ctor_set(x_1483, 3, x_1304);
lean_ctor_set(x_1483, 4, x_1482);
return x_1483;
}
else
{
lean_object* x_1484; lean_object* x_1485; lean_object* x_1486; lean_object* x_1487; lean_object* x_1488; lean_object* x_1489; lean_object* x_1490; 
lean_dec(x_1301);
x_1484 = lean_ctor_get(x_1408, 0);
lean_inc(x_1484);
x_1485 = lean_ctor_get(x_1408, 1);
lean_inc(x_1485);
lean_dec(x_1408);
x_1486 = lean_box(1);
x_1487 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1407)) {
 x_1488 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1488 = x_1407;
}
lean_ctor_set(x_1488, 0, x_1487);
lean_ctor_set(x_1488, 1, x_1484);
lean_ctor_set(x_1488, 2, x_1485);
lean_ctor_set(x_1488, 3, x_1486);
lean_ctor_set(x_1488, 4, x_1486);
x_1489 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1474)) {
 x_1490 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1490 = x_1474;
}
lean_ctor_set(x_1490, 0, x_1489);
lean_ctor_set(x_1490, 1, x_1302);
lean_ctor_set(x_1490, 2, x_1303);
lean_ctor_set(x_1490, 3, x_1304);
lean_ctor_set(x_1490, 4, x_1488);
return x_1490;
}
}
else
{
lean_dec(x_1301);
if (lean_obj_tag(x_1305) == 0)
{
lean_object* x_1491; lean_object* x_1492; lean_object* x_1493; lean_object* x_1494; lean_object* x_1495; lean_object* x_1496; lean_object* x_1497; lean_object* x_1498; lean_object* x_1499; lean_object* x_1500; lean_object* x_1501; lean_object* x_1502; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1491 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1491 = lean_box(0);
}
x_1492 = lean_ctor_get(x_1408, 0);
lean_inc(x_1492);
x_1493 = lean_ctor_get(x_1408, 1);
lean_inc(x_1493);
lean_dec(x_1408);
x_1494 = lean_ctor_get(x_1305, 1);
lean_inc(x_1494);
x_1495 = lean_ctor_get(x_1305, 2);
lean_inc(x_1495);
if (lean_is_exclusive(x_1305)) {
 lean_ctor_release(x_1305, 0);
 lean_ctor_release(x_1305, 1);
 lean_ctor_release(x_1305, 2);
 lean_ctor_release(x_1305, 3);
 lean_ctor_release(x_1305, 4);
 x_1496 = x_1305;
} else {
 lean_dec_ref(x_1305);
 x_1496 = lean_box(0);
}
x_1497 = lean_box(1);
x_1498 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1496)) {
 x_1499 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1499 = x_1496;
}
lean_ctor_set(x_1499, 0, x_1498);
lean_ctor_set(x_1499, 1, x_1302);
lean_ctor_set(x_1499, 2, x_1303);
lean_ctor_set(x_1499, 3, x_1497);
lean_ctor_set(x_1499, 4, x_1497);
if (lean_is_scalar(x_1407)) {
 x_1500 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1500 = x_1407;
}
lean_ctor_set(x_1500, 0, x_1498);
lean_ctor_set(x_1500, 1, x_1492);
lean_ctor_set(x_1500, 2, x_1493);
lean_ctor_set(x_1500, 3, x_1497);
lean_ctor_set(x_1500, 4, x_1497);
x_1501 = lean_unsigned_to_nat(3u);
if (lean_is_scalar(x_1491)) {
 x_1502 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1502 = x_1491;
}
lean_ctor_set(x_1502, 0, x_1501);
lean_ctor_set(x_1502, 1, x_1494);
lean_ctor_set(x_1502, 2, x_1495);
lean_ctor_set(x_1502, 3, x_1499);
lean_ctor_set(x_1502, 4, x_1500);
return x_1502;
}
else
{
lean_object* x_1503; lean_object* x_1504; lean_object* x_1505; lean_object* x_1506; lean_object* x_1507; 
lean_dec(x_1303);
lean_dec(x_1302);
x_1503 = lean_ctor_get(x_1408, 0);
lean_inc(x_1503);
x_1504 = lean_ctor_get(x_1408, 1);
lean_inc(x_1504);
lean_dec(x_1408);
x_1505 = lean_box(1);
x_1506 = lean_unsigned_to_nat(2u);
if (lean_is_scalar(x_1407)) {
 x_1507 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1507 = x_1407;
}
lean_ctor_set(x_1507, 0, x_1506);
lean_ctor_set(x_1507, 1, x_1503);
lean_ctor_set(x_1507, 2, x_1504);
lean_ctor_set(x_1507, 3, x_1189);
lean_ctor_set(x_1507, 4, x_1505);
return x_1507;
}
}
}
}
}
else
{
return x_1189;
}
}
else
{
return x_1190;
}
}
default: 
{
lean_object* x_1508; 
x_1508 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg(x_1, x_2, x_1190);
if (lean_obj_tag(x_1508) == 0)
{
if (lean_obj_tag(x_1189) == 0)
{
lean_object* x_1509; lean_object* x_1510; lean_object* x_1511; lean_object* x_1512; lean_object* x_1513; lean_object* x_1514; lean_object* x_1515; lean_object* x_1516; uint8_t x_1517; 
x_1509 = lean_ctor_get(x_1508, 0);
lean_inc(x_1509);
x_1510 = lean_ctor_get(x_1189, 0);
lean_inc(x_1510);
x_1511 = lean_ctor_get(x_1189, 1);
lean_inc(x_1511);
x_1512 = lean_ctor_get(x_1189, 2);
lean_inc(x_1512);
x_1513 = lean_ctor_get(x_1189, 3);
lean_inc(x_1513);
x_1514 = lean_ctor_get(x_1189, 4);
lean_inc(x_1514);
x_1515 = lean_unsigned_to_nat(3u);
x_1516 = lean_nat_mul(x_1515, x_1509);
x_1517 = lean_nat_dec_lt(x_1516, x_1510);
lean_dec(x_1516);
if (x_1517 == 0)
{
lean_object* x_1518; lean_object* x_1519; lean_object* x_1520; lean_object* x_1521; 
lean_dec(x_1514);
lean_dec(x_1513);
lean_dec(x_1512);
lean_dec(x_1511);
x_1518 = lean_unsigned_to_nat(1u);
x_1519 = lean_nat_add(x_1518, x_1510);
lean_dec(x_1510);
x_1520 = lean_nat_add(x_1519, x_1509);
lean_dec(x_1509);
lean_dec(x_1519);
x_1521 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1521, 0, x_1520);
lean_ctor_set(x_1521, 1, x_1187);
lean_ctor_set(x_1521, 2, x_1188);
lean_ctor_set(x_1521, 3, x_1189);
lean_ctor_set(x_1521, 4, x_1508);
return x_1521;
}
else
{
lean_object* x_1522; 
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1522 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1522 = lean_box(0);
}
if (lean_obj_tag(x_1513) == 0)
{
if (lean_obj_tag(x_1514) == 0)
{
lean_object* x_1523; lean_object* x_1524; lean_object* x_1525; lean_object* x_1526; lean_object* x_1527; lean_object* x_1528; lean_object* x_1529; lean_object* x_1530; uint8_t x_1531; 
x_1523 = lean_ctor_get(x_1513, 0);
lean_inc(x_1523);
x_1524 = lean_ctor_get(x_1514, 0);
lean_inc(x_1524);
x_1525 = lean_ctor_get(x_1514, 1);
lean_inc(x_1525);
x_1526 = lean_ctor_get(x_1514, 2);
lean_inc(x_1526);
x_1527 = lean_ctor_get(x_1514, 3);
lean_inc(x_1527);
x_1528 = lean_ctor_get(x_1514, 4);
lean_inc(x_1528);
x_1529 = lean_unsigned_to_nat(2u);
x_1530 = lean_nat_mul(x_1529, x_1523);
x_1531 = lean_nat_dec_lt(x_1524, x_1530);
lean_dec(x_1530);
if (x_1531 == 0)
{
lean_object* x_1532; lean_object* x_1533; lean_object* x_1534; lean_object* x_1535; lean_object* x_1536; lean_object* x_1537; 
lean_dec(x_1524);
if (lean_is_exclusive(x_1514)) {
 lean_ctor_release(x_1514, 0);
 lean_ctor_release(x_1514, 1);
 lean_ctor_release(x_1514, 2);
 lean_ctor_release(x_1514, 3);
 lean_ctor_release(x_1514, 4);
 x_1532 = x_1514;
} else {
 lean_dec_ref(x_1514);
 x_1532 = lean_box(0);
}
x_1533 = lean_unsigned_to_nat(1u);
x_1534 = lean_nat_add(x_1533, x_1510);
lean_dec(x_1510);
x_1535 = lean_nat_add(x_1534, x_1509);
lean_dec(x_1534);
x_1536 = lean_nat_add(x_1533, x_1523);
lean_dec(x_1523);
x_1537 = lean_nat_add(x_1533, x_1509);
lean_dec(x_1509);
if (lean_obj_tag(x_1527) == 0)
{
lean_object* x_1538; lean_object* x_1539; lean_object* x_1540; lean_object* x_1541; 
x_1538 = lean_ctor_get(x_1527, 0);
lean_inc(x_1538);
x_1539 = lean_nat_add(x_1536, x_1538);
lean_dec(x_1538);
lean_dec(x_1536);
lean_inc(x_1513);
if (lean_is_scalar(x_1532)) {
 x_1540 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1540 = x_1532;
}
lean_ctor_set(x_1540, 0, x_1539);
lean_ctor_set(x_1540, 1, x_1511);
lean_ctor_set(x_1540, 2, x_1512);
lean_ctor_set(x_1540, 3, x_1513);
lean_ctor_set(x_1540, 4, x_1527);
if (lean_is_exclusive(x_1513)) {
 lean_ctor_release(x_1513, 0);
 lean_ctor_release(x_1513, 1);
 lean_ctor_release(x_1513, 2);
 lean_ctor_release(x_1513, 3);
 lean_ctor_release(x_1513, 4);
 x_1541 = x_1513;
} else {
 lean_dec_ref(x_1513);
 x_1541 = lean_box(0);
}
if (lean_obj_tag(x_1528) == 0)
{
lean_object* x_1542; lean_object* x_1543; lean_object* x_1544; lean_object* x_1545; 
x_1542 = lean_ctor_get(x_1528, 0);
lean_inc(x_1542);
x_1543 = lean_nat_add(x_1537, x_1542);
lean_dec(x_1542);
lean_dec(x_1537);
if (lean_is_scalar(x_1541)) {
 x_1544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1544 = x_1541;
}
lean_ctor_set(x_1544, 0, x_1543);
lean_ctor_set(x_1544, 1, x_1187);
lean_ctor_set(x_1544, 2, x_1188);
lean_ctor_set(x_1544, 3, x_1528);
lean_ctor_set(x_1544, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1545 = x_1522;
}
lean_ctor_set(x_1545, 0, x_1535);
lean_ctor_set(x_1545, 1, x_1525);
lean_ctor_set(x_1545, 2, x_1526);
lean_ctor_set(x_1545, 3, x_1540);
lean_ctor_set(x_1545, 4, x_1544);
return x_1545;
}
else
{
lean_object* x_1546; lean_object* x_1547; lean_object* x_1548; lean_object* x_1549; 
x_1546 = lean_unsigned_to_nat(0u);
x_1547 = lean_nat_add(x_1537, x_1546);
lean_dec(x_1537);
if (lean_is_scalar(x_1541)) {
 x_1548 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1548 = x_1541;
}
lean_ctor_set(x_1548, 0, x_1547);
lean_ctor_set(x_1548, 1, x_1187);
lean_ctor_set(x_1548, 2, x_1188);
lean_ctor_set(x_1548, 3, x_1528);
lean_ctor_set(x_1548, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1549 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1549 = x_1522;
}
lean_ctor_set(x_1549, 0, x_1535);
lean_ctor_set(x_1549, 1, x_1525);
lean_ctor_set(x_1549, 2, x_1526);
lean_ctor_set(x_1549, 3, x_1540);
lean_ctor_set(x_1549, 4, x_1548);
return x_1549;
}
}
else
{
lean_object* x_1550; lean_object* x_1551; lean_object* x_1552; lean_object* x_1553; 
x_1550 = lean_unsigned_to_nat(0u);
x_1551 = lean_nat_add(x_1536, x_1550);
lean_dec(x_1536);
lean_inc(x_1513);
if (lean_is_scalar(x_1532)) {
 x_1552 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1552 = x_1532;
}
lean_ctor_set(x_1552, 0, x_1551);
lean_ctor_set(x_1552, 1, x_1511);
lean_ctor_set(x_1552, 2, x_1512);
lean_ctor_set(x_1552, 3, x_1513);
lean_ctor_set(x_1552, 4, x_1527);
if (lean_is_exclusive(x_1513)) {
 lean_ctor_release(x_1513, 0);
 lean_ctor_release(x_1513, 1);
 lean_ctor_release(x_1513, 2);
 lean_ctor_release(x_1513, 3);
 lean_ctor_release(x_1513, 4);
 x_1553 = x_1513;
} else {
 lean_dec_ref(x_1513);
 x_1553 = lean_box(0);
}
if (lean_obj_tag(x_1528) == 0)
{
lean_object* x_1554; lean_object* x_1555; lean_object* x_1556; lean_object* x_1557; 
x_1554 = lean_ctor_get(x_1528, 0);
lean_inc(x_1554);
x_1555 = lean_nat_add(x_1537, x_1554);
lean_dec(x_1554);
lean_dec(x_1537);
if (lean_is_scalar(x_1553)) {
 x_1556 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1556 = x_1553;
}
lean_ctor_set(x_1556, 0, x_1555);
lean_ctor_set(x_1556, 1, x_1187);
lean_ctor_set(x_1556, 2, x_1188);
lean_ctor_set(x_1556, 3, x_1528);
lean_ctor_set(x_1556, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1557 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1557 = x_1522;
}
lean_ctor_set(x_1557, 0, x_1535);
lean_ctor_set(x_1557, 1, x_1525);
lean_ctor_set(x_1557, 2, x_1526);
lean_ctor_set(x_1557, 3, x_1552);
lean_ctor_set(x_1557, 4, x_1556);
return x_1557;
}
else
{
lean_object* x_1558; lean_object* x_1559; lean_object* x_1560; 
x_1558 = lean_nat_add(x_1537, x_1550);
lean_dec(x_1537);
if (lean_is_scalar(x_1553)) {
 x_1559 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1559 = x_1553;
}
lean_ctor_set(x_1559, 0, x_1558);
lean_ctor_set(x_1559, 1, x_1187);
lean_ctor_set(x_1559, 2, x_1188);
lean_ctor_set(x_1559, 3, x_1528);
lean_ctor_set(x_1559, 4, x_1508);
if (lean_is_scalar(x_1522)) {
 x_1560 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1560 = x_1522;
}
lean_ctor_set(x_1560, 0, x_1535);
lean_ctor_set(x_1560, 1, x_1525);
lean_ctor_set(x_1560, 2, x_1526);
lean_ctor_set(x_1560, 3, x_1552);
lean_ctor_set(x_1560, 4, x_1559);
return x_1560;
}
}
}
else
{
lean_object* x_1561; lean_object* x_1562; lean_object* x_1563; lean_object* x_1564; lean_object* x_1565; lean_object* x_1566; lean_object* x_1567; lean_object* x_1568; 
lean_dec(x_1528);
lean_dec(x_1527);
lean_dec(x_1526);
lean_dec(x_1525);
lean_dec(x_1523);
x_1561 = lean_unsigned_to_nat(1u);
x_1562 = lean_nat_add(x_1561, x_1510);
lean_dec(x_1510);
x_1563 = lean_nat_add(x_1562, x_1509);
lean_dec(x_1562);
x_1564 = lean_nat_add(x_1561, x_1509);
lean_dec(x_1509);
x_1565 = lean_nat_add(x_1564, x_1524);
lean_dec(x_1524);
lean_dec(x_1564);
lean_inc(x_1508);
if (lean_is_scalar(x_1522)) {
 x_1566 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1566 = x_1522;
}
lean_ctor_set(x_1566, 0, x_1565);
lean_ctor_set(x_1566, 1, x_1187);
lean_ctor_set(x_1566, 2, x_1188);
lean_ctor_set(x_1566, 3, x_1514);
lean_ctor_set(x_1566, 4, x_1508);
if (lean_is_exclusive(x_1508)) {
 lean_ctor_release(x_1508, 0);
 lean_ctor_release(x_1508, 1);
 lean_ctor_release(x_1508, 2);
 lean_ctor_release(x_1508, 3);
 lean_ctor_release(x_1508, 4);
 x_1567 = x_1508;
} else {
 lean_dec_ref(x_1508);
 x_1567 = lean_box(0);
}
if (lean_is_scalar(x_1567)) {
 x_1568 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1568 = x_1567;
}
lean_ctor_set(x_1568, 0, x_1563);
lean_ctor_set(x_1568, 1, x_1511);
lean_ctor_set(x_1568, 2, x_1512);
lean_ctor_set(x_1568, 3, x_1513);
lean_ctor_set(x_1568, 4, x_1566);
return x_1568;
}
}
else
{
lean_object* x_1569; lean_object* x_1570; 
lean_dec(x_1522);
lean_dec(x_1513);
lean_dec(x_1512);
lean_dec(x_1511);
lean_dec(x_1510);
lean_dec(x_1509);
lean_dec(x_1508);
lean_dec(x_1188);
lean_dec(x_1187);
x_1569 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_1570 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__8___rarg(x_1569);
return x_1570;
}
}
else
{
lean_object* x_1571; lean_object* x_1572; 
lean_dec(x_1522);
lean_dec(x_1514);
lean_dec(x_1512);
lean_dec(x_1511);
lean_dec(x_1510);
lean_dec(x_1509);
lean_dec(x_1508);
lean_dec(x_1188);
lean_dec(x_1187);
x_1571 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_1572 = l_panic___at_Std_DTreeMap_Raw_eraseMany___spec__9___rarg(x_1571);
return x_1572;
}
}
}
else
{
lean_object* x_1573; lean_object* x_1574; lean_object* x_1575; lean_object* x_1576; lean_object* x_1577; 
x_1573 = lean_ctor_get(x_1508, 0);
lean_inc(x_1573);
x_1574 = lean_unsigned_to_nat(1u);
x_1575 = lean_nat_add(x_1574, x_1573);
lean_dec(x_1573);
x_1576 = lean_box(1);
x_1577 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1577, 0, x_1575);
lean_ctor_set(x_1577, 1, x_1187);
lean_ctor_set(x_1577, 2, x_1188);
lean_ctor_set(x_1577, 3, x_1576);
lean_ctor_set(x_1577, 4, x_1508);
return x_1577;
}
}
else
{
if (lean_obj_tag(x_1189) == 0)
{
lean_object* x_1578; 
x_1578 = lean_ctor_get(x_1189, 3);
lean_inc(x_1578);
if (lean_obj_tag(x_1578) == 0)
{
lean_object* x_1579; 
x_1579 = lean_ctor_get(x_1189, 4);
lean_inc(x_1579);
if (lean_obj_tag(x_1579) == 0)
{
lean_object* x_1580; lean_object* x_1581; lean_object* x_1582; lean_object* x_1583; lean_object* x_1584; lean_object* x_1585; lean_object* x_1586; lean_object* x_1587; lean_object* x_1588; lean_object* x_1589; lean_object* x_1590; 
x_1580 = lean_ctor_get(x_1189, 0);
lean_inc(x_1580);
x_1581 = lean_ctor_get(x_1189, 1);
lean_inc(x_1581);
x_1582 = lean_ctor_get(x_1189, 2);
lean_inc(x_1582);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1583 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1583 = lean_box(0);
}
x_1584 = lean_ctor_get(x_1579, 0);
lean_inc(x_1584);
x_1585 = lean_unsigned_to_nat(1u);
x_1586 = lean_nat_add(x_1585, x_1580);
lean_dec(x_1580);
x_1587 = lean_nat_add(x_1585, x_1584);
lean_dec(x_1584);
x_1588 = lean_box(1);
if (lean_is_scalar(x_1583)) {
 x_1589 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1589 = x_1583;
}
lean_ctor_set(x_1589, 0, x_1587);
lean_ctor_set(x_1589, 1, x_1187);
lean_ctor_set(x_1589, 2, x_1188);
lean_ctor_set(x_1589, 3, x_1579);
lean_ctor_set(x_1589, 4, x_1588);
x_1590 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1590, 0, x_1586);
lean_ctor_set(x_1590, 1, x_1581);
lean_ctor_set(x_1590, 2, x_1582);
lean_ctor_set(x_1590, 3, x_1578);
lean_ctor_set(x_1590, 4, x_1589);
return x_1590;
}
else
{
lean_object* x_1591; lean_object* x_1592; lean_object* x_1593; lean_object* x_1594; lean_object* x_1595; lean_object* x_1596; lean_object* x_1597; lean_object* x_1598; 
x_1591 = lean_ctor_get(x_1189, 1);
lean_inc(x_1591);
x_1592 = lean_ctor_get(x_1189, 2);
lean_inc(x_1592);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1593 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1593 = lean_box(0);
}
x_1594 = lean_box(1);
x_1595 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1593)) {
 x_1596 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1596 = x_1593;
}
lean_ctor_set(x_1596, 0, x_1595);
lean_ctor_set(x_1596, 1, x_1187);
lean_ctor_set(x_1596, 2, x_1188);
lean_ctor_set(x_1596, 3, x_1594);
lean_ctor_set(x_1596, 4, x_1594);
x_1597 = lean_unsigned_to_nat(3u);
x_1598 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1598, 0, x_1597);
lean_ctor_set(x_1598, 1, x_1591);
lean_ctor_set(x_1598, 2, x_1592);
lean_ctor_set(x_1598, 3, x_1578);
lean_ctor_set(x_1598, 4, x_1596);
return x_1598;
}
}
else
{
lean_object* x_1599; 
x_1599 = lean_ctor_get(x_1189, 4);
lean_inc(x_1599);
if (lean_obj_tag(x_1599) == 0)
{
lean_object* x_1600; lean_object* x_1601; lean_object* x_1602; lean_object* x_1603; lean_object* x_1604; lean_object* x_1605; lean_object* x_1606; lean_object* x_1607; lean_object* x_1608; lean_object* x_1609; lean_object* x_1610; lean_object* x_1611; 
x_1600 = lean_ctor_get(x_1189, 1);
lean_inc(x_1600);
x_1601 = lean_ctor_get(x_1189, 2);
lean_inc(x_1601);
if (lean_is_exclusive(x_1189)) {
 lean_ctor_release(x_1189, 0);
 lean_ctor_release(x_1189, 1);
 lean_ctor_release(x_1189, 2);
 lean_ctor_release(x_1189, 3);
 lean_ctor_release(x_1189, 4);
 x_1602 = x_1189;
} else {
 lean_dec_ref(x_1189);
 x_1602 = lean_box(0);
}
x_1603 = lean_ctor_get(x_1599, 1);
lean_inc(x_1603);
x_1604 = lean_ctor_get(x_1599, 2);
lean_inc(x_1604);
if (lean_is_exclusive(x_1599)) {
 lean_ctor_release(x_1599, 0);
 lean_ctor_release(x_1599, 1);
 lean_ctor_release(x_1599, 2);
 lean_ctor_release(x_1599, 3);
 lean_ctor_release(x_1599, 4);
 x_1605 = x_1599;
} else {
 lean_dec_ref(x_1599);
 x_1605 = lean_box(0);
}
x_1606 = lean_box(1);
x_1607 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_1605)) {
 x_1608 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1608 = x_1605;
}
lean_ctor_set(x_1608, 0, x_1607);
lean_ctor_set(x_1608, 1, x_1600);
lean_ctor_set(x_1608, 2, x_1601);
lean_ctor_set(x_1608, 3, x_1606);
lean_ctor_set(x_1608, 4, x_1606);
if (lean_is_scalar(x_1602)) {
 x_1609 = lean_alloc_ctor(0, 5, 0);
} else {
 x_1609 = x_1602;
}
lean_ctor_set(x_1609, 0, x_1607);
lean_ctor_set(x_1609, 1, x_1187);
lean_ctor_set(x_1609, 2, x_1188);
lean_ctor_set(x_1609, 3, x_1606);
lean_ctor_set(x_1609, 4, x_1606);
x_1610 = lean_unsigned_to_nat(3u);
x_1611 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1611, 0, x_1610);
lean_ctor_set(x_1611, 1, x_1603);
lean_ctor_set(x_1611, 2, x_1604);
lean_ctor_set(x_1611, 3, x_1608);
lean_ctor_set(x_1611, 4, x_1609);
return x_1611;
}
else
{
lean_object* x_1612; lean_object* x_1613; lean_object* x_1614; 
x_1612 = lean_box(1);
x_1613 = lean_unsigned_to_nat(2u);
x_1614 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1614, 0, x_1613);
lean_ctor_set(x_1614, 1, x_1187);
lean_ctor_set(x_1614, 2, x_1188);
lean_ctor_set(x_1614, 3, x_1189);
lean_ctor_set(x_1614, 4, x_1612);
return x_1614;
}
}
}
else
{
lean_object* x_1615; lean_object* x_1616; lean_object* x_1617; 
x_1615 = lean_box(1);
x_1616 = lean_unsigned_to_nat(1u);
x_1617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_1617, 0, x_1616);
lean_ctor_set(x_1617, 1, x_1187);
lean_ctor_set(x_1617, 2, x_1188);
lean_ctor_set(x_1617, 3, x_1615);
lean_ctor_set(x_1617, 4, x_1615);
return x_1617;
}
}
}
}
}
}
else
{
lean_object* x_1618; 
lean_dec(x_2);
lean_dec(x_1);
x_1618 = lean_box(1);
return x_1618;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_eraseMany___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_erase_x21___at_Std_DTreeMap_Raw_eraseMany___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_5, 0, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_eraseMany___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_eraseMany___rarg___lambda__1), 3, 1);
lean_closure_set(x_6, 0, x_1);
x_7 = l_Id_instMonad;
x_8 = lean_apply_5(x_3, lean_box(0), x_7, x_5, x_4, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_eraseMany(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_eraseMany___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5___rarg), 1, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
x_9 = lean_ctor_get(x_5, 2);
x_10 = lean_ctor_get(x_5, 3);
x_11 = lean_ctor_get(x_5, 4);
lean_inc(x_1);
lean_inc(x_8);
lean_inc(x_3);
x_12 = lean_apply_2(x_1, x_3, x_8);
x_13 = lean_unbox(x_12);
lean_dec(x_12);
switch (x_13) {
case 0:
{
lean_object* x_14; 
lean_dec(x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_10);
if (lean_obj_tag(x_11) == 0)
{
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_15 = lean_ctor_get(x_11, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_14, 0);
lean_inc(x_16);
x_17 = lean_ctor_get(x_14, 1);
lean_inc(x_17);
x_18 = lean_ctor_get(x_14, 2);
lean_inc(x_18);
x_19 = lean_ctor_get(x_14, 3);
lean_inc(x_19);
x_20 = lean_ctor_get(x_14, 4);
lean_inc(x_20);
x_21 = lean_unsigned_to_nat(3u);
x_22 = lean_nat_mul(x_21, x_15);
x_23 = lean_nat_dec_lt(x_22, x_16);
lean_dec(x_22);
if (x_23 == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
lean_dec(x_20);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
x_24 = lean_unsigned_to_nat(1u);
x_25 = lean_nat_add(x_24, x_16);
lean_dec(x_16);
x_26 = lean_nat_add(x_25, x_15);
lean_dec(x_15);
lean_dec(x_25);
lean_ctor_set(x_5, 3, x_14);
lean_ctor_set(x_5, 0, x_26);
return x_5;
}
else
{
uint8_t x_27; 
lean_free_object(x_5);
x_27 = !lean_is_exclusive(x_14);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
x_28 = lean_ctor_get(x_14, 4);
lean_dec(x_28);
x_29 = lean_ctor_get(x_14, 3);
lean_dec(x_29);
x_30 = lean_ctor_get(x_14, 2);
lean_dec(x_30);
x_31 = lean_ctor_get(x_14, 1);
lean_dec(x_31);
x_32 = lean_ctor_get(x_14, 0);
lean_dec(x_32);
if (lean_obj_tag(x_19) == 0)
{
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_20, 0);
lean_inc(x_34);
x_35 = lean_ctor_get(x_20, 1);
lean_inc(x_35);
x_36 = lean_ctor_get(x_20, 2);
lean_inc(x_36);
x_37 = lean_ctor_get(x_20, 3);
lean_inc(x_37);
x_38 = lean_ctor_get(x_20, 4);
lean_inc(x_38);
x_39 = lean_unsigned_to_nat(2u);
x_40 = lean_nat_mul(x_39, x_33);
x_41 = lean_nat_dec_lt(x_34, x_40);
lean_dec(x_40);
if (x_41 == 0)
{
uint8_t x_42; 
lean_dec(x_34);
x_42 = !lean_is_exclusive(x_20);
if (x_42 == 0)
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; 
x_43 = lean_ctor_get(x_20, 4);
lean_dec(x_43);
x_44 = lean_ctor_get(x_20, 3);
lean_dec(x_44);
x_45 = lean_ctor_get(x_20, 2);
lean_dec(x_45);
x_46 = lean_ctor_get(x_20, 1);
lean_dec(x_46);
x_47 = lean_ctor_get(x_20, 0);
lean_dec(x_47);
x_48 = lean_unsigned_to_nat(1u);
x_49 = lean_nat_add(x_48, x_16);
lean_dec(x_16);
x_50 = lean_nat_add(x_49, x_15);
lean_dec(x_49);
x_51 = lean_nat_add(x_48, x_33);
lean_dec(x_33);
x_52 = lean_nat_add(x_48, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_53; lean_object* x_54; uint8_t x_55; 
x_53 = lean_ctor_get(x_37, 0);
lean_inc(x_53);
x_54 = lean_nat_add(x_51, x_53);
lean_dec(x_53);
lean_dec(x_51);
lean_inc(x_19);
lean_ctor_set(x_20, 4, x_37);
lean_ctor_set(x_20, 3, x_19);
lean_ctor_set(x_20, 2, x_18);
lean_ctor_set(x_20, 1, x_17);
lean_ctor_set(x_20, 0, x_54);
x_55 = !lean_is_exclusive(x_19);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; 
x_56 = lean_ctor_get(x_19, 4);
lean_dec(x_56);
x_57 = lean_ctor_get(x_19, 3);
lean_dec(x_57);
x_58 = lean_ctor_get(x_19, 2);
lean_dec(x_58);
x_59 = lean_ctor_get(x_19, 1);
lean_dec(x_59);
x_60 = lean_ctor_get(x_19, 0);
lean_dec(x_60);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_61; lean_object* x_62; 
x_61 = lean_ctor_get(x_38, 0);
lean_inc(x_61);
x_62 = lean_nat_add(x_52, x_61);
lean_dec(x_61);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_62);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_63; lean_object* x_64; 
x_63 = lean_unsigned_to_nat(0u);
x_64 = lean_nat_add(x_52, x_63);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_64);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
else
{
lean_dec(x_19);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_65 = lean_ctor_get(x_38, 0);
lean_inc(x_65);
x_66 = lean_nat_add(x_52, x_65);
lean_dec(x_65);
lean_dec(x_52);
x_67 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_67, 0, x_66);
lean_ctor_set(x_67, 1, x_8);
lean_ctor_set(x_67, 2, x_9);
lean_ctor_set(x_67, 3, x_38);
lean_ctor_set(x_67, 4, x_11);
lean_ctor_set(x_14, 4, x_67);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_68; lean_object* x_69; lean_object* x_70; 
x_68 = lean_unsigned_to_nat(0u);
x_69 = lean_nat_add(x_52, x_68);
lean_dec(x_52);
x_70 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_70, 0, x_69);
lean_ctor_set(x_70, 1, x_8);
lean_ctor_set(x_70, 2, x_9);
lean_ctor_set(x_70, 3, x_38);
lean_ctor_set(x_70, 4, x_11);
lean_ctor_set(x_14, 4, x_70);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
}
else
{
lean_object* x_71; lean_object* x_72; uint8_t x_73; 
x_71 = lean_unsigned_to_nat(0u);
x_72 = lean_nat_add(x_51, x_71);
lean_dec(x_51);
lean_inc(x_19);
lean_ctor_set(x_20, 4, x_37);
lean_ctor_set(x_20, 3, x_19);
lean_ctor_set(x_20, 2, x_18);
lean_ctor_set(x_20, 1, x_17);
lean_ctor_set(x_20, 0, x_72);
x_73 = !lean_is_exclusive(x_19);
if (x_73 == 0)
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_74 = lean_ctor_get(x_19, 4);
lean_dec(x_74);
x_75 = lean_ctor_get(x_19, 3);
lean_dec(x_75);
x_76 = lean_ctor_get(x_19, 2);
lean_dec(x_76);
x_77 = lean_ctor_get(x_19, 1);
lean_dec(x_77);
x_78 = lean_ctor_get(x_19, 0);
lean_dec(x_78);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_79; lean_object* x_80; 
x_79 = lean_ctor_get(x_38, 0);
lean_inc(x_79);
x_80 = lean_nat_add(x_52, x_79);
lean_dec(x_79);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_80);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_81; 
x_81 = lean_nat_add(x_52, x_71);
lean_dec(x_52);
lean_ctor_set(x_19, 4, x_11);
lean_ctor_set(x_19, 3, x_38);
lean_ctor_set(x_19, 2, x_9);
lean_ctor_set(x_19, 1, x_8);
lean_ctor_set(x_19, 0, x_81);
lean_ctor_set(x_14, 4, x_19);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
else
{
lean_dec(x_19);
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_82; lean_object* x_83; lean_object* x_84; 
x_82 = lean_ctor_get(x_38, 0);
lean_inc(x_82);
x_83 = lean_nat_add(x_52, x_82);
lean_dec(x_82);
lean_dec(x_52);
x_84 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_84, 0, x_83);
lean_ctor_set(x_84, 1, x_8);
lean_ctor_set(x_84, 2, x_9);
lean_ctor_set(x_84, 3, x_38);
lean_ctor_set(x_84, 4, x_11);
lean_ctor_set(x_14, 4, x_84);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
else
{
lean_object* x_85; lean_object* x_86; 
x_85 = lean_nat_add(x_52, x_71);
lean_dec(x_52);
x_86 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_86, 0, x_85);
lean_ctor_set(x_86, 1, x_8);
lean_ctor_set(x_86, 2, x_9);
lean_ctor_set(x_86, 3, x_38);
lean_ctor_set(x_86, 4, x_11);
lean_ctor_set(x_14, 4, x_86);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_50);
return x_14;
}
}
}
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; 
lean_dec(x_20);
x_87 = lean_unsigned_to_nat(1u);
x_88 = lean_nat_add(x_87, x_16);
lean_dec(x_16);
x_89 = lean_nat_add(x_88, x_15);
lean_dec(x_88);
x_90 = lean_nat_add(x_87, x_33);
lean_dec(x_33);
x_91 = lean_nat_add(x_87, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
x_92 = lean_ctor_get(x_37, 0);
lean_inc(x_92);
x_93 = lean_nat_add(x_90, x_92);
lean_dec(x_92);
lean_dec(x_90);
lean_inc(x_19);
x_94 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_94, 0, x_93);
lean_ctor_set(x_94, 1, x_17);
lean_ctor_set(x_94, 2, x_18);
lean_ctor_set(x_94, 3, x_19);
lean_ctor_set(x_94, 4, x_37);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_95 = x_19;
} else {
 lean_dec_ref(x_19);
 x_95 = lean_box(0);
}
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_96; lean_object* x_97; lean_object* x_98; 
x_96 = lean_ctor_get(x_38, 0);
lean_inc(x_96);
x_97 = lean_nat_add(x_91, x_96);
lean_dec(x_96);
lean_dec(x_91);
if (lean_is_scalar(x_95)) {
 x_98 = lean_alloc_ctor(0, 5, 0);
} else {
 x_98 = x_95;
}
lean_ctor_set(x_98, 0, x_97);
lean_ctor_set(x_98, 1, x_8);
lean_ctor_set(x_98, 2, x_9);
lean_ctor_set(x_98, 3, x_38);
lean_ctor_set(x_98, 4, x_11);
lean_ctor_set(x_14, 4, x_98);
lean_ctor_set(x_14, 3, x_94);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_99 = lean_unsigned_to_nat(0u);
x_100 = lean_nat_add(x_91, x_99);
lean_dec(x_91);
if (lean_is_scalar(x_95)) {
 x_101 = lean_alloc_ctor(0, 5, 0);
} else {
 x_101 = x_95;
}
lean_ctor_set(x_101, 0, x_100);
lean_ctor_set(x_101, 1, x_8);
lean_ctor_set(x_101, 2, x_9);
lean_ctor_set(x_101, 3, x_38);
lean_ctor_set(x_101, 4, x_11);
lean_ctor_set(x_14, 4, x_101);
lean_ctor_set(x_14, 3, x_94);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
}
else
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_102 = lean_unsigned_to_nat(0u);
x_103 = lean_nat_add(x_90, x_102);
lean_dec(x_90);
lean_inc(x_19);
x_104 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_104, 0, x_103);
lean_ctor_set(x_104, 1, x_17);
lean_ctor_set(x_104, 2, x_18);
lean_ctor_set(x_104, 3, x_19);
lean_ctor_set(x_104, 4, x_37);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_105 = x_19;
} else {
 lean_dec_ref(x_19);
 x_105 = lean_box(0);
}
if (lean_obj_tag(x_38) == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_106 = lean_ctor_get(x_38, 0);
lean_inc(x_106);
x_107 = lean_nat_add(x_91, x_106);
lean_dec(x_106);
lean_dec(x_91);
if (lean_is_scalar(x_105)) {
 x_108 = lean_alloc_ctor(0, 5, 0);
} else {
 x_108 = x_105;
}
lean_ctor_set(x_108, 0, x_107);
lean_ctor_set(x_108, 1, x_8);
lean_ctor_set(x_108, 2, x_9);
lean_ctor_set(x_108, 3, x_38);
lean_ctor_set(x_108, 4, x_11);
lean_ctor_set(x_14, 4, x_108);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
else
{
lean_object* x_109; lean_object* x_110; 
x_109 = lean_nat_add(x_91, x_102);
lean_dec(x_91);
if (lean_is_scalar(x_105)) {
 x_110 = lean_alloc_ctor(0, 5, 0);
} else {
 x_110 = x_105;
}
lean_ctor_set(x_110, 0, x_109);
lean_ctor_set(x_110, 1, x_8);
lean_ctor_set(x_110, 2, x_9);
lean_ctor_set(x_110, 3, x_38);
lean_ctor_set(x_110, 4, x_11);
lean_ctor_set(x_14, 4, x_110);
lean_ctor_set(x_14, 3, x_104);
lean_ctor_set(x_14, 2, x_36);
lean_ctor_set(x_14, 1, x_35);
lean_ctor_set(x_14, 0, x_89);
return x_14;
}
}
}
}
else
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; uint8_t x_116; 
lean_dec(x_38);
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_33);
x_111 = lean_unsigned_to_nat(1u);
x_112 = lean_nat_add(x_111, x_16);
lean_dec(x_16);
x_113 = lean_nat_add(x_112, x_15);
lean_dec(x_112);
x_114 = lean_nat_add(x_111, x_15);
lean_dec(x_15);
x_115 = lean_nat_add(x_114, x_34);
lean_dec(x_34);
lean_dec(x_114);
lean_inc(x_11);
lean_ctor_set(x_14, 4, x_11);
lean_ctor_set(x_14, 3, x_20);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_115);
x_116 = !lean_is_exclusive(x_11);
if (x_116 == 0)
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; 
x_117 = lean_ctor_get(x_11, 4);
lean_dec(x_117);
x_118 = lean_ctor_get(x_11, 3);
lean_dec(x_118);
x_119 = lean_ctor_get(x_11, 2);
lean_dec(x_119);
x_120 = lean_ctor_get(x_11, 1);
lean_dec(x_120);
x_121 = lean_ctor_get(x_11, 0);
lean_dec(x_121);
lean_ctor_set(x_11, 4, x_14);
lean_ctor_set(x_11, 3, x_19);
lean_ctor_set(x_11, 2, x_18);
lean_ctor_set(x_11, 1, x_17);
lean_ctor_set(x_11, 0, x_113);
return x_11;
}
else
{
lean_object* x_122; 
lean_dec(x_11);
x_122 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_122, 0, x_113);
lean_ctor_set(x_122, 1, x_17);
lean_ctor_set(x_122, 2, x_18);
lean_ctor_set(x_122, 3, x_19);
lean_ctor_set(x_122, 4, x_14);
return x_122;
}
}
}
else
{
lean_object* x_123; lean_object* x_124; 
lean_free_object(x_14);
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_123 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_124 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2___rarg(x_123);
return x_124;
}
}
else
{
lean_object* x_125; lean_object* x_126; 
lean_free_object(x_14);
lean_dec(x_20);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_125 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_126 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3___rarg(x_125);
return x_126;
}
}
else
{
lean_dec(x_14);
if (lean_obj_tag(x_19) == 0)
{
if (lean_obj_tag(x_20) == 0)
{
lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; uint8_t x_135; 
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_20, 0);
lean_inc(x_128);
x_129 = lean_ctor_get(x_20, 1);
lean_inc(x_129);
x_130 = lean_ctor_get(x_20, 2);
lean_inc(x_130);
x_131 = lean_ctor_get(x_20, 3);
lean_inc(x_131);
x_132 = lean_ctor_get(x_20, 4);
lean_inc(x_132);
x_133 = lean_unsigned_to_nat(2u);
x_134 = lean_nat_mul(x_133, x_127);
x_135 = lean_nat_dec_lt(x_128, x_134);
lean_dec(x_134);
if (x_135 == 0)
{
lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; 
lean_dec(x_128);
if (lean_is_exclusive(x_20)) {
 lean_ctor_release(x_20, 0);
 lean_ctor_release(x_20, 1);
 lean_ctor_release(x_20, 2);
 lean_ctor_release(x_20, 3);
 lean_ctor_release(x_20, 4);
 x_136 = x_20;
} else {
 lean_dec_ref(x_20);
 x_136 = lean_box(0);
}
x_137 = lean_unsigned_to_nat(1u);
x_138 = lean_nat_add(x_137, x_16);
lean_dec(x_16);
x_139 = lean_nat_add(x_138, x_15);
lean_dec(x_138);
x_140 = lean_nat_add(x_137, x_127);
lean_dec(x_127);
x_141 = lean_nat_add(x_137, x_15);
lean_dec(x_15);
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; 
x_142 = lean_ctor_get(x_131, 0);
lean_inc(x_142);
x_143 = lean_nat_add(x_140, x_142);
lean_dec(x_142);
lean_dec(x_140);
lean_inc(x_19);
if (lean_is_scalar(x_136)) {
 x_144 = lean_alloc_ctor(0, 5, 0);
} else {
 x_144 = x_136;
}
lean_ctor_set(x_144, 0, x_143);
lean_ctor_set(x_144, 1, x_17);
lean_ctor_set(x_144, 2, x_18);
lean_ctor_set(x_144, 3, x_19);
lean_ctor_set(x_144, 4, x_131);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_145 = x_19;
} else {
 lean_dec_ref(x_19);
 x_145 = lean_box(0);
}
if (lean_obj_tag(x_132) == 0)
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; 
x_146 = lean_ctor_get(x_132, 0);
lean_inc(x_146);
x_147 = lean_nat_add(x_141, x_146);
lean_dec(x_146);
lean_dec(x_141);
if (lean_is_scalar(x_145)) {
 x_148 = lean_alloc_ctor(0, 5, 0);
} else {
 x_148 = x_145;
}
lean_ctor_set(x_148, 0, x_147);
lean_ctor_set(x_148, 1, x_8);
lean_ctor_set(x_148, 2, x_9);
lean_ctor_set(x_148, 3, x_132);
lean_ctor_set(x_148, 4, x_11);
x_149 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_149, 0, x_139);
lean_ctor_set(x_149, 1, x_129);
lean_ctor_set(x_149, 2, x_130);
lean_ctor_set(x_149, 3, x_144);
lean_ctor_set(x_149, 4, x_148);
return x_149;
}
else
{
lean_object* x_150; lean_object* x_151; lean_object* x_152; lean_object* x_153; 
x_150 = lean_unsigned_to_nat(0u);
x_151 = lean_nat_add(x_141, x_150);
lean_dec(x_141);
if (lean_is_scalar(x_145)) {
 x_152 = lean_alloc_ctor(0, 5, 0);
} else {
 x_152 = x_145;
}
lean_ctor_set(x_152, 0, x_151);
lean_ctor_set(x_152, 1, x_8);
lean_ctor_set(x_152, 2, x_9);
lean_ctor_set(x_152, 3, x_132);
lean_ctor_set(x_152, 4, x_11);
x_153 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_153, 0, x_139);
lean_ctor_set(x_153, 1, x_129);
lean_ctor_set(x_153, 2, x_130);
lean_ctor_set(x_153, 3, x_144);
lean_ctor_set(x_153, 4, x_152);
return x_153;
}
}
else
{
lean_object* x_154; lean_object* x_155; lean_object* x_156; lean_object* x_157; 
x_154 = lean_unsigned_to_nat(0u);
x_155 = lean_nat_add(x_140, x_154);
lean_dec(x_140);
lean_inc(x_19);
if (lean_is_scalar(x_136)) {
 x_156 = lean_alloc_ctor(0, 5, 0);
} else {
 x_156 = x_136;
}
lean_ctor_set(x_156, 0, x_155);
lean_ctor_set(x_156, 1, x_17);
lean_ctor_set(x_156, 2, x_18);
lean_ctor_set(x_156, 3, x_19);
lean_ctor_set(x_156, 4, x_131);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_157 = x_19;
} else {
 lean_dec_ref(x_19);
 x_157 = lean_box(0);
}
if (lean_obj_tag(x_132) == 0)
{
lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; 
x_158 = lean_ctor_get(x_132, 0);
lean_inc(x_158);
x_159 = lean_nat_add(x_141, x_158);
lean_dec(x_158);
lean_dec(x_141);
if (lean_is_scalar(x_157)) {
 x_160 = lean_alloc_ctor(0, 5, 0);
} else {
 x_160 = x_157;
}
lean_ctor_set(x_160, 0, x_159);
lean_ctor_set(x_160, 1, x_8);
lean_ctor_set(x_160, 2, x_9);
lean_ctor_set(x_160, 3, x_132);
lean_ctor_set(x_160, 4, x_11);
x_161 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_161, 0, x_139);
lean_ctor_set(x_161, 1, x_129);
lean_ctor_set(x_161, 2, x_130);
lean_ctor_set(x_161, 3, x_156);
lean_ctor_set(x_161, 4, x_160);
return x_161;
}
else
{
lean_object* x_162; lean_object* x_163; lean_object* x_164; 
x_162 = lean_nat_add(x_141, x_154);
lean_dec(x_141);
if (lean_is_scalar(x_157)) {
 x_163 = lean_alloc_ctor(0, 5, 0);
} else {
 x_163 = x_157;
}
lean_ctor_set(x_163, 0, x_162);
lean_ctor_set(x_163, 1, x_8);
lean_ctor_set(x_163, 2, x_9);
lean_ctor_set(x_163, 3, x_132);
lean_ctor_set(x_163, 4, x_11);
x_164 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_164, 0, x_139);
lean_ctor_set(x_164, 1, x_129);
lean_ctor_set(x_164, 2, x_130);
lean_ctor_set(x_164, 3, x_156);
lean_ctor_set(x_164, 4, x_163);
return x_164;
}
}
}
else
{
lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; lean_object* x_172; 
lean_dec(x_132);
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_127);
x_165 = lean_unsigned_to_nat(1u);
x_166 = lean_nat_add(x_165, x_16);
lean_dec(x_16);
x_167 = lean_nat_add(x_166, x_15);
lean_dec(x_166);
x_168 = lean_nat_add(x_165, x_15);
lean_dec(x_15);
x_169 = lean_nat_add(x_168, x_128);
lean_dec(x_128);
lean_dec(x_168);
lean_inc(x_11);
x_170 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_170, 0, x_169);
lean_ctor_set(x_170, 1, x_8);
lean_ctor_set(x_170, 2, x_9);
lean_ctor_set(x_170, 3, x_20);
lean_ctor_set(x_170, 4, x_11);
if (lean_is_exclusive(x_11)) {
 lean_ctor_release(x_11, 0);
 lean_ctor_release(x_11, 1);
 lean_ctor_release(x_11, 2);
 lean_ctor_release(x_11, 3);
 lean_ctor_release(x_11, 4);
 x_171 = x_11;
} else {
 lean_dec_ref(x_11);
 x_171 = lean_box(0);
}
if (lean_is_scalar(x_171)) {
 x_172 = lean_alloc_ctor(0, 5, 0);
} else {
 x_172 = x_171;
}
lean_ctor_set(x_172, 0, x_167);
lean_ctor_set(x_172, 1, x_17);
lean_ctor_set(x_172, 2, x_18);
lean_ctor_set(x_172, 3, x_19);
lean_ctor_set(x_172, 4, x_170);
return x_172;
}
}
else
{
lean_object* x_173; lean_object* x_174; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_173 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_174 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2___rarg(x_173);
return x_174;
}
}
else
{
lean_object* x_175; lean_object* x_176; 
lean_dec(x_20);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_11);
lean_dec(x_9);
lean_dec(x_8);
x_175 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_176 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3___rarg(x_175);
return x_176;
}
}
}
}
else
{
lean_object* x_177; lean_object* x_178; lean_object* x_179; lean_object* x_180; 
x_177 = lean_ctor_get(x_11, 0);
lean_inc(x_177);
x_178 = lean_unsigned_to_nat(1u);
x_179 = lean_nat_add(x_178, x_177);
lean_dec(x_177);
x_180 = lean_box(1);
lean_ctor_set(x_5, 3, x_180);
lean_ctor_set(x_5, 0, x_179);
return x_5;
}
}
else
{
if (lean_obj_tag(x_14) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_14, 3);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
lean_object* x_182; 
x_182 = lean_ctor_get(x_14, 4);
lean_inc(x_182);
if (lean_obj_tag(x_182) == 0)
{
uint8_t x_183; 
x_183 = !lean_is_exclusive(x_14);
if (x_183 == 0)
{
lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; lean_object* x_193; 
x_184 = lean_ctor_get(x_14, 0);
x_185 = lean_ctor_get(x_14, 1);
x_186 = lean_ctor_get(x_14, 2);
x_187 = lean_ctor_get(x_14, 4);
lean_dec(x_187);
x_188 = lean_ctor_get(x_14, 3);
lean_dec(x_188);
x_189 = lean_ctor_get(x_182, 0);
lean_inc(x_189);
x_190 = lean_unsigned_to_nat(1u);
x_191 = lean_nat_add(x_190, x_184);
lean_dec(x_184);
x_192 = lean_nat_add(x_190, x_189);
lean_dec(x_189);
x_193 = lean_box(1);
lean_ctor_set(x_14, 4, x_193);
lean_ctor_set(x_14, 3, x_182);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_192);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_186);
lean_ctor_set(x_5, 1, x_185);
lean_ctor_set(x_5, 0, x_191);
return x_5;
}
else
{
lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; lean_object* x_202; 
x_194 = lean_ctor_get(x_14, 0);
x_195 = lean_ctor_get(x_14, 1);
x_196 = lean_ctor_get(x_14, 2);
lean_inc(x_196);
lean_inc(x_195);
lean_inc(x_194);
lean_dec(x_14);
x_197 = lean_ctor_get(x_182, 0);
lean_inc(x_197);
x_198 = lean_unsigned_to_nat(1u);
x_199 = lean_nat_add(x_198, x_194);
lean_dec(x_194);
x_200 = lean_nat_add(x_198, x_197);
lean_dec(x_197);
x_201 = lean_box(1);
x_202 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_202, 0, x_200);
lean_ctor_set(x_202, 1, x_8);
lean_ctor_set(x_202, 2, x_9);
lean_ctor_set(x_202, 3, x_182);
lean_ctor_set(x_202, 4, x_201);
lean_ctor_set(x_5, 4, x_202);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_196);
lean_ctor_set(x_5, 1, x_195);
lean_ctor_set(x_5, 0, x_199);
return x_5;
}
}
else
{
uint8_t x_203; 
x_203 = !lean_is_exclusive(x_14);
if (x_203 == 0)
{
lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; lean_object* x_211; 
x_204 = lean_ctor_get(x_14, 1);
x_205 = lean_ctor_get(x_14, 2);
x_206 = lean_ctor_get(x_14, 4);
lean_dec(x_206);
x_207 = lean_ctor_get(x_14, 3);
lean_dec(x_207);
x_208 = lean_ctor_get(x_14, 0);
lean_dec(x_208);
x_209 = lean_box(1);
x_210 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_14, 4, x_209);
lean_ctor_set(x_14, 3, x_209);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_210);
x_211 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_205);
lean_ctor_set(x_5, 1, x_204);
lean_ctor_set(x_5, 0, x_211);
return x_5;
}
else
{
lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; lean_object* x_217; 
x_212 = lean_ctor_get(x_14, 1);
x_213 = lean_ctor_get(x_14, 2);
lean_inc(x_213);
lean_inc(x_212);
lean_dec(x_14);
x_214 = lean_box(1);
x_215 = lean_unsigned_to_nat(1u);
x_216 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_216, 0, x_215);
lean_ctor_set(x_216, 1, x_8);
lean_ctor_set(x_216, 2, x_9);
lean_ctor_set(x_216, 3, x_214);
lean_ctor_set(x_216, 4, x_214);
x_217 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_216);
lean_ctor_set(x_5, 3, x_181);
lean_ctor_set(x_5, 2, x_213);
lean_ctor_set(x_5, 1, x_212);
lean_ctor_set(x_5, 0, x_217);
return x_5;
}
}
}
else
{
lean_object* x_218; 
x_218 = lean_ctor_get(x_14, 4);
lean_inc(x_218);
if (lean_obj_tag(x_218) == 0)
{
uint8_t x_219; 
x_219 = !lean_is_exclusive(x_14);
if (x_219 == 0)
{
lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; lean_object* x_224; uint8_t x_225; 
x_220 = lean_ctor_get(x_14, 1);
x_221 = lean_ctor_get(x_14, 2);
x_222 = lean_ctor_get(x_14, 4);
lean_dec(x_222);
x_223 = lean_ctor_get(x_14, 3);
lean_dec(x_223);
x_224 = lean_ctor_get(x_14, 0);
lean_dec(x_224);
x_225 = !lean_is_exclusive(x_218);
if (x_225 == 0)
{
lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; lean_object* x_233; 
x_226 = lean_ctor_get(x_218, 1);
x_227 = lean_ctor_get(x_218, 2);
x_228 = lean_ctor_get(x_218, 4);
lean_dec(x_228);
x_229 = lean_ctor_get(x_218, 3);
lean_dec(x_229);
x_230 = lean_ctor_get(x_218, 0);
lean_dec(x_230);
x_231 = lean_box(1);
x_232 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_218, 4, x_231);
lean_ctor_set(x_218, 3, x_231);
lean_ctor_set(x_218, 2, x_221);
lean_ctor_set(x_218, 1, x_220);
lean_ctor_set(x_218, 0, x_232);
lean_ctor_set(x_14, 4, x_231);
lean_ctor_set(x_14, 3, x_231);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_232);
x_233 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_218);
lean_ctor_set(x_5, 2, x_227);
lean_ctor_set(x_5, 1, x_226);
lean_ctor_set(x_5, 0, x_233);
return x_5;
}
else
{
lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; lean_object* x_239; 
x_234 = lean_ctor_get(x_218, 1);
x_235 = lean_ctor_get(x_218, 2);
lean_inc(x_235);
lean_inc(x_234);
lean_dec(x_218);
x_236 = lean_box(1);
x_237 = lean_unsigned_to_nat(1u);
x_238 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_238, 0, x_237);
lean_ctor_set(x_238, 1, x_220);
lean_ctor_set(x_238, 2, x_221);
lean_ctor_set(x_238, 3, x_236);
lean_ctor_set(x_238, 4, x_236);
lean_ctor_set(x_14, 4, x_236);
lean_ctor_set(x_14, 3, x_236);
lean_ctor_set(x_14, 2, x_9);
lean_ctor_set(x_14, 1, x_8);
lean_ctor_set(x_14, 0, x_237);
x_239 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_14);
lean_ctor_set(x_5, 3, x_238);
lean_ctor_set(x_5, 2, x_235);
lean_ctor_set(x_5, 1, x_234);
lean_ctor_set(x_5, 0, x_239);
return x_5;
}
}
else
{
lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; lean_object* x_249; 
x_240 = lean_ctor_get(x_14, 1);
x_241 = lean_ctor_get(x_14, 2);
lean_inc(x_241);
lean_inc(x_240);
lean_dec(x_14);
x_242 = lean_ctor_get(x_218, 1);
lean_inc(x_242);
x_243 = lean_ctor_get(x_218, 2);
lean_inc(x_243);
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);
 lean_ctor_release(x_218, 4);
 x_244 = x_218;
} else {
 lean_dec_ref(x_218);
 x_244 = lean_box(0);
}
x_245 = lean_box(1);
x_246 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_244)) {
 x_247 = lean_alloc_ctor(0, 5, 0);
} else {
 x_247 = x_244;
}
lean_ctor_set(x_247, 0, x_246);
lean_ctor_set(x_247, 1, x_240);
lean_ctor_set(x_247, 2, x_241);
lean_ctor_set(x_247, 3, x_245);
lean_ctor_set(x_247, 4, x_245);
x_248 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_248, 0, x_246);
lean_ctor_set(x_248, 1, x_8);
lean_ctor_set(x_248, 2, x_9);
lean_ctor_set(x_248, 3, x_245);
lean_ctor_set(x_248, 4, x_245);
x_249 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_248);
lean_ctor_set(x_5, 3, x_247);
lean_ctor_set(x_5, 2, x_243);
lean_ctor_set(x_5, 1, x_242);
lean_ctor_set(x_5, 0, x_249);
return x_5;
}
}
else
{
lean_object* x_250; lean_object* x_251; 
x_250 = lean_box(1);
x_251 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_5, 4, x_250);
lean_ctor_set(x_5, 3, x_14);
lean_ctor_set(x_5, 0, x_251);
return x_5;
}
}
}
else
{
lean_object* x_252; lean_object* x_253; 
x_252 = lean_box(1);
x_253 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_5, 4, x_252);
lean_ctor_set(x_5, 3, x_252);
lean_ctor_set(x_5, 0, x_253);
return x_5;
}
}
}
case 1:
{
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_1);
lean_ctor_set(x_5, 2, x_4);
lean_ctor_set(x_5, 1, x_3);
return x_5;
}
default: 
{
lean_object* x_254; 
lean_dec(x_7);
x_254 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_11);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; lean_object* x_262; uint8_t x_263; 
x_255 = lean_ctor_get(x_10, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_254, 0);
lean_inc(x_256);
x_257 = lean_ctor_get(x_254, 1);
lean_inc(x_257);
x_258 = lean_ctor_get(x_254, 2);
lean_inc(x_258);
x_259 = lean_ctor_get(x_254, 3);
lean_inc(x_259);
x_260 = lean_ctor_get(x_254, 4);
lean_inc(x_260);
x_261 = lean_unsigned_to_nat(3u);
x_262 = lean_nat_mul(x_261, x_255);
x_263 = lean_nat_dec_lt(x_262, x_256);
lean_dec(x_262);
if (x_263 == 0)
{
lean_object* x_264; lean_object* x_265; lean_object* x_266; 
lean_dec(x_260);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
x_264 = lean_unsigned_to_nat(1u);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
x_266 = lean_nat_add(x_265, x_256);
lean_dec(x_256);
lean_dec(x_265);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 0, x_266);
return x_5;
}
else
{
uint8_t x_267; 
lean_free_object(x_5);
x_267 = !lean_is_exclusive(x_254);
if (x_267 == 0)
{
lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; lean_object* x_272; 
x_268 = lean_ctor_get(x_254, 4);
lean_dec(x_268);
x_269 = lean_ctor_get(x_254, 3);
lean_dec(x_269);
x_270 = lean_ctor_get(x_254, 2);
lean_dec(x_270);
x_271 = lean_ctor_get(x_254, 1);
lean_dec(x_271);
x_272 = lean_ctor_get(x_254, 0);
lean_dec(x_272);
if (lean_obj_tag(x_259) == 0)
{
if (lean_obj_tag(x_260) == 0)
{
lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; lean_object* x_280; uint8_t x_281; 
x_273 = lean_ctor_get(x_259, 0);
lean_inc(x_273);
x_274 = lean_ctor_get(x_259, 1);
lean_inc(x_274);
x_275 = lean_ctor_get(x_259, 2);
lean_inc(x_275);
x_276 = lean_ctor_get(x_259, 3);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 4);
lean_inc(x_277);
x_278 = lean_ctor_get(x_260, 0);
lean_inc(x_278);
x_279 = lean_unsigned_to_nat(2u);
x_280 = lean_nat_mul(x_279, x_278);
x_281 = lean_nat_dec_lt(x_273, x_280);
lean_dec(x_280);
if (x_281 == 0)
{
uint8_t x_282; 
lean_dec(x_273);
x_282 = !lean_is_exclusive(x_259);
if (x_282 == 0)
{
lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; lean_object* x_291; 
x_283 = lean_ctor_get(x_259, 4);
lean_dec(x_283);
x_284 = lean_ctor_get(x_259, 3);
lean_dec(x_284);
x_285 = lean_ctor_get(x_259, 2);
lean_dec(x_285);
x_286 = lean_ctor_get(x_259, 1);
lean_dec(x_286);
x_287 = lean_ctor_get(x_259, 0);
lean_dec(x_287);
x_288 = lean_unsigned_to_nat(1u);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_289, x_256);
lean_dec(x_256);
x_291 = lean_nat_add(x_288, x_278);
lean_dec(x_278);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_292; lean_object* x_293; uint8_t x_294; 
x_292 = lean_ctor_get(x_276, 0);
lean_inc(x_292);
x_293 = lean_nat_add(x_289, x_292);
lean_dec(x_292);
lean_dec(x_289);
lean_inc(x_10);
lean_ctor_set(x_259, 4, x_276);
lean_ctor_set(x_259, 3, x_10);
lean_ctor_set(x_259, 2, x_9);
lean_ctor_set(x_259, 1, x_8);
lean_ctor_set(x_259, 0, x_293);
x_294 = !lean_is_exclusive(x_10);
if (x_294 == 0)
{
lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; lean_object* x_299; 
x_295 = lean_ctor_get(x_10, 4);
lean_dec(x_295);
x_296 = lean_ctor_get(x_10, 3);
lean_dec(x_296);
x_297 = lean_ctor_get(x_10, 2);
lean_dec(x_297);
x_298 = lean_ctor_get(x_10, 1);
lean_dec(x_298);
x_299 = lean_ctor_get(x_10, 0);
lean_dec(x_299);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_300; lean_object* x_301; 
x_300 = lean_ctor_get(x_277, 0);
lean_inc(x_300);
x_301 = lean_nat_add(x_291, x_300);
lean_dec(x_300);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_301);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
else
{
lean_object* x_302; lean_object* x_303; 
x_302 = lean_unsigned_to_nat(0u);
x_303 = lean_nat_add(x_291, x_302);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_303);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_304; lean_object* x_305; lean_object* x_306; 
x_304 = lean_ctor_get(x_277, 0);
lean_inc(x_304);
x_305 = lean_nat_add(x_291, x_304);
lean_dec(x_304);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_305);
x_306 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_306, 0, x_290);
lean_ctor_set(x_306, 1, x_274);
lean_ctor_set(x_306, 2, x_275);
lean_ctor_set(x_306, 3, x_259);
lean_ctor_set(x_306, 4, x_254);
return x_306;
}
else
{
lean_object* x_307; lean_object* x_308; lean_object* x_309; 
x_307 = lean_unsigned_to_nat(0u);
x_308 = lean_nat_add(x_291, x_307);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_308);
x_309 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_309, 0, x_290);
lean_ctor_set(x_309, 1, x_274);
lean_ctor_set(x_309, 2, x_275);
lean_ctor_set(x_309, 3, x_259);
lean_ctor_set(x_309, 4, x_254);
return x_309;
}
}
}
else
{
lean_object* x_310; lean_object* x_311; uint8_t x_312; 
x_310 = lean_unsigned_to_nat(0u);
x_311 = lean_nat_add(x_289, x_310);
lean_dec(x_289);
lean_inc(x_10);
lean_ctor_set(x_259, 4, x_276);
lean_ctor_set(x_259, 3, x_10);
lean_ctor_set(x_259, 2, x_9);
lean_ctor_set(x_259, 1, x_8);
lean_ctor_set(x_259, 0, x_311);
x_312 = !lean_is_exclusive(x_10);
if (x_312 == 0)
{
lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; lean_object* x_317; 
x_313 = lean_ctor_get(x_10, 4);
lean_dec(x_313);
x_314 = lean_ctor_get(x_10, 3);
lean_dec(x_314);
x_315 = lean_ctor_get(x_10, 2);
lean_dec(x_315);
x_316 = lean_ctor_get(x_10, 1);
lean_dec(x_316);
x_317 = lean_ctor_get(x_10, 0);
lean_dec(x_317);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_318; lean_object* x_319; 
x_318 = lean_ctor_get(x_277, 0);
lean_inc(x_318);
x_319 = lean_nat_add(x_291, x_318);
lean_dec(x_318);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_319);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
else
{
lean_object* x_320; 
x_320 = lean_nat_add(x_291, x_310);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_320);
lean_ctor_set(x_10, 4, x_254);
lean_ctor_set(x_10, 3, x_259);
lean_ctor_set(x_10, 2, x_275);
lean_ctor_set(x_10, 1, x_274);
lean_ctor_set(x_10, 0, x_290);
return x_10;
}
}
else
{
lean_dec(x_10);
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_321; lean_object* x_322; lean_object* x_323; 
x_321 = lean_ctor_get(x_277, 0);
lean_inc(x_321);
x_322 = lean_nat_add(x_291, x_321);
lean_dec(x_321);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_322);
x_323 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_323, 0, x_290);
lean_ctor_set(x_323, 1, x_274);
lean_ctor_set(x_323, 2, x_275);
lean_ctor_set(x_323, 3, x_259);
lean_ctor_set(x_323, 4, x_254);
return x_323;
}
else
{
lean_object* x_324; lean_object* x_325; 
x_324 = lean_nat_add(x_291, x_310);
lean_dec(x_291);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_324);
x_325 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_325, 0, x_290);
lean_ctor_set(x_325, 1, x_274);
lean_ctor_set(x_325, 2, x_275);
lean_ctor_set(x_325, 3, x_259);
lean_ctor_set(x_325, 4, x_254);
return x_325;
}
}
}
}
else
{
lean_object* x_326; lean_object* x_327; lean_object* x_328; lean_object* x_329; 
lean_dec(x_259);
x_326 = lean_unsigned_to_nat(1u);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_327, x_256);
lean_dec(x_256);
x_329 = lean_nat_add(x_326, x_278);
lean_dec(x_278);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_330; lean_object* x_331; lean_object* x_332; lean_object* x_333; 
x_330 = lean_ctor_get(x_276, 0);
lean_inc(x_330);
x_331 = lean_nat_add(x_327, x_330);
lean_dec(x_330);
lean_dec(x_327);
lean_inc(x_10);
x_332 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_332, 0, x_331);
lean_ctor_set(x_332, 1, x_8);
lean_ctor_set(x_332, 2, x_9);
lean_ctor_set(x_332, 3, x_10);
lean_ctor_set(x_332, 4, x_276);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_333 = x_10;
} else {
 lean_dec_ref(x_10);
 x_333 = lean_box(0);
}
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_334; lean_object* x_335; lean_object* x_336; 
x_334 = lean_ctor_get(x_277, 0);
lean_inc(x_334);
x_335 = lean_nat_add(x_329, x_334);
lean_dec(x_334);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_335);
if (lean_is_scalar(x_333)) {
 x_336 = lean_alloc_ctor(0, 5, 0);
} else {
 x_336 = x_333;
}
lean_ctor_set(x_336, 0, x_328);
lean_ctor_set(x_336, 1, x_274);
lean_ctor_set(x_336, 2, x_275);
lean_ctor_set(x_336, 3, x_332);
lean_ctor_set(x_336, 4, x_254);
return x_336;
}
else
{
lean_object* x_337; lean_object* x_338; lean_object* x_339; 
x_337 = lean_unsigned_to_nat(0u);
x_338 = lean_nat_add(x_329, x_337);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_338);
if (lean_is_scalar(x_333)) {
 x_339 = lean_alloc_ctor(0, 5, 0);
} else {
 x_339 = x_333;
}
lean_ctor_set(x_339, 0, x_328);
lean_ctor_set(x_339, 1, x_274);
lean_ctor_set(x_339, 2, x_275);
lean_ctor_set(x_339, 3, x_332);
lean_ctor_set(x_339, 4, x_254);
return x_339;
}
}
else
{
lean_object* x_340; lean_object* x_341; lean_object* x_342; lean_object* x_343; 
x_340 = lean_unsigned_to_nat(0u);
x_341 = lean_nat_add(x_327, x_340);
lean_dec(x_327);
lean_inc(x_10);
x_342 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_342, 0, x_341);
lean_ctor_set(x_342, 1, x_8);
lean_ctor_set(x_342, 2, x_9);
lean_ctor_set(x_342, 3, x_10);
lean_ctor_set(x_342, 4, x_276);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_343 = x_10;
} else {
 lean_dec_ref(x_10);
 x_343 = lean_box(0);
}
if (lean_obj_tag(x_277) == 0)
{
lean_object* x_344; lean_object* x_345; lean_object* x_346; 
x_344 = lean_ctor_get(x_277, 0);
lean_inc(x_344);
x_345 = lean_nat_add(x_329, x_344);
lean_dec(x_344);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_345);
if (lean_is_scalar(x_343)) {
 x_346 = lean_alloc_ctor(0, 5, 0);
} else {
 x_346 = x_343;
}
lean_ctor_set(x_346, 0, x_328);
lean_ctor_set(x_346, 1, x_274);
lean_ctor_set(x_346, 2, x_275);
lean_ctor_set(x_346, 3, x_342);
lean_ctor_set(x_346, 4, x_254);
return x_346;
}
else
{
lean_object* x_347; lean_object* x_348; 
x_347 = lean_nat_add(x_329, x_340);
lean_dec(x_329);
lean_ctor_set(x_254, 3, x_277);
lean_ctor_set(x_254, 0, x_347);
if (lean_is_scalar(x_343)) {
 x_348 = lean_alloc_ctor(0, 5, 0);
} else {
 x_348 = x_343;
}
lean_ctor_set(x_348, 0, x_328);
lean_ctor_set(x_348, 1, x_274);
lean_ctor_set(x_348, 2, x_275);
lean_ctor_set(x_348, 3, x_342);
lean_ctor_set(x_348, 4, x_254);
return x_348;
}
}
}
}
else
{
lean_object* x_349; lean_object* x_350; lean_object* x_351; lean_object* x_352; uint8_t x_353; 
lean_dec(x_278);
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
x_349 = lean_unsigned_to_nat(1u);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_350, x_256);
lean_dec(x_256);
x_352 = lean_nat_add(x_350, x_273);
lean_dec(x_273);
lean_dec(x_350);
lean_inc(x_10);
lean_ctor_set(x_254, 4, x_259);
lean_ctor_set(x_254, 3, x_10);
lean_ctor_set(x_254, 2, x_9);
lean_ctor_set(x_254, 1, x_8);
lean_ctor_set(x_254, 0, x_352);
x_353 = !lean_is_exclusive(x_10);
if (x_353 == 0)
{
lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; lean_object* x_358; 
x_354 = lean_ctor_get(x_10, 4);
lean_dec(x_354);
x_355 = lean_ctor_get(x_10, 3);
lean_dec(x_355);
x_356 = lean_ctor_get(x_10, 2);
lean_dec(x_356);
x_357 = lean_ctor_get(x_10, 1);
lean_dec(x_357);
x_358 = lean_ctor_get(x_10, 0);
lean_dec(x_358);
lean_ctor_set(x_10, 4, x_260);
lean_ctor_set(x_10, 3, x_254);
lean_ctor_set(x_10, 2, x_258);
lean_ctor_set(x_10, 1, x_257);
lean_ctor_set(x_10, 0, x_351);
return x_10;
}
else
{
lean_object* x_359; 
lean_dec(x_10);
x_359 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_359, 0, x_351);
lean_ctor_set(x_359, 1, x_257);
lean_ctor_set(x_359, 2, x_258);
lean_ctor_set(x_359, 3, x_254);
lean_ctor_set(x_359, 4, x_260);
return x_359;
}
}
}
else
{
lean_object* x_360; lean_object* x_361; 
lean_free_object(x_254);
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_360 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_361 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4___rarg(x_360);
return x_361;
}
}
else
{
lean_object* x_362; lean_object* x_363; 
lean_free_object(x_254);
lean_dec(x_260);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_362 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_363 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5___rarg(x_362);
return x_363;
}
}
else
{
lean_dec(x_254);
if (lean_obj_tag(x_259) == 0)
{
if (lean_obj_tag(x_260) == 0)
{
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; 
x_364 = lean_ctor_get(x_259, 0);
lean_inc(x_364);
x_365 = lean_ctor_get(x_259, 1);
lean_inc(x_365);
x_366 = lean_ctor_get(x_259, 2);
lean_inc(x_366);
x_367 = lean_ctor_get(x_259, 3);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 4);
lean_inc(x_368);
x_369 = lean_ctor_get(x_260, 0);
lean_inc(x_369);
x_370 = lean_unsigned_to_nat(2u);
x_371 = lean_nat_mul(x_370, x_369);
x_372 = lean_nat_dec_lt(x_364, x_371);
lean_dec(x_371);
if (x_372 == 0)
{
lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; lean_object* x_377; 
lean_dec(x_364);
if (lean_is_exclusive(x_259)) {
 lean_ctor_release(x_259, 0);
 lean_ctor_release(x_259, 1);
 lean_ctor_release(x_259, 2);
 lean_ctor_release(x_259, 3);
 lean_ctor_release(x_259, 4);
 x_373 = x_259;
} else {
 lean_dec_ref(x_259);
 x_373 = lean_box(0);
}
x_374 = lean_unsigned_to_nat(1u);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_375, x_256);
lean_dec(x_256);
x_377 = lean_nat_add(x_374, x_369);
lean_dec(x_369);
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_378; lean_object* x_379; lean_object* x_380; lean_object* x_381; 
x_378 = lean_ctor_get(x_367, 0);
lean_inc(x_378);
x_379 = lean_nat_add(x_375, x_378);
lean_dec(x_378);
lean_dec(x_375);
lean_inc(x_10);
if (lean_is_scalar(x_373)) {
 x_380 = lean_alloc_ctor(0, 5, 0);
} else {
 x_380 = x_373;
}
lean_ctor_set(x_380, 0, x_379);
lean_ctor_set(x_380, 1, x_8);
lean_ctor_set(x_380, 2, x_9);
lean_ctor_set(x_380, 3, x_10);
lean_ctor_set(x_380, 4, x_367);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_381 = x_10;
} else {
 lean_dec_ref(x_10);
 x_381 = lean_box(0);
}
if (lean_obj_tag(x_368) == 0)
{
lean_object* x_382; lean_object* x_383; lean_object* x_384; lean_object* x_385; 
x_382 = lean_ctor_get(x_368, 0);
lean_inc(x_382);
x_383 = lean_nat_add(x_377, x_382);
lean_dec(x_382);
lean_dec(x_377);
x_384 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_384, 0, x_383);
lean_ctor_set(x_384, 1, x_257);
lean_ctor_set(x_384, 2, x_258);
lean_ctor_set(x_384, 3, x_368);
lean_ctor_set(x_384, 4, x_260);
if (lean_is_scalar(x_381)) {
 x_385 = lean_alloc_ctor(0, 5, 0);
} else {
 x_385 = x_381;
}
lean_ctor_set(x_385, 0, x_376);
lean_ctor_set(x_385, 1, x_365);
lean_ctor_set(x_385, 2, x_366);
lean_ctor_set(x_385, 3, x_380);
lean_ctor_set(x_385, 4, x_384);
return x_385;
}
else
{
lean_object* x_386; lean_object* x_387; lean_object* x_388; lean_object* x_389; 
x_386 = lean_unsigned_to_nat(0u);
x_387 = lean_nat_add(x_377, x_386);
lean_dec(x_377);
x_388 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_388, 0, x_387);
lean_ctor_set(x_388, 1, x_257);
lean_ctor_set(x_388, 2, x_258);
lean_ctor_set(x_388, 3, x_368);
lean_ctor_set(x_388, 4, x_260);
if (lean_is_scalar(x_381)) {
 x_389 = lean_alloc_ctor(0, 5, 0);
} else {
 x_389 = x_381;
}
lean_ctor_set(x_389, 0, x_376);
lean_ctor_set(x_389, 1, x_365);
lean_ctor_set(x_389, 2, x_366);
lean_ctor_set(x_389, 3, x_380);
lean_ctor_set(x_389, 4, x_388);
return x_389;
}
}
else
{
lean_object* x_390; lean_object* x_391; lean_object* x_392; lean_object* x_393; 
x_390 = lean_unsigned_to_nat(0u);
x_391 = lean_nat_add(x_375, x_390);
lean_dec(x_375);
lean_inc(x_10);
if (lean_is_scalar(x_373)) {
 x_392 = lean_alloc_ctor(0, 5, 0);
} else {
 x_392 = x_373;
}
lean_ctor_set(x_392, 0, x_391);
lean_ctor_set(x_392, 1, x_8);
lean_ctor_set(x_392, 2, x_9);
lean_ctor_set(x_392, 3, x_10);
lean_ctor_set(x_392, 4, x_367);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_393 = x_10;
} else {
 lean_dec_ref(x_10);
 x_393 = lean_box(0);
}
if (lean_obj_tag(x_368) == 0)
{
lean_object* x_394; lean_object* x_395; lean_object* x_396; lean_object* x_397; 
x_394 = lean_ctor_get(x_368, 0);
lean_inc(x_394);
x_395 = lean_nat_add(x_377, x_394);
lean_dec(x_394);
lean_dec(x_377);
x_396 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_396, 0, x_395);
lean_ctor_set(x_396, 1, x_257);
lean_ctor_set(x_396, 2, x_258);
lean_ctor_set(x_396, 3, x_368);
lean_ctor_set(x_396, 4, x_260);
if (lean_is_scalar(x_393)) {
 x_397 = lean_alloc_ctor(0, 5, 0);
} else {
 x_397 = x_393;
}
lean_ctor_set(x_397, 0, x_376);
lean_ctor_set(x_397, 1, x_365);
lean_ctor_set(x_397, 2, x_366);
lean_ctor_set(x_397, 3, x_392);
lean_ctor_set(x_397, 4, x_396);
return x_397;
}
else
{
lean_object* x_398; lean_object* x_399; lean_object* x_400; 
x_398 = lean_nat_add(x_377, x_390);
lean_dec(x_377);
x_399 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_399, 0, x_398);
lean_ctor_set(x_399, 1, x_257);
lean_ctor_set(x_399, 2, x_258);
lean_ctor_set(x_399, 3, x_368);
lean_ctor_set(x_399, 4, x_260);
if (lean_is_scalar(x_393)) {
 x_400 = lean_alloc_ctor(0, 5, 0);
} else {
 x_400 = x_393;
}
lean_ctor_set(x_400, 0, x_376);
lean_ctor_set(x_400, 1, x_365);
lean_ctor_set(x_400, 2, x_366);
lean_ctor_set(x_400, 3, x_392);
lean_ctor_set(x_400, 4, x_399);
return x_400;
}
}
}
else
{
lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; lean_object* x_407; 
lean_dec(x_369);
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
x_401 = lean_unsigned_to_nat(1u);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_402, x_256);
lean_dec(x_256);
x_404 = lean_nat_add(x_402, x_364);
lean_dec(x_364);
lean_dec(x_402);
lean_inc(x_10);
x_405 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_405, 0, x_404);
lean_ctor_set(x_405, 1, x_8);
lean_ctor_set(x_405, 2, x_9);
lean_ctor_set(x_405, 3, x_10);
lean_ctor_set(x_405, 4, x_259);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_406 = x_10;
} else {
 lean_dec_ref(x_10);
 x_406 = lean_box(0);
}
if (lean_is_scalar(x_406)) {
 x_407 = lean_alloc_ctor(0, 5, 0);
} else {
 x_407 = x_406;
}
lean_ctor_set(x_407, 0, x_403);
lean_ctor_set(x_407, 1, x_257);
lean_ctor_set(x_407, 2, x_258);
lean_ctor_set(x_407, 3, x_405);
lean_ctor_set(x_407, 4, x_260);
return x_407;
}
}
else
{
lean_object* x_408; lean_object* x_409; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_408 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_409 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4___rarg(x_408);
return x_409;
}
}
else
{
lean_object* x_410; lean_object* x_411; 
lean_dec(x_260);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_10);
lean_dec(x_9);
lean_dec(x_8);
x_410 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_411 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5___rarg(x_410);
return x_411;
}
}
}
}
else
{
lean_object* x_412; lean_object* x_413; lean_object* x_414; lean_object* x_415; 
x_412 = lean_ctor_get(x_10, 0);
lean_inc(x_412);
x_413 = lean_unsigned_to_nat(1u);
x_414 = lean_nat_add(x_413, x_412);
lean_dec(x_412);
x_415 = lean_box(1);
lean_ctor_set(x_5, 4, x_415);
lean_ctor_set(x_5, 0, x_414);
return x_5;
}
}
else
{
if (lean_obj_tag(x_254) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_254, 3);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
lean_object* x_417; 
x_417 = lean_ctor_get(x_254, 4);
lean_inc(x_417);
if (lean_obj_tag(x_417) == 0)
{
uint8_t x_418; 
x_418 = !lean_is_exclusive(x_254);
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; lean_object* x_428; 
x_419 = lean_ctor_get(x_254, 0);
x_420 = lean_ctor_get(x_254, 1);
x_421 = lean_ctor_get(x_254, 2);
x_422 = lean_ctor_get(x_254, 4);
lean_dec(x_422);
x_423 = lean_ctor_get(x_254, 3);
lean_dec(x_423);
x_424 = lean_ctor_get(x_416, 0);
lean_inc(x_424);
x_425 = lean_unsigned_to_nat(1u);
x_426 = lean_nat_add(x_425, x_419);
lean_dec(x_419);
x_427 = lean_nat_add(x_425, x_424);
lean_dec(x_424);
x_428 = lean_box(1);
lean_ctor_set(x_254, 4, x_416);
lean_ctor_set(x_254, 3, x_428);
lean_ctor_set(x_254, 2, x_9);
lean_ctor_set(x_254, 1, x_8);
lean_ctor_set(x_254, 0, x_427);
lean_ctor_set(x_5, 4, x_417);
lean_ctor_set(x_5, 3, x_254);
lean_ctor_set(x_5, 2, x_421);
lean_ctor_set(x_5, 1, x_420);
lean_ctor_set(x_5, 0, x_426);
return x_5;
}
else
{
lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; lean_object* x_437; 
x_429 = lean_ctor_get(x_254, 0);
x_430 = lean_ctor_get(x_254, 1);
x_431 = lean_ctor_get(x_254, 2);
lean_inc(x_431);
lean_inc(x_430);
lean_inc(x_429);
lean_dec(x_254);
x_432 = lean_ctor_get(x_416, 0);
lean_inc(x_432);
x_433 = lean_unsigned_to_nat(1u);
x_434 = lean_nat_add(x_433, x_429);
lean_dec(x_429);
x_435 = lean_nat_add(x_433, x_432);
lean_dec(x_432);
x_436 = lean_box(1);
x_437 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_437, 0, x_435);
lean_ctor_set(x_437, 1, x_8);
lean_ctor_set(x_437, 2, x_9);
lean_ctor_set(x_437, 3, x_436);
lean_ctor_set(x_437, 4, x_416);
lean_ctor_set(x_5, 4, x_417);
lean_ctor_set(x_5, 3, x_437);
lean_ctor_set(x_5, 2, x_431);
lean_ctor_set(x_5, 1, x_430);
lean_ctor_set(x_5, 0, x_434);
return x_5;
}
}
else
{
uint8_t x_438; 
x_438 = !lean_is_exclusive(x_254);
if (x_438 == 0)
{
lean_object* x_439; lean_object* x_440; lean_object* x_441; uint8_t x_442; 
x_439 = lean_ctor_get(x_254, 4);
lean_dec(x_439);
x_440 = lean_ctor_get(x_254, 3);
lean_dec(x_440);
x_441 = lean_ctor_get(x_254, 0);
lean_dec(x_441);
x_442 = !lean_is_exclusive(x_416);
if (x_442 == 0)
{
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; lean_object* x_450; 
x_443 = lean_ctor_get(x_416, 1);
x_444 = lean_ctor_get(x_416, 2);
x_445 = lean_ctor_get(x_416, 4);
lean_dec(x_445);
x_446 = lean_ctor_get(x_416, 3);
lean_dec(x_446);
x_447 = lean_ctor_get(x_416, 0);
lean_dec(x_447);
x_448 = lean_box(1);
x_449 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_416, 4, x_448);
lean_ctor_set(x_416, 3, x_448);
lean_ctor_set(x_416, 2, x_9);
lean_ctor_set(x_416, 1, x_8);
lean_ctor_set(x_416, 0, x_449);
lean_ctor_set(x_254, 4, x_448);
lean_ctor_set(x_254, 3, x_448);
lean_ctor_set(x_254, 0, x_449);
x_450 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 3, x_416);
lean_ctor_set(x_5, 2, x_444);
lean_ctor_set(x_5, 1, x_443);
lean_ctor_set(x_5, 0, x_450);
return x_5;
}
else
{
lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; lean_object* x_456; 
x_451 = lean_ctor_get(x_416, 1);
x_452 = lean_ctor_get(x_416, 2);
lean_inc(x_452);
lean_inc(x_451);
lean_dec(x_416);
x_453 = lean_box(1);
x_454 = lean_unsigned_to_nat(1u);
x_455 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_455, 0, x_454);
lean_ctor_set(x_455, 1, x_8);
lean_ctor_set(x_455, 2, x_9);
lean_ctor_set(x_455, 3, x_453);
lean_ctor_set(x_455, 4, x_453);
lean_ctor_set(x_254, 4, x_453);
lean_ctor_set(x_254, 3, x_453);
lean_ctor_set(x_254, 0, x_454);
x_456 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 3, x_455);
lean_ctor_set(x_5, 2, x_452);
lean_ctor_set(x_5, 1, x_451);
lean_ctor_set(x_5, 0, x_456);
return x_5;
}
}
else
{
lean_object* x_457; lean_object* x_458; lean_object* x_459; lean_object* x_460; lean_object* x_461; lean_object* x_462; lean_object* x_463; lean_object* x_464; lean_object* x_465; lean_object* x_466; 
x_457 = lean_ctor_get(x_254, 1);
x_458 = lean_ctor_get(x_254, 2);
lean_inc(x_458);
lean_inc(x_457);
lean_dec(x_254);
x_459 = lean_ctor_get(x_416, 1);
lean_inc(x_459);
x_460 = lean_ctor_get(x_416, 2);
lean_inc(x_460);
if (lean_is_exclusive(x_416)) {
 lean_ctor_release(x_416, 0);
 lean_ctor_release(x_416, 1);
 lean_ctor_release(x_416, 2);
 lean_ctor_release(x_416, 3);
 lean_ctor_release(x_416, 4);
 x_461 = x_416;
} else {
 lean_dec_ref(x_416);
 x_461 = lean_box(0);
}
x_462 = lean_box(1);
x_463 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_461)) {
 x_464 = lean_alloc_ctor(0, 5, 0);
} else {
 x_464 = x_461;
}
lean_ctor_set(x_464, 0, x_463);
lean_ctor_set(x_464, 1, x_8);
lean_ctor_set(x_464, 2, x_9);
lean_ctor_set(x_464, 3, x_462);
lean_ctor_set(x_464, 4, x_462);
x_465 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_465, 0, x_463);
lean_ctor_set(x_465, 1, x_457);
lean_ctor_set(x_465, 2, x_458);
lean_ctor_set(x_465, 3, x_462);
lean_ctor_set(x_465, 4, x_462);
x_466 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_465);
lean_ctor_set(x_5, 3, x_464);
lean_ctor_set(x_5, 2, x_460);
lean_ctor_set(x_5, 1, x_459);
lean_ctor_set(x_5, 0, x_466);
return x_5;
}
}
}
else
{
lean_object* x_467; 
x_467 = lean_ctor_get(x_254, 4);
lean_inc(x_467);
if (lean_obj_tag(x_467) == 0)
{
uint8_t x_468; 
x_468 = !lean_is_exclusive(x_254);
if (x_468 == 0)
{
lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; lean_object* x_476; 
x_469 = lean_ctor_get(x_254, 1);
x_470 = lean_ctor_get(x_254, 2);
x_471 = lean_ctor_get(x_254, 4);
lean_dec(x_471);
x_472 = lean_ctor_get(x_254, 3);
lean_dec(x_472);
x_473 = lean_ctor_get(x_254, 0);
lean_dec(x_473);
x_474 = lean_box(1);
x_475 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_254, 4, x_474);
lean_ctor_set(x_254, 3, x_474);
lean_ctor_set(x_254, 2, x_9);
lean_ctor_set(x_254, 1, x_8);
lean_ctor_set(x_254, 0, x_475);
x_476 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_467);
lean_ctor_set(x_5, 3, x_254);
lean_ctor_set(x_5, 2, x_470);
lean_ctor_set(x_5, 1, x_469);
lean_ctor_set(x_5, 0, x_476);
return x_5;
}
else
{
lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; lean_object* x_482; 
x_477 = lean_ctor_get(x_254, 1);
x_478 = lean_ctor_get(x_254, 2);
lean_inc(x_478);
lean_inc(x_477);
lean_dec(x_254);
x_479 = lean_box(1);
x_480 = lean_unsigned_to_nat(1u);
x_481 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_481, 0, x_480);
lean_ctor_set(x_481, 1, x_8);
lean_ctor_set(x_481, 2, x_9);
lean_ctor_set(x_481, 3, x_479);
lean_ctor_set(x_481, 4, x_479);
x_482 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_5, 4, x_467);
lean_ctor_set(x_5, 3, x_481);
lean_ctor_set(x_5, 2, x_478);
lean_ctor_set(x_5, 1, x_477);
lean_ctor_set(x_5, 0, x_482);
return x_5;
}
}
else
{
lean_object* x_483; lean_object* x_484; 
x_483 = lean_box(1);
x_484 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_5, 4, x_254);
lean_ctor_set(x_5, 3, x_483);
lean_ctor_set(x_5, 0, x_484);
return x_5;
}
}
}
else
{
lean_object* x_485; lean_object* x_486; 
x_485 = lean_box(1);
x_486 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_5, 4, x_485);
lean_ctor_set(x_5, 3, x_485);
lean_ctor_set(x_5, 0, x_486);
return x_5;
}
}
}
}
}
else
{
lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; lean_object* x_492; uint8_t x_493; 
x_487 = lean_ctor_get(x_5, 0);
x_488 = lean_ctor_get(x_5, 1);
x_489 = lean_ctor_get(x_5, 2);
x_490 = lean_ctor_get(x_5, 3);
x_491 = lean_ctor_get(x_5, 4);
lean_inc(x_491);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_dec(x_5);
lean_inc(x_1);
lean_inc(x_488);
lean_inc(x_3);
x_492 = lean_apply_2(x_1, x_3, x_488);
x_493 = lean_unbox(x_492);
lean_dec(x_492);
switch (x_493) {
case 0:
{
lean_object* x_494; 
lean_dec(x_487);
x_494 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_490);
if (lean_obj_tag(x_491) == 0)
{
if (lean_obj_tag(x_494) == 0)
{
lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; lean_object* x_502; uint8_t x_503; 
x_495 = lean_ctor_get(x_491, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_494, 0);
lean_inc(x_496);
x_497 = lean_ctor_get(x_494, 1);
lean_inc(x_497);
x_498 = lean_ctor_get(x_494, 2);
lean_inc(x_498);
x_499 = lean_ctor_get(x_494, 3);
lean_inc(x_499);
x_500 = lean_ctor_get(x_494, 4);
lean_inc(x_500);
x_501 = lean_unsigned_to_nat(3u);
x_502 = lean_nat_mul(x_501, x_495);
x_503 = lean_nat_dec_lt(x_502, x_496);
lean_dec(x_502);
if (x_503 == 0)
{
lean_object* x_504; lean_object* x_505; lean_object* x_506; lean_object* x_507; 
lean_dec(x_500);
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
x_504 = lean_unsigned_to_nat(1u);
x_505 = lean_nat_add(x_504, x_496);
lean_dec(x_496);
x_506 = lean_nat_add(x_505, x_495);
lean_dec(x_495);
lean_dec(x_505);
x_507 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_507, 0, x_506);
lean_ctor_set(x_507, 1, x_488);
lean_ctor_set(x_507, 2, x_489);
lean_ctor_set(x_507, 3, x_494);
lean_ctor_set(x_507, 4, x_491);
return x_507;
}
else
{
lean_object* x_508; 
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_508 = x_494;
} else {
 lean_dec_ref(x_494);
 x_508 = lean_box(0);
}
if (lean_obj_tag(x_499) == 0)
{
if (lean_obj_tag(x_500) == 0)
{
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; 
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_500, 0);
lean_inc(x_510);
x_511 = lean_ctor_get(x_500, 1);
lean_inc(x_511);
x_512 = lean_ctor_get(x_500, 2);
lean_inc(x_512);
x_513 = lean_ctor_get(x_500, 3);
lean_inc(x_513);
x_514 = lean_ctor_get(x_500, 4);
lean_inc(x_514);
x_515 = lean_unsigned_to_nat(2u);
x_516 = lean_nat_mul(x_515, x_509);
x_517 = lean_nat_dec_lt(x_510, x_516);
lean_dec(x_516);
if (x_517 == 0)
{
lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; lean_object* x_523; 
lean_dec(x_510);
if (lean_is_exclusive(x_500)) {
 lean_ctor_release(x_500, 0);
 lean_ctor_release(x_500, 1);
 lean_ctor_release(x_500, 2);
 lean_ctor_release(x_500, 3);
 lean_ctor_release(x_500, 4);
 x_518 = x_500;
} else {
 lean_dec_ref(x_500);
 x_518 = lean_box(0);
}
x_519 = lean_unsigned_to_nat(1u);
x_520 = lean_nat_add(x_519, x_496);
lean_dec(x_496);
x_521 = lean_nat_add(x_520, x_495);
lean_dec(x_520);
x_522 = lean_nat_add(x_519, x_509);
lean_dec(x_509);
x_523 = lean_nat_add(x_519, x_495);
lean_dec(x_495);
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_524; lean_object* x_525; lean_object* x_526; lean_object* x_527; 
x_524 = lean_ctor_get(x_513, 0);
lean_inc(x_524);
x_525 = lean_nat_add(x_522, x_524);
lean_dec(x_524);
lean_dec(x_522);
lean_inc(x_499);
if (lean_is_scalar(x_518)) {
 x_526 = lean_alloc_ctor(0, 5, 0);
} else {
 x_526 = x_518;
}
lean_ctor_set(x_526, 0, x_525);
lean_ctor_set(x_526, 1, x_497);
lean_ctor_set(x_526, 2, x_498);
lean_ctor_set(x_526, 3, x_499);
lean_ctor_set(x_526, 4, x_513);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_527 = x_499;
} else {
 lean_dec_ref(x_499);
 x_527 = lean_box(0);
}
if (lean_obj_tag(x_514) == 0)
{
lean_object* x_528; lean_object* x_529; lean_object* x_530; lean_object* x_531; 
x_528 = lean_ctor_get(x_514, 0);
lean_inc(x_528);
x_529 = lean_nat_add(x_523, x_528);
lean_dec(x_528);
lean_dec(x_523);
if (lean_is_scalar(x_527)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_527;
}
lean_ctor_set(x_530, 0, x_529);
lean_ctor_set(x_530, 1, x_488);
lean_ctor_set(x_530, 2, x_489);
lean_ctor_set(x_530, 3, x_514);
lean_ctor_set(x_530, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_531 = lean_alloc_ctor(0, 5, 0);
} else {
 x_531 = x_508;
}
lean_ctor_set(x_531, 0, x_521);
lean_ctor_set(x_531, 1, x_511);
lean_ctor_set(x_531, 2, x_512);
lean_ctor_set(x_531, 3, x_526);
lean_ctor_set(x_531, 4, x_530);
return x_531;
}
else
{
lean_object* x_532; lean_object* x_533; lean_object* x_534; lean_object* x_535; 
x_532 = lean_unsigned_to_nat(0u);
x_533 = lean_nat_add(x_523, x_532);
lean_dec(x_523);
if (lean_is_scalar(x_527)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_527;
}
lean_ctor_set(x_534, 0, x_533);
lean_ctor_set(x_534, 1, x_488);
lean_ctor_set(x_534, 2, x_489);
lean_ctor_set(x_534, 3, x_514);
lean_ctor_set(x_534, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_535 = lean_alloc_ctor(0, 5, 0);
} else {
 x_535 = x_508;
}
lean_ctor_set(x_535, 0, x_521);
lean_ctor_set(x_535, 1, x_511);
lean_ctor_set(x_535, 2, x_512);
lean_ctor_set(x_535, 3, x_526);
lean_ctor_set(x_535, 4, x_534);
return x_535;
}
}
else
{
lean_object* x_536; lean_object* x_537; lean_object* x_538; lean_object* x_539; 
x_536 = lean_unsigned_to_nat(0u);
x_537 = lean_nat_add(x_522, x_536);
lean_dec(x_522);
lean_inc(x_499);
if (lean_is_scalar(x_518)) {
 x_538 = lean_alloc_ctor(0, 5, 0);
} else {
 x_538 = x_518;
}
lean_ctor_set(x_538, 0, x_537);
lean_ctor_set(x_538, 1, x_497);
lean_ctor_set(x_538, 2, x_498);
lean_ctor_set(x_538, 3, x_499);
lean_ctor_set(x_538, 4, x_513);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_539 = x_499;
} else {
 lean_dec_ref(x_499);
 x_539 = lean_box(0);
}
if (lean_obj_tag(x_514) == 0)
{
lean_object* x_540; lean_object* x_541; lean_object* x_542; lean_object* x_543; 
x_540 = lean_ctor_get(x_514, 0);
lean_inc(x_540);
x_541 = lean_nat_add(x_523, x_540);
lean_dec(x_540);
lean_dec(x_523);
if (lean_is_scalar(x_539)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_539;
}
lean_ctor_set(x_542, 0, x_541);
lean_ctor_set(x_542, 1, x_488);
lean_ctor_set(x_542, 2, x_489);
lean_ctor_set(x_542, 3, x_514);
lean_ctor_set(x_542, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_543 = lean_alloc_ctor(0, 5, 0);
} else {
 x_543 = x_508;
}
lean_ctor_set(x_543, 0, x_521);
lean_ctor_set(x_543, 1, x_511);
lean_ctor_set(x_543, 2, x_512);
lean_ctor_set(x_543, 3, x_538);
lean_ctor_set(x_543, 4, x_542);
return x_543;
}
else
{
lean_object* x_544; lean_object* x_545; lean_object* x_546; 
x_544 = lean_nat_add(x_523, x_536);
lean_dec(x_523);
if (lean_is_scalar(x_539)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_539;
}
lean_ctor_set(x_545, 0, x_544);
lean_ctor_set(x_545, 1, x_488);
lean_ctor_set(x_545, 2, x_489);
lean_ctor_set(x_545, 3, x_514);
lean_ctor_set(x_545, 4, x_491);
if (lean_is_scalar(x_508)) {
 x_546 = lean_alloc_ctor(0, 5, 0);
} else {
 x_546 = x_508;
}
lean_ctor_set(x_546, 0, x_521);
lean_ctor_set(x_546, 1, x_511);
lean_ctor_set(x_546, 2, x_512);
lean_ctor_set(x_546, 3, x_538);
lean_ctor_set(x_546, 4, x_545);
return x_546;
}
}
}
else
{
lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; lean_object* x_554; 
lean_dec(x_514);
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_509);
x_547 = lean_unsigned_to_nat(1u);
x_548 = lean_nat_add(x_547, x_496);
lean_dec(x_496);
x_549 = lean_nat_add(x_548, x_495);
lean_dec(x_548);
x_550 = lean_nat_add(x_547, x_495);
lean_dec(x_495);
x_551 = lean_nat_add(x_550, x_510);
lean_dec(x_510);
lean_dec(x_550);
lean_inc(x_491);
if (lean_is_scalar(x_508)) {
 x_552 = lean_alloc_ctor(0, 5, 0);
} else {
 x_552 = x_508;
}
lean_ctor_set(x_552, 0, x_551);
lean_ctor_set(x_552, 1, x_488);
lean_ctor_set(x_552, 2, x_489);
lean_ctor_set(x_552, 3, x_500);
lean_ctor_set(x_552, 4, x_491);
if (lean_is_exclusive(x_491)) {
 lean_ctor_release(x_491, 0);
 lean_ctor_release(x_491, 1);
 lean_ctor_release(x_491, 2);
 lean_ctor_release(x_491, 3);
 lean_ctor_release(x_491, 4);
 x_553 = x_491;
} else {
 lean_dec_ref(x_491);
 x_553 = lean_box(0);
}
if (lean_is_scalar(x_553)) {
 x_554 = lean_alloc_ctor(0, 5, 0);
} else {
 x_554 = x_553;
}
lean_ctor_set(x_554, 0, x_549);
lean_ctor_set(x_554, 1, x_497);
lean_ctor_set(x_554, 2, x_498);
lean_ctor_set(x_554, 3, x_499);
lean_ctor_set(x_554, 4, x_552);
return x_554;
}
}
else
{
lean_object* x_555; lean_object* x_556; 
lean_dec(x_508);
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_491);
lean_dec(x_489);
lean_dec(x_488);
x_555 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_556 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__2___rarg(x_555);
return x_556;
}
}
else
{
lean_object* x_557; lean_object* x_558; 
lean_dec(x_508);
lean_dec(x_500);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_491);
lean_dec(x_489);
lean_dec(x_488);
x_557 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_558 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__3___rarg(x_557);
return x_558;
}
}
}
else
{
lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; lean_object* x_563; 
x_559 = lean_ctor_get(x_491, 0);
lean_inc(x_559);
x_560 = lean_unsigned_to_nat(1u);
x_561 = lean_nat_add(x_560, x_559);
lean_dec(x_559);
x_562 = lean_box(1);
x_563 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_563, 0, x_561);
lean_ctor_set(x_563, 1, x_488);
lean_ctor_set(x_563, 2, x_489);
lean_ctor_set(x_563, 3, x_562);
lean_ctor_set(x_563, 4, x_491);
return x_563;
}
}
else
{
if (lean_obj_tag(x_494) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_494, 3);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; 
x_565 = lean_ctor_get(x_494, 4);
lean_inc(x_565);
if (lean_obj_tag(x_565) == 0)
{
lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; lean_object* x_576; 
x_566 = lean_ctor_get(x_494, 0);
lean_inc(x_566);
x_567 = lean_ctor_get(x_494, 1);
lean_inc(x_567);
x_568 = lean_ctor_get(x_494, 2);
lean_inc(x_568);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_569 = x_494;
} else {
 lean_dec_ref(x_494);
 x_569 = lean_box(0);
}
x_570 = lean_ctor_get(x_565, 0);
lean_inc(x_570);
x_571 = lean_unsigned_to_nat(1u);
x_572 = lean_nat_add(x_571, x_566);
lean_dec(x_566);
x_573 = lean_nat_add(x_571, x_570);
lean_dec(x_570);
x_574 = lean_box(1);
if (lean_is_scalar(x_569)) {
 x_575 = lean_alloc_ctor(0, 5, 0);
} else {
 x_575 = x_569;
}
lean_ctor_set(x_575, 0, x_573);
lean_ctor_set(x_575, 1, x_488);
lean_ctor_set(x_575, 2, x_489);
lean_ctor_set(x_575, 3, x_565);
lean_ctor_set(x_575, 4, x_574);
x_576 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_576, 0, x_572);
lean_ctor_set(x_576, 1, x_567);
lean_ctor_set(x_576, 2, x_568);
lean_ctor_set(x_576, 3, x_564);
lean_ctor_set(x_576, 4, x_575);
return x_576;
}
else
{
lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; lean_object* x_584; 
x_577 = lean_ctor_get(x_494, 1);
lean_inc(x_577);
x_578 = lean_ctor_get(x_494, 2);
lean_inc(x_578);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_579 = x_494;
} else {
 lean_dec_ref(x_494);
 x_579 = lean_box(0);
}
x_580 = lean_box(1);
x_581 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_579)) {
 x_582 = lean_alloc_ctor(0, 5, 0);
} else {
 x_582 = x_579;
}
lean_ctor_set(x_582, 0, x_581);
lean_ctor_set(x_582, 1, x_488);
lean_ctor_set(x_582, 2, x_489);
lean_ctor_set(x_582, 3, x_580);
lean_ctor_set(x_582, 4, x_580);
x_583 = lean_unsigned_to_nat(3u);
x_584 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_584, 0, x_583);
lean_ctor_set(x_584, 1, x_577);
lean_ctor_set(x_584, 2, x_578);
lean_ctor_set(x_584, 3, x_564);
lean_ctor_set(x_584, 4, x_582);
return x_584;
}
}
else
{
lean_object* x_585; 
x_585 = lean_ctor_get(x_494, 4);
lean_inc(x_585);
if (lean_obj_tag(x_585) == 0)
{
lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; lean_object* x_597; 
x_586 = lean_ctor_get(x_494, 1);
lean_inc(x_586);
x_587 = lean_ctor_get(x_494, 2);
lean_inc(x_587);
if (lean_is_exclusive(x_494)) {
 lean_ctor_release(x_494, 0);
 lean_ctor_release(x_494, 1);
 lean_ctor_release(x_494, 2);
 lean_ctor_release(x_494, 3);
 lean_ctor_release(x_494, 4);
 x_588 = x_494;
} else {
 lean_dec_ref(x_494);
 x_588 = lean_box(0);
}
x_589 = lean_ctor_get(x_585, 1);
lean_inc(x_589);
x_590 = lean_ctor_get(x_585, 2);
lean_inc(x_590);
if (lean_is_exclusive(x_585)) {
 lean_ctor_release(x_585, 0);
 lean_ctor_release(x_585, 1);
 lean_ctor_release(x_585, 2);
 lean_ctor_release(x_585, 3);
 lean_ctor_release(x_585, 4);
 x_591 = x_585;
} else {
 lean_dec_ref(x_585);
 x_591 = lean_box(0);
}
x_592 = lean_box(1);
x_593 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_591)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_591;
}
lean_ctor_set(x_594, 0, x_593);
lean_ctor_set(x_594, 1, x_586);
lean_ctor_set(x_594, 2, x_587);
lean_ctor_set(x_594, 3, x_592);
lean_ctor_set(x_594, 4, x_592);
if (lean_is_scalar(x_588)) {
 x_595 = lean_alloc_ctor(0, 5, 0);
} else {
 x_595 = x_588;
}
lean_ctor_set(x_595, 0, x_593);
lean_ctor_set(x_595, 1, x_488);
lean_ctor_set(x_595, 2, x_489);
lean_ctor_set(x_595, 3, x_592);
lean_ctor_set(x_595, 4, x_592);
x_596 = lean_unsigned_to_nat(3u);
x_597 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_597, 0, x_596);
lean_ctor_set(x_597, 1, x_589);
lean_ctor_set(x_597, 2, x_590);
lean_ctor_set(x_597, 3, x_594);
lean_ctor_set(x_597, 4, x_595);
return x_597;
}
else
{
lean_object* x_598; lean_object* x_599; lean_object* x_600; 
x_598 = lean_box(1);
x_599 = lean_unsigned_to_nat(2u);
x_600 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_600, 0, x_599);
lean_ctor_set(x_600, 1, x_488);
lean_ctor_set(x_600, 2, x_489);
lean_ctor_set(x_600, 3, x_494);
lean_ctor_set(x_600, 4, x_598);
return x_600;
}
}
}
else
{
lean_object* x_601; lean_object* x_602; lean_object* x_603; 
x_601 = lean_box(1);
x_602 = lean_unsigned_to_nat(1u);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_602);
lean_ctor_set(x_603, 1, x_488);
lean_ctor_set(x_603, 2, x_489);
lean_ctor_set(x_603, 3, x_601);
lean_ctor_set(x_603, 4, x_601);
return x_603;
}
}
}
case 1:
{
lean_object* x_604; 
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_1);
x_604 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_604, 0, x_487);
lean_ctor_set(x_604, 1, x_3);
lean_ctor_set(x_604, 2, x_4);
lean_ctor_set(x_604, 3, x_490);
lean_ctor_set(x_604, 4, x_491);
return x_604;
}
default: 
{
lean_object* x_605; 
lean_dec(x_487);
x_605 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg(x_1, lean_box(0), x_3, x_4, x_491);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_605) == 0)
{
lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; lean_object* x_613; uint8_t x_614; 
x_606 = lean_ctor_get(x_490, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_605, 0);
lean_inc(x_607);
x_608 = lean_ctor_get(x_605, 1);
lean_inc(x_608);
x_609 = lean_ctor_get(x_605, 2);
lean_inc(x_609);
x_610 = lean_ctor_get(x_605, 3);
lean_inc(x_610);
x_611 = lean_ctor_get(x_605, 4);
lean_inc(x_611);
x_612 = lean_unsigned_to_nat(3u);
x_613 = lean_nat_mul(x_612, x_606);
x_614 = lean_nat_dec_lt(x_613, x_607);
lean_dec(x_613);
if (x_614 == 0)
{
lean_object* x_615; lean_object* x_616; lean_object* x_617; lean_object* x_618; 
lean_dec(x_611);
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
x_615 = lean_unsigned_to_nat(1u);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
x_617 = lean_nat_add(x_616, x_607);
lean_dec(x_607);
lean_dec(x_616);
x_618 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_618, 0, x_617);
lean_ctor_set(x_618, 1, x_488);
lean_ctor_set(x_618, 2, x_489);
lean_ctor_set(x_618, 3, x_490);
lean_ctor_set(x_618, 4, x_605);
return x_618;
}
else
{
lean_object* x_619; 
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_619 = x_605;
} else {
 lean_dec_ref(x_605);
 x_619 = lean_box(0);
}
if (lean_obj_tag(x_610) == 0)
{
if (lean_obj_tag(x_611) == 0)
{
lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; lean_object* x_627; uint8_t x_628; 
x_620 = lean_ctor_get(x_610, 0);
lean_inc(x_620);
x_621 = lean_ctor_get(x_610, 1);
lean_inc(x_621);
x_622 = lean_ctor_get(x_610, 2);
lean_inc(x_622);
x_623 = lean_ctor_get(x_610, 3);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 4);
lean_inc(x_624);
x_625 = lean_ctor_get(x_611, 0);
lean_inc(x_625);
x_626 = lean_unsigned_to_nat(2u);
x_627 = lean_nat_mul(x_626, x_625);
x_628 = lean_nat_dec_lt(x_620, x_627);
lean_dec(x_627);
if (x_628 == 0)
{
lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; lean_object* x_633; 
lean_dec(x_620);
if (lean_is_exclusive(x_610)) {
 lean_ctor_release(x_610, 0);
 lean_ctor_release(x_610, 1);
 lean_ctor_release(x_610, 2);
 lean_ctor_release(x_610, 3);
 lean_ctor_release(x_610, 4);
 x_629 = x_610;
} else {
 lean_dec_ref(x_610);
 x_629 = lean_box(0);
}
x_630 = lean_unsigned_to_nat(1u);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_631, x_607);
lean_dec(x_607);
x_633 = lean_nat_add(x_630, x_625);
lean_dec(x_625);
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_634; lean_object* x_635; lean_object* x_636; lean_object* x_637; 
x_634 = lean_ctor_get(x_623, 0);
lean_inc(x_634);
x_635 = lean_nat_add(x_631, x_634);
lean_dec(x_634);
lean_dec(x_631);
lean_inc(x_490);
if (lean_is_scalar(x_629)) {
 x_636 = lean_alloc_ctor(0, 5, 0);
} else {
 x_636 = x_629;
}
lean_ctor_set(x_636, 0, x_635);
lean_ctor_set(x_636, 1, x_488);
lean_ctor_set(x_636, 2, x_489);
lean_ctor_set(x_636, 3, x_490);
lean_ctor_set(x_636, 4, x_623);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_637 = x_490;
} else {
 lean_dec_ref(x_490);
 x_637 = lean_box(0);
}
if (lean_obj_tag(x_624) == 0)
{
lean_object* x_638; lean_object* x_639; lean_object* x_640; lean_object* x_641; 
x_638 = lean_ctor_get(x_624, 0);
lean_inc(x_638);
x_639 = lean_nat_add(x_633, x_638);
lean_dec(x_638);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_619;
}
lean_ctor_set(x_640, 0, x_639);
lean_ctor_set(x_640, 1, x_608);
lean_ctor_set(x_640, 2, x_609);
lean_ctor_set(x_640, 3, x_624);
lean_ctor_set(x_640, 4, x_611);
if (lean_is_scalar(x_637)) {
 x_641 = lean_alloc_ctor(0, 5, 0);
} else {
 x_641 = x_637;
}
lean_ctor_set(x_641, 0, x_632);
lean_ctor_set(x_641, 1, x_621);
lean_ctor_set(x_641, 2, x_622);
lean_ctor_set(x_641, 3, x_636);
lean_ctor_set(x_641, 4, x_640);
return x_641;
}
else
{
lean_object* x_642; lean_object* x_643; lean_object* x_644; lean_object* x_645; 
x_642 = lean_unsigned_to_nat(0u);
x_643 = lean_nat_add(x_633, x_642);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_619;
}
lean_ctor_set(x_644, 0, x_643);
lean_ctor_set(x_644, 1, x_608);
lean_ctor_set(x_644, 2, x_609);
lean_ctor_set(x_644, 3, x_624);
lean_ctor_set(x_644, 4, x_611);
if (lean_is_scalar(x_637)) {
 x_645 = lean_alloc_ctor(0, 5, 0);
} else {
 x_645 = x_637;
}
lean_ctor_set(x_645, 0, x_632);
lean_ctor_set(x_645, 1, x_621);
lean_ctor_set(x_645, 2, x_622);
lean_ctor_set(x_645, 3, x_636);
lean_ctor_set(x_645, 4, x_644);
return x_645;
}
}
else
{
lean_object* x_646; lean_object* x_647; lean_object* x_648; lean_object* x_649; 
x_646 = lean_unsigned_to_nat(0u);
x_647 = lean_nat_add(x_631, x_646);
lean_dec(x_631);
lean_inc(x_490);
if (lean_is_scalar(x_629)) {
 x_648 = lean_alloc_ctor(0, 5, 0);
} else {
 x_648 = x_629;
}
lean_ctor_set(x_648, 0, x_647);
lean_ctor_set(x_648, 1, x_488);
lean_ctor_set(x_648, 2, x_489);
lean_ctor_set(x_648, 3, x_490);
lean_ctor_set(x_648, 4, x_623);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_649 = x_490;
} else {
 lean_dec_ref(x_490);
 x_649 = lean_box(0);
}
if (lean_obj_tag(x_624) == 0)
{
lean_object* x_650; lean_object* x_651; lean_object* x_652; lean_object* x_653; 
x_650 = lean_ctor_get(x_624, 0);
lean_inc(x_650);
x_651 = lean_nat_add(x_633, x_650);
lean_dec(x_650);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_619;
}
lean_ctor_set(x_652, 0, x_651);
lean_ctor_set(x_652, 1, x_608);
lean_ctor_set(x_652, 2, x_609);
lean_ctor_set(x_652, 3, x_624);
lean_ctor_set(x_652, 4, x_611);
if (lean_is_scalar(x_649)) {
 x_653 = lean_alloc_ctor(0, 5, 0);
} else {
 x_653 = x_649;
}
lean_ctor_set(x_653, 0, x_632);
lean_ctor_set(x_653, 1, x_621);
lean_ctor_set(x_653, 2, x_622);
lean_ctor_set(x_653, 3, x_648);
lean_ctor_set(x_653, 4, x_652);
return x_653;
}
else
{
lean_object* x_654; lean_object* x_655; lean_object* x_656; 
x_654 = lean_nat_add(x_633, x_646);
lean_dec(x_633);
if (lean_is_scalar(x_619)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_619;
}
lean_ctor_set(x_655, 0, x_654);
lean_ctor_set(x_655, 1, x_608);
lean_ctor_set(x_655, 2, x_609);
lean_ctor_set(x_655, 3, x_624);
lean_ctor_set(x_655, 4, x_611);
if (lean_is_scalar(x_649)) {
 x_656 = lean_alloc_ctor(0, 5, 0);
} else {
 x_656 = x_649;
}
lean_ctor_set(x_656, 0, x_632);
lean_ctor_set(x_656, 1, x_621);
lean_ctor_set(x_656, 2, x_622);
lean_ctor_set(x_656, 3, x_648);
lean_ctor_set(x_656, 4, x_655);
return x_656;
}
}
}
else
{
lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; lean_object* x_663; 
lean_dec(x_625);
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
x_657 = lean_unsigned_to_nat(1u);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_658, x_607);
lean_dec(x_607);
x_660 = lean_nat_add(x_658, x_620);
lean_dec(x_620);
lean_dec(x_658);
lean_inc(x_490);
if (lean_is_scalar(x_619)) {
 x_661 = lean_alloc_ctor(0, 5, 0);
} else {
 x_661 = x_619;
}
lean_ctor_set(x_661, 0, x_660);
lean_ctor_set(x_661, 1, x_488);
lean_ctor_set(x_661, 2, x_489);
lean_ctor_set(x_661, 3, x_490);
lean_ctor_set(x_661, 4, x_610);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_662 = x_490;
} else {
 lean_dec_ref(x_490);
 x_662 = lean_box(0);
}
if (lean_is_scalar(x_662)) {
 x_663 = lean_alloc_ctor(0, 5, 0);
} else {
 x_663 = x_662;
}
lean_ctor_set(x_663, 0, x_659);
lean_ctor_set(x_663, 1, x_608);
lean_ctor_set(x_663, 2, x_609);
lean_ctor_set(x_663, 3, x_661);
lean_ctor_set(x_663, 4, x_611);
return x_663;
}
}
else
{
lean_object* x_664; lean_object* x_665; 
lean_dec(x_619);
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_490);
lean_dec(x_489);
lean_dec(x_488);
x_664 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_665 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__4___rarg(x_664);
return x_665;
}
}
else
{
lean_object* x_666; lean_object* x_667; 
lean_dec(x_619);
lean_dec(x_611);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_490);
lean_dec(x_489);
lean_dec(x_488);
x_666 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_667 = l_panic___at_Std_DTreeMap_Raw_Const_insertMany___spec__5___rarg(x_666);
return x_667;
}
}
}
else
{
lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; lean_object* x_672; 
x_668 = lean_ctor_get(x_490, 0);
lean_inc(x_668);
x_669 = lean_unsigned_to_nat(1u);
x_670 = lean_nat_add(x_669, x_668);
lean_dec(x_668);
x_671 = lean_box(1);
x_672 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_672, 0, x_670);
lean_ctor_set(x_672, 1, x_488);
lean_ctor_set(x_672, 2, x_489);
lean_ctor_set(x_672, 3, x_490);
lean_ctor_set(x_672, 4, x_671);
return x_672;
}
}
else
{
if (lean_obj_tag(x_605) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_605, 3);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; 
x_674 = lean_ctor_get(x_605, 4);
lean_inc(x_674);
if (lean_obj_tag(x_674) == 0)
{
lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; lean_object* x_685; 
x_675 = lean_ctor_get(x_605, 0);
lean_inc(x_675);
x_676 = lean_ctor_get(x_605, 1);
lean_inc(x_676);
x_677 = lean_ctor_get(x_605, 2);
lean_inc(x_677);
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_678 = x_605;
} else {
 lean_dec_ref(x_605);
 x_678 = lean_box(0);
}
x_679 = lean_ctor_get(x_673, 0);
lean_inc(x_679);
x_680 = lean_unsigned_to_nat(1u);
x_681 = lean_nat_add(x_680, x_675);
lean_dec(x_675);
x_682 = lean_nat_add(x_680, x_679);
lean_dec(x_679);
x_683 = lean_box(1);
if (lean_is_scalar(x_678)) {
 x_684 = lean_alloc_ctor(0, 5, 0);
} else {
 x_684 = x_678;
}
lean_ctor_set(x_684, 0, x_682);
lean_ctor_set(x_684, 1, x_488);
lean_ctor_set(x_684, 2, x_489);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
x_685 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_685, 0, x_681);
lean_ctor_set(x_685, 1, x_676);
lean_ctor_set(x_685, 2, x_677);
lean_ctor_set(x_685, 3, x_684);
lean_ctor_set(x_685, 4, x_674);
return x_685;
}
else
{
lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; lean_object* x_697; 
x_686 = lean_ctor_get(x_605, 1);
lean_inc(x_686);
x_687 = lean_ctor_get(x_605, 2);
lean_inc(x_687);
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_688 = x_605;
} else {
 lean_dec_ref(x_605);
 x_688 = lean_box(0);
}
x_689 = lean_ctor_get(x_673, 1);
lean_inc(x_689);
x_690 = lean_ctor_get(x_673, 2);
lean_inc(x_690);
if (lean_is_exclusive(x_673)) {
 lean_ctor_release(x_673, 0);
 lean_ctor_release(x_673, 1);
 lean_ctor_release(x_673, 2);
 lean_ctor_release(x_673, 3);
 lean_ctor_release(x_673, 4);
 x_691 = x_673;
} else {
 lean_dec_ref(x_673);
 x_691 = lean_box(0);
}
x_692 = lean_box(1);
x_693 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_691)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_691;
}
lean_ctor_set(x_694, 0, x_693);
lean_ctor_set(x_694, 1, x_488);
lean_ctor_set(x_694, 2, x_489);
lean_ctor_set(x_694, 3, x_692);
lean_ctor_set(x_694, 4, x_692);
if (lean_is_scalar(x_688)) {
 x_695 = lean_alloc_ctor(0, 5, 0);
} else {
 x_695 = x_688;
}
lean_ctor_set(x_695, 0, x_693);
lean_ctor_set(x_695, 1, x_686);
lean_ctor_set(x_695, 2, x_687);
lean_ctor_set(x_695, 3, x_692);
lean_ctor_set(x_695, 4, x_692);
x_696 = lean_unsigned_to_nat(3u);
x_697 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_697, 0, x_696);
lean_ctor_set(x_697, 1, x_689);
lean_ctor_set(x_697, 2, x_690);
lean_ctor_set(x_697, 3, x_694);
lean_ctor_set(x_697, 4, x_695);
return x_697;
}
}
else
{
lean_object* x_698; 
x_698 = lean_ctor_get(x_605, 4);
lean_inc(x_698);
if (lean_obj_tag(x_698) == 0)
{
lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; lean_object* x_706; 
x_699 = lean_ctor_get(x_605, 1);
lean_inc(x_699);
x_700 = lean_ctor_get(x_605, 2);
lean_inc(x_700);
if (lean_is_exclusive(x_605)) {
 lean_ctor_release(x_605, 0);
 lean_ctor_release(x_605, 1);
 lean_ctor_release(x_605, 2);
 lean_ctor_release(x_605, 3);
 lean_ctor_release(x_605, 4);
 x_701 = x_605;
} else {
 lean_dec_ref(x_605);
 x_701 = lean_box(0);
}
x_702 = lean_box(1);
x_703 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_701)) {
 x_704 = lean_alloc_ctor(0, 5, 0);
} else {
 x_704 = x_701;
}
lean_ctor_set(x_704, 0, x_703);
lean_ctor_set(x_704, 1, x_488);
lean_ctor_set(x_704, 2, x_489);
lean_ctor_set(x_704, 3, x_702);
lean_ctor_set(x_704, 4, x_702);
x_705 = lean_unsigned_to_nat(3u);
x_706 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_706, 0, x_705);
lean_ctor_set(x_706, 1, x_699);
lean_ctor_set(x_706, 2, x_700);
lean_ctor_set(x_706, 3, x_704);
lean_ctor_set(x_706, 4, x_698);
return x_706;
}
else
{
lean_object* x_707; lean_object* x_708; lean_object* x_709; 
x_707 = lean_box(1);
x_708 = lean_unsigned_to_nat(2u);
x_709 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_709, 0, x_708);
lean_ctor_set(x_709, 1, x_488);
lean_ctor_set(x_709, 2, x_489);
lean_ctor_set(x_709, 3, x_707);
lean_ctor_set(x_709, 4, x_605);
return x_709;
}
}
}
else
{
lean_object* x_710; lean_object* x_711; lean_object* x_712; 
x_710 = lean_box(1);
x_711 = lean_unsigned_to_nat(1u);
x_712 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_712, 0, x_711);
lean_ctor_set(x_712, 1, x_488);
lean_ctor_set(x_712, 2, x_489);
lean_ctor_set(x_712, 3, x_710);
lean_ctor_set(x_712, 4, x_710);
return x_712;
}
}
}
}
}
}
else
{
lean_object* x_713; lean_object* x_714; lean_object* x_715; 
lean_dec(x_1);
x_713 = lean_box(1);
x_714 = lean_unsigned_to_nat(1u);
x_715 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_715, 0, x_714);
lean_ctor_set(x_715, 1, x_3);
lean_ctor_set(x_715, 2, x_4);
lean_ctor_set(x_715, 3, x_713);
lean_ctor_set(x_715, 4, x_713);
return x_715;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertMany___rarg___lambda__1(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; lean_object* x_7; 
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 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertMany___spec__1___rarg(x_1, lean_box(0), x_4, x_5, x_3);
x_7 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertMany___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_insertMany___rarg___lambda__1), 3, 1);
lean_closure_set(x_7, 0, x_1);
x_8 = l_Id_instMonad;
x_9 = lean_apply_5(x_4, lean_box(0), x_8, x_6, x_5, x_7);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertMany(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_insertMany___rarg), 6, 0);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_4 = lean_ctor_get(x_3, 1);
lean_inc(x_4);
x_5 = lean_ctor_get(x_3, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_3, 4);
lean_inc(x_6);
lean_dec(x_3);
lean_inc(x_1);
lean_inc(x_2);
x_7 = lean_apply_2(x_1, x_2, x_4);
x_8 = lean_unbox(x_7);
lean_dec(x_7);
switch (x_8) {
case 0:
{
lean_dec(x_6);
x_3 = x_5;
goto _start;
}
case 1:
{
uint8_t x_10; 
lean_dec(x_6);
lean_dec(x_5);
lean_dec(x_2);
lean_dec(x_1);
x_10 = 1;
return x_10;
}
default: 
{
lean_dec(x_5);
x_3 = x_6;
goto _start;
}
}
}
else
{
uint8_t x_12; 
lean_dec(x_2);
lean_dec(x_1);
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1___rarg___boxed), 3, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6___rarg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(1);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6___rarg), 1, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_ctor_get(x_4, 1);
x_8 = lean_ctor_get(x_4, 2);
x_9 = lean_ctor_get(x_4, 3);
x_10 = lean_ctor_get(x_4, 4);
lean_inc(x_1);
lean_inc(x_7);
lean_inc(x_2);
x_11 = lean_apply_2(x_1, x_2, x_7);
x_12 = lean_unbox(x_11);
lean_dec(x_11);
switch (x_12) {
case 0:
{
lean_object* x_13; 
lean_dec(x_6);
x_13 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg(x_1, x_2, x_3, x_9);
if (lean_obj_tag(x_10) == 0)
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; uint8_t x_22; 
x_14 = lean_ctor_get(x_10, 0);
lean_inc(x_14);
x_15 = lean_ctor_get(x_13, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_13, 1);
lean_inc(x_16);
x_17 = lean_ctor_get(x_13, 2);
lean_inc(x_17);
x_18 = lean_ctor_get(x_13, 3);
lean_inc(x_18);
x_19 = lean_ctor_get(x_13, 4);
lean_inc(x_19);
x_20 = lean_unsigned_to_nat(3u);
x_21 = lean_nat_mul(x_20, x_14);
x_22 = lean_nat_dec_lt(x_21, x_15);
lean_dec(x_21);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; 
lean_dec(x_19);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
x_23 = lean_unsigned_to_nat(1u);
x_24 = lean_nat_add(x_23, x_15);
lean_dec(x_15);
x_25 = lean_nat_add(x_24, x_14);
lean_dec(x_14);
lean_dec(x_24);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_25);
return x_4;
}
else
{
uint8_t x_26; 
lean_free_object(x_4);
x_26 = !lean_is_exclusive(x_13);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_27 = lean_ctor_get(x_13, 4);
lean_dec(x_27);
x_28 = lean_ctor_get(x_13, 3);
lean_dec(x_28);
x_29 = lean_ctor_get(x_13, 2);
lean_dec(x_29);
x_30 = lean_ctor_get(x_13, 1);
lean_dec(x_30);
x_31 = lean_ctor_get(x_13, 0);
lean_dec(x_31);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; uint8_t x_40; 
x_32 = lean_ctor_get(x_18, 0);
lean_inc(x_32);
x_33 = lean_ctor_get(x_19, 0);
lean_inc(x_33);
x_34 = lean_ctor_get(x_19, 1);
lean_inc(x_34);
x_35 = lean_ctor_get(x_19, 2);
lean_inc(x_35);
x_36 = lean_ctor_get(x_19, 3);
lean_inc(x_36);
x_37 = lean_ctor_get(x_19, 4);
lean_inc(x_37);
x_38 = lean_unsigned_to_nat(2u);
x_39 = lean_nat_mul(x_38, x_32);
x_40 = lean_nat_dec_lt(x_33, x_39);
lean_dec(x_39);
if (x_40 == 0)
{
uint8_t x_41; 
lean_dec(x_33);
x_41 = !lean_is_exclusive(x_19);
if (x_41 == 0)
{
lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
x_42 = lean_ctor_get(x_19, 4);
lean_dec(x_42);
x_43 = lean_ctor_get(x_19, 3);
lean_dec(x_43);
x_44 = lean_ctor_get(x_19, 2);
lean_dec(x_44);
x_45 = lean_ctor_get(x_19, 1);
lean_dec(x_45);
x_46 = lean_ctor_get(x_19, 0);
lean_dec(x_46);
x_47 = lean_unsigned_to_nat(1u);
x_48 = lean_nat_add(x_47, x_15);
lean_dec(x_15);
x_49 = lean_nat_add(x_48, x_14);
lean_dec(x_48);
x_50 = lean_nat_add(x_47, x_32);
lean_dec(x_32);
x_51 = lean_nat_add(x_47, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_52; lean_object* x_53; uint8_t x_54; 
x_52 = lean_ctor_get(x_36, 0);
lean_inc(x_52);
x_53 = lean_nat_add(x_50, x_52);
lean_dec(x_52);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_53);
x_54 = !lean_is_exclusive(x_18);
if (x_54 == 0)
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_55 = lean_ctor_get(x_18, 4);
lean_dec(x_55);
x_56 = lean_ctor_get(x_18, 3);
lean_dec(x_56);
x_57 = lean_ctor_get(x_18, 2);
lean_dec(x_57);
x_58 = lean_ctor_get(x_18, 1);
lean_dec(x_58);
x_59 = lean_ctor_get(x_18, 0);
lean_dec(x_59);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_37, 0);
lean_inc(x_60);
x_61 = lean_nat_add(x_51, x_60);
lean_dec(x_60);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_61);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_62; lean_object* x_63; 
x_62 = lean_unsigned_to_nat(0u);
x_63 = lean_nat_add(x_51, x_62);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_63);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_64 = lean_ctor_get(x_37, 0);
lean_inc(x_64);
x_65 = lean_nat_add(x_51, x_64);
lean_dec(x_64);
lean_dec(x_51);
x_66 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_66, 0, x_65);
lean_ctor_set(x_66, 1, x_7);
lean_ctor_set(x_66, 2, x_8);
lean_ctor_set(x_66, 3, x_37);
lean_ctor_set(x_66, 4, x_10);
lean_ctor_set(x_13, 4, x_66);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_unsigned_to_nat(0u);
x_68 = lean_nat_add(x_51, x_67);
lean_dec(x_51);
x_69 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_69, 0, x_68);
lean_ctor_set(x_69, 1, x_7);
lean_ctor_set(x_69, 2, x_8);
lean_ctor_set(x_69, 3, x_37);
lean_ctor_set(x_69, 4, x_10);
lean_ctor_set(x_13, 4, x_69);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
else
{
lean_object* x_70; lean_object* x_71; uint8_t x_72; 
x_70 = lean_unsigned_to_nat(0u);
x_71 = lean_nat_add(x_50, x_70);
lean_dec(x_50);
lean_inc(x_18);
lean_ctor_set(x_19, 4, x_36);
lean_ctor_set(x_19, 3, x_18);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 1, x_16);
lean_ctor_set(x_19, 0, x_71);
x_72 = !lean_is_exclusive(x_18);
if (x_72 == 0)
{
lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_73 = lean_ctor_get(x_18, 4);
lean_dec(x_73);
x_74 = lean_ctor_get(x_18, 3);
lean_dec(x_74);
x_75 = lean_ctor_get(x_18, 2);
lean_dec(x_75);
x_76 = lean_ctor_get(x_18, 1);
lean_dec(x_76);
x_77 = lean_ctor_get(x_18, 0);
lean_dec(x_77);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_78; lean_object* x_79; 
x_78 = lean_ctor_get(x_37, 0);
lean_inc(x_78);
x_79 = lean_nat_add(x_51, x_78);
lean_dec(x_78);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_79);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_80; 
x_80 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
lean_ctor_set(x_18, 4, x_10);
lean_ctor_set(x_18, 3, x_37);
lean_ctor_set(x_18, 2, x_8);
lean_ctor_set(x_18, 1, x_7);
lean_ctor_set(x_18, 0, x_80);
lean_ctor_set(x_13, 4, x_18);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
else
{
lean_dec(x_18);
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_37, 0);
lean_inc(x_81);
x_82 = lean_nat_add(x_51, x_81);
lean_dec(x_81);
lean_dec(x_51);
x_83 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_83, 0, x_82);
lean_ctor_set(x_83, 1, x_7);
lean_ctor_set(x_83, 2, x_8);
lean_ctor_set(x_83, 3, x_37);
lean_ctor_set(x_83, 4, x_10);
lean_ctor_set(x_13, 4, x_83);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
else
{
lean_object* x_84; lean_object* x_85; 
x_84 = lean_nat_add(x_51, x_70);
lean_dec(x_51);
x_85 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_7);
lean_ctor_set(x_85, 2, x_8);
lean_ctor_set(x_85, 3, x_37);
lean_ctor_set(x_85, 4, x_10);
lean_ctor_set(x_13, 4, x_85);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_49);
return x_13;
}
}
}
}
else
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; 
lean_dec(x_19);
x_86 = lean_unsigned_to_nat(1u);
x_87 = lean_nat_add(x_86, x_15);
lean_dec(x_15);
x_88 = lean_nat_add(x_87, x_14);
lean_dec(x_87);
x_89 = lean_nat_add(x_86, x_32);
lean_dec(x_32);
x_90 = lean_nat_add(x_86, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_36) == 0)
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; 
x_91 = lean_ctor_get(x_36, 0);
lean_inc(x_91);
x_92 = lean_nat_add(x_89, x_91);
lean_dec(x_91);
lean_dec(x_89);
lean_inc(x_18);
x_93 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_16);
lean_ctor_set(x_93, 2, x_17);
lean_ctor_set(x_93, 3, x_18);
lean_ctor_set(x_93, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_94 = x_18;
} else {
 lean_dec_ref(x_18);
 x_94 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_37, 0);
lean_inc(x_95);
x_96 = lean_nat_add(x_90, x_95);
lean_dec(x_95);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_97 = lean_alloc_ctor(0, 5, 0);
} else {
 x_97 = x_94;
}
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_7);
lean_ctor_set(x_97, 2, x_8);
lean_ctor_set(x_97, 3, x_37);
lean_ctor_set(x_97, 4, x_10);
lean_ctor_set(x_13, 4, x_97);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; 
x_98 = lean_unsigned_to_nat(0u);
x_99 = lean_nat_add(x_90, x_98);
lean_dec(x_90);
if (lean_is_scalar(x_94)) {
 x_100 = lean_alloc_ctor(0, 5, 0);
} else {
 x_100 = x_94;
}
lean_ctor_set(x_100, 0, x_99);
lean_ctor_set(x_100, 1, x_7);
lean_ctor_set(x_100, 2, x_8);
lean_ctor_set(x_100, 3, x_37);
lean_ctor_set(x_100, 4, x_10);
lean_ctor_set(x_13, 4, x_100);
lean_ctor_set(x_13, 3, x_93);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
else
{
lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; 
x_101 = lean_unsigned_to_nat(0u);
x_102 = lean_nat_add(x_89, x_101);
lean_dec(x_89);
lean_inc(x_18);
x_103 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_103, 0, x_102);
lean_ctor_set(x_103, 1, x_16);
lean_ctor_set(x_103, 2, x_17);
lean_ctor_set(x_103, 3, x_18);
lean_ctor_set(x_103, 4, x_36);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_104 = x_18;
} else {
 lean_dec_ref(x_18);
 x_104 = lean_box(0);
}
if (lean_obj_tag(x_37) == 0)
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_37, 0);
lean_inc(x_105);
x_106 = lean_nat_add(x_90, x_105);
lean_dec(x_105);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_107 = lean_alloc_ctor(0, 5, 0);
} else {
 x_107 = x_104;
}
lean_ctor_set(x_107, 0, x_106);
lean_ctor_set(x_107, 1, x_7);
lean_ctor_set(x_107, 2, x_8);
lean_ctor_set(x_107, 3, x_37);
lean_ctor_set(x_107, 4, x_10);
lean_ctor_set(x_13, 4, x_107);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
else
{
lean_object* x_108; lean_object* x_109; 
x_108 = lean_nat_add(x_90, x_101);
lean_dec(x_90);
if (lean_is_scalar(x_104)) {
 x_109 = lean_alloc_ctor(0, 5, 0);
} else {
 x_109 = x_104;
}
lean_ctor_set(x_109, 0, x_108);
lean_ctor_set(x_109, 1, x_7);
lean_ctor_set(x_109, 2, x_8);
lean_ctor_set(x_109, 3, x_37);
lean_ctor_set(x_109, 4, x_10);
lean_ctor_set(x_13, 4, x_109);
lean_ctor_set(x_13, 3, x_103);
lean_ctor_set(x_13, 2, x_35);
lean_ctor_set(x_13, 1, x_34);
lean_ctor_set(x_13, 0, x_88);
return x_13;
}
}
}
}
else
{
lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; uint8_t x_115; 
lean_dec(x_37);
lean_dec(x_36);
lean_dec(x_35);
lean_dec(x_34);
lean_dec(x_32);
x_110 = lean_unsigned_to_nat(1u);
x_111 = lean_nat_add(x_110, x_15);
lean_dec(x_15);
x_112 = lean_nat_add(x_111, x_14);
lean_dec(x_111);
x_113 = lean_nat_add(x_110, x_14);
lean_dec(x_14);
x_114 = lean_nat_add(x_113, x_33);
lean_dec(x_33);
lean_dec(x_113);
lean_inc(x_10);
lean_ctor_set(x_13, 4, x_10);
lean_ctor_set(x_13, 3, x_19);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_114);
x_115 = !lean_is_exclusive(x_10);
if (x_115 == 0)
{
lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; 
x_116 = lean_ctor_get(x_10, 4);
lean_dec(x_116);
x_117 = lean_ctor_get(x_10, 3);
lean_dec(x_117);
x_118 = lean_ctor_get(x_10, 2);
lean_dec(x_118);
x_119 = lean_ctor_get(x_10, 1);
lean_dec(x_119);
x_120 = lean_ctor_get(x_10, 0);
lean_dec(x_120);
lean_ctor_set(x_10, 4, x_13);
lean_ctor_set(x_10, 3, x_18);
lean_ctor_set(x_10, 2, x_17);
lean_ctor_set(x_10, 1, x_16);
lean_ctor_set(x_10, 0, x_112);
return x_10;
}
else
{
lean_object* x_121; 
lean_dec(x_10);
x_121 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_121, 0, x_112);
lean_ctor_set(x_121, 1, x_16);
lean_ctor_set(x_121, 2, x_17);
lean_ctor_set(x_121, 3, x_18);
lean_ctor_set(x_121, 4, x_13);
return x_121;
}
}
}
else
{
lean_object* x_122; lean_object* x_123; 
lean_free_object(x_13);
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_122 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_123 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3___rarg(x_122);
return x_123;
}
}
else
{
lean_object* x_124; lean_object* x_125; 
lean_free_object(x_13);
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_124 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_125 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4___rarg(x_124);
return x_125;
}
}
else
{
lean_dec(x_13);
if (lean_obj_tag(x_18) == 0)
{
if (lean_obj_tag(x_19) == 0)
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; uint8_t x_134; 
x_126 = lean_ctor_get(x_18, 0);
lean_inc(x_126);
x_127 = lean_ctor_get(x_19, 0);
lean_inc(x_127);
x_128 = lean_ctor_get(x_19, 1);
lean_inc(x_128);
x_129 = lean_ctor_get(x_19, 2);
lean_inc(x_129);
x_130 = lean_ctor_get(x_19, 3);
lean_inc(x_130);
x_131 = lean_ctor_get(x_19, 4);
lean_inc(x_131);
x_132 = lean_unsigned_to_nat(2u);
x_133 = lean_nat_mul(x_132, x_126);
x_134 = lean_nat_dec_lt(x_127, x_133);
lean_dec(x_133);
if (x_134 == 0)
{
lean_object* x_135; lean_object* x_136; lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; 
lean_dec(x_127);
if (lean_is_exclusive(x_19)) {
 lean_ctor_release(x_19, 0);
 lean_ctor_release(x_19, 1);
 lean_ctor_release(x_19, 2);
 lean_ctor_release(x_19, 3);
 lean_ctor_release(x_19, 4);
 x_135 = x_19;
} else {
 lean_dec_ref(x_19);
 x_135 = lean_box(0);
}
x_136 = lean_unsigned_to_nat(1u);
x_137 = lean_nat_add(x_136, x_15);
lean_dec(x_15);
x_138 = lean_nat_add(x_137, x_14);
lean_dec(x_137);
x_139 = lean_nat_add(x_136, x_126);
lean_dec(x_126);
x_140 = lean_nat_add(x_136, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_130) == 0)
{
lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; 
x_141 = lean_ctor_get(x_130, 0);
lean_inc(x_141);
x_142 = lean_nat_add(x_139, x_141);
lean_dec(x_141);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_143 = lean_alloc_ctor(0, 5, 0);
} else {
 x_143 = x_135;
}
lean_ctor_set(x_143, 0, x_142);
lean_ctor_set(x_143, 1, x_16);
lean_ctor_set(x_143, 2, x_17);
lean_ctor_set(x_143, 3, x_18);
lean_ctor_set(x_143, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_144 = x_18;
} else {
 lean_dec_ref(x_18);
 x_144 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; 
x_145 = lean_ctor_get(x_131, 0);
lean_inc(x_145);
x_146 = lean_nat_add(x_140, x_145);
lean_dec(x_145);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_147 = lean_alloc_ctor(0, 5, 0);
} else {
 x_147 = x_144;
}
lean_ctor_set(x_147, 0, x_146);
lean_ctor_set(x_147, 1, x_7);
lean_ctor_set(x_147, 2, x_8);
lean_ctor_set(x_147, 3, x_131);
lean_ctor_set(x_147, 4, x_10);
x_148 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_148, 0, x_138);
lean_ctor_set(x_148, 1, x_128);
lean_ctor_set(x_148, 2, x_129);
lean_ctor_set(x_148, 3, x_143);
lean_ctor_set(x_148, 4, x_147);
return x_148;
}
else
{
lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_149 = lean_unsigned_to_nat(0u);
x_150 = lean_nat_add(x_140, x_149);
lean_dec(x_140);
if (lean_is_scalar(x_144)) {
 x_151 = lean_alloc_ctor(0, 5, 0);
} else {
 x_151 = x_144;
}
lean_ctor_set(x_151, 0, x_150);
lean_ctor_set(x_151, 1, x_7);
lean_ctor_set(x_151, 2, x_8);
lean_ctor_set(x_151, 3, x_131);
lean_ctor_set(x_151, 4, x_10);
x_152 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_152, 0, x_138);
lean_ctor_set(x_152, 1, x_128);
lean_ctor_set(x_152, 2, x_129);
lean_ctor_set(x_152, 3, x_143);
lean_ctor_set(x_152, 4, x_151);
return x_152;
}
}
else
{
lean_object* x_153; lean_object* x_154; lean_object* x_155; lean_object* x_156; 
x_153 = lean_unsigned_to_nat(0u);
x_154 = lean_nat_add(x_139, x_153);
lean_dec(x_139);
lean_inc(x_18);
if (lean_is_scalar(x_135)) {
 x_155 = lean_alloc_ctor(0, 5, 0);
} else {
 x_155 = x_135;
}
lean_ctor_set(x_155, 0, x_154);
lean_ctor_set(x_155, 1, x_16);
lean_ctor_set(x_155, 2, x_17);
lean_ctor_set(x_155, 3, x_18);
lean_ctor_set(x_155, 4, x_130);
if (lean_is_exclusive(x_18)) {
 lean_ctor_release(x_18, 0);
 lean_ctor_release(x_18, 1);
 lean_ctor_release(x_18, 2);
 lean_ctor_release(x_18, 3);
 lean_ctor_release(x_18, 4);
 x_156 = x_18;
} else {
 lean_dec_ref(x_18);
 x_156 = lean_box(0);
}
if (lean_obj_tag(x_131) == 0)
{
lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; 
x_157 = lean_ctor_get(x_131, 0);
lean_inc(x_157);
x_158 = lean_nat_add(x_140, x_157);
lean_dec(x_157);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_159 = lean_alloc_ctor(0, 5, 0);
} else {
 x_159 = x_156;
}
lean_ctor_set(x_159, 0, x_158);
lean_ctor_set(x_159, 1, x_7);
lean_ctor_set(x_159, 2, x_8);
lean_ctor_set(x_159, 3, x_131);
lean_ctor_set(x_159, 4, x_10);
x_160 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_160, 0, x_138);
lean_ctor_set(x_160, 1, x_128);
lean_ctor_set(x_160, 2, x_129);
lean_ctor_set(x_160, 3, x_155);
lean_ctor_set(x_160, 4, x_159);
return x_160;
}
else
{
lean_object* x_161; lean_object* x_162; lean_object* x_163; 
x_161 = lean_nat_add(x_140, x_153);
lean_dec(x_140);
if (lean_is_scalar(x_156)) {
 x_162 = lean_alloc_ctor(0, 5, 0);
} else {
 x_162 = x_156;
}
lean_ctor_set(x_162, 0, x_161);
lean_ctor_set(x_162, 1, x_7);
lean_ctor_set(x_162, 2, x_8);
lean_ctor_set(x_162, 3, x_131);
lean_ctor_set(x_162, 4, x_10);
x_163 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_163, 0, x_138);
lean_ctor_set(x_163, 1, x_128);
lean_ctor_set(x_163, 2, x_129);
lean_ctor_set(x_163, 3, x_155);
lean_ctor_set(x_163, 4, x_162);
return x_163;
}
}
}
else
{
lean_object* x_164; lean_object* x_165; lean_object* x_166; lean_object* x_167; lean_object* x_168; lean_object* x_169; lean_object* x_170; lean_object* x_171; 
lean_dec(x_131);
lean_dec(x_130);
lean_dec(x_129);
lean_dec(x_128);
lean_dec(x_126);
x_164 = lean_unsigned_to_nat(1u);
x_165 = lean_nat_add(x_164, x_15);
lean_dec(x_15);
x_166 = lean_nat_add(x_165, x_14);
lean_dec(x_165);
x_167 = lean_nat_add(x_164, x_14);
lean_dec(x_14);
x_168 = lean_nat_add(x_167, x_127);
lean_dec(x_127);
lean_dec(x_167);
lean_inc(x_10);
x_169 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_169, 0, x_168);
lean_ctor_set(x_169, 1, x_7);
lean_ctor_set(x_169, 2, x_8);
lean_ctor_set(x_169, 3, x_19);
lean_ctor_set(x_169, 4, x_10);
if (lean_is_exclusive(x_10)) {
 lean_ctor_release(x_10, 0);
 lean_ctor_release(x_10, 1);
 lean_ctor_release(x_10, 2);
 lean_ctor_release(x_10, 3);
 lean_ctor_release(x_10, 4);
 x_170 = x_10;
} else {
 lean_dec_ref(x_10);
 x_170 = lean_box(0);
}
if (lean_is_scalar(x_170)) {
 x_171 = lean_alloc_ctor(0, 5, 0);
} else {
 x_171 = x_170;
}
lean_ctor_set(x_171, 0, x_166);
lean_ctor_set(x_171, 1, x_16);
lean_ctor_set(x_171, 2, x_17);
lean_ctor_set(x_171, 3, x_18);
lean_ctor_set(x_171, 4, x_169);
return x_171;
}
}
else
{
lean_object* x_172; lean_object* x_173; 
lean_dec(x_18);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_172 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_173 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3___rarg(x_172);
return x_173;
}
}
else
{
lean_object* x_174; lean_object* x_175; 
lean_dec(x_19);
lean_dec(x_17);
lean_dec(x_16);
lean_dec(x_15);
lean_dec(x_14);
lean_dec(x_10);
lean_dec(x_8);
lean_dec(x_7);
x_174 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_175 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4___rarg(x_174);
return x_175;
}
}
}
}
else
{
lean_object* x_176; lean_object* x_177; lean_object* x_178; lean_object* x_179; 
x_176 = lean_ctor_get(x_10, 0);
lean_inc(x_176);
x_177 = lean_unsigned_to_nat(1u);
x_178 = lean_nat_add(x_177, x_176);
lean_dec(x_176);
x_179 = lean_box(1);
lean_ctor_set(x_4, 3, x_179);
lean_ctor_set(x_4, 0, x_178);
return x_4;
}
}
else
{
if (lean_obj_tag(x_13) == 0)
{
lean_object* x_180; 
x_180 = lean_ctor_get(x_13, 3);
lean_inc(x_180);
if (lean_obj_tag(x_180) == 0)
{
lean_object* x_181; 
x_181 = lean_ctor_get(x_13, 4);
lean_inc(x_181);
if (lean_obj_tag(x_181) == 0)
{
uint8_t x_182; 
x_182 = !lean_is_exclusive(x_13);
if (x_182 == 0)
{
lean_object* x_183; lean_object* x_184; lean_object* x_185; lean_object* x_186; lean_object* x_187; lean_object* x_188; lean_object* x_189; lean_object* x_190; lean_object* x_191; lean_object* x_192; 
x_183 = lean_ctor_get(x_13, 0);
x_184 = lean_ctor_get(x_13, 1);
x_185 = lean_ctor_get(x_13, 2);
x_186 = lean_ctor_get(x_13, 4);
lean_dec(x_186);
x_187 = lean_ctor_get(x_13, 3);
lean_dec(x_187);
x_188 = lean_ctor_get(x_181, 0);
lean_inc(x_188);
x_189 = lean_unsigned_to_nat(1u);
x_190 = lean_nat_add(x_189, x_183);
lean_dec(x_183);
x_191 = lean_nat_add(x_189, x_188);
lean_dec(x_188);
x_192 = lean_box(1);
lean_ctor_set(x_13, 4, x_192);
lean_ctor_set(x_13, 3, x_181);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_191);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_185);
lean_ctor_set(x_4, 1, x_184);
lean_ctor_set(x_4, 0, x_190);
return x_4;
}
else
{
lean_object* x_193; lean_object* x_194; lean_object* x_195; lean_object* x_196; lean_object* x_197; lean_object* x_198; lean_object* x_199; lean_object* x_200; lean_object* x_201; 
x_193 = lean_ctor_get(x_13, 0);
x_194 = lean_ctor_get(x_13, 1);
x_195 = lean_ctor_get(x_13, 2);
lean_inc(x_195);
lean_inc(x_194);
lean_inc(x_193);
lean_dec(x_13);
x_196 = lean_ctor_get(x_181, 0);
lean_inc(x_196);
x_197 = lean_unsigned_to_nat(1u);
x_198 = lean_nat_add(x_197, x_193);
lean_dec(x_193);
x_199 = lean_nat_add(x_197, x_196);
lean_dec(x_196);
x_200 = lean_box(1);
x_201 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_201, 0, x_199);
lean_ctor_set(x_201, 1, x_7);
lean_ctor_set(x_201, 2, x_8);
lean_ctor_set(x_201, 3, x_181);
lean_ctor_set(x_201, 4, x_200);
lean_ctor_set(x_4, 4, x_201);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_195);
lean_ctor_set(x_4, 1, x_194);
lean_ctor_set(x_4, 0, x_198);
return x_4;
}
}
else
{
uint8_t x_202; 
x_202 = !lean_is_exclusive(x_13);
if (x_202 == 0)
{
lean_object* x_203; lean_object* x_204; lean_object* x_205; lean_object* x_206; lean_object* x_207; lean_object* x_208; lean_object* x_209; lean_object* x_210; 
x_203 = lean_ctor_get(x_13, 1);
x_204 = lean_ctor_get(x_13, 2);
x_205 = lean_ctor_get(x_13, 4);
lean_dec(x_205);
x_206 = lean_ctor_get(x_13, 3);
lean_dec(x_206);
x_207 = lean_ctor_get(x_13, 0);
lean_dec(x_207);
x_208 = lean_box(1);
x_209 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_13, 4, x_208);
lean_ctor_set(x_13, 3, x_208);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_209);
x_210 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_204);
lean_ctor_set(x_4, 1, x_203);
lean_ctor_set(x_4, 0, x_210);
return x_4;
}
else
{
lean_object* x_211; lean_object* x_212; lean_object* x_213; lean_object* x_214; lean_object* x_215; lean_object* x_216; 
x_211 = lean_ctor_get(x_13, 1);
x_212 = lean_ctor_get(x_13, 2);
lean_inc(x_212);
lean_inc(x_211);
lean_dec(x_13);
x_213 = lean_box(1);
x_214 = lean_unsigned_to_nat(1u);
x_215 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_215, 0, x_214);
lean_ctor_set(x_215, 1, x_7);
lean_ctor_set(x_215, 2, x_8);
lean_ctor_set(x_215, 3, x_213);
lean_ctor_set(x_215, 4, x_213);
x_216 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_215);
lean_ctor_set(x_4, 3, x_180);
lean_ctor_set(x_4, 2, x_212);
lean_ctor_set(x_4, 1, x_211);
lean_ctor_set(x_4, 0, x_216);
return x_4;
}
}
}
else
{
lean_object* x_217; 
x_217 = lean_ctor_get(x_13, 4);
lean_inc(x_217);
if (lean_obj_tag(x_217) == 0)
{
uint8_t x_218; 
x_218 = !lean_is_exclusive(x_13);
if (x_218 == 0)
{
lean_object* x_219; lean_object* x_220; lean_object* x_221; lean_object* x_222; lean_object* x_223; uint8_t x_224; 
x_219 = lean_ctor_get(x_13, 1);
x_220 = lean_ctor_get(x_13, 2);
x_221 = lean_ctor_get(x_13, 4);
lean_dec(x_221);
x_222 = lean_ctor_get(x_13, 3);
lean_dec(x_222);
x_223 = lean_ctor_get(x_13, 0);
lean_dec(x_223);
x_224 = !lean_is_exclusive(x_217);
if (x_224 == 0)
{
lean_object* x_225; lean_object* x_226; lean_object* x_227; lean_object* x_228; lean_object* x_229; lean_object* x_230; lean_object* x_231; lean_object* x_232; 
x_225 = lean_ctor_get(x_217, 1);
x_226 = lean_ctor_get(x_217, 2);
x_227 = lean_ctor_get(x_217, 4);
lean_dec(x_227);
x_228 = lean_ctor_get(x_217, 3);
lean_dec(x_228);
x_229 = lean_ctor_get(x_217, 0);
lean_dec(x_229);
x_230 = lean_box(1);
x_231 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_217, 4, x_230);
lean_ctor_set(x_217, 3, x_230);
lean_ctor_set(x_217, 2, x_220);
lean_ctor_set(x_217, 1, x_219);
lean_ctor_set(x_217, 0, x_231);
lean_ctor_set(x_13, 4, x_230);
lean_ctor_set(x_13, 3, x_230);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_231);
x_232 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_217);
lean_ctor_set(x_4, 2, x_226);
lean_ctor_set(x_4, 1, x_225);
lean_ctor_set(x_4, 0, x_232);
return x_4;
}
else
{
lean_object* x_233; lean_object* x_234; lean_object* x_235; lean_object* x_236; lean_object* x_237; lean_object* x_238; 
x_233 = lean_ctor_get(x_217, 1);
x_234 = lean_ctor_get(x_217, 2);
lean_inc(x_234);
lean_inc(x_233);
lean_dec(x_217);
x_235 = lean_box(1);
x_236 = lean_unsigned_to_nat(1u);
x_237 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_237, 0, x_236);
lean_ctor_set(x_237, 1, x_219);
lean_ctor_set(x_237, 2, x_220);
lean_ctor_set(x_237, 3, x_235);
lean_ctor_set(x_237, 4, x_235);
lean_ctor_set(x_13, 4, x_235);
lean_ctor_set(x_13, 3, x_235);
lean_ctor_set(x_13, 2, x_8);
lean_ctor_set(x_13, 1, x_7);
lean_ctor_set(x_13, 0, x_236);
x_238 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_13);
lean_ctor_set(x_4, 3, x_237);
lean_ctor_set(x_4, 2, x_234);
lean_ctor_set(x_4, 1, x_233);
lean_ctor_set(x_4, 0, x_238);
return x_4;
}
}
else
{
lean_object* x_239; lean_object* x_240; lean_object* x_241; lean_object* x_242; lean_object* x_243; lean_object* x_244; lean_object* x_245; lean_object* x_246; lean_object* x_247; lean_object* x_248; 
x_239 = lean_ctor_get(x_13, 1);
x_240 = lean_ctor_get(x_13, 2);
lean_inc(x_240);
lean_inc(x_239);
lean_dec(x_13);
x_241 = lean_ctor_get(x_217, 1);
lean_inc(x_241);
x_242 = lean_ctor_get(x_217, 2);
lean_inc(x_242);
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);
 lean_ctor_release(x_217, 4);
 x_243 = x_217;
} else {
 lean_dec_ref(x_217);
 x_243 = lean_box(0);
}
x_244 = lean_box(1);
x_245 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_243)) {
 x_246 = lean_alloc_ctor(0, 5, 0);
} else {
 x_246 = x_243;
}
lean_ctor_set(x_246, 0, x_245);
lean_ctor_set(x_246, 1, x_239);
lean_ctor_set(x_246, 2, x_240);
lean_ctor_set(x_246, 3, x_244);
lean_ctor_set(x_246, 4, x_244);
x_247 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_247, 0, x_245);
lean_ctor_set(x_247, 1, x_7);
lean_ctor_set(x_247, 2, x_8);
lean_ctor_set(x_247, 3, x_244);
lean_ctor_set(x_247, 4, x_244);
x_248 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_247);
lean_ctor_set(x_4, 3, x_246);
lean_ctor_set(x_4, 2, x_242);
lean_ctor_set(x_4, 1, x_241);
lean_ctor_set(x_4, 0, x_248);
return x_4;
}
}
else
{
lean_object* x_249; lean_object* x_250; 
x_249 = lean_box(1);
x_250 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_249);
lean_ctor_set(x_4, 3, x_13);
lean_ctor_set(x_4, 0, x_250);
return x_4;
}
}
}
else
{
lean_object* x_251; lean_object* x_252; 
x_251 = lean_box(1);
x_252 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_251);
lean_ctor_set(x_4, 3, x_251);
lean_ctor_set(x_4, 0, x_252);
return x_4;
}
}
}
case 1:
{
lean_dec(x_8);
lean_dec(x_7);
lean_dec(x_1);
lean_ctor_set(x_4, 2, x_3);
lean_ctor_set(x_4, 1, x_2);
return x_4;
}
default: 
{
lean_object* x_253; 
lean_dec(x_6);
x_253 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg(x_1, x_2, x_3, x_10);
if (lean_obj_tag(x_9) == 0)
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_254; lean_object* x_255; lean_object* x_256; lean_object* x_257; lean_object* x_258; lean_object* x_259; lean_object* x_260; lean_object* x_261; uint8_t x_262; 
x_254 = lean_ctor_get(x_9, 0);
lean_inc(x_254);
x_255 = lean_ctor_get(x_253, 0);
lean_inc(x_255);
x_256 = lean_ctor_get(x_253, 1);
lean_inc(x_256);
x_257 = lean_ctor_get(x_253, 2);
lean_inc(x_257);
x_258 = lean_ctor_get(x_253, 3);
lean_inc(x_258);
x_259 = lean_ctor_get(x_253, 4);
lean_inc(x_259);
x_260 = lean_unsigned_to_nat(3u);
x_261 = lean_nat_mul(x_260, x_254);
x_262 = lean_nat_dec_lt(x_261, x_255);
lean_dec(x_261);
if (x_262 == 0)
{
lean_object* x_263; lean_object* x_264; lean_object* x_265; 
lean_dec(x_259);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
x_263 = lean_unsigned_to_nat(1u);
x_264 = lean_nat_add(x_263, x_254);
lean_dec(x_254);
x_265 = lean_nat_add(x_264, x_255);
lean_dec(x_255);
lean_dec(x_264);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 0, x_265);
return x_4;
}
else
{
uint8_t x_266; 
lean_free_object(x_4);
x_266 = !lean_is_exclusive(x_253);
if (x_266 == 0)
{
lean_object* x_267; lean_object* x_268; lean_object* x_269; lean_object* x_270; lean_object* x_271; 
x_267 = lean_ctor_get(x_253, 4);
lean_dec(x_267);
x_268 = lean_ctor_get(x_253, 3);
lean_dec(x_268);
x_269 = lean_ctor_get(x_253, 2);
lean_dec(x_269);
x_270 = lean_ctor_get(x_253, 1);
lean_dec(x_270);
x_271 = lean_ctor_get(x_253, 0);
lean_dec(x_271);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_272; lean_object* x_273; lean_object* x_274; lean_object* x_275; lean_object* x_276; lean_object* x_277; lean_object* x_278; lean_object* x_279; uint8_t x_280; 
x_272 = lean_ctor_get(x_258, 0);
lean_inc(x_272);
x_273 = lean_ctor_get(x_258, 1);
lean_inc(x_273);
x_274 = lean_ctor_get(x_258, 2);
lean_inc(x_274);
x_275 = lean_ctor_get(x_258, 3);
lean_inc(x_275);
x_276 = lean_ctor_get(x_258, 4);
lean_inc(x_276);
x_277 = lean_ctor_get(x_259, 0);
lean_inc(x_277);
x_278 = lean_unsigned_to_nat(2u);
x_279 = lean_nat_mul(x_278, x_277);
x_280 = lean_nat_dec_lt(x_272, x_279);
lean_dec(x_279);
if (x_280 == 0)
{
uint8_t x_281; 
lean_dec(x_272);
x_281 = !lean_is_exclusive(x_258);
if (x_281 == 0)
{
lean_object* x_282; lean_object* x_283; lean_object* x_284; lean_object* x_285; lean_object* x_286; lean_object* x_287; lean_object* x_288; lean_object* x_289; lean_object* x_290; 
x_282 = lean_ctor_get(x_258, 4);
lean_dec(x_282);
x_283 = lean_ctor_get(x_258, 3);
lean_dec(x_283);
x_284 = lean_ctor_get(x_258, 2);
lean_dec(x_284);
x_285 = lean_ctor_get(x_258, 1);
lean_dec(x_285);
x_286 = lean_ctor_get(x_258, 0);
lean_dec(x_286);
x_287 = lean_unsigned_to_nat(1u);
x_288 = lean_nat_add(x_287, x_254);
lean_dec(x_254);
x_289 = lean_nat_add(x_288, x_255);
lean_dec(x_255);
x_290 = lean_nat_add(x_287, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_291; lean_object* x_292; uint8_t x_293; 
x_291 = lean_ctor_get(x_275, 0);
lean_inc(x_291);
x_292 = lean_nat_add(x_288, x_291);
lean_dec(x_291);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_292);
x_293 = !lean_is_exclusive(x_9);
if (x_293 == 0)
{
lean_object* x_294; lean_object* x_295; lean_object* x_296; lean_object* x_297; lean_object* x_298; 
x_294 = lean_ctor_get(x_9, 4);
lean_dec(x_294);
x_295 = lean_ctor_get(x_9, 3);
lean_dec(x_295);
x_296 = lean_ctor_get(x_9, 2);
lean_dec(x_296);
x_297 = lean_ctor_get(x_9, 1);
lean_dec(x_297);
x_298 = lean_ctor_get(x_9, 0);
lean_dec(x_298);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_299; lean_object* x_300; 
x_299 = lean_ctor_get(x_276, 0);
lean_inc(x_299);
x_300 = lean_nat_add(x_290, x_299);
lean_dec(x_299);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_300);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_301; lean_object* x_302; 
x_301 = lean_unsigned_to_nat(0u);
x_302 = lean_nat_add(x_290, x_301);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_302);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_303; lean_object* x_304; lean_object* x_305; 
x_303 = lean_ctor_get(x_276, 0);
lean_inc(x_303);
x_304 = lean_nat_add(x_290, x_303);
lean_dec(x_303);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_304);
x_305 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_305, 0, x_289);
lean_ctor_set(x_305, 1, x_273);
lean_ctor_set(x_305, 2, x_274);
lean_ctor_set(x_305, 3, x_258);
lean_ctor_set(x_305, 4, x_253);
return x_305;
}
else
{
lean_object* x_306; lean_object* x_307; lean_object* x_308; 
x_306 = lean_unsigned_to_nat(0u);
x_307 = lean_nat_add(x_290, x_306);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_307);
x_308 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_308, 0, x_289);
lean_ctor_set(x_308, 1, x_273);
lean_ctor_set(x_308, 2, x_274);
lean_ctor_set(x_308, 3, x_258);
lean_ctor_set(x_308, 4, x_253);
return x_308;
}
}
}
else
{
lean_object* x_309; lean_object* x_310; uint8_t x_311; 
x_309 = lean_unsigned_to_nat(0u);
x_310 = lean_nat_add(x_288, x_309);
lean_dec(x_288);
lean_inc(x_9);
lean_ctor_set(x_258, 4, x_275);
lean_ctor_set(x_258, 3, x_9);
lean_ctor_set(x_258, 2, x_8);
lean_ctor_set(x_258, 1, x_7);
lean_ctor_set(x_258, 0, x_310);
x_311 = !lean_is_exclusive(x_9);
if (x_311 == 0)
{
lean_object* x_312; lean_object* x_313; lean_object* x_314; lean_object* x_315; lean_object* x_316; 
x_312 = lean_ctor_get(x_9, 4);
lean_dec(x_312);
x_313 = lean_ctor_get(x_9, 3);
lean_dec(x_313);
x_314 = lean_ctor_get(x_9, 2);
lean_dec(x_314);
x_315 = lean_ctor_get(x_9, 1);
lean_dec(x_315);
x_316 = lean_ctor_get(x_9, 0);
lean_dec(x_316);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_317; lean_object* x_318; 
x_317 = lean_ctor_get(x_276, 0);
lean_inc(x_317);
x_318 = lean_nat_add(x_290, x_317);
lean_dec(x_317);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_318);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
else
{
lean_object* x_319; 
x_319 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_319);
lean_ctor_set(x_9, 4, x_253);
lean_ctor_set(x_9, 3, x_258);
lean_ctor_set(x_9, 2, x_274);
lean_ctor_set(x_9, 1, x_273);
lean_ctor_set(x_9, 0, x_289);
return x_9;
}
}
else
{
lean_dec(x_9);
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_320; lean_object* x_321; lean_object* x_322; 
x_320 = lean_ctor_get(x_276, 0);
lean_inc(x_320);
x_321 = lean_nat_add(x_290, x_320);
lean_dec(x_320);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_321);
x_322 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_322, 0, x_289);
lean_ctor_set(x_322, 1, x_273);
lean_ctor_set(x_322, 2, x_274);
lean_ctor_set(x_322, 3, x_258);
lean_ctor_set(x_322, 4, x_253);
return x_322;
}
else
{
lean_object* x_323; lean_object* x_324; 
x_323 = lean_nat_add(x_290, x_309);
lean_dec(x_290);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_323);
x_324 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_324, 0, x_289);
lean_ctor_set(x_324, 1, x_273);
lean_ctor_set(x_324, 2, x_274);
lean_ctor_set(x_324, 3, x_258);
lean_ctor_set(x_324, 4, x_253);
return x_324;
}
}
}
}
else
{
lean_object* x_325; lean_object* x_326; lean_object* x_327; lean_object* x_328; 
lean_dec(x_258);
x_325 = lean_unsigned_to_nat(1u);
x_326 = lean_nat_add(x_325, x_254);
lean_dec(x_254);
x_327 = lean_nat_add(x_326, x_255);
lean_dec(x_255);
x_328 = lean_nat_add(x_325, x_277);
lean_dec(x_277);
if (lean_obj_tag(x_275) == 0)
{
lean_object* x_329; lean_object* x_330; lean_object* x_331; lean_object* x_332; 
x_329 = lean_ctor_get(x_275, 0);
lean_inc(x_329);
x_330 = lean_nat_add(x_326, x_329);
lean_dec(x_329);
lean_dec(x_326);
lean_inc(x_9);
x_331 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_331, 0, x_330);
lean_ctor_set(x_331, 1, x_7);
lean_ctor_set(x_331, 2, x_8);
lean_ctor_set(x_331, 3, x_9);
lean_ctor_set(x_331, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_332 = x_9;
} else {
 lean_dec_ref(x_9);
 x_332 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_333; lean_object* x_334; lean_object* x_335; 
x_333 = lean_ctor_get(x_276, 0);
lean_inc(x_333);
x_334 = lean_nat_add(x_328, x_333);
lean_dec(x_333);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_334);
if (lean_is_scalar(x_332)) {
 x_335 = lean_alloc_ctor(0, 5, 0);
} else {
 x_335 = x_332;
}
lean_ctor_set(x_335, 0, x_327);
lean_ctor_set(x_335, 1, x_273);
lean_ctor_set(x_335, 2, x_274);
lean_ctor_set(x_335, 3, x_331);
lean_ctor_set(x_335, 4, x_253);
return x_335;
}
else
{
lean_object* x_336; lean_object* x_337; lean_object* x_338; 
x_336 = lean_unsigned_to_nat(0u);
x_337 = lean_nat_add(x_328, x_336);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_337);
if (lean_is_scalar(x_332)) {
 x_338 = lean_alloc_ctor(0, 5, 0);
} else {
 x_338 = x_332;
}
lean_ctor_set(x_338, 0, x_327);
lean_ctor_set(x_338, 1, x_273);
lean_ctor_set(x_338, 2, x_274);
lean_ctor_set(x_338, 3, x_331);
lean_ctor_set(x_338, 4, x_253);
return x_338;
}
}
else
{
lean_object* x_339; lean_object* x_340; lean_object* x_341; lean_object* x_342; 
x_339 = lean_unsigned_to_nat(0u);
x_340 = lean_nat_add(x_326, x_339);
lean_dec(x_326);
lean_inc(x_9);
x_341 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_341, 0, x_340);
lean_ctor_set(x_341, 1, x_7);
lean_ctor_set(x_341, 2, x_8);
lean_ctor_set(x_341, 3, x_9);
lean_ctor_set(x_341, 4, x_275);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_342 = x_9;
} else {
 lean_dec_ref(x_9);
 x_342 = lean_box(0);
}
if (lean_obj_tag(x_276) == 0)
{
lean_object* x_343; lean_object* x_344; lean_object* x_345; 
x_343 = lean_ctor_get(x_276, 0);
lean_inc(x_343);
x_344 = lean_nat_add(x_328, x_343);
lean_dec(x_343);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_344);
if (lean_is_scalar(x_342)) {
 x_345 = lean_alloc_ctor(0, 5, 0);
} else {
 x_345 = x_342;
}
lean_ctor_set(x_345, 0, x_327);
lean_ctor_set(x_345, 1, x_273);
lean_ctor_set(x_345, 2, x_274);
lean_ctor_set(x_345, 3, x_341);
lean_ctor_set(x_345, 4, x_253);
return x_345;
}
else
{
lean_object* x_346; lean_object* x_347; 
x_346 = lean_nat_add(x_328, x_339);
lean_dec(x_328);
lean_ctor_set(x_253, 3, x_276);
lean_ctor_set(x_253, 0, x_346);
if (lean_is_scalar(x_342)) {
 x_347 = lean_alloc_ctor(0, 5, 0);
} else {
 x_347 = x_342;
}
lean_ctor_set(x_347, 0, x_327);
lean_ctor_set(x_347, 1, x_273);
lean_ctor_set(x_347, 2, x_274);
lean_ctor_set(x_347, 3, x_341);
lean_ctor_set(x_347, 4, x_253);
return x_347;
}
}
}
}
else
{
lean_object* x_348; lean_object* x_349; lean_object* x_350; lean_object* x_351; uint8_t x_352; 
lean_dec(x_277);
lean_dec(x_276);
lean_dec(x_275);
lean_dec(x_274);
lean_dec(x_273);
x_348 = lean_unsigned_to_nat(1u);
x_349 = lean_nat_add(x_348, x_254);
lean_dec(x_254);
x_350 = lean_nat_add(x_349, x_255);
lean_dec(x_255);
x_351 = lean_nat_add(x_349, x_272);
lean_dec(x_272);
lean_dec(x_349);
lean_inc(x_9);
lean_ctor_set(x_253, 4, x_258);
lean_ctor_set(x_253, 3, x_9);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_351);
x_352 = !lean_is_exclusive(x_9);
if (x_352 == 0)
{
lean_object* x_353; lean_object* x_354; lean_object* x_355; lean_object* x_356; lean_object* x_357; 
x_353 = lean_ctor_get(x_9, 4);
lean_dec(x_353);
x_354 = lean_ctor_get(x_9, 3);
lean_dec(x_354);
x_355 = lean_ctor_get(x_9, 2);
lean_dec(x_355);
x_356 = lean_ctor_get(x_9, 1);
lean_dec(x_356);
x_357 = lean_ctor_get(x_9, 0);
lean_dec(x_357);
lean_ctor_set(x_9, 4, x_259);
lean_ctor_set(x_9, 3, x_253);
lean_ctor_set(x_9, 2, x_257);
lean_ctor_set(x_9, 1, x_256);
lean_ctor_set(x_9, 0, x_350);
return x_9;
}
else
{
lean_object* x_358; 
lean_dec(x_9);
x_358 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_358, 0, x_350);
lean_ctor_set(x_358, 1, x_256);
lean_ctor_set(x_358, 2, x_257);
lean_ctor_set(x_358, 3, x_253);
lean_ctor_set(x_358, 4, x_259);
return x_358;
}
}
}
else
{
lean_object* x_359; lean_object* x_360; 
lean_free_object(x_253);
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_359 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_360 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5___rarg(x_359);
return x_360;
}
}
else
{
lean_object* x_361; lean_object* x_362; 
lean_free_object(x_253);
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_361 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_362 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6___rarg(x_361);
return x_362;
}
}
else
{
lean_dec(x_253);
if (lean_obj_tag(x_258) == 0)
{
if (lean_obj_tag(x_259) == 0)
{
lean_object* x_363; lean_object* x_364; lean_object* x_365; lean_object* x_366; lean_object* x_367; lean_object* x_368; lean_object* x_369; lean_object* x_370; uint8_t x_371; 
x_363 = lean_ctor_get(x_258, 0);
lean_inc(x_363);
x_364 = lean_ctor_get(x_258, 1);
lean_inc(x_364);
x_365 = lean_ctor_get(x_258, 2);
lean_inc(x_365);
x_366 = lean_ctor_get(x_258, 3);
lean_inc(x_366);
x_367 = lean_ctor_get(x_258, 4);
lean_inc(x_367);
x_368 = lean_ctor_get(x_259, 0);
lean_inc(x_368);
x_369 = lean_unsigned_to_nat(2u);
x_370 = lean_nat_mul(x_369, x_368);
x_371 = lean_nat_dec_lt(x_363, x_370);
lean_dec(x_370);
if (x_371 == 0)
{
lean_object* x_372; lean_object* x_373; lean_object* x_374; lean_object* x_375; lean_object* x_376; 
lean_dec(x_363);
if (lean_is_exclusive(x_258)) {
 lean_ctor_release(x_258, 0);
 lean_ctor_release(x_258, 1);
 lean_ctor_release(x_258, 2);
 lean_ctor_release(x_258, 3);
 lean_ctor_release(x_258, 4);
 x_372 = x_258;
} else {
 lean_dec_ref(x_258);
 x_372 = lean_box(0);
}
x_373 = lean_unsigned_to_nat(1u);
x_374 = lean_nat_add(x_373, x_254);
lean_dec(x_254);
x_375 = lean_nat_add(x_374, x_255);
lean_dec(x_255);
x_376 = lean_nat_add(x_373, x_368);
lean_dec(x_368);
if (lean_obj_tag(x_366) == 0)
{
lean_object* x_377; lean_object* x_378; lean_object* x_379; lean_object* x_380; 
x_377 = lean_ctor_get(x_366, 0);
lean_inc(x_377);
x_378 = lean_nat_add(x_374, x_377);
lean_dec(x_377);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_379 = lean_alloc_ctor(0, 5, 0);
} else {
 x_379 = x_372;
}
lean_ctor_set(x_379, 0, x_378);
lean_ctor_set(x_379, 1, x_7);
lean_ctor_set(x_379, 2, x_8);
lean_ctor_set(x_379, 3, x_9);
lean_ctor_set(x_379, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_380 = x_9;
} else {
 lean_dec_ref(x_9);
 x_380 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_381; lean_object* x_382; lean_object* x_383; lean_object* x_384; 
x_381 = lean_ctor_get(x_367, 0);
lean_inc(x_381);
x_382 = lean_nat_add(x_376, x_381);
lean_dec(x_381);
lean_dec(x_376);
x_383 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_383, 0, x_382);
lean_ctor_set(x_383, 1, x_256);
lean_ctor_set(x_383, 2, x_257);
lean_ctor_set(x_383, 3, x_367);
lean_ctor_set(x_383, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_384 = lean_alloc_ctor(0, 5, 0);
} else {
 x_384 = x_380;
}
lean_ctor_set(x_384, 0, x_375);
lean_ctor_set(x_384, 1, x_364);
lean_ctor_set(x_384, 2, x_365);
lean_ctor_set(x_384, 3, x_379);
lean_ctor_set(x_384, 4, x_383);
return x_384;
}
else
{
lean_object* x_385; lean_object* x_386; lean_object* x_387; lean_object* x_388; 
x_385 = lean_unsigned_to_nat(0u);
x_386 = lean_nat_add(x_376, x_385);
lean_dec(x_376);
x_387 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_387, 0, x_386);
lean_ctor_set(x_387, 1, x_256);
lean_ctor_set(x_387, 2, x_257);
lean_ctor_set(x_387, 3, x_367);
lean_ctor_set(x_387, 4, x_259);
if (lean_is_scalar(x_380)) {
 x_388 = lean_alloc_ctor(0, 5, 0);
} else {
 x_388 = x_380;
}
lean_ctor_set(x_388, 0, x_375);
lean_ctor_set(x_388, 1, x_364);
lean_ctor_set(x_388, 2, x_365);
lean_ctor_set(x_388, 3, x_379);
lean_ctor_set(x_388, 4, x_387);
return x_388;
}
}
else
{
lean_object* x_389; lean_object* x_390; lean_object* x_391; lean_object* x_392; 
x_389 = lean_unsigned_to_nat(0u);
x_390 = lean_nat_add(x_374, x_389);
lean_dec(x_374);
lean_inc(x_9);
if (lean_is_scalar(x_372)) {
 x_391 = lean_alloc_ctor(0, 5, 0);
} else {
 x_391 = x_372;
}
lean_ctor_set(x_391, 0, x_390);
lean_ctor_set(x_391, 1, x_7);
lean_ctor_set(x_391, 2, x_8);
lean_ctor_set(x_391, 3, x_9);
lean_ctor_set(x_391, 4, x_366);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_392 = x_9;
} else {
 lean_dec_ref(x_9);
 x_392 = lean_box(0);
}
if (lean_obj_tag(x_367) == 0)
{
lean_object* x_393; lean_object* x_394; lean_object* x_395; lean_object* x_396; 
x_393 = lean_ctor_get(x_367, 0);
lean_inc(x_393);
x_394 = lean_nat_add(x_376, x_393);
lean_dec(x_393);
lean_dec(x_376);
x_395 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_395, 0, x_394);
lean_ctor_set(x_395, 1, x_256);
lean_ctor_set(x_395, 2, x_257);
lean_ctor_set(x_395, 3, x_367);
lean_ctor_set(x_395, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_396 = lean_alloc_ctor(0, 5, 0);
} else {
 x_396 = x_392;
}
lean_ctor_set(x_396, 0, x_375);
lean_ctor_set(x_396, 1, x_364);
lean_ctor_set(x_396, 2, x_365);
lean_ctor_set(x_396, 3, x_391);
lean_ctor_set(x_396, 4, x_395);
return x_396;
}
else
{
lean_object* x_397; lean_object* x_398; lean_object* x_399; 
x_397 = lean_nat_add(x_376, x_389);
lean_dec(x_376);
x_398 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_398, 0, x_397);
lean_ctor_set(x_398, 1, x_256);
lean_ctor_set(x_398, 2, x_257);
lean_ctor_set(x_398, 3, x_367);
lean_ctor_set(x_398, 4, x_259);
if (lean_is_scalar(x_392)) {
 x_399 = lean_alloc_ctor(0, 5, 0);
} else {
 x_399 = x_392;
}
lean_ctor_set(x_399, 0, x_375);
lean_ctor_set(x_399, 1, x_364);
lean_ctor_set(x_399, 2, x_365);
lean_ctor_set(x_399, 3, x_391);
lean_ctor_set(x_399, 4, x_398);
return x_399;
}
}
}
else
{
lean_object* x_400; lean_object* x_401; lean_object* x_402; lean_object* x_403; lean_object* x_404; lean_object* x_405; lean_object* x_406; 
lean_dec(x_368);
lean_dec(x_367);
lean_dec(x_366);
lean_dec(x_365);
lean_dec(x_364);
x_400 = lean_unsigned_to_nat(1u);
x_401 = lean_nat_add(x_400, x_254);
lean_dec(x_254);
x_402 = lean_nat_add(x_401, x_255);
lean_dec(x_255);
x_403 = lean_nat_add(x_401, x_363);
lean_dec(x_363);
lean_dec(x_401);
lean_inc(x_9);
x_404 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_404, 0, x_403);
lean_ctor_set(x_404, 1, x_7);
lean_ctor_set(x_404, 2, x_8);
lean_ctor_set(x_404, 3, x_9);
lean_ctor_set(x_404, 4, x_258);
if (lean_is_exclusive(x_9)) {
 lean_ctor_release(x_9, 0);
 lean_ctor_release(x_9, 1);
 lean_ctor_release(x_9, 2);
 lean_ctor_release(x_9, 3);
 lean_ctor_release(x_9, 4);
 x_405 = x_9;
} else {
 lean_dec_ref(x_9);
 x_405 = lean_box(0);
}
if (lean_is_scalar(x_405)) {
 x_406 = lean_alloc_ctor(0, 5, 0);
} else {
 x_406 = x_405;
}
lean_ctor_set(x_406, 0, x_402);
lean_ctor_set(x_406, 1, x_256);
lean_ctor_set(x_406, 2, x_257);
lean_ctor_set(x_406, 3, x_404);
lean_ctor_set(x_406, 4, x_259);
return x_406;
}
}
else
{
lean_object* x_407; lean_object* x_408; 
lean_dec(x_258);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_407 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_408 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5___rarg(x_407);
return x_408;
}
}
else
{
lean_object* x_409; lean_object* x_410; 
lean_dec(x_259);
lean_dec(x_257);
lean_dec(x_256);
lean_dec(x_255);
lean_dec(x_254);
lean_dec(x_9);
lean_dec(x_8);
lean_dec(x_7);
x_409 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_410 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6___rarg(x_409);
return x_410;
}
}
}
}
else
{
lean_object* x_411; lean_object* x_412; lean_object* x_413; lean_object* x_414; 
x_411 = lean_ctor_get(x_9, 0);
lean_inc(x_411);
x_412 = lean_unsigned_to_nat(1u);
x_413 = lean_nat_add(x_412, x_411);
lean_dec(x_411);
x_414 = lean_box(1);
lean_ctor_set(x_4, 4, x_414);
lean_ctor_set(x_4, 0, x_413);
return x_4;
}
}
else
{
if (lean_obj_tag(x_253) == 0)
{
lean_object* x_415; 
x_415 = lean_ctor_get(x_253, 3);
lean_inc(x_415);
if (lean_obj_tag(x_415) == 0)
{
lean_object* x_416; 
x_416 = lean_ctor_get(x_253, 4);
lean_inc(x_416);
if (lean_obj_tag(x_416) == 0)
{
uint8_t x_417; 
x_417 = !lean_is_exclusive(x_253);
if (x_417 == 0)
{
lean_object* x_418; lean_object* x_419; lean_object* x_420; lean_object* x_421; lean_object* x_422; lean_object* x_423; lean_object* x_424; lean_object* x_425; lean_object* x_426; lean_object* x_427; 
x_418 = lean_ctor_get(x_253, 0);
x_419 = lean_ctor_get(x_253, 1);
x_420 = lean_ctor_get(x_253, 2);
x_421 = lean_ctor_get(x_253, 4);
lean_dec(x_421);
x_422 = lean_ctor_get(x_253, 3);
lean_dec(x_422);
x_423 = lean_ctor_get(x_415, 0);
lean_inc(x_423);
x_424 = lean_unsigned_to_nat(1u);
x_425 = lean_nat_add(x_424, x_418);
lean_dec(x_418);
x_426 = lean_nat_add(x_424, x_423);
lean_dec(x_423);
x_427 = lean_box(1);
lean_ctor_set(x_253, 4, x_415);
lean_ctor_set(x_253, 3, x_427);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_426);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_420);
lean_ctor_set(x_4, 1, x_419);
lean_ctor_set(x_4, 0, x_425);
return x_4;
}
else
{
lean_object* x_428; lean_object* x_429; lean_object* x_430; lean_object* x_431; lean_object* x_432; lean_object* x_433; lean_object* x_434; lean_object* x_435; lean_object* x_436; 
x_428 = lean_ctor_get(x_253, 0);
x_429 = lean_ctor_get(x_253, 1);
x_430 = lean_ctor_get(x_253, 2);
lean_inc(x_430);
lean_inc(x_429);
lean_inc(x_428);
lean_dec(x_253);
x_431 = lean_ctor_get(x_415, 0);
lean_inc(x_431);
x_432 = lean_unsigned_to_nat(1u);
x_433 = lean_nat_add(x_432, x_428);
lean_dec(x_428);
x_434 = lean_nat_add(x_432, x_431);
lean_dec(x_431);
x_435 = lean_box(1);
x_436 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_436, 0, x_434);
lean_ctor_set(x_436, 1, x_7);
lean_ctor_set(x_436, 2, x_8);
lean_ctor_set(x_436, 3, x_435);
lean_ctor_set(x_436, 4, x_415);
lean_ctor_set(x_4, 4, x_416);
lean_ctor_set(x_4, 3, x_436);
lean_ctor_set(x_4, 2, x_430);
lean_ctor_set(x_4, 1, x_429);
lean_ctor_set(x_4, 0, x_433);
return x_4;
}
}
else
{
uint8_t x_437; 
x_437 = !lean_is_exclusive(x_253);
if (x_437 == 0)
{
lean_object* x_438; lean_object* x_439; lean_object* x_440; uint8_t x_441; 
x_438 = lean_ctor_get(x_253, 4);
lean_dec(x_438);
x_439 = lean_ctor_get(x_253, 3);
lean_dec(x_439);
x_440 = lean_ctor_get(x_253, 0);
lean_dec(x_440);
x_441 = !lean_is_exclusive(x_415);
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; 
x_442 = lean_ctor_get(x_415, 1);
x_443 = lean_ctor_get(x_415, 2);
x_444 = lean_ctor_get(x_415, 4);
lean_dec(x_444);
x_445 = lean_ctor_get(x_415, 3);
lean_dec(x_445);
x_446 = lean_ctor_get(x_415, 0);
lean_dec(x_446);
x_447 = lean_box(1);
x_448 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_415, 4, x_447);
lean_ctor_set(x_415, 3, x_447);
lean_ctor_set(x_415, 2, x_8);
lean_ctor_set(x_415, 1, x_7);
lean_ctor_set(x_415, 0, x_448);
lean_ctor_set(x_253, 4, x_447);
lean_ctor_set(x_253, 3, x_447);
lean_ctor_set(x_253, 0, x_448);
x_449 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_415);
lean_ctor_set(x_4, 2, x_443);
lean_ctor_set(x_4, 1, x_442);
lean_ctor_set(x_4, 0, x_449);
return x_4;
}
else
{
lean_object* x_450; lean_object* x_451; lean_object* x_452; lean_object* x_453; lean_object* x_454; lean_object* x_455; 
x_450 = lean_ctor_get(x_415, 1);
x_451 = lean_ctor_get(x_415, 2);
lean_inc(x_451);
lean_inc(x_450);
lean_dec(x_415);
x_452 = lean_box(1);
x_453 = lean_unsigned_to_nat(1u);
x_454 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_454, 0, x_453);
lean_ctor_set(x_454, 1, x_7);
lean_ctor_set(x_454, 2, x_8);
lean_ctor_set(x_454, 3, x_452);
lean_ctor_set(x_454, 4, x_452);
lean_ctor_set(x_253, 4, x_452);
lean_ctor_set(x_253, 3, x_452);
lean_ctor_set(x_253, 0, x_453);
x_455 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_454);
lean_ctor_set(x_4, 2, x_451);
lean_ctor_set(x_4, 1, x_450);
lean_ctor_set(x_4, 0, x_455);
return x_4;
}
}
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; lean_object* x_465; 
x_456 = lean_ctor_get(x_253, 1);
x_457 = lean_ctor_get(x_253, 2);
lean_inc(x_457);
lean_inc(x_456);
lean_dec(x_253);
x_458 = lean_ctor_get(x_415, 1);
lean_inc(x_458);
x_459 = lean_ctor_get(x_415, 2);
lean_inc(x_459);
if (lean_is_exclusive(x_415)) {
 lean_ctor_release(x_415, 0);
 lean_ctor_release(x_415, 1);
 lean_ctor_release(x_415, 2);
 lean_ctor_release(x_415, 3);
 lean_ctor_release(x_415, 4);
 x_460 = x_415;
} else {
 lean_dec_ref(x_415);
 x_460 = lean_box(0);
}
x_461 = lean_box(1);
x_462 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_460)) {
 x_463 = lean_alloc_ctor(0, 5, 0);
} else {
 x_463 = x_460;
}
lean_ctor_set(x_463, 0, x_462);
lean_ctor_set(x_463, 1, x_7);
lean_ctor_set(x_463, 2, x_8);
lean_ctor_set(x_463, 3, x_461);
lean_ctor_set(x_463, 4, x_461);
x_464 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_464, 0, x_462);
lean_ctor_set(x_464, 1, x_456);
lean_ctor_set(x_464, 2, x_457);
lean_ctor_set(x_464, 3, x_461);
lean_ctor_set(x_464, 4, x_461);
x_465 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_464);
lean_ctor_set(x_4, 3, x_463);
lean_ctor_set(x_4, 2, x_459);
lean_ctor_set(x_4, 1, x_458);
lean_ctor_set(x_4, 0, x_465);
return x_4;
}
}
}
else
{
lean_object* x_466; 
x_466 = lean_ctor_get(x_253, 4);
lean_inc(x_466);
if (lean_obj_tag(x_466) == 0)
{
uint8_t x_467; 
x_467 = !lean_is_exclusive(x_253);
if (x_467 == 0)
{
lean_object* x_468; lean_object* x_469; lean_object* x_470; lean_object* x_471; lean_object* x_472; lean_object* x_473; lean_object* x_474; lean_object* x_475; 
x_468 = lean_ctor_get(x_253, 1);
x_469 = lean_ctor_get(x_253, 2);
x_470 = lean_ctor_get(x_253, 4);
lean_dec(x_470);
x_471 = lean_ctor_get(x_253, 3);
lean_dec(x_471);
x_472 = lean_ctor_get(x_253, 0);
lean_dec(x_472);
x_473 = lean_box(1);
x_474 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_253, 4, x_473);
lean_ctor_set(x_253, 3, x_473);
lean_ctor_set(x_253, 2, x_8);
lean_ctor_set(x_253, 1, x_7);
lean_ctor_set(x_253, 0, x_474);
x_475 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_253);
lean_ctor_set(x_4, 2, x_469);
lean_ctor_set(x_4, 1, x_468);
lean_ctor_set(x_4, 0, x_475);
return x_4;
}
else
{
lean_object* x_476; lean_object* x_477; lean_object* x_478; lean_object* x_479; lean_object* x_480; lean_object* x_481; 
x_476 = lean_ctor_get(x_253, 1);
x_477 = lean_ctor_get(x_253, 2);
lean_inc(x_477);
lean_inc(x_476);
lean_dec(x_253);
x_478 = lean_box(1);
x_479 = lean_unsigned_to_nat(1u);
x_480 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_480, 0, x_479);
lean_ctor_set(x_480, 1, x_7);
lean_ctor_set(x_480, 2, x_8);
lean_ctor_set(x_480, 3, x_478);
lean_ctor_set(x_480, 4, x_478);
x_481 = lean_unsigned_to_nat(3u);
lean_ctor_set(x_4, 4, x_466);
lean_ctor_set(x_4, 3, x_480);
lean_ctor_set(x_4, 2, x_477);
lean_ctor_set(x_4, 1, x_476);
lean_ctor_set(x_4, 0, x_481);
return x_4;
}
}
else
{
lean_object* x_482; lean_object* x_483; 
x_482 = lean_box(1);
x_483 = lean_unsigned_to_nat(2u);
lean_ctor_set(x_4, 4, x_253);
lean_ctor_set(x_4, 3, x_482);
lean_ctor_set(x_4, 0, x_483);
return x_4;
}
}
}
else
{
lean_object* x_484; lean_object* x_485; 
x_484 = lean_box(1);
x_485 = lean_unsigned_to_nat(1u);
lean_ctor_set(x_4, 4, x_484);
lean_ctor_set(x_4, 3, x_484);
lean_ctor_set(x_4, 0, x_485);
return x_4;
}
}
}
}
}
else
{
lean_object* x_486; lean_object* x_487; lean_object* x_488; lean_object* x_489; lean_object* x_490; lean_object* x_491; uint8_t x_492; 
x_486 = lean_ctor_get(x_4, 0);
x_487 = lean_ctor_get(x_4, 1);
x_488 = lean_ctor_get(x_4, 2);
x_489 = lean_ctor_get(x_4, 3);
x_490 = lean_ctor_get(x_4, 4);
lean_inc(x_490);
lean_inc(x_489);
lean_inc(x_488);
lean_inc(x_487);
lean_inc(x_486);
lean_dec(x_4);
lean_inc(x_1);
lean_inc(x_487);
lean_inc(x_2);
x_491 = lean_apply_2(x_1, x_2, x_487);
x_492 = lean_unbox(x_491);
lean_dec(x_491);
switch (x_492) {
case 0:
{
lean_object* x_493; 
lean_dec(x_486);
x_493 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg(x_1, x_2, x_3, x_489);
if (lean_obj_tag(x_490) == 0)
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_494; lean_object* x_495; lean_object* x_496; lean_object* x_497; lean_object* x_498; lean_object* x_499; lean_object* x_500; lean_object* x_501; uint8_t x_502; 
x_494 = lean_ctor_get(x_490, 0);
lean_inc(x_494);
x_495 = lean_ctor_get(x_493, 0);
lean_inc(x_495);
x_496 = lean_ctor_get(x_493, 1);
lean_inc(x_496);
x_497 = lean_ctor_get(x_493, 2);
lean_inc(x_497);
x_498 = lean_ctor_get(x_493, 3);
lean_inc(x_498);
x_499 = lean_ctor_get(x_493, 4);
lean_inc(x_499);
x_500 = lean_unsigned_to_nat(3u);
x_501 = lean_nat_mul(x_500, x_494);
x_502 = lean_nat_dec_lt(x_501, x_495);
lean_dec(x_501);
if (x_502 == 0)
{
lean_object* x_503; lean_object* x_504; lean_object* x_505; lean_object* x_506; 
lean_dec(x_499);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
x_503 = lean_unsigned_to_nat(1u);
x_504 = lean_nat_add(x_503, x_495);
lean_dec(x_495);
x_505 = lean_nat_add(x_504, x_494);
lean_dec(x_494);
lean_dec(x_504);
x_506 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_506, 0, x_505);
lean_ctor_set(x_506, 1, x_487);
lean_ctor_set(x_506, 2, x_488);
lean_ctor_set(x_506, 3, x_493);
lean_ctor_set(x_506, 4, x_490);
return x_506;
}
else
{
lean_object* x_507; 
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_507 = x_493;
} else {
 lean_dec_ref(x_493);
 x_507 = lean_box(0);
}
if (lean_obj_tag(x_498) == 0)
{
if (lean_obj_tag(x_499) == 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; uint8_t x_516; 
x_508 = lean_ctor_get(x_498, 0);
lean_inc(x_508);
x_509 = lean_ctor_get(x_499, 0);
lean_inc(x_509);
x_510 = lean_ctor_get(x_499, 1);
lean_inc(x_510);
x_511 = lean_ctor_get(x_499, 2);
lean_inc(x_511);
x_512 = lean_ctor_get(x_499, 3);
lean_inc(x_512);
x_513 = lean_ctor_get(x_499, 4);
lean_inc(x_513);
x_514 = lean_unsigned_to_nat(2u);
x_515 = lean_nat_mul(x_514, x_508);
x_516 = lean_nat_dec_lt(x_509, x_515);
lean_dec(x_515);
if (x_516 == 0)
{
lean_object* x_517; lean_object* x_518; lean_object* x_519; lean_object* x_520; lean_object* x_521; lean_object* x_522; 
lean_dec(x_509);
if (lean_is_exclusive(x_499)) {
 lean_ctor_release(x_499, 0);
 lean_ctor_release(x_499, 1);
 lean_ctor_release(x_499, 2);
 lean_ctor_release(x_499, 3);
 lean_ctor_release(x_499, 4);
 x_517 = x_499;
} else {
 lean_dec_ref(x_499);
 x_517 = lean_box(0);
}
x_518 = lean_unsigned_to_nat(1u);
x_519 = lean_nat_add(x_518, x_495);
lean_dec(x_495);
x_520 = lean_nat_add(x_519, x_494);
lean_dec(x_519);
x_521 = lean_nat_add(x_518, x_508);
lean_dec(x_508);
x_522 = lean_nat_add(x_518, x_494);
lean_dec(x_494);
if (lean_obj_tag(x_512) == 0)
{
lean_object* x_523; lean_object* x_524; lean_object* x_525; lean_object* x_526; 
x_523 = lean_ctor_get(x_512, 0);
lean_inc(x_523);
x_524 = lean_nat_add(x_521, x_523);
lean_dec(x_523);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_525 = lean_alloc_ctor(0, 5, 0);
} else {
 x_525 = x_517;
}
lean_ctor_set(x_525, 0, x_524);
lean_ctor_set(x_525, 1, x_496);
lean_ctor_set(x_525, 2, x_497);
lean_ctor_set(x_525, 3, x_498);
lean_ctor_set(x_525, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_526 = x_498;
} else {
 lean_dec_ref(x_498);
 x_526 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_527; lean_object* x_528; lean_object* x_529; lean_object* x_530; 
x_527 = lean_ctor_get(x_513, 0);
lean_inc(x_527);
x_528 = lean_nat_add(x_522, x_527);
lean_dec(x_527);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_529 = lean_alloc_ctor(0, 5, 0);
} else {
 x_529 = x_526;
}
lean_ctor_set(x_529, 0, x_528);
lean_ctor_set(x_529, 1, x_487);
lean_ctor_set(x_529, 2, x_488);
lean_ctor_set(x_529, 3, x_513);
lean_ctor_set(x_529, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_530 = lean_alloc_ctor(0, 5, 0);
} else {
 x_530 = x_507;
}
lean_ctor_set(x_530, 0, x_520);
lean_ctor_set(x_530, 1, x_510);
lean_ctor_set(x_530, 2, x_511);
lean_ctor_set(x_530, 3, x_525);
lean_ctor_set(x_530, 4, x_529);
return x_530;
}
else
{
lean_object* x_531; lean_object* x_532; lean_object* x_533; lean_object* x_534; 
x_531 = lean_unsigned_to_nat(0u);
x_532 = lean_nat_add(x_522, x_531);
lean_dec(x_522);
if (lean_is_scalar(x_526)) {
 x_533 = lean_alloc_ctor(0, 5, 0);
} else {
 x_533 = x_526;
}
lean_ctor_set(x_533, 0, x_532);
lean_ctor_set(x_533, 1, x_487);
lean_ctor_set(x_533, 2, x_488);
lean_ctor_set(x_533, 3, x_513);
lean_ctor_set(x_533, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_534 = lean_alloc_ctor(0, 5, 0);
} else {
 x_534 = x_507;
}
lean_ctor_set(x_534, 0, x_520);
lean_ctor_set(x_534, 1, x_510);
lean_ctor_set(x_534, 2, x_511);
lean_ctor_set(x_534, 3, x_525);
lean_ctor_set(x_534, 4, x_533);
return x_534;
}
}
else
{
lean_object* x_535; lean_object* x_536; lean_object* x_537; lean_object* x_538; 
x_535 = lean_unsigned_to_nat(0u);
x_536 = lean_nat_add(x_521, x_535);
lean_dec(x_521);
lean_inc(x_498);
if (lean_is_scalar(x_517)) {
 x_537 = lean_alloc_ctor(0, 5, 0);
} else {
 x_537 = x_517;
}
lean_ctor_set(x_537, 0, x_536);
lean_ctor_set(x_537, 1, x_496);
lean_ctor_set(x_537, 2, x_497);
lean_ctor_set(x_537, 3, x_498);
lean_ctor_set(x_537, 4, x_512);
if (lean_is_exclusive(x_498)) {
 lean_ctor_release(x_498, 0);
 lean_ctor_release(x_498, 1);
 lean_ctor_release(x_498, 2);
 lean_ctor_release(x_498, 3);
 lean_ctor_release(x_498, 4);
 x_538 = x_498;
} else {
 lean_dec_ref(x_498);
 x_538 = lean_box(0);
}
if (lean_obj_tag(x_513) == 0)
{
lean_object* x_539; lean_object* x_540; lean_object* x_541; lean_object* x_542; 
x_539 = lean_ctor_get(x_513, 0);
lean_inc(x_539);
x_540 = lean_nat_add(x_522, x_539);
lean_dec(x_539);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_541 = lean_alloc_ctor(0, 5, 0);
} else {
 x_541 = x_538;
}
lean_ctor_set(x_541, 0, x_540);
lean_ctor_set(x_541, 1, x_487);
lean_ctor_set(x_541, 2, x_488);
lean_ctor_set(x_541, 3, x_513);
lean_ctor_set(x_541, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_542 = lean_alloc_ctor(0, 5, 0);
} else {
 x_542 = x_507;
}
lean_ctor_set(x_542, 0, x_520);
lean_ctor_set(x_542, 1, x_510);
lean_ctor_set(x_542, 2, x_511);
lean_ctor_set(x_542, 3, x_537);
lean_ctor_set(x_542, 4, x_541);
return x_542;
}
else
{
lean_object* x_543; lean_object* x_544; lean_object* x_545; 
x_543 = lean_nat_add(x_522, x_535);
lean_dec(x_522);
if (lean_is_scalar(x_538)) {
 x_544 = lean_alloc_ctor(0, 5, 0);
} else {
 x_544 = x_538;
}
lean_ctor_set(x_544, 0, x_543);
lean_ctor_set(x_544, 1, x_487);
lean_ctor_set(x_544, 2, x_488);
lean_ctor_set(x_544, 3, x_513);
lean_ctor_set(x_544, 4, x_490);
if (lean_is_scalar(x_507)) {
 x_545 = lean_alloc_ctor(0, 5, 0);
} else {
 x_545 = x_507;
}
lean_ctor_set(x_545, 0, x_520);
lean_ctor_set(x_545, 1, x_510);
lean_ctor_set(x_545, 2, x_511);
lean_ctor_set(x_545, 3, x_537);
lean_ctor_set(x_545, 4, x_544);
return x_545;
}
}
}
else
{
lean_object* x_546; lean_object* x_547; lean_object* x_548; lean_object* x_549; lean_object* x_550; lean_object* x_551; lean_object* x_552; lean_object* x_553; 
lean_dec(x_513);
lean_dec(x_512);
lean_dec(x_511);
lean_dec(x_510);
lean_dec(x_508);
x_546 = lean_unsigned_to_nat(1u);
x_547 = lean_nat_add(x_546, x_495);
lean_dec(x_495);
x_548 = lean_nat_add(x_547, x_494);
lean_dec(x_547);
x_549 = lean_nat_add(x_546, x_494);
lean_dec(x_494);
x_550 = lean_nat_add(x_549, x_509);
lean_dec(x_509);
lean_dec(x_549);
lean_inc(x_490);
if (lean_is_scalar(x_507)) {
 x_551 = lean_alloc_ctor(0, 5, 0);
} else {
 x_551 = x_507;
}
lean_ctor_set(x_551, 0, x_550);
lean_ctor_set(x_551, 1, x_487);
lean_ctor_set(x_551, 2, x_488);
lean_ctor_set(x_551, 3, x_499);
lean_ctor_set(x_551, 4, x_490);
if (lean_is_exclusive(x_490)) {
 lean_ctor_release(x_490, 0);
 lean_ctor_release(x_490, 1);
 lean_ctor_release(x_490, 2);
 lean_ctor_release(x_490, 3);
 lean_ctor_release(x_490, 4);
 x_552 = x_490;
} else {
 lean_dec_ref(x_490);
 x_552 = lean_box(0);
}
if (lean_is_scalar(x_552)) {
 x_553 = lean_alloc_ctor(0, 5, 0);
} else {
 x_553 = x_552;
}
lean_ctor_set(x_553, 0, x_548);
lean_ctor_set(x_553, 1, x_496);
lean_ctor_set(x_553, 2, x_497);
lean_ctor_set(x_553, 3, x_498);
lean_ctor_set(x_553, 4, x_551);
return x_553;
}
}
else
{
lean_object* x_554; lean_object* x_555; 
lean_dec(x_507);
lean_dec(x_498);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_554 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4;
x_555 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__3___rarg(x_554);
return x_555;
}
}
else
{
lean_object* x_556; lean_object* x_557; 
lean_dec(x_507);
lean_dec(x_499);
lean_dec(x_497);
lean_dec(x_496);
lean_dec(x_495);
lean_dec(x_494);
lean_dec(x_490);
lean_dec(x_488);
lean_dec(x_487);
x_556 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5;
x_557 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__4___rarg(x_556);
return x_557;
}
}
}
else
{
lean_object* x_558; lean_object* x_559; lean_object* x_560; lean_object* x_561; lean_object* x_562; 
x_558 = lean_ctor_get(x_490, 0);
lean_inc(x_558);
x_559 = lean_unsigned_to_nat(1u);
x_560 = lean_nat_add(x_559, x_558);
lean_dec(x_558);
x_561 = lean_box(1);
x_562 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_562, 0, x_560);
lean_ctor_set(x_562, 1, x_487);
lean_ctor_set(x_562, 2, x_488);
lean_ctor_set(x_562, 3, x_561);
lean_ctor_set(x_562, 4, x_490);
return x_562;
}
}
else
{
if (lean_obj_tag(x_493) == 0)
{
lean_object* x_563; 
x_563 = lean_ctor_get(x_493, 3);
lean_inc(x_563);
if (lean_obj_tag(x_563) == 0)
{
lean_object* x_564; 
x_564 = lean_ctor_get(x_493, 4);
lean_inc(x_564);
if (lean_obj_tag(x_564) == 0)
{
lean_object* x_565; lean_object* x_566; lean_object* x_567; lean_object* x_568; lean_object* x_569; lean_object* x_570; lean_object* x_571; lean_object* x_572; lean_object* x_573; lean_object* x_574; lean_object* x_575; 
x_565 = lean_ctor_get(x_493, 0);
lean_inc(x_565);
x_566 = lean_ctor_get(x_493, 1);
lean_inc(x_566);
x_567 = lean_ctor_get(x_493, 2);
lean_inc(x_567);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_568 = x_493;
} else {
 lean_dec_ref(x_493);
 x_568 = lean_box(0);
}
x_569 = lean_ctor_get(x_564, 0);
lean_inc(x_569);
x_570 = lean_unsigned_to_nat(1u);
x_571 = lean_nat_add(x_570, x_565);
lean_dec(x_565);
x_572 = lean_nat_add(x_570, x_569);
lean_dec(x_569);
x_573 = lean_box(1);
if (lean_is_scalar(x_568)) {
 x_574 = lean_alloc_ctor(0, 5, 0);
} else {
 x_574 = x_568;
}
lean_ctor_set(x_574, 0, x_572);
lean_ctor_set(x_574, 1, x_487);
lean_ctor_set(x_574, 2, x_488);
lean_ctor_set(x_574, 3, x_564);
lean_ctor_set(x_574, 4, x_573);
x_575 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_575, 0, x_571);
lean_ctor_set(x_575, 1, x_566);
lean_ctor_set(x_575, 2, x_567);
lean_ctor_set(x_575, 3, x_563);
lean_ctor_set(x_575, 4, x_574);
return x_575;
}
else
{
lean_object* x_576; lean_object* x_577; lean_object* x_578; lean_object* x_579; lean_object* x_580; lean_object* x_581; lean_object* x_582; lean_object* x_583; 
x_576 = lean_ctor_get(x_493, 1);
lean_inc(x_576);
x_577 = lean_ctor_get(x_493, 2);
lean_inc(x_577);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_578 = x_493;
} else {
 lean_dec_ref(x_493);
 x_578 = lean_box(0);
}
x_579 = lean_box(1);
x_580 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_578)) {
 x_581 = lean_alloc_ctor(0, 5, 0);
} else {
 x_581 = x_578;
}
lean_ctor_set(x_581, 0, x_580);
lean_ctor_set(x_581, 1, x_487);
lean_ctor_set(x_581, 2, x_488);
lean_ctor_set(x_581, 3, x_579);
lean_ctor_set(x_581, 4, x_579);
x_582 = lean_unsigned_to_nat(3u);
x_583 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_583, 0, x_582);
lean_ctor_set(x_583, 1, x_576);
lean_ctor_set(x_583, 2, x_577);
lean_ctor_set(x_583, 3, x_563);
lean_ctor_set(x_583, 4, x_581);
return x_583;
}
}
else
{
lean_object* x_584; 
x_584 = lean_ctor_get(x_493, 4);
lean_inc(x_584);
if (lean_obj_tag(x_584) == 0)
{
lean_object* x_585; lean_object* x_586; lean_object* x_587; lean_object* x_588; lean_object* x_589; lean_object* x_590; lean_object* x_591; lean_object* x_592; lean_object* x_593; lean_object* x_594; lean_object* x_595; lean_object* x_596; 
x_585 = lean_ctor_get(x_493, 1);
lean_inc(x_585);
x_586 = lean_ctor_get(x_493, 2);
lean_inc(x_586);
if (lean_is_exclusive(x_493)) {
 lean_ctor_release(x_493, 0);
 lean_ctor_release(x_493, 1);
 lean_ctor_release(x_493, 2);
 lean_ctor_release(x_493, 3);
 lean_ctor_release(x_493, 4);
 x_587 = x_493;
} else {
 lean_dec_ref(x_493);
 x_587 = lean_box(0);
}
x_588 = lean_ctor_get(x_584, 1);
lean_inc(x_588);
x_589 = lean_ctor_get(x_584, 2);
lean_inc(x_589);
if (lean_is_exclusive(x_584)) {
 lean_ctor_release(x_584, 0);
 lean_ctor_release(x_584, 1);
 lean_ctor_release(x_584, 2);
 lean_ctor_release(x_584, 3);
 lean_ctor_release(x_584, 4);
 x_590 = x_584;
} else {
 lean_dec_ref(x_584);
 x_590 = lean_box(0);
}
x_591 = lean_box(1);
x_592 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_590)) {
 x_593 = lean_alloc_ctor(0, 5, 0);
} else {
 x_593 = x_590;
}
lean_ctor_set(x_593, 0, x_592);
lean_ctor_set(x_593, 1, x_585);
lean_ctor_set(x_593, 2, x_586);
lean_ctor_set(x_593, 3, x_591);
lean_ctor_set(x_593, 4, x_591);
if (lean_is_scalar(x_587)) {
 x_594 = lean_alloc_ctor(0, 5, 0);
} else {
 x_594 = x_587;
}
lean_ctor_set(x_594, 0, x_592);
lean_ctor_set(x_594, 1, x_487);
lean_ctor_set(x_594, 2, x_488);
lean_ctor_set(x_594, 3, x_591);
lean_ctor_set(x_594, 4, x_591);
x_595 = lean_unsigned_to_nat(3u);
x_596 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_596, 0, x_595);
lean_ctor_set(x_596, 1, x_588);
lean_ctor_set(x_596, 2, x_589);
lean_ctor_set(x_596, 3, x_593);
lean_ctor_set(x_596, 4, x_594);
return x_596;
}
else
{
lean_object* x_597; lean_object* x_598; lean_object* x_599; 
x_597 = lean_box(1);
x_598 = lean_unsigned_to_nat(2u);
x_599 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_599, 0, x_598);
lean_ctor_set(x_599, 1, x_487);
lean_ctor_set(x_599, 2, x_488);
lean_ctor_set(x_599, 3, x_493);
lean_ctor_set(x_599, 4, x_597);
return x_599;
}
}
}
else
{
lean_object* x_600; lean_object* x_601; lean_object* x_602; 
x_600 = lean_box(1);
x_601 = lean_unsigned_to_nat(1u);
x_602 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_602, 0, x_601);
lean_ctor_set(x_602, 1, x_487);
lean_ctor_set(x_602, 2, x_488);
lean_ctor_set(x_602, 3, x_600);
lean_ctor_set(x_602, 4, x_600);
return x_602;
}
}
}
case 1:
{
lean_object* x_603; 
lean_dec(x_488);
lean_dec(x_487);
lean_dec(x_1);
x_603 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_603, 0, x_486);
lean_ctor_set(x_603, 1, x_2);
lean_ctor_set(x_603, 2, x_3);
lean_ctor_set(x_603, 3, x_489);
lean_ctor_set(x_603, 4, x_490);
return x_603;
}
default: 
{
lean_object* x_604; 
lean_dec(x_486);
x_604 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg(x_1, x_2, x_3, x_490);
if (lean_obj_tag(x_489) == 0)
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_605; lean_object* x_606; lean_object* x_607; lean_object* x_608; lean_object* x_609; lean_object* x_610; lean_object* x_611; lean_object* x_612; uint8_t x_613; 
x_605 = lean_ctor_get(x_489, 0);
lean_inc(x_605);
x_606 = lean_ctor_get(x_604, 0);
lean_inc(x_606);
x_607 = lean_ctor_get(x_604, 1);
lean_inc(x_607);
x_608 = lean_ctor_get(x_604, 2);
lean_inc(x_608);
x_609 = lean_ctor_get(x_604, 3);
lean_inc(x_609);
x_610 = lean_ctor_get(x_604, 4);
lean_inc(x_610);
x_611 = lean_unsigned_to_nat(3u);
x_612 = lean_nat_mul(x_611, x_605);
x_613 = lean_nat_dec_lt(x_612, x_606);
lean_dec(x_612);
if (x_613 == 0)
{
lean_object* x_614; lean_object* x_615; lean_object* x_616; lean_object* x_617; 
lean_dec(x_610);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
x_614 = lean_unsigned_to_nat(1u);
x_615 = lean_nat_add(x_614, x_605);
lean_dec(x_605);
x_616 = lean_nat_add(x_615, x_606);
lean_dec(x_606);
lean_dec(x_615);
x_617 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_617, 0, x_616);
lean_ctor_set(x_617, 1, x_487);
lean_ctor_set(x_617, 2, x_488);
lean_ctor_set(x_617, 3, x_489);
lean_ctor_set(x_617, 4, x_604);
return x_617;
}
else
{
lean_object* x_618; 
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_618 = x_604;
} else {
 lean_dec_ref(x_604);
 x_618 = lean_box(0);
}
if (lean_obj_tag(x_609) == 0)
{
if (lean_obj_tag(x_610) == 0)
{
lean_object* x_619; lean_object* x_620; lean_object* x_621; lean_object* x_622; lean_object* x_623; lean_object* x_624; lean_object* x_625; lean_object* x_626; uint8_t x_627; 
x_619 = lean_ctor_get(x_609, 0);
lean_inc(x_619);
x_620 = lean_ctor_get(x_609, 1);
lean_inc(x_620);
x_621 = lean_ctor_get(x_609, 2);
lean_inc(x_621);
x_622 = lean_ctor_get(x_609, 3);
lean_inc(x_622);
x_623 = lean_ctor_get(x_609, 4);
lean_inc(x_623);
x_624 = lean_ctor_get(x_610, 0);
lean_inc(x_624);
x_625 = lean_unsigned_to_nat(2u);
x_626 = lean_nat_mul(x_625, x_624);
x_627 = lean_nat_dec_lt(x_619, x_626);
lean_dec(x_626);
if (x_627 == 0)
{
lean_object* x_628; lean_object* x_629; lean_object* x_630; lean_object* x_631; lean_object* x_632; 
lean_dec(x_619);
if (lean_is_exclusive(x_609)) {
 lean_ctor_release(x_609, 0);
 lean_ctor_release(x_609, 1);
 lean_ctor_release(x_609, 2);
 lean_ctor_release(x_609, 3);
 lean_ctor_release(x_609, 4);
 x_628 = x_609;
} else {
 lean_dec_ref(x_609);
 x_628 = lean_box(0);
}
x_629 = lean_unsigned_to_nat(1u);
x_630 = lean_nat_add(x_629, x_605);
lean_dec(x_605);
x_631 = lean_nat_add(x_630, x_606);
lean_dec(x_606);
x_632 = lean_nat_add(x_629, x_624);
lean_dec(x_624);
if (lean_obj_tag(x_622) == 0)
{
lean_object* x_633; lean_object* x_634; lean_object* x_635; lean_object* x_636; 
x_633 = lean_ctor_get(x_622, 0);
lean_inc(x_633);
x_634 = lean_nat_add(x_630, x_633);
lean_dec(x_633);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_635 = lean_alloc_ctor(0, 5, 0);
} else {
 x_635 = x_628;
}
lean_ctor_set(x_635, 0, x_634);
lean_ctor_set(x_635, 1, x_487);
lean_ctor_set(x_635, 2, x_488);
lean_ctor_set(x_635, 3, x_489);
lean_ctor_set(x_635, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_636 = x_489;
} else {
 lean_dec_ref(x_489);
 x_636 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_637; lean_object* x_638; lean_object* x_639; lean_object* x_640; 
x_637 = lean_ctor_get(x_623, 0);
lean_inc(x_637);
x_638 = lean_nat_add(x_632, x_637);
lean_dec(x_637);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_639 = lean_alloc_ctor(0, 5, 0);
} else {
 x_639 = x_618;
}
lean_ctor_set(x_639, 0, x_638);
lean_ctor_set(x_639, 1, x_607);
lean_ctor_set(x_639, 2, x_608);
lean_ctor_set(x_639, 3, x_623);
lean_ctor_set(x_639, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_640 = lean_alloc_ctor(0, 5, 0);
} else {
 x_640 = x_636;
}
lean_ctor_set(x_640, 0, x_631);
lean_ctor_set(x_640, 1, x_620);
lean_ctor_set(x_640, 2, x_621);
lean_ctor_set(x_640, 3, x_635);
lean_ctor_set(x_640, 4, x_639);
return x_640;
}
else
{
lean_object* x_641; lean_object* x_642; lean_object* x_643; lean_object* x_644; 
x_641 = lean_unsigned_to_nat(0u);
x_642 = lean_nat_add(x_632, x_641);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_643 = lean_alloc_ctor(0, 5, 0);
} else {
 x_643 = x_618;
}
lean_ctor_set(x_643, 0, x_642);
lean_ctor_set(x_643, 1, x_607);
lean_ctor_set(x_643, 2, x_608);
lean_ctor_set(x_643, 3, x_623);
lean_ctor_set(x_643, 4, x_610);
if (lean_is_scalar(x_636)) {
 x_644 = lean_alloc_ctor(0, 5, 0);
} else {
 x_644 = x_636;
}
lean_ctor_set(x_644, 0, x_631);
lean_ctor_set(x_644, 1, x_620);
lean_ctor_set(x_644, 2, x_621);
lean_ctor_set(x_644, 3, x_635);
lean_ctor_set(x_644, 4, x_643);
return x_644;
}
}
else
{
lean_object* x_645; lean_object* x_646; lean_object* x_647; lean_object* x_648; 
x_645 = lean_unsigned_to_nat(0u);
x_646 = lean_nat_add(x_630, x_645);
lean_dec(x_630);
lean_inc(x_489);
if (lean_is_scalar(x_628)) {
 x_647 = lean_alloc_ctor(0, 5, 0);
} else {
 x_647 = x_628;
}
lean_ctor_set(x_647, 0, x_646);
lean_ctor_set(x_647, 1, x_487);
lean_ctor_set(x_647, 2, x_488);
lean_ctor_set(x_647, 3, x_489);
lean_ctor_set(x_647, 4, x_622);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_648 = x_489;
} else {
 lean_dec_ref(x_489);
 x_648 = lean_box(0);
}
if (lean_obj_tag(x_623) == 0)
{
lean_object* x_649; lean_object* x_650; lean_object* x_651; lean_object* x_652; 
x_649 = lean_ctor_get(x_623, 0);
lean_inc(x_649);
x_650 = lean_nat_add(x_632, x_649);
lean_dec(x_649);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_651 = lean_alloc_ctor(0, 5, 0);
} else {
 x_651 = x_618;
}
lean_ctor_set(x_651, 0, x_650);
lean_ctor_set(x_651, 1, x_607);
lean_ctor_set(x_651, 2, x_608);
lean_ctor_set(x_651, 3, x_623);
lean_ctor_set(x_651, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_652 = lean_alloc_ctor(0, 5, 0);
} else {
 x_652 = x_648;
}
lean_ctor_set(x_652, 0, x_631);
lean_ctor_set(x_652, 1, x_620);
lean_ctor_set(x_652, 2, x_621);
lean_ctor_set(x_652, 3, x_647);
lean_ctor_set(x_652, 4, x_651);
return x_652;
}
else
{
lean_object* x_653; lean_object* x_654; lean_object* x_655; 
x_653 = lean_nat_add(x_632, x_645);
lean_dec(x_632);
if (lean_is_scalar(x_618)) {
 x_654 = lean_alloc_ctor(0, 5, 0);
} else {
 x_654 = x_618;
}
lean_ctor_set(x_654, 0, x_653);
lean_ctor_set(x_654, 1, x_607);
lean_ctor_set(x_654, 2, x_608);
lean_ctor_set(x_654, 3, x_623);
lean_ctor_set(x_654, 4, x_610);
if (lean_is_scalar(x_648)) {
 x_655 = lean_alloc_ctor(0, 5, 0);
} else {
 x_655 = x_648;
}
lean_ctor_set(x_655, 0, x_631);
lean_ctor_set(x_655, 1, x_620);
lean_ctor_set(x_655, 2, x_621);
lean_ctor_set(x_655, 3, x_647);
lean_ctor_set(x_655, 4, x_654);
return x_655;
}
}
}
else
{
lean_object* x_656; lean_object* x_657; lean_object* x_658; lean_object* x_659; lean_object* x_660; lean_object* x_661; lean_object* x_662; 
lean_dec(x_624);
lean_dec(x_623);
lean_dec(x_622);
lean_dec(x_621);
lean_dec(x_620);
x_656 = lean_unsigned_to_nat(1u);
x_657 = lean_nat_add(x_656, x_605);
lean_dec(x_605);
x_658 = lean_nat_add(x_657, x_606);
lean_dec(x_606);
x_659 = lean_nat_add(x_657, x_619);
lean_dec(x_619);
lean_dec(x_657);
lean_inc(x_489);
if (lean_is_scalar(x_618)) {
 x_660 = lean_alloc_ctor(0, 5, 0);
} else {
 x_660 = x_618;
}
lean_ctor_set(x_660, 0, x_659);
lean_ctor_set(x_660, 1, x_487);
lean_ctor_set(x_660, 2, x_488);
lean_ctor_set(x_660, 3, x_489);
lean_ctor_set(x_660, 4, x_609);
if (lean_is_exclusive(x_489)) {
 lean_ctor_release(x_489, 0);
 lean_ctor_release(x_489, 1);
 lean_ctor_release(x_489, 2);
 lean_ctor_release(x_489, 3);
 lean_ctor_release(x_489, 4);
 x_661 = x_489;
} else {
 lean_dec_ref(x_489);
 x_661 = lean_box(0);
}
if (lean_is_scalar(x_661)) {
 x_662 = lean_alloc_ctor(0, 5, 0);
} else {
 x_662 = x_661;
}
lean_ctor_set(x_662, 0, x_658);
lean_ctor_set(x_662, 1, x_607);
lean_ctor_set(x_662, 2, x_608);
lean_ctor_set(x_662, 3, x_660);
lean_ctor_set(x_662, 4, x_610);
return x_662;
}
}
else
{
lean_object* x_663; lean_object* x_664; 
lean_dec(x_618);
lean_dec(x_609);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_663 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8;
x_664 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__5___rarg(x_663);
return x_664;
}
}
else
{
lean_object* x_665; lean_object* x_666; 
lean_dec(x_618);
lean_dec(x_610);
lean_dec(x_608);
lean_dec(x_607);
lean_dec(x_606);
lean_dec(x_605);
lean_dec(x_489);
lean_dec(x_488);
lean_dec(x_487);
x_665 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9;
x_666 = l_panic___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__6___rarg(x_665);
return x_666;
}
}
}
else
{
lean_object* x_667; lean_object* x_668; lean_object* x_669; lean_object* x_670; lean_object* x_671; 
x_667 = lean_ctor_get(x_489, 0);
lean_inc(x_667);
x_668 = lean_unsigned_to_nat(1u);
x_669 = lean_nat_add(x_668, x_667);
lean_dec(x_667);
x_670 = lean_box(1);
x_671 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_671, 0, x_669);
lean_ctor_set(x_671, 1, x_487);
lean_ctor_set(x_671, 2, x_488);
lean_ctor_set(x_671, 3, x_489);
lean_ctor_set(x_671, 4, x_670);
return x_671;
}
}
else
{
if (lean_obj_tag(x_604) == 0)
{
lean_object* x_672; 
x_672 = lean_ctor_get(x_604, 3);
lean_inc(x_672);
if (lean_obj_tag(x_672) == 0)
{
lean_object* x_673; 
x_673 = lean_ctor_get(x_604, 4);
lean_inc(x_673);
if (lean_obj_tag(x_673) == 0)
{
lean_object* x_674; lean_object* x_675; lean_object* x_676; lean_object* x_677; lean_object* x_678; lean_object* x_679; lean_object* x_680; lean_object* x_681; lean_object* x_682; lean_object* x_683; lean_object* x_684; 
x_674 = lean_ctor_get(x_604, 0);
lean_inc(x_674);
x_675 = lean_ctor_get(x_604, 1);
lean_inc(x_675);
x_676 = lean_ctor_get(x_604, 2);
lean_inc(x_676);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_677 = x_604;
} else {
 lean_dec_ref(x_604);
 x_677 = lean_box(0);
}
x_678 = lean_ctor_get(x_672, 0);
lean_inc(x_678);
x_679 = lean_unsigned_to_nat(1u);
x_680 = lean_nat_add(x_679, x_674);
lean_dec(x_674);
x_681 = lean_nat_add(x_679, x_678);
lean_dec(x_678);
x_682 = lean_box(1);
if (lean_is_scalar(x_677)) {
 x_683 = lean_alloc_ctor(0, 5, 0);
} else {
 x_683 = x_677;
}
lean_ctor_set(x_683, 0, x_681);
lean_ctor_set(x_683, 1, x_487);
lean_ctor_set(x_683, 2, x_488);
lean_ctor_set(x_683, 3, x_682);
lean_ctor_set(x_683, 4, x_672);
x_684 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_684, 0, x_680);
lean_ctor_set(x_684, 1, x_675);
lean_ctor_set(x_684, 2, x_676);
lean_ctor_set(x_684, 3, x_683);
lean_ctor_set(x_684, 4, x_673);
return x_684;
}
else
{
lean_object* x_685; lean_object* x_686; lean_object* x_687; lean_object* x_688; lean_object* x_689; lean_object* x_690; lean_object* x_691; lean_object* x_692; lean_object* x_693; lean_object* x_694; lean_object* x_695; lean_object* x_696; 
x_685 = lean_ctor_get(x_604, 1);
lean_inc(x_685);
x_686 = lean_ctor_get(x_604, 2);
lean_inc(x_686);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_687 = x_604;
} else {
 lean_dec_ref(x_604);
 x_687 = lean_box(0);
}
x_688 = lean_ctor_get(x_672, 1);
lean_inc(x_688);
x_689 = lean_ctor_get(x_672, 2);
lean_inc(x_689);
if (lean_is_exclusive(x_672)) {
 lean_ctor_release(x_672, 0);
 lean_ctor_release(x_672, 1);
 lean_ctor_release(x_672, 2);
 lean_ctor_release(x_672, 3);
 lean_ctor_release(x_672, 4);
 x_690 = x_672;
} else {
 lean_dec_ref(x_672);
 x_690 = lean_box(0);
}
x_691 = lean_box(1);
x_692 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_690)) {
 x_693 = lean_alloc_ctor(0, 5, 0);
} else {
 x_693 = x_690;
}
lean_ctor_set(x_693, 0, x_692);
lean_ctor_set(x_693, 1, x_487);
lean_ctor_set(x_693, 2, x_488);
lean_ctor_set(x_693, 3, x_691);
lean_ctor_set(x_693, 4, x_691);
if (lean_is_scalar(x_687)) {
 x_694 = lean_alloc_ctor(0, 5, 0);
} else {
 x_694 = x_687;
}
lean_ctor_set(x_694, 0, x_692);
lean_ctor_set(x_694, 1, x_685);
lean_ctor_set(x_694, 2, x_686);
lean_ctor_set(x_694, 3, x_691);
lean_ctor_set(x_694, 4, x_691);
x_695 = lean_unsigned_to_nat(3u);
x_696 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_696, 0, x_695);
lean_ctor_set(x_696, 1, x_688);
lean_ctor_set(x_696, 2, x_689);
lean_ctor_set(x_696, 3, x_693);
lean_ctor_set(x_696, 4, x_694);
return x_696;
}
}
else
{
lean_object* x_697; 
x_697 = lean_ctor_get(x_604, 4);
lean_inc(x_697);
if (lean_obj_tag(x_697) == 0)
{
lean_object* x_698; lean_object* x_699; lean_object* x_700; lean_object* x_701; lean_object* x_702; lean_object* x_703; lean_object* x_704; lean_object* x_705; 
x_698 = lean_ctor_get(x_604, 1);
lean_inc(x_698);
x_699 = lean_ctor_get(x_604, 2);
lean_inc(x_699);
if (lean_is_exclusive(x_604)) {
 lean_ctor_release(x_604, 0);
 lean_ctor_release(x_604, 1);
 lean_ctor_release(x_604, 2);
 lean_ctor_release(x_604, 3);
 lean_ctor_release(x_604, 4);
 x_700 = x_604;
} else {
 lean_dec_ref(x_604);
 x_700 = lean_box(0);
}
x_701 = lean_box(1);
x_702 = lean_unsigned_to_nat(1u);
if (lean_is_scalar(x_700)) {
 x_703 = lean_alloc_ctor(0, 5, 0);
} else {
 x_703 = x_700;
}
lean_ctor_set(x_703, 0, x_702);
lean_ctor_set(x_703, 1, x_487);
lean_ctor_set(x_703, 2, x_488);
lean_ctor_set(x_703, 3, x_701);
lean_ctor_set(x_703, 4, x_701);
x_704 = lean_unsigned_to_nat(3u);
x_705 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_705, 0, x_704);
lean_ctor_set(x_705, 1, x_698);
lean_ctor_set(x_705, 2, x_699);
lean_ctor_set(x_705, 3, x_703);
lean_ctor_set(x_705, 4, x_697);
return x_705;
}
else
{
lean_object* x_706; lean_object* x_707; lean_object* x_708; 
x_706 = lean_box(1);
x_707 = lean_unsigned_to_nat(2u);
x_708 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_708, 0, x_707);
lean_ctor_set(x_708, 1, x_487);
lean_ctor_set(x_708, 2, x_488);
lean_ctor_set(x_708, 3, x_706);
lean_ctor_set(x_708, 4, x_604);
return x_708;
}
}
}
else
{
lean_object* x_709; lean_object* x_710; lean_object* x_711; 
x_709 = lean_box(1);
x_710 = lean_unsigned_to_nat(1u);
x_711 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_711, 0, x_710);
lean_ctor_set(x_711, 1, x_487);
lean_ctor_set(x_711, 2, x_488);
lean_ctor_set(x_711, 3, x_709);
lean_ctor_set(x_711, 4, x_709);
return x_711;
}
}
}
}
}
}
else
{
lean_object* x_712; lean_object* x_713; lean_object* x_714; 
lean_dec(x_1);
x_712 = lean_box(1);
x_713 = lean_unsigned_to_nat(1u);
x_714 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_714, 0, x_713);
lean_ctor_set(x_714, 1, x_2);
lean_ctor_set(x_714, 2, x_3);
lean_ctor_set(x_714, 3, x_712);
lean_ctor_set(x_714, 4, x_712);
return x_714;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg), 4, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___rarg___lambda__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
lean_inc(x_3);
lean_inc(x_2);
lean_inc(x_1);
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1___rarg(x_1, x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__2___rarg(x_1, x_2, x_5, x_3);
x_7 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_7, 0, x_6);
return x_7;
}
else
{
lean_object* x_8; 
lean_dec(x_2);
lean_dec(x_1);
x_8 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_8, 0, x_3);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_6 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___rarg___lambda__1), 3, 1);
lean_closure_set(x_6, 0, x_1);
x_7 = l_Id_instMonad;
x_8 = lean_apply_5(x_3, lean_box(0), x_7, x_5, x_4, x_6);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___rarg), 5, 0);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_DTreeMap_Internal_Impl_contains___at_Std_DTreeMap_Raw_Const_insertManyIfNewUnit___spec__1___rarg(x_1, x_2, x_3);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg(x_1, x_6);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_7);
x_1 = x_9;
x_2 = x_5;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg___boxed), 2, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_repr___at_Std_DTreeMap_Raw_instRepr___spec__3___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_Sigma_repr___rarg(x_1, x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_repr___at_Std_DTreeMap_Raw_instRepr___spec__3(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_repr___at_Std_DTreeMap_Raw_instRepr___spec__3___rarg), 3, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at_Std_DTreeMap_Raw_instRepr___spec__5___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
if (lean_obj_tag(x_5) == 0)
{
lean_dec(x_3);
lean_dec(x_2);
lean_dec(x_1);
return x_4;
}
else
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_3);
lean_ctor_set_tag(x_5, 5);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 0, x_4);
x_9 = lean_unsigned_to_nat(0u);
lean_inc(x_2);
lean_inc(x_1);
x_10 = l_Sigma_repr___rarg(x_1, x_2, x_7, x_9);
x_11 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_11, 0, x_5);
lean_ctor_set(x_11, 1, x_10);
x_4 = x_11;
x_5 = x_8;
goto _start;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_13 = lean_ctor_get(x_5, 0);
x_14 = lean_ctor_get(x_5, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_5);
lean_inc(x_3);
x_15 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_15, 0, x_4);
lean_ctor_set(x_15, 1, x_3);
x_16 = lean_unsigned_to_nat(0u);
lean_inc(x_2);
lean_inc(x_1);
x_17 = l_Sigma_repr___rarg(x_1, x_2, x_13, x_16);
x_18 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_18, 0, x_15);
lean_ctor_set(x_18, 1, x_17);
x_4 = x_18;
x_5 = x_14;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_List_foldl___at_Std_DTreeMap_Raw_instRepr___spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_List_foldl___at_Std_DTreeMap_Raw_instRepr___spec__5___rarg), 5, 0);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Std_DTreeMap_Raw_instRepr___spec__4___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; 
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
x_5 = lean_box(0);
return x_5;
}
else
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_6);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
lean_dec(x_4);
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec(x_3);
x_8 = lean_unsigned_to_nat(0u);
x_9 = l_Sigma_repr___rarg(x_1, x_2, x_7, x_8);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_unsigned_to_nat(0u);
lean_inc(x_2);
lean_inc(x_1);
x_12 = l_Sigma_repr___rarg(x_1, x_2, x_10, x_11);
x_13 = l_List_foldl___at_Std_DTreeMap_Raw_instRepr___spec__5___rarg(x_1, x_2, x_4, x_12, x_6);
return x_13;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at_Std_DTreeMap_Raw_instRepr___spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Std_Format_joinSep___at_Std_DTreeMap_Raw_instRepr___spec__4___rarg), 4, 0);
return x_3;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("[]", 2, 2);
return x_1;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__1;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__4;
x_2 = lean_box(1);
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("[", 1, 1);
return x_1;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__6;
x_2 = lean_string_length(x_1);
return x_2;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__7;
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__6;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__10;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_5; 
lean_dec(x_2);
lean_dec(x_1);
x_5 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__2;
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__5;
lean_inc(x_3);
x_7 = l_Std_Format_joinSep___at_Std_DTreeMap_Raw_instRepr___spec__4___rarg(x_1, x_2, x_3, x_6);
x_8 = !lean_is_exclusive(x_3);
if (x_8 == 0)
{
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; 
x_9 = lean_ctor_get(x_3, 1);
lean_dec(x_9);
x_10 = lean_ctor_get(x_3, 0);
lean_dec(x_10);
x_11 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__9;
lean_ctor_set_tag(x_3, 5);
lean_ctor_set(x_3, 1, x_7);
lean_ctor_set(x_3, 0, x_11);
x_12 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__11;
x_13 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_13, 0, x_3);
lean_ctor_set(x_13, 1, x_12);
x_14 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__8;
x_15 = lean_alloc_ctor(4, 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(6, 1, 1);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set_uint8(x_17, sizeof(void*)*1, x_16);
return x_17;
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; uint8_t x_24; lean_object* x_25; 
lean_dec(x_3);
x_18 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__9;
x_19 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_19, 0, x_18);
lean_ctor_set(x_19, 1, x_7);
x_20 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__11;
x_21 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_21, 0, x_19);
lean_ctor_set(x_21, 1, x_20);
x_22 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__8;
x_23 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_21);
x_24 = 0;
x_25 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_25, 0, x_23);
lean_ctor_set_uint8(x_25, sizeof(void*)*1, x_24);
return x_25;
}
}
}
}
LEAN_EXPORT lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___boxed), 4, 0);
return x_3;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_instRepr___rarg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std.DTreeMap.Raw.ofList ", 24, 24);
return x_1;
}
}
static lean_object* _init_l_Std_DTreeMap_Raw_instRepr___rarg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Std_DTreeMap_Raw_instRepr___rarg___closed__1;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_5 = lean_box(0);
x_6 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg(x_5, x_3);
x_7 = lean_unsigned_to_nat(0u);
x_8 = l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg(x_1, x_2, x_6, x_7);
x_9 = l_Std_DTreeMap_Raw_instRepr___rarg___closed__2;
x_10 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_10, 0, x_9);
lean_ctor_set(x_10, 1, x_8);
x_11 = l_Repr_addAppParen(x_10, x_4);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_alloc_closure((void*)(l_Std_DTreeMap_Raw_instRepr___rarg___boxed), 4, 0);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldrM___at_Std_DTreeMap_Raw_instRepr___spec__1___rarg(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___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_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr___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_Std_DTreeMap_Raw_instRepr___rarg(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Raw_instRepr___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Raw_instRepr(x_1, x_2, x_3);
lean_dec(x_3);
return x_4;
}
}
lean_object* initialize_Std_Data_DTreeMap_Internal_WF_Defs(uint8_t builtin, lean_object*);
lean_object* initialize_Std_Data_DTreeMap_Basic(uint8_t builtin, lean_object*);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Std_Data_DTreeMap_Raw_Basic(uint8_t builtin, lean_object* w) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Std_Data_DTreeMap_Internal_WF_Defs(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Std_Data_DTreeMap_Basic(builtin, lean_io_mk_world());
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__1);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__2);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__3);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__4 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__4();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__4);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__5 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__5();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__5);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__6);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__7 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__7();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__7);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__8 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__8();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__8);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__9 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__9();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__9);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__10 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__10();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__10);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__11 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__11();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__11);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__12 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__12();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__12);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__13 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__13();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__13);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__14 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__14();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__14);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__15);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__16 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__16();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__16);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__17 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__17();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__17);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__18 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__18();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__18);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__19 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__19();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__19);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__20 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__20();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__20);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__21 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__21();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__21);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__22 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__22();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__22);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__23 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__23();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__23);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__24 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__24();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__24);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__25 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__25();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__25);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__26 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__26();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__26);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27 = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69____closed__27);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69_ = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69_();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_69_);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__1);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__2 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__2);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__3 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__3();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__3);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__4);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__5);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__6 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__6();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__6);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__7 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__7();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__7);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__8);
l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9 = _init_l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_insert_x21___at_Std_DTreeMap_Raw_insert___spec__1___rarg___closed__9);
l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1 = _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__1);
l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__2 = _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__2);
l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3 = _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__3);
l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__4 = _init_l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__4();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_get_x21___at_Std_DTreeMap_Raw_get_x21___spec__1___rarg___closed__4);
l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__1 = _init_l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__1);
l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__2 = _init_l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_getKey_x21___at_Std_DTreeMap_Raw_getKey_x21___spec__1___rarg___closed__2);
l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__1 = _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__1);
l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__2 = _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__2);
l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__3 = _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__3();
lean_mark_persistent(l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__3);
l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4 = _init_l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4();
lean_mark_persistent(l_Std_DTreeMap_Raw_getEntryGE_x21___rarg___closed__4);
l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__1 = _init_l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__1);
l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__2 = _init_l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_Const_get_x21___at_Std_DTreeMap_Raw_Const_get_x21___spec__1___rarg___closed__2);
l_Std_DTreeMap_Raw_partition___rarg___closed__1 = _init_l_Std_DTreeMap_Raw_partition___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Raw_partition___rarg___closed__1);
l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__1 = _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__1);
l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__2 = _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__2);
l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__3 = _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__3();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_any___spec__1___rarg___closed__3);
l_Std_DTreeMap_Raw_any___rarg___closed__1 = _init_l_Std_DTreeMap_Raw_any___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Raw_any___rarg___closed__1);
l_Std_DTreeMap_Raw_any___rarg___closed__2 = _init_l_Std_DTreeMap_Raw_any___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Raw_any___rarg___closed__2);
l_Std_DTreeMap_Raw_any___rarg___closed__3 = _init_l_Std_DTreeMap_Raw_any___rarg___closed__3();
lean_mark_persistent(l_Std_DTreeMap_Raw_any___rarg___closed__3);
l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__1 = _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__1);
l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__2 = _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__2);
l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__3 = _init_l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__3();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_forInStep___at_Std_DTreeMap_Raw_all___spec__1___rarg___closed__3);
l_Std_DTreeMap_Raw_all___rarg___closed__1 = _init_l_Std_DTreeMap_Raw_all___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Raw_all___rarg___closed__1);
l_Std_DTreeMap_Raw_all___rarg___closed__2 = _init_l_Std_DTreeMap_Raw_all___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Raw_all___rarg___closed__2);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5700_ = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5700_();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5700_);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5835_ = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5835_();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_5835_);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6193_ = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6193_();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6193_);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6240_ = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6240_();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6240_);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6327_ = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6327_();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6327_);
l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6374_ = _init_l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6374_();
lean_mark_persistent(l___auto____x40_Std_Data_DTreeMap_Raw_Basic___hyg_6374_);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__1 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__1();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__1);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__2 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__2();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__2);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__3 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__3();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__3);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__4 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__4();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__4);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__5 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__5();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__5);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__6 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__6();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__6);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__7 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__7();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__7);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__8 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__8();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__8);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__9 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__9();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__9);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__10 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__10();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__10);
l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__11 = _init_l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__11();
lean_mark_persistent(l_List_repr___at_Std_DTreeMap_Raw_instRepr___spec__2___rarg___closed__11);
l_Std_DTreeMap_Raw_instRepr___rarg___closed__1 = _init_l_Std_DTreeMap_Raw_instRepr___rarg___closed__1();
lean_mark_persistent(l_Std_DTreeMap_Raw_instRepr___rarg___closed__1);
l_Std_DTreeMap_Raw_instRepr___rarg___closed__2 = _init_l_Std_DTreeMap_Raw_instRepr___rarg___closed__2();
lean_mark_persistent(l_Std_DTreeMap_Raw_instRepr___rarg___closed__2);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
