{"type": "func", "start": 5371958672, "end": 5371959596, "name": "LevelSelectLayer::colorForPage", "pseudocode": "// \n// LevelSelectLayer::colorForPage from 0x140319590 to 0x14031992c (924 bytes)\n// \n// 4 xrefs:\n// > LevelSelectLayer::scrollLayerMoved @ 0x140319335\n// > LevelSelectLayer::scrollLayerMoved @ 0x140319348\n// > LevelSelectLayer::colorForPage @ 0x1403198a8\n// > <???> @ 0x1406d4a54\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=9\ncocos2d::ccColor3B *LevelSelectLayer::colorForPage(\n        cocos2d::ccColor3B *__return_ptr retstr,\n        LevelSelectLayer *a2,\n        int a3)\n{\n  cocos2d::ccColor3B *result; // rax\n  cocos2d::ccColor3B *v5; // rcx\n  cocos2d::ccColor3B *v6; // rcx\n  cocos2d::ccColor3B *v7; // rcx\n  cocos2d::ccColor3B *v8; // rcx\n  cocos2d::ccColor3B *v9; // rcx\n  cocos2d::ccColor3B *v10; // rcx\n  cocos2d::ccColor3B *v11; // rcx\n  cocos2d::ccColor3B *v12; // rcx\n  cocos2d::ccColor3B *v13; // rcx\n  void *v14; // [rsp+48h] [rbp+20h]\n  void *v15; // [rsp+48h] [rbp+20h]\n  void *v16; // [rsp+48h] [rbp+20h]\n  void *v17; // [rsp+48h] [rbp+20h]\n  void *v18; // [rsp+48h] [rbp+20h]\n  void *v19; // [rsp+48h] [rbp+20h]\n  void *v20; // [rsp+48h] [rbp+20h]\n  void *v21; // [rsp+48h] [rbp+20h]\n  void *v22; // [rsp+48h] [rbp+20h]\n\n  if ( a3 )\n  {\n    if ( a3 == 22 * (a3 / 22) )\n    {\n      LOWORD(a2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = 11301;\n      BYTE2(a2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = 52;\n      return (cocos2d::ccColor3B *)a2;\n    }\n    else\n    {\n      switch ( a3 )\n      {\n        case 1:\n          v5 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v14 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v14);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v5 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v5, (GameManager *)a2, 7);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        case 2:\n          v6 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v15 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v15);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v6 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v6, (GameManager *)a2, 8);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        case 3:\n          v7 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v16 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v16);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v7 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v7, (GameManager *)a2, 9);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        case 4:\n          v8 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v17 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v17);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v8 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v8, (GameManager *)a2, 10);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        case 5:\n          v9 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v18 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v18);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v9 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v9, (GameManager *)a2, 11);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        case 6:\n          v10 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v19 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v19);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v10 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v10, (GameManager *)a2, 1);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        case 7:\n          v11 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v20 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v20);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v11 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v11, (GameManager *)a2, 3);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        case 8:\n          v12 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          if ( !qword_1406C2ED8 )\n          {\n            v21 = operator new(0x668u);\n            qword_1406C2ED8 = sub_14017AB00((__int64)v21);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n            v12 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n          }\n          GameManager::colorForIdx(v12, (GameManager *)a2, 4);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n        default:\n          LevelSelectLayer::colorForPage(retstr, a2, a3 % 9);\n          result = (cocos2d::ccColor3B *)a2;\n          break;\n      }\n    }\n  }\n  else\n  {\n    v13 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v22 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v22);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v13 = (cocos2d::ccColor3B *)qword_1406C2ED8;\n    }\n    GameManager::colorForIdx(v13, (GameManager *)a2, 5);\n    return (cocos2d::ccColor3B *)a2;\n  }\n  return result;\n}", "assembly": "; \n; LevelSelectLayer::colorForPage from 0x140319590 to 0x14031992c (924 bytes)\n; \n; 4 xrefs:\n; > LevelSelectLayer::scrollLayerMoved @ 0x140319335\n; > LevelSelectLayer::scrollLayerMoved @ 0x140319348\n; > LevelSelectLayer::colorForPage @ 0x1403198a8\n; > <???> @ 0x1406d4a54\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x140319590\nsub     rsp, 20h                                                       ; +0x2, 0x140319592\nmov     rbx, rdx                                                       ; +0x6, 0x140319596\nmov     r9, rcx                                                        ; +0x9, 0x140319599\ntest    r8d, r8d                                                       ; +0xc, 0x14031959c\njz      loc_1403198B6; jumptable 00000001403195F9 case 0               ; +0xf, 0x14031959f\nmov     eax, 2E8BA2E9h                                                 ; +0x15, 0x1403195a5\nimul    r8d                                                            ; +0x1a, 0x1403195aa\nsar     edx, 2                                                         ; +0x1d, 0x1403195ad\nmov     eax, edx                                                       ; +0x20, 0x1403195b0\nshr     eax, 1Fh                                                       ; +0x22, 0x1403195b2\nadd     edx, eax                                                       ; +0x25, 0x1403195b5\nimul    ecx, edx, 16h                                                  ; +0x27, 0x1403195b7\ncmp     r8d, ecx                                                       ; +0x2a, 0x1403195ba\njnz     short loc_1403195DB                                            ; +0x2d, 0x1403195bd\nmov     [rsp+28h+arg_10], 2C25h                                        ; +0x2f, 0x1403195bf\nmovzx   eax, [rsp+28h+arg_10]                                          ; +0x36, 0x1403195c6\nmov     [rbx], ax                                                      ; +0x3b, 0x1403195cb\nmov     byte ptr [rbx+2], 34h ; '4'                                    ; +0x3e, 0x1403195ce\nmov     rax, rbx                                                       ; +0x42, 0x1403195d2\nadd     rsp, 20h                                                       ; +0x45, 0x1403195d5\npop     rbx                                                            ; +0x49, 0x1403195d9\nretn                                                                   ; +0x4a, 0x1403195da\ncmp     r8d, 8; switch 9 cases                                         ; +0x4b, 0x1403195db\nja      def_1403195F9; jumptable 00000001403195F9 default case         ; +0x4f, 0x1403195df\nmovsxd  rax, r8d                                                       ; +0x55, 0x1403195e5\nlea     rdx, cs:140000000h                                             ; +0x58, 0x1403195e8\nmov     ecx, ds:(jpt_1403195F9 - 140000000h)[rdx+rax*4]                ; +0x5f, 0x1403195ef\nadd     rcx, rdx                                                       ; +0x66, 0x1403195f6\njmp     rcx; switch jump                                               ; +0x69, 0x1403195f9\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 1     ; +0x6b, 0x1403195fb\ntest    rcx, rcx                                                       ; +0x72, 0x140319602\njnz     short loc_140319636                                            ; +0x75, 0x140319605\nmov     ecx, 668h; Size                                                ; +0x77, 0x140319607\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7c, 0x14031960c\nmov     [rsp+28h+arg_18], rax                                          ; +0x81, 0x140319611\nmov     rcx, rax                                                       ; +0x86, 0x140319616\ncall    sub_14017AB00                                                  ; +0x89, 0x140319619\nnop                                                                    ; +0x8e, 0x14031961e\nmov     cs:qword_1406C2ED8, rax                                        ; +0x8f, 0x14031961f\nmov     rdx, [rax]                                                     ; +0x96, 0x140319626\nmov     rcx, rax                                                       ; +0x99, 0x140319629\ncall    qword ptr [rdx+48h]                                            ; +0x9c, 0x14031962c\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9f, 0x14031962f\nmov     r8d, 7                                                         ; +0xa6, 0x140319636\nmov     rdx, rbx                                                       ; +0xac, 0x14031963c\ncall    GameManager__colorForIdx                                       ; +0xaf, 0x14031963f\nmov     rax, rbx                                                       ; +0xb4, 0x140319644\nadd     rsp, 20h                                                       ; +0xb7, 0x140319647\npop     rbx                                                            ; +0xbb, 0x14031964b\nretn                                                                   ; +0xbc, 0x14031964c\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 2     ; +0xbd, 0x14031964d\ntest    rcx, rcx                                                       ; +0xc4, 0x140319654\njnz     short loc_140319688                                            ; +0xc7, 0x140319657\nmov     ecx, 668h; Size                                                ; +0xc9, 0x140319659\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xce, 0x14031965e\nmov     [rsp+28h+arg_18], rax                                          ; +0xd3, 0x140319663\nmov     rcx, rax                                                       ; +0xd8, 0x140319668\ncall    sub_14017AB00                                                  ; +0xdb, 0x14031966b\nnop                                                                    ; +0xe0, 0x140319670\nmov     cs:qword_1406C2ED8, rax                                        ; +0xe1, 0x140319671\nmov     rdx, [rax]                                                     ; +0xe8, 0x140319678\nmov     rcx, rax                                                       ; +0xeb, 0x14031967b\ncall    qword ptr [rdx+48h]                                            ; +0xee, 0x14031967e\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xf1, 0x140319681\nmov     r8d, 8                                                         ; +0xf8, 0x140319688\nmov     rdx, rbx                                                       ; +0xfe, 0x14031968e\ncall    GameManager__colorForIdx                                       ; +0x101, 0x140319691\nmov     rax, rbx                                                       ; +0x106, 0x140319696\nadd     rsp, 20h                                                       ; +0x109, 0x140319699\npop     rbx                                                            ; +0x10d, 0x14031969d\nretn                                                                   ; +0x10e, 0x14031969e\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 3     ; +0x10f, 0x14031969f\ntest    rcx, rcx                                                       ; +0x116, 0x1403196a6\njnz     short loc_1403196DA                                            ; +0x119, 0x1403196a9\nmov     ecx, 668h; Size                                                ; +0x11b, 0x1403196ab\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x120, 0x1403196b0\nmov     [rsp+28h+arg_18], rax                                          ; +0x125, 0x1403196b5\nmov     rcx, rax                                                       ; +0x12a, 0x1403196ba\ncall    sub_14017AB00                                                  ; +0x12d, 0x1403196bd\nnop                                                                    ; +0x132, 0x1403196c2\nmov     cs:qword_1406C2ED8, rax                                        ; +0x133, 0x1403196c3\nmov     rdx, [rax]                                                     ; +0x13a, 0x1403196ca\nmov     rcx, rax                                                       ; +0x13d, 0x1403196cd\ncall    qword ptr [rdx+48h]                                            ; +0x140, 0x1403196d0\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x143, 0x1403196d3\nmov     r8d, 9                                                         ; +0x14a, 0x1403196da\nmov     rdx, rbx                                                       ; +0x150, 0x1403196e0\ncall    GameManager__colorForIdx                                       ; +0x153, 0x1403196e3\nmov     rax, rbx                                                       ; +0x158, 0x1403196e8\nadd     rsp, 20h                                                       ; +0x15b, 0x1403196eb\npop     rbx                                                            ; +0x15f, 0x1403196ef\nretn                                                                   ; +0x160, 0x1403196f0\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 4     ; +0x161, 0x1403196f1\ntest    rcx, rcx                                                       ; +0x168, 0x1403196f8\njnz     short loc_14031972C                                            ; +0x16b, 0x1403196fb\nmov     ecx, 668h; Size                                                ; +0x16d, 0x1403196fd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x172, 0x140319702\nmov     [rsp+28h+arg_18], rax                                          ; +0x177, 0x140319707\nmov     rcx, rax                                                       ; +0x17c, 0x14031970c\ncall    sub_14017AB00                                                  ; +0x17f, 0x14031970f\nnop                                                                    ; +0x184, 0x140319714\nmov     cs:qword_1406C2ED8, rax                                        ; +0x185, 0x140319715\nmov     rdx, [rax]                                                     ; +0x18c, 0x14031971c\nmov     rcx, rax                                                       ; +0x18f, 0x14031971f\ncall    qword ptr [rdx+48h]                                            ; +0x192, 0x140319722\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x195, 0x140319725\nmov     r8d, 0Ah                                                       ; +0x19c, 0x14031972c\nmov     rdx, rbx                                                       ; +0x1a2, 0x140319732\ncall    GameManager__colorForIdx                                       ; +0x1a5, 0x140319735\nmov     rax, rbx                                                       ; +0x1aa, 0x14031973a\nadd     rsp, 20h                                                       ; +0x1ad, 0x14031973d\npop     rbx                                                            ; +0x1b1, 0x140319741\nretn                                                                   ; +0x1b2, 0x140319742\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 5     ; +0x1b3, 0x140319743\ntest    rcx, rcx                                                       ; +0x1ba, 0x14031974a\njnz     short loc_14031977E                                            ; +0x1bd, 0x14031974d\nmov     ecx, 668h; Size                                                ; +0x1bf, 0x14031974f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1c4, 0x140319754\nmov     [rsp+28h+arg_18], rax                                          ; +0x1c9, 0x140319759\nmov     rcx, rax                                                       ; +0x1ce, 0x14031975e\ncall    sub_14017AB00                                                  ; +0x1d1, 0x140319761\nnop                                                                    ; +0x1d6, 0x140319766\nmov     cs:qword_1406C2ED8, rax                                        ; +0x1d7, 0x140319767\nmov     rdx, [rax]                                                     ; +0x1de, 0x14031976e\nmov     rcx, rax                                                       ; +0x1e1, 0x140319771\ncall    qword ptr [rdx+48h]                                            ; +0x1e4, 0x140319774\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x1e7, 0x140319777\nmov     r8d, 0Bh                                                       ; +0x1ee, 0x14031977e\nmov     rdx, rbx                                                       ; +0x1f4, 0x140319784\ncall    GameManager__colorForIdx                                       ; +0x1f7, 0x140319787\nmov     rax, rbx                                                       ; +0x1fc, 0x14031978c\nadd     rsp, 20h                                                       ; +0x1ff, 0x14031978f\npop     rbx                                                            ; +0x203, 0x140319793\nretn                                                                   ; +0x204, 0x140319794\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 6     ; +0x205, 0x140319795\ntest    rcx, rcx                                                       ; +0x20c, 0x14031979c\njnz     short loc_1403197D0                                            ; +0x20f, 0x14031979f\nmov     ecx, 668h; Size                                                ; +0x211, 0x1403197a1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x216, 0x1403197a6\nmov     [rsp+28h+arg_18], rax                                          ; +0x21b, 0x1403197ab\nmov     rcx, rax                                                       ; +0x220, 0x1403197b0\ncall    sub_14017AB00                                                  ; +0x223, 0x1403197b3\nnop                                                                    ; +0x228, 0x1403197b8\nmov     cs:qword_1406C2ED8, rax                                        ; +0x229, 0x1403197b9\nmov     rdx, [rax]                                                     ; +0x230, 0x1403197c0\nmov     rcx, rax                                                       ; +0x233, 0x1403197c3\ncall    qword ptr [rdx+48h]                                            ; +0x236, 0x1403197c6\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x239, 0x1403197c9\nmov     r8d, 1                                                         ; +0x240, 0x1403197d0\nmov     rdx, rbx                                                       ; +0x246, 0x1403197d6\ncall    GameManager__colorForIdx                                       ; +0x249, 0x1403197d9\nmov     rax, rbx                                                       ; +0x24e, 0x1403197de\nadd     rsp, 20h                                                       ; +0x251, 0x1403197e1\npop     rbx                                                            ; +0x255, 0x1403197e5\nretn                                                                   ; +0x256, 0x1403197e6\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 7     ; +0x257, 0x1403197e7\ntest    rcx, rcx                                                       ; +0x25e, 0x1403197ee\njnz     short loc_140319822                                            ; +0x261, 0x1403197f1\nmov     ecx, 668h; Size                                                ; +0x263, 0x1403197f3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x268, 0x1403197f8\nmov     [rsp+28h+arg_18], rax                                          ; +0x26d, 0x1403197fd\nmov     rcx, rax                                                       ; +0x272, 0x140319802\ncall    sub_14017AB00                                                  ; +0x275, 0x140319805\nnop                                                                    ; +0x27a, 0x14031980a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x27b, 0x14031980b\nmov     rdx, [rax]                                                     ; +0x282, 0x140319812\nmov     rcx, rax                                                       ; +0x285, 0x140319815\ncall    qword ptr [rdx+48h]                                            ; +0x288, 0x140319818\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x28b, 0x14031981b\nmov     r8d, 3                                                         ; +0x292, 0x140319822\nmov     rdx, rbx                                                       ; +0x298, 0x140319828\ncall    GameManager__colorForIdx                                       ; +0x29b, 0x14031982b\nmov     rax, rbx                                                       ; +0x2a0, 0x140319830\nadd     rsp, 20h                                                       ; +0x2a3, 0x140319833\npop     rbx                                                            ; +0x2a7, 0x140319837\nretn                                                                   ; +0x2a8, 0x140319838\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 8     ; +0x2a9, 0x140319839\ntest    rcx, rcx                                                       ; +0x2b0, 0x140319840\njnz     short loc_140319874                                            ; +0x2b3, 0x140319843\nmov     ecx, 668h; Size                                                ; +0x2b5, 0x140319845\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2ba, 0x14031984a\nmov     [rsp+28h+arg_18], rax                                          ; +0x2bf, 0x14031984f\nmov     rcx, rax                                                       ; +0x2c4, 0x140319854\ncall    sub_14017AB00                                                  ; +0x2c7, 0x140319857\nnop                                                                    ; +0x2cc, 0x14031985c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2cd, 0x14031985d\nmov     rdx, [rax]                                                     ; +0x2d4, 0x140319864\nmov     rcx, rax                                                       ; +0x2d7, 0x140319867\ncall    qword ptr [rdx+48h]                                            ; +0x2da, 0x14031986a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x2dd, 0x14031986d\nmov     r8d, 4                                                         ; +0x2e4, 0x140319874\nmov     rdx, rbx                                                       ; +0x2ea, 0x14031987a\ncall    GameManager__colorForIdx                                       ; +0x2ed, 0x14031987d\nmov     rax, rbx                                                       ; +0x2f2, 0x140319882\nadd     rsp, 20h                                                       ; +0x2f5, 0x140319885\npop     rbx                                                            ; +0x2f9, 0x140319889\nretn                                                                   ; +0x2fa, 0x14031988a\nmov     eax, 38E38E39h; jumptable 00000001403195F9 default case        ; +0x2fb, 0x14031988b\nimul    r8d                                                            ; +0x300, 0x140319890\nsar     edx, 1                                                         ; +0x303, 0x140319893\nmov     eax, edx                                                       ; +0x305, 0x140319895\nshr     eax, 1Fh                                                       ; +0x307, 0x140319897\nadd     edx, eax                                                       ; +0x30a, 0x14031989a\nlea     eax, [rdx+rdx*8]                                               ; +0x30c, 0x14031989c\nsub     r8d, eax                                                       ; +0x30f, 0x14031989f\nmov     rdx, rbx                                                       ; +0x312, 0x1403198a2\nmov     rcx, r9                                                        ; +0x315, 0x1403198a5\ncall    LevelSelectLayer__colorForPage                                 ; +0x318, 0x1403198a8\nmov     rax, rbx                                                       ; +0x31d, 0x1403198ad\nadd     rsp, 20h                                                       ; +0x320, 0x1403198b0\npop     rbx                                                            ; +0x324, 0x1403198b4\nretn                                                                   ; +0x325, 0x1403198b5\nmov     rcx, cs:qword_1406C2ED8; jumptable 00000001403195F9 case 0     ; +0x326, 0x1403198b6\ntest    rcx, rcx                                                       ; +0x32d, 0x1403198bd\njnz     short loc_1403198F1                                            ; +0x330, 0x1403198c0\nmov     ecx, 668h; Size                                                ; +0x332, 0x1403198c2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x337, 0x1403198c7\nmov     [rsp+28h+arg_18], rax                                          ; +0x33c, 0x1403198cc\nmov     rcx, rax                                                       ; +0x341, 0x1403198d1\ncall    sub_14017AB00                                                  ; +0x344, 0x1403198d4\nnop                                                                    ; +0x349, 0x1403198d9\nmov     cs:qword_1406C2ED8, rax                                        ; +0x34a, 0x1403198da\nmov     rdx, [rax]                                                     ; +0x351, 0x1403198e1\nmov     rcx, rax                                                       ; +0x354, 0x1403198e4\ncall    qword ptr [rdx+48h]                                            ; +0x357, 0x1403198e7\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x35a, 0x1403198ea\nmov     r8d, 5                                                         ; +0x361, 0x1403198f1\nmov     rdx, rbx                                                       ; +0x367, 0x1403198f7\ncall    GameManager__colorForIdx                                       ; +0x36a, 0x1403198fa\nmov     rax, rbx                                                       ; +0x36f, 0x1403198ff\nadd     rsp, 20h                                                       ; +0x372, 0x140319902\npop     rbx                                                            ; +0x376, 0x140319906\nretn                                                                   ; +0x377, 0x140319907\ndd offset loc_1403198B6 - 140000000h; jump table for switch statement  ; +0x378, 0x140319908", "xrefs": ["LevelSelectLayer::scrollLayerMoved @ 0x140319335", "LevelSelectLayer::scrollLayerMoved @ 0x140319348", "LevelSelectLayer::colorForPage @ 0x1403198a8", "<???> @ 0x1406d4a54"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}