text: // Lean compiler output
  // Module: Lean.Util.MonadCache
  // Imports: Init Std.Data.HashMap
  #include <lean/lean.h>
  #if defined(__clang__)
  #pragma clang diagnostic ignored "-Wunused-parameter"
  #pragma clang diagnostic ignored "-Wunused-label"
  #elif defined(__GNUC__) && !defined(__CLANG__)
  #pragma GCC diagnostic ignored "-Wunused-parameter"
  #pragma GCC diagnostic ignored "-Wunused-label"
  #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
  #endif
  #ifdef __cplusplus
  extern "C" {
  #endif
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadRefMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__1;
  lean_object* l_StateT_instMonadFunctorStateT___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg___lambda__4(lean_object*, lean_object*);
  lean_object* l_ReaderT_tryFinally___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg___lambda__1(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___rarg___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_ST_Prim_mkRef___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__3;
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT___rarg(lean_object*);
  static lean_object* l_Lean_instMonadCacheExceptT___rarg___lambda__2___closed__1;
  LEAN_EXPORT lean_object* l_Lean_checkCache(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg___lambda__2(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadMonadCacheT___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadFinallyMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_HashMap_insert___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_StateRefT_x27_instMonadExceptOfStateRefT_x27___rarg(lean_object*);
  lean_object* l_StateT_monadControl___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_StateRefT_x27_lift(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_HashMapImp_find_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT___rarg(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___rarg(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_StateT_get___rarg(lean_object*, lean_object*);
  lean_object* l_ST_Prim_Ref_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Std_mkHashMapImp___rarg(lean_object*);
  lean_object* l_ReaderT_instMonadFunctorReaderT___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_instMonadCache(lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_MonadCacheT_run___rarg___closed__1;
  lean_object* l_instMonadControlReaderT___lambda__3___boxed(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT___rarg(lean_object*, lean_object*);
  static lean_object* l_Lean_MonadCacheT_run___rarg___closed__2;
  lean_object* l_StateT_lift___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_StateT_instMonadExceptOfStateT___rarg(lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__2;
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___rarg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___rarg___lambda__1___boxed(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___rarg(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg___lambda__1(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT___rarg(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadRefMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_MonadCacheT_instMonadLiftMonadCacheT___closed__1;
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_StateRefT_x27_get___rarg(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___rarg___lambda__1(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg___lambda__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg___lambda__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  static lean_object* l_Lean_MonadStateCacheT_run___rarg___closed__1;
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_cache(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_instMonadCache___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg___lambda__1___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed(lean_object*, lean_object*, lean_object*);
  lean_object* l_StateT_instMonadStateT___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadLiftMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_StateT_tryFinally___rarg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg___lambda__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_instMonadControlReaderT___lambda__2(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadLiftMonadCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadFinallyMonadCacheT___rarg(lean_object*, lean_object*);
  lean_object* l_ReaderT_instMonadReaderT___rarg(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___rarg(lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg(lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadRefMonadCacheT___rarg(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg___lambda__1(lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadFinallyMonadCacheT(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  lean_object* l_Lean_instMonadRef___rarg(lean_object*, lean_object*, lean_object*);
  lean_object* l_ReaderT_instAlternativeReaderT___rarg(lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
  LEAN_EXPORT lean_object* l_Lean_checkCache___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; 
  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_2);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg___lambda__2(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_dec(x_1);
  lean_inc(x_5);
  x_7 = lean_apply_2(x_6, x_2, x_5);
  x_8 = lean_alloc_closure((void*)(l_Lean_checkCache___rarg___lambda__1___boxed), 3, 2);
  lean_closure_set(x_8, 0, x_3);
  lean_closure_set(x_8, 1, x_5);
  x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg___lambda__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  if (lean_obj_tag(x_6) == 0)
  {
  lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_7 = lean_box(0);
  x_8 = lean_apply_1(x_1, x_7);
  lean_inc(x_5);
  x_9 = lean_alloc_closure((void*)(l_Lean_checkCache___rarg___lambda__2), 5, 4);
  lean_closure_set(x_9, 0, x_2);
  lean_closure_set(x_9, 1, x_3);
  lean_closure_set(x_9, 2, x_4);
  lean_closure_set(x_9, 3, x_5);
  x_10 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_8, x_9);
  return x_10;
  }
  else
  {
  lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
  lean_dec(x_5);
  lean_dec(x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  x_11 = lean_ctor_get(x_6, 0);
  lean_inc(x_11);
  lean_dec(x_6);
  x_12 = lean_ctor_get(x_4, 0);
  lean_inc(x_12);
  lean_dec(x_4);
  x_13 = lean_ctor_get(x_12, 1);
  lean_inc(x_13);
  lean_dec(x_12);
  x_14 = lean_apply_2(x_13, lean_box(0), x_11);
  return x_14;
  }
  }
  }
  LEAN_EXPORT lean_object* l_Lean_checkCache___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; 
  x_5 = lean_ctor_get(x_2, 1);
  lean_inc(x_5);
  x_6 = lean_ctor_get(x_1, 0);
  lean_inc(x_6);
  lean_inc(x_3);
  x_7 = lean_apply_1(x_6, x_3);
  lean_inc(x_5);
  x_8 = lean_alloc_closure((void*)(l_Lean_checkCache___rarg___lambda__3), 6, 5);
  lean_closure_set(x_8, 0, x_4);
  lean_closure_set(x_8, 1, x_1);
  lean_closure_set(x_8, 2, x_3);
  lean_closure_set(x_8, 3, x_2);
  lean_closure_set(x_8, 4, x_5);
  x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_checkCache(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l_Lean_checkCache___rarg), 4, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_checkCache___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_checkCache___rarg___lambda__1(x_1, x_2, x_3);
  lean_dec(x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___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 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  lean_dec(x_1);
  x_5 = lean_apply_1(x_4, x_2);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg___lambda__2(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_ctor_get(x_1, 1);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_apply_2(x_5, x_2, x_3);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; lean_object* x_3; lean_object* x_4; 
  lean_inc(x_1);
  x_2 = lean_alloc_closure((void*)(l_Lean_instMonadCacheReaderT___rarg___lambda__1___boxed), 3, 1);
  lean_closure_set(x_2, 0, x_1);
  x_3 = lean_alloc_closure((void*)(l_Lean_instMonadCacheReaderT___rarg___lambda__2___boxed), 4, 1);
  lean_closure_set(x_3, 0, x_1);
  x_4 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_4, 0, x_2);
  lean_ctor_set(x_4, 1, x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT(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_Lean_instMonadCacheReaderT___rarg), 1, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg___lambda__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_instMonadCacheReaderT___rarg___lambda__1(x_1, x_2, x_3);
  lean_dec(x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheReaderT___rarg___lambda__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l_Lean_instMonadCacheReaderT___rarg___lambda__2(x_1, x_2, x_3, x_4);
  lean_dec(x_4);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg___lambda__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_ctor(1, 1, 0);
  lean_ctor_set(x_2, 0, x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_instMonadCacheExceptT___rarg___lambda__2___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_instMonadCacheExceptT___rarg___lambda__1), 1, 0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg___lambda__2(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; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  lean_dec(x_1);
  x_5 = lean_apply_1(x_4, x_3);
  x_6 = lean_ctor_get(x_2, 0);
  lean_inc(x_6);
  lean_dec(x_2);
  x_7 = lean_ctor_get(x_6, 0);
  lean_inc(x_7);
  lean_dec(x_6);
  x_8 = lean_ctor_get(x_7, 0);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = l_Lean_instMonadCacheExceptT___rarg___lambda__2___closed__1;
  x_10 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_9, x_5);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg___lambda__3(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_ctor_get(x_1, 1);
  lean_inc(x_5);
  lean_dec(x_1);
  x_6 = lean_apply_2(x_5, x_3, x_4);
  x_7 = lean_ctor_get(x_2, 0);
  lean_inc(x_7);
  lean_dec(x_2);
  x_8 = lean_ctor_get(x_7, 0);
  lean_inc(x_8);
  lean_dec(x_7);
  x_9 = lean_ctor_get(x_8, 0);
  lean_inc(x_9);
  lean_dec(x_8);
  x_10 = l_Lean_instMonadCacheExceptT___rarg___lambda__2___closed__1;
  x_11 = lean_apply_4(x_9, lean_box(0), lean_box(0), x_10, x_6);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  lean_inc(x_2);
  lean_inc(x_1);
  x_3 = lean_alloc_closure((void*)(l_Lean_instMonadCacheExceptT___rarg___lambda__2), 3, 2);
  lean_closure_set(x_3, 0, x_1);
  lean_closure_set(x_3, 1, x_2);
  x_4 = lean_alloc_closure((void*)(l_Lean_instMonadCacheExceptT___rarg___lambda__3), 4, 2);
  lean_closure_set(x_4, 0, x_1);
  lean_closure_set(x_4, 1, x_2);
  x_5 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_5, 0, x_3);
  lean_ctor_set(x_5, 1, x_4);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_instMonadCacheExceptT(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_Lean_instMonadCacheExceptT___rarg), 2, 0);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1(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, 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 = l_Std_HashMapImp_find_x3f___rarg(x_2, x_3, x_5, x_4);
  x_9 = lean_apply_2(x_7, lean_box(0), x_8);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_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_object* x_7; lean_object* x_8; lean_object* x_9; 
  x_6 = lean_ctor_get(x_3, 1);
  lean_inc(x_6);
  x_7 = lean_ctor_get(x_4, 0);
  lean_inc(x_7);
  lean_dec(x_4);
  x_8 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1___boxed), 5, 4);
  lean_closure_set(x_8, 0, x_3);
  lean_closure_set(x_8, 1, x_1);
  lean_closure_set(x_8, 2, x_2);
  lean_closure_set(x_8, 3, x_5);
  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_Lean_MonadHashMapCacheAdapter_findCached_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_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg), 5, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1___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_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg___lambda__1(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_cache___rarg___lambda__1(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_HashMap_insert___rarg(x_1, x_2, x_5, x_3, x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_cache___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_ctor_get(x_3, 1);
  lean_inc(x_6);
  lean_dec(x_3);
  x_7 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_cache___rarg___lambda__1), 5, 4);
  lean_closure_set(x_7, 0, x_1);
  lean_closure_set(x_7, 1, x_2);
  lean_closure_set(x_7, 2, x_4);
  lean_closure_set(x_7, 3, x_5);
  x_8 = lean_apply_1(x_6, x_7);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_cache(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_cache___rarg), 5, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_instMonadCache___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_inc(x_4);
  lean_inc(x_2);
  lean_inc(x_1);
  x_5 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_findCached_x3f___rarg), 5, 4);
  lean_closure_set(x_5, 0, x_1);
  lean_closure_set(x_5, 1, x_2);
  lean_closure_set(x_5, 2, x_3);
  lean_closure_set(x_5, 3, x_4);
  x_6 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_cache___rarg), 5, 3);
  lean_closure_set(x_6, 0, x_1);
  lean_closure_set(x_6, 1, x_2);
  lean_closure_set(x_6, 2, x_4);
  x_7 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_7, 0, x_5);
  lean_ctor_set(x_7, 1, x_6);
  return x_7;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadHashMapCacheAdapter_instMonadCache(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l_Lean_MonadHashMapCacheAdapter_instMonadCache___rarg), 4, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg___lambda__1(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  x_3 = lean_apply_1(x_1, x_2);
  x_4 = lean_box(0);
  x_5 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_5, 0, x_4);
  lean_ctor_set(x_5, 1, x_3);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___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; 
  x_5 = lean_alloc_closure((void*)(l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg___lambda__1), 2, 1);
  lean_closure_set(x_5, 0, x_3);
  x_6 = lean_alloc_closure((void*)(l_ST_Prim_Ref_modifyGetUnsafe___rarg___boxed), 3, 2);
  lean_closure_set(x_6, 0, x_4);
  lean_closure_set(x_6, 1, x_5);
  x_7 = lean_apply_2(x_1, lean_box(0), x_6);
  return x_7;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; 
  x_7 = lean_alloc_closure((void*)(l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg___boxed), 4, 0);
  return x_7;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___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_inc(x_3);
  x_5 = lean_alloc_closure((void*)(l_StateRefT_x27_get___rarg), 2, 1);
  lean_closure_set(x_5, 0, x_3);
  x_6 = lean_alloc_closure((void*)(l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg___boxed), 4, 2);
  lean_closure_set(x_6, 0, x_3);
  lean_closure_set(x_6, 1, x_4);
  x_7 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_7, 0, x_5);
  lean_ctor_set(x_7, 1, x_6);
  return x_7;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT(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_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___rarg___boxed), 4, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___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_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___rarg(x_1, x_2, x_3, x_4);
  lean_dec(x_2);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
  _start:
  {
  lean_object* x_7; 
  x_7 = l_modify___at_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___spec__1(x_1, x_2, x_3, x_4, x_5, x_6);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_7;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
  _start:
  {
  lean_object* x_5; 
  x_5 = l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___rarg(x_1, x_2, x_3, x_4);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT___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_Lean_MonadCacheT_instMonadHashMapCacheAdapterMonadCacheT(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___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_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_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_2);
  lean_ctor_set(x_6, 1, x_3);
  x_7 = lean_apply_2(x_5, lean_box(0), x_6);
  return x_7;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg___lambda__2(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_alloc_closure((void*)(l_ST_Prim_Ref_get___boxed), 4, 3);
  lean_closure_set(x_6, 0, lean_box(0));
  lean_closure_set(x_6, 1, lean_box(0));
  lean_closure_set(x_6, 2, x_1);
  x_7 = lean_apply_2(x_2, lean_box(0), x_6);
  x_8 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_run___rarg___lambda__1), 3, 2);
  lean_closure_set(x_8, 0, x_3);
  lean_closure_set(x_8, 1, x_5);
  x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_7, x_8);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg___lambda__3(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_inc(x_5);
  x_6 = lean_apply_1(x_1, x_5);
  lean_inc(x_4);
  x_7 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_run___rarg___lambda__2), 5, 4);
  lean_closure_set(x_7, 0, x_5);
  lean_closure_set(x_7, 1, x_2);
  lean_closure_set(x_7, 2, x_3);
  lean_closure_set(x_7, 3, x_4);
  x_8 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_7);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___rarg___lambda__4(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;
  }
  }
  static lean_object* _init_l_Lean_MonadCacheT_run___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = lean_unsigned_to_nat(0u);
  x_2 = l_Std_mkHashMapImp___rarg(x_1);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_MonadCacheT_run___rarg___closed__2() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; 
  x_1 = l_Lean_MonadCacheT_run___rarg___closed__1;
  x_2 = lean_alloc_closure((void*)(l_ST_Prim_mkRef___boxed), 4, 3);
  lean_closure_set(x_2, 0, lean_box(0));
  lean_closure_set(x_2, 1, lean_box(0));
  lean_closure_set(x_2, 2, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___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_ctor_get(x_2, 1);
  lean_inc(x_5);
  x_6 = l_Lean_MonadCacheT_run___rarg___closed__2;
  lean_inc(x_1);
  x_7 = lean_apply_2(x_1, lean_box(0), x_6);
  lean_inc(x_5);
  lean_inc(x_2);
  x_8 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_run___rarg___lambda__3), 5, 4);
  lean_closure_set(x_8, 0, x_4);
  lean_closure_set(x_8, 1, x_1);
  lean_closure_set(x_8, 2, x_2);
  lean_closure_set(x_8, 3, x_5);
  lean_inc(x_5);
  x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_7, x_8);
  x_10 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_run___rarg___lambda__4), 2, 1);
  lean_closure_set(x_10, 0, x_2);
  x_11 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_9, x_10);
  return x_11;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run(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 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_run___rarg), 4, 0);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_run___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_run(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadMonadCacheT___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_ReaderT_instMonadReaderT___rarg(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadMonadCacheT(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 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_instMonadMonadCacheT___rarg), 1, 0);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instMonadMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_8;
  }
  }
  static lean_object* _init_l_Lean_MonadCacheT_instMonadLiftMonadCacheT___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_StateRefT_x27_lift), 4, 3);
  lean_closure_set(x_1, 0, lean_box(0));
  lean_closure_set(x_1, 1, lean_box(0));
  lean_closure_set(x_1, 2, lean_box(0));
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadLiftMonadCacheT(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instMonadLiftMonadCacheT___closed__1;
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadLiftMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instMonadLiftMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_StateRefT_x27_instMonadExceptOfStateRefT_x27___rarg(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT(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) {
  _start:
  {
  lean_object* x_9; 
  x_9 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT___rarg), 1, 0);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT___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) {
  _start:
  {
  lean_object* x_9; 
  x_9 = l_Lean_MonadCacheT_instMonadExceptOfMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7, x_8);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_9;
  }
  }
  static lean_object* _init_l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_instMonadControlReaderT___lambda__2), 3, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__2() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_instMonadControlReaderT___lambda__3___boxed), 3, 0);
  return x_1;
  }
  }
  static lean_object* _init_l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__3() {
  _start:
  {
  lean_object* x_1; lean_object* x_2; lean_object* x_3; 
  x_1 = l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__1;
  x_2 = l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__2;
  x_3 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_3, 0, x_1);
  lean_ctor_set(x_3, 1, x_2);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__3;
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadControlMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instMonadControlMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadFinallyMonadCacheT___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = lean_alloc_closure((void*)(l_ReaderT_tryFinally___rarg___boxed), 7, 2);
  lean_closure_set(x_3, 0, x_2);
  lean_closure_set(x_3, 1, x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadFinallyMonadCacheT(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 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_instMonadFinallyMonadCacheT___rarg), 2, 0);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadFinallyMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instMonadFinallyMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadRefMonadCacheT___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_alloc_closure((void*)(l_ReaderT_instMonadFunctorReaderT___boxed), 4, 3);
  lean_closure_set(x_3, 0, lean_box(0));
  lean_closure_set(x_3, 1, lean_box(0));
  lean_closure_set(x_3, 2, x_1);
  x_4 = l_Lean_MonadCacheT_instMonadLiftMonadCacheT___closed__1;
  x_5 = l_Lean_instMonadRef___rarg(x_4, x_3, x_2);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadRefMonadCacheT(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 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_instMonadRefMonadCacheT___rarg), 2, 0);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instMonadRefMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instMonadRefMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = l_ReaderT_instAlternativeReaderT___rarg(x_2, x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT(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 = lean_alloc_closure((void*)(l_Lean_MonadCacheT_instAlternativeMonadCacheT___rarg), 2, 0);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadCacheT_instAlternativeMonadCacheT___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
  _start:
  {
  lean_object* x_8; 
  x_8 = l_Lean_MonadCacheT_instAlternativeMonadCacheT(x_1, x_2, x_3, x_4, x_5, x_6, x_7);
  lean_dec(x_7);
  lean_dec(x_6);
  lean_dec(x_5);
  return x_8;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
  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_1(x_2, x_3);
  x_7 = lean_box(0);
  x_8 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_8, 0, x_7);
  lean_ctor_set(x_8, 1, x_6);
  x_9 = lean_apply_2(x_5, lean_box(0), x_8);
  return x_9;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1(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_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___rarg), 3, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___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; 
  lean_inc(x_3);
  x_4 = lean_alloc_closure((void*)(l_StateT_get___rarg), 2, 1);
  lean_closure_set(x_4, 0, x_3);
  x_5 = lean_alloc_closure((void*)(l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___rarg), 3, 1);
  lean_closure_set(x_5, 0, x_3);
  x_6 = lean_alloc_ctor(0, 2, 0);
  lean_ctor_set(x_6, 0, x_4);
  lean_ctor_set(x_6, 1, x_5);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = lean_alloc_closure((void*)(l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___rarg___boxed), 3, 0);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1___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_modify___at_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___spec__1(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___rarg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_Lean_MonadStateCacheT_instMonadHashMapCacheAdapterMonadStateCacheT___rarg(x_1, x_2, x_3);
  lean_dec(x_2);
  lean_dec(x_1);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___rarg___lambda__1(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_ctor_get(x_1, 0);
  lean_inc(x_2);
  return x_2;
  }
  }
  static lean_object* _init_l_Lean_MonadStateCacheT_run___rarg___closed__1() {
  _start:
  {
  lean_object* x_1; 
  x_1 = lean_alloc_closure((void*)(l_Lean_MonadStateCacheT_run___rarg___lambda__1___boxed), 1, 0);
  return x_1;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___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; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
  x_4 = lean_ctor_get(x_1, 0);
  lean_inc(x_4);
  lean_dec(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);
  x_7 = l_Lean_MonadCacheT_run___rarg___closed__1;
  x_8 = lean_apply_1(x_3, x_7);
  x_9 = l_Lean_MonadStateCacheT_run___rarg___closed__1;
  x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_9, x_8);
  return x_10;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run(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_Lean_MonadStateCacheT_run___rarg), 3, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___rarg___lambda__1___boxed(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_Lean_MonadStateCacheT_run___rarg___lambda__1(x_1);
  lean_dec(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_run___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_Lean_MonadStateCacheT_run(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_StateT_instMonadStateT___rarg(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT(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_Lean_MonadStateCacheT_instMonadMonadStateCacheT___rarg), 1, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadMonadStateCacheT___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_Lean_MonadStateCacheT_instMonadMonadStateCacheT(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = lean_alloc_closure((void*)(l_StateT_lift___rarg), 4, 1);
  lean_closure_set(x_2, 0, x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT(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_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT___rarg), 1, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT___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_Lean_MonadStateCacheT_instMonadLiftMonadStateCacheT(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT___rarg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
  _start:
  {
  lean_object* x_4; 
  x_4 = l_StateT_instMonadExceptOfStateT___rarg(x_1, lean_box(0), x_3);
  return x_4;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT(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_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT___rarg), 3, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT___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_Lean_MonadStateCacheT_instMonadExceptOfMonadStateCacheT(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT___rarg(lean_object* x_1) {
  _start:
  {
  lean_object* x_2; 
  x_2 = l_StateT_monadControl___rarg(x_1);
  return x_2;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT(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_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT___rarg), 1, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT___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_Lean_MonadStateCacheT_instMonadControlMonadStateCacheT(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; 
  x_3 = lean_alloc_closure((void*)(l_StateT_tryFinally___rarg), 7, 2);
  lean_closure_set(x_3, 0, x_2);
  lean_closure_set(x_3, 1, x_1);
  return x_3;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT(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_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT___rarg), 2, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT___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_Lean_MonadStateCacheT_instMonadFinallyMonadStateCacheT(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT___rarg(lean_object* x_1, lean_object* x_2) {
  _start:
  {
  lean_object* x_3; lean_object* x_4; lean_object* x_5; 
  lean_inc(x_1);
  x_3 = lean_alloc_closure((void*)(l_StateT_lift___rarg), 4, 1);
  lean_closure_set(x_3, 0, x_1);
  x_4 = lean_alloc_closure((void*)(l_StateT_instMonadFunctorStateT___boxed), 4, 3);
  lean_closure_set(x_4, 0, lean_box(0));
  lean_closure_set(x_4, 1, lean_box(0));
  lean_closure_set(x_4, 2, x_1);
  x_5 = l_Lean_instMonadRef___rarg(x_3, x_4, x_2);
  return x_5;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT(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_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT___rarg), 2, 0);
  return x_6;
  }
  }
  LEAN_EXPORT lean_object* l_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT___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_Lean_MonadStateCacheT_instMonadRefMonadStateCacheT(x_1, x_2, x_3, x_4, x_5);
  lean_dec(x_5);
  lean_dec(x_4);
  return x_6;
  }
  }
  lean_object* initialize_Init(uint8_t builtin, lean_object*);
  lean_object* initialize_Std_Data_HashMap(uint8_t builtin, lean_object*);
  static bool _G_initialized = false;
  LEAN_EXPORT lean_object* initialize_Lean_Util_MonadCache(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_Init(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  res = initialize_Std_Data_HashMap(builtin, lean_io_mk_world());
  if (lean_io_result_is_error(res)) return res;
  lean_dec_ref(res);
  l_Lean_instMonadCacheExceptT___rarg___lambda__2___closed__1 = _init_l_Lean_instMonadCacheExceptT___rarg___lambda__2___closed__1();
  lean_mark_persistent(l_Lean_instMonadCacheExceptT___rarg___lambda__2___closed__1);
  l_Lean_MonadCacheT_run___rarg___closed__1 = _init_l_Lean_MonadCacheT_run___rarg___closed__1();
  lean_mark_persistent(l_Lean_MonadCacheT_run___rarg___closed__1);
  l_Lean_MonadCacheT_run___rarg___closed__2 = _init_l_Lean_MonadCacheT_run___rarg___closed__2();
  lean_mark_persistent(l_Lean_MonadCacheT_run___rarg___closed__2);
  l_Lean_MonadCacheT_instMonadLiftMonadCacheT___closed__1 = _init_l_Lean_MonadCacheT_instMonadLiftMonadCacheT___closed__1();
  lean_mark_persistent(l_Lean_MonadCacheT_instMonadLiftMonadCacheT___closed__1);
  l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__1 = _init_l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__1();
  lean_mark_persistent(l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__1);
  l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__2 = _init_l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__2();
  lean_mark_persistent(l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__2);
  l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__3 = _init_l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__3();
  lean_mark_persistent(l_Lean_MonadCacheT_instMonadControlMonadCacheT___closed__3);
  l_Lean_MonadStateCacheT_run___rarg___closed__1 = _init_l_Lean_MonadStateCacheT_run___rarg___closed__1();
  lean_mark_persistent(l_Lean_MonadStateCacheT_run___rarg___closed__1);
  return lean_io_result_mk_ok(lean_box(0));
  }
  #ifdef __cplusplus
  }
  #endif
  