{"type": "func", "start": 5372490144, "end": 5372491324, "name": "GJOptionsLayer::addToggleInternal", "pseudocode": "// \n// GJOptionsLayer::addToggleInternal from 0x14039b1a0 to 0x14039b63c (1180 bytes)\n// \n// 28 xrefs:\n// > GJOptionsLayer::addGVToggle @ 0x14039b0cb\n// > GameLevelOptionsLayer::setupOptions @ 0x1403aa62f\n// > GameLevelOptionsLayer::setupOptions @ 0x1403aa65f\n// > GameLevelOptionsLayer::setupOptions @ 0x1403aa692\n// > GameLevelOptionsLayer::setupOptions @ 0x1403aa6c8\n// > GameLevelOptionsLayer::setupOptions @ 0x1403aa715\n// > LevelOptionsLayer::setupOptions @ 0x14045d26a\n// > LevelOptionsLayer::setupOptions @ 0x14045d293\n// > LevelOptionsLayer::setupOptions @ 0x14045d2cd\n// > LevelOptionsLayer::setupOptions @ 0x14045d2f6\n// > LevelOptionsLayer::setupOptions @ 0x14045d31f\n// > LevelOptionsLayer::setupOptions @ 0x14045d348\n// > LevelOptionsLayer::setupOptions @ 0x14045d371\n// > LevelOptionsLayer::setupOptions @ 0x14045d3af\n// > LevelOptionsLayer2::setupOptions @ 0x14045dbb1\n// > LevelOptionsLayer2::setupOptions @ 0x14045dbe1\n// > LevelOptionsLayer2::setupOptions @ 0x14045dc11\n// > LevelOptionsLayer2::setupOptions @ 0x14045dc41\n// > LevelOptionsLayer2::setupOptions @ 0x14045dc71\n// > LevelOptionsLayer2::setupOptions @ 0x14045dca1\n// > LevelOptionsLayer2::setupOptions @ 0x14045dcd1\n// > LevelOptionsLayer2::setupOptions @ 0x14045dd01\n// > LevelOptionsLayer2::setupOptions @ 0x14045dd31\n// > LevelOptionsLayer2::setupOptions @ 0x14045dd61\n// > LevelOptionsLayer2::setupOptions @ 0x14045dd91\n// > LevelOptionsLayer2::setupOptions @ 0x14045ddc1\n// > LevelOptionsLayer2::setupOptions @ 0x14045ddf5\n// > <???> @ 0x140923318\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:15 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nstruct cocos2d::CCObject *__fastcall GJOptionsLayer::addToggleInternal(\n        __int64 a1,\n        _BYTE *a2,\n        int a3,\n        unsigned __int8 a4,\n        _BYTE *a5)\n{\n  int v7; // eax\n  signed int v8; // ebx\n  unsigned int v9; // r12d\n  __int64 v10; // r13\n  size_t v11; // rdi\n  size_t v12; // r8\n  float *v13; // rax\n  float *v14; // rbx\n  float v15; // xmm6_4\n  float v16; // xmm7_4\n  __int64 v17; // rax\n  struct cocos2d::CCObject *ToggleButton; // r15\n  cocos2d::CCArray *v19; // r12\n  __int64 v20; // rax\n  cocos2d::CCString *v21; // rax\n  const char *CString; // rax\n  size_t v23; // r8\n  __int64 v24; // rbx\n  __int64 v25; // rax\n  void *v26; // rcx\n  void *v27; // rcx\n  struct cocos2d::CCSprite *v28; // rax\n  int v29; // ebx\n  struct cocos2d::CCObject *v30; // rdi\n  __int64 v31; // rax\n  __int64 v32; // rbx\n  __int64 v33; // rax\n  unsigned __int8 v36[8]; // [rsp+88h] [rbp-78h] BYREF\n  __int128 *v37; // [rsp+90h] [rbp-70h] BYREF\n  _BYTE v38[8]; // [rsp+98h] [rbp-68h] BYREF\n  __int128 v39; // [rsp+A0h] [rbp-60h] BYREF\n  __int64 v40; // [rsp+B0h] [rbp-50h]\n  __int64 v41; // [rsp+B8h] [rbp-48h]\n  _BYTE v42[8]; // [rsp+C0h] [rbp-40h] BYREF\n  _BYTE v43[8]; // [rsp+C8h] [rbp-38h] BYREF\n  void *Block[2]; // [rsp+D0h] [rbp-30h] BYREF\n  __m128i si128; // [rsp+E0h] [rbp-20h]\n  void *v46[2]; // [rsp+F0h] [rbp-10h] BYREF\n  __int128 v47; // [rsp+100h] [rbp+0h]\n\n  *(_DWORD *)v36 = a3;\n  v7 = *(_DWORD *)(a1 + 1012);\n  *(_DWORD *)(a1 + 1012) = v7 + 1;\n  v8 = *(_DWORD *)(a1 + 1016);\n  v9 = (int)fmaxf(0.0, floorf((float)(v7 / *(_DWORD *)(a1 + 1008))));\n  if ( v8 <= (int)v9 )\n    v8 = v9;\n  *(_DWORD *)(a1 + 1016) = v8;\n  GJOptionsLayer::nextPosition(a1, v38, v9);\n  v10 = GJOptionsLayer::layerForPage(a1, v9);\n  v37 = &v39;\n  v39 = 0;\n  v40 = 0;\n  v41 = 0;\n  v11 = -1;\n  v12 = -1;\n  do\n    ++v12;\n  while ( a2[v12] );\n  sub_14003D230(&v39, a2, v12);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v42, 8.0, 0.0);\n  v14 = v13;\n  v15 = *(float *)(a1 + 1024);\n  v16 = *(float *)(a1 + 1020);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, (const struct cocos2d::CCPoint *)v38);\n  ToggleButton = GameToolbox::createToggleButton(\n                   (const char *)&v39,\n                   (__int64)GJOptionsLayer::onToggle,\n                   a4,\n                   *(_QWORD *)(a1 + 552),\n                   v17,\n                   a1,\n                   v10,\n                   0.80000001,\n                   v16,\n                   v15,\n                   v14,\n                   (const char *)&qword_140704F78,\n                   0,\n                   0,\n                   nullptr);\n  (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)ToggleButton + 64LL))(\n    ToggleButton,\n    *(unsigned int *)v36);\n  *(_DWORD *)(*((_QWORD *)ToggleButton + 47) + 372LL) = 1065353216;\n  *(_DWORD *)(*((_QWORD *)ToggleButton + 48) + 372LL) = 1065353216;\n  CCMenuItemToggler::toggle((__int64)ToggleButton, *((unsigned __int8 *)ToggleButton + 392));\n  *(_QWORD *)(*(_QWORD *)sub_1400677E0((_QWORD *)(a1 + 1072), (__int64)Block, v36) + 24LL) = ToggleButton;\n  GJOptionsLayer::incrementCountForPage(a1, v9);\n  v19 = (cocos2d::CCArray *)GJOptionsLayer::objectsForPage(a1, v9);\n  cocos2d::CCArray::addObject(v19, ToggleButton);\n  (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)ToggleButton + 336LL))(ToggleButton, 0);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 336LL))(v10, 0);\n  if ( a5 )\n  {\n    v20 = -1;\n    do\n      ++v20;\n    while ( a5[v20] );\n    if ( v20 )\n    {\n      v21 = cocos2d::CCString::createWithFormat(\"info_%i\", *(_DWORD *)v36);\n      CString = cocos2d::CCString::getCString(v21);\n      *(_OWORD *)v46 = 0;\n      v47 = 0;\n      v23 = -1;\n      do\n        ++v23;\n      while ( CString[v23] );\n      sub_14003D230(v46, CString, v23);\n      *(_OWORD *)Block = 0;\n      si128 = 0;\n      do\n        ++v11;\n      while ( a5[v11] );\n      sub_14003D230(Block, a5, v11);\n      v24 = *(_QWORD *)(a1 + 1032);\n      v25 = cocos2d::CCString::create(Block);\n      cocos2d::CCDictionary::setObject(v24, v25, v46);\n      if ( si128.m128i_i64[1] > 0xFuLL )\n      {\n        v26 = Block[0];\n        if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n        {\n          v26 = *((void **)Block[0] - 1);\n          if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v26);\n      }\n      si128 = _mm_load_si128((const __m128i *)&Size);\n      LOBYTE(Block[0]) = 0;\n      if ( *((_QWORD *)&v47 + 1) > 0xFu )\n      {\n        v27 = v46[0];\n        if ( (unsigned __int64)(*((_QWORD *)&v47 + 1) + 1LL) >= 0x1000 )\n        {\n          v27 = *((void **)v46[0] - 1);\n          if ( (unsigned __int64)((char *)v46[0] - (char *)v27 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v27);\n      }\n      v28 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_infoIcon_001.png\");\n      v29 = (int)v28;\n      (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v28 + 160LL))(v28);\n      v30 = CCMenuItemSpriteExtra::create(v29, 0, a1, (__int64)GJOptionsLayer::onInfo);\n      *((_DWORD *)v30 + 93) = 0x40000000;\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v30 + 64LL))(v30, *(unsigned int *)v36);\n      (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(\n        *(_QWORD *)(a1 + 552),\n        v30);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, -18.0, 16.0);\n      v32 = v31;\n      v33 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)ToggleButton + 200LL))(ToggleButton);\n      cocos2d::CCPoint::operator+(v33, &v37, v32);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, __int128 **))(*(_QWORD *)v30 + 184LL))(v30, &v37);\n      cocos2d::CCArray::addObject(v19, v30);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v30 + 336LL))(v30, 0);\n    }\n  }\n  return ToggleButton;\n}", "assembly": "; \n; GJOptionsLayer::addToggleInternal from 0x14039b1a0 to 0x14039b63c (1180 bytes)\n; \n; 28 xrefs:\n; > GJOptionsLayer::addGVToggle @ 0x14039b0cb\n; > GameLevelOptionsLayer::setupOptions @ 0x1403aa62f\n; > GameLevelOptionsLayer::setupOptions @ 0x1403aa65f\n; > GameLevelOptionsLayer::setupOptions @ 0x1403aa692\n; > GameLevelOptionsLayer::setupOptions @ 0x1403aa6c8\n; > GameLevelOptionsLayer::setupOptions @ 0x1403aa715\n; > LevelOptionsLayer::setupOptions @ 0x14045d26a\n; > LevelOptionsLayer::setupOptions @ 0x14045d293\n; > LevelOptionsLayer::setupOptions @ 0x14045d2cd\n; > LevelOptionsLayer::setupOptions @ 0x14045d2f6\n; > LevelOptionsLayer::setupOptions @ 0x14045d31f\n; > LevelOptionsLayer::setupOptions @ 0x14045d348\n; > LevelOptionsLayer::setupOptions @ 0x14045d371\n; > LevelOptionsLayer::setupOptions @ 0x14045d3af\n; > LevelOptionsLayer2::setupOptions @ 0x14045dbb1\n; > LevelOptionsLayer2::setupOptions @ 0x14045dbe1\n; > LevelOptionsLayer2::setupOptions @ 0x14045dc11\n; > LevelOptionsLayer2::setupOptions @ 0x14045dc41\n; > LevelOptionsLayer2::setupOptions @ 0x14045dc71\n; > LevelOptionsLayer2::setupOptions @ 0x14045dca1\n; > LevelOptionsLayer2::setupOptions @ 0x14045dcd1\n; > LevelOptionsLayer2::setupOptions @ 0x14045dd01\n; > LevelOptionsLayer2::setupOptions @ 0x14045dd31\n; > LevelOptionsLayer2::setupOptions @ 0x14045dd61\n; > LevelOptionsLayer2::setupOptions @ 0x14045dd91\n; > LevelOptionsLayer2::setupOptions @ 0x14045ddc1\n; > LevelOptionsLayer2::setupOptions @ 0x14045ddf5\n; > <???> @ 0x140923318\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:15 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x14039b1a0\npush    rbp                                                            ; +0x3, 0x14039b1a3\npush    rbx                                                            ; +0x4, 0x14039b1a4\npush    rsi                                                            ; +0x5, 0x14039b1a5\npush    rdi                                                            ; +0x6, 0x14039b1a6\npush    r12                                                            ; +0x7, 0x14039b1a7\npush    r13                                                            ; +0x9, 0x14039b1a9\npush    r14                                                            ; +0xb, 0x14039b1ab\npush    r15                                                            ; +0xd, 0x14039b1ad\nlea     rbp, [rsp-48h]                                                 ; +0xf, 0x14039b1af\nsub     rsp, 148h                                                      ; +0x14, 0x14039b1b4\nmovaps  xmmword ptr [rax-58h], xmm6                                    ; +0x1b, 0x14039b1bb\nmovaps  xmmword ptr [rax-68h], xmm7                                    ; +0x1f, 0x14039b1bf\nmov     rax, cs:__security_cookie                                      ; +0x23, 0x14039b1c3\nxor     rax, rsp                                                       ; +0x2a, 0x14039b1ca\nmov     [rbp+80h+var_70], rax                                          ; +0x2d, 0x14039b1cd\nmov     [rbp+80h+var_100], r9b                                         ; +0x31, 0x14039b1d1\nmov     r15, rdx                                                       ; +0x35, 0x14039b1d5\nmov     r14, rcx                                                       ; +0x38, 0x14039b1d8\nmov     dword ptr [rbp+80h+var_F8], r8d                                ; +0x3b, 0x14039b1db\nmov     rsi, [rbp+80h+arg_20]                                          ; +0x3f, 0x14039b1df\nmov     eax, [rcx+3F4h]                                                ; +0x46, 0x14039b1e6\nlea     ecx, [rax+1]                                                   ; +0x4c, 0x14039b1ec\nmov     [r14+3F4h], ecx                                                ; +0x4f, 0x14039b1ef\nmov     ebx, [r14+3F8h]                                                ; +0x56, 0x14039b1f6\ncdq                                                                    ; +0x5d, 0x14039b1fd\nidiv    dword ptr [r14+3F0h]                                           ; +0x5e, 0x14039b1fe\nmovd    xmm0, eax                                                      ; +0x65, 0x14039b205\ncvtdq2ps xmm0, xmm0; X                                                 ; +0x69, 0x14039b209\ncall    floorf                                                         ; +0x6c, 0x14039b20c\nxorps   xmm1, xmm1                                                     ; +0x71, 0x14039b211\nmaxss   xmm1, xmm0                                                     ; +0x74, 0x14039b214\ncvttss2si r12d, xmm1                                                   ; +0x78, 0x14039b218\ncmp     ebx, r12d                                                      ; +0x7d, 0x14039b21d\ncmovle  ebx, r12d                                                      ; +0x80, 0x14039b220\nmov     [r14+3F8h], ebx                                                ; +0x84, 0x14039b224\nmov     r8d, r12d                                                      ; +0x8b, 0x14039b22b\nlea     rdx, [rbp+80h+var_E8]                                          ; +0x8e, 0x14039b22e\nmov     rcx, r14                                                       ; +0x92, 0x14039b232\ncall    GJOptionsLayer__nextPosition                                   ; +0x95, 0x14039b235\nmov     edx, r12d                                                      ; +0x9a, 0x14039b23a\nmov     rcx, r14                                                       ; +0x9d, 0x14039b23d\ncall    GJOptionsLayer__layerForPage                                   ; +0xa0, 0x14039b240\nmov     r13, rax                                                       ; +0xa5, 0x14039b245\nlea     rax, [rbp+80h+var_E0]                                          ; +0xa8, 0x14039b248\nmov     [rbp+80h+var_F0], rax                                          ; +0xac, 0x14039b24c\nxorps   xmm0, xmm0                                                     ; +0xb0, 0x14039b250\nmovups  [rbp+80h+var_E0], xmm0                                         ; +0xb3, 0x14039b253\nxor     eax, eax                                                       ; +0xb7, 0x14039b257\nmov     [rbp+80h+var_D0], rax                                          ; +0xb9, 0x14039b259\nmov     [rbp+80h+var_C8], rax                                          ; +0xbd, 0x14039b25d\nmov     rdi, 0FFFFFFFFFFFFFFFFh                                        ; +0xc1, 0x14039b261\nmov     r8, rdi                                                        ; +0xc8, 0x14039b268\nnop     dword ptr [rax+rax+00h]                                        ; +0xcb, 0x14039b26b\ninc     r8                                                             ; +0xd0, 0x14039b270\ncmp     [r15+r8], al                                                   ; +0xd3, 0x14039b273\njnz     short loc_14039B270                                            ; +0xd7, 0x14039b277\nmov     rdx, r15                                                       ; +0xd9, 0x14039b279\nlea     rcx, [rbp+80h+var_E0]                                          ; +0xdc, 0x14039b27c\ncall    sub_14003D230                                                  ; +0xe0, 0x14039b280\nnop                                                                    ; +0xe5, 0x14039b285\nxorps   xmm2, xmm2                                                     ; +0xe6, 0x14039b286\nmovss   xmm1, cs:dword_1408354D4                                       ; +0xe9, 0x14039b289\nlea     rcx, [rbp+80h+var_C0]                                          ; +0xf1, 0x14039b291\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xf5, 0x14039b295\nmov     rbx, rax                                                       ; +0xfb, 0x14039b29b\nmovss   xmm6, dword ptr [r14+400h]                                     ; +0xfe, 0x14039b29e\nmovss   xmm7, dword ptr [r14+3FCh]                                     ; +0x107, 0x14039b2a7\nlea     rdx, [rbp+80h+var_E8]                                          ; +0x110, 0x14039b2b0\nlea     rcx, [rbp+80h+var_B8]                                          ; +0x114, 0x14039b2b4\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x118, 0x14039b2b8\nnop                                                                    ; +0x11e, 0x14039b2be\nxor     ecx, ecx                                                       ; +0x11f, 0x14039b2bf\nmov     [rsp+180h+var_110], rcx                                        ; +0x121, 0x14039b2c1\nmov     [rsp+180h+var_118], ecx                                        ; +0x126, 0x14039b2c6\nmov     [rsp+180h+var_120], cl                                         ; +0x12a, 0x14039b2ca\nlea     rcx, qword_140704F78                                           ; +0x12e, 0x14039b2ce\nmov     [rsp+180h+var_128], rcx                                        ; +0x135, 0x14039b2d5\nmov     [rsp+180h+var_130], rbx                                        ; +0x13a, 0x14039b2da\nmovss   [rsp+180h+var_138], xmm6                                       ; +0x13f, 0x14039b2df\nmovss   [rsp+180h+var_140], xmm7                                       ; +0x145, 0x14039b2e5\nmovss   xmm0, cs:dword_140834FE8                                       ; +0x14b, 0x14039b2eb\nmovss   [rsp+180h+var_148], xmm0                                       ; +0x153, 0x14039b2f3\nmov     [rsp+180h+var_150], r13                                        ; +0x159, 0x14039b2f9\nmov     [rsp+180h+var_158], r14                                        ; +0x15e, 0x14039b2fe\nmov     [rsp+180h+Reserved], rax                                       ; +0x163, 0x14039b303\nmov     r9, [r14+228h]                                                 ; +0x168, 0x14039b308\nmovzx   r8d, [rbp+80h+var_100]                                         ; +0x16f, 0x14039b30f\nlea     rdx, GJOptionsLayer__onToggle                                  ; +0x174, 0x14039b314\nlea     rcx, [rbp+80h+var_E0]                                          ; +0x17b, 0x14039b31b\ncall    GameToolbox__createToggleButton                                ; +0x17f, 0x14039b31f\nmov     r15, rax                                                       ; +0x184, 0x14039b324\nmov     rcx, [rax]                                                     ; +0x187, 0x14039b327\nmov     r8, [rcx+40h]                                                  ; +0x18a, 0x14039b32a\nmov     edx, dword ptr [rbp+80h+var_F8]                                ; +0x18e, 0x14039b32e\nmov     rcx, rax                                                       ; +0x191, 0x14039b331\ncall    r8                                                             ; +0x194, 0x14039b334\nmov     rcx, [r15+178h]                                                ; +0x197, 0x14039b337\nmov     dword ptr [rcx+174h], 3F800000h                                ; +0x19e, 0x14039b33e\nmov     rcx, [r15+180h]                                                ; +0x1a8, 0x14039b348\nmov     dword ptr [rcx+174h], 3F800000h                                ; +0x1af, 0x14039b34f\nmovzx   edx, byte ptr [r15+188h]                                       ; +0x1b9, 0x14039b359\nmov     rcx, r15                                                       ; +0x1c1, 0x14039b361\ncall    CCMenuItemToggler__toggle                                      ; +0x1c4, 0x14039b364\nlea     rcx, [r14+430h]                                                ; +0x1c9, 0x14039b369\nlea     r8, [rbp+80h+var_F8]                                           ; +0x1d0, 0x14039b370\nlea     rdx, [rbp+80h+Block]                                           ; +0x1d4, 0x14039b374\ncall    sub_1400677E0                                                  ; +0x1d8, 0x14039b378\nmov     rcx, [rax]                                                     ; +0x1dd, 0x14039b37d\nmov     [rcx+18h], r15                                                 ; +0x1e0, 0x14039b380\nmov     edx, r12d                                                      ; +0x1e4, 0x14039b384\nmov     rcx, r14                                                       ; +0x1e7, 0x14039b387\ncall    GJOptionsLayer__incrementCountForPage                          ; +0x1ea, 0x14039b38a\nmov     edx, r12d                                                      ; +0x1ef, 0x14039b38f\nmov     rcx, r14                                                       ; +0x1f2, 0x14039b392\ncall    GJOptionsLayer__objectsForPage                                 ; +0x1f5, 0x14039b395\nmov     r12, rax                                                       ; +0x1fa, 0x14039b39a\nmov     rdx, r15                                                       ; +0x1fd, 0x14039b39d\nmov     rcx, rax                                                       ; +0x200, 0x14039b3a0\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x203, 0x14039b3a3\nmov     rcx, [r15]                                                     ; +0x209, 0x14039b3a9\nmov     r8, [rcx+150h]                                                 ; +0x20c, 0x14039b3ac\nxor     edx, edx                                                       ; +0x213, 0x14039b3b3\nmov     rcx, r15                                                       ; +0x215, 0x14039b3b5\ncall    r8                                                             ; +0x218, 0x14039b3b8\nmov     rcx, [r13+0]                                                   ; +0x21b, 0x14039b3bb\nmov     r8, [rcx+150h]                                                 ; +0x21f, 0x14039b3bf\nxor     edx, edx                                                       ; +0x226, 0x14039b3c6\nmov     rcx, r13                                                       ; +0x228, 0x14039b3c8\ncall    r8                                                             ; +0x22b, 0x14039b3cb\ntest    rsi, rsi                                                       ; +0x22e, 0x14039b3ce\njz      loc_14039B609                                                  ; +0x231, 0x14039b3d1\nmov     rax, rdi                                                       ; +0x237, 0x14039b3d7\nnop     word ptr [rax+rax+00h]                                         ; +0x23a, 0x14039b3da\ninc     rax                                                            ; +0x240, 0x14039b3e0\ncmp     byte ptr [rsi+rax], 0                                          ; +0x243, 0x14039b3e3\njnz     short loc_14039B3E0                                            ; +0x247, 0x14039b3e7\ntest    rax, rax                                                       ; +0x249, 0x14039b3e9\njz      loc_14039B609                                                  ; +0x24c, 0x14039b3ec\nmov     edx, dword ptr [rbp+80h+var_F8]                                ; +0x252, 0x14039b3f2\nlea     rcx, aInfoI; \"info_%i\"                                         ; +0x255, 0x14039b3f5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x25c, 0x14039b3fc\nmov     rcx, rax                                                       ; +0x262, 0x14039b402\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x265, 0x14039b405\nxorps   xmm0, xmm0                                                     ; +0x26b, 0x14039b40b\nmovups  xmmword ptr [rbp+80h+var_90], xmm0                             ; +0x26e, 0x14039b40e\nxorps   xmm1, xmm1                                                     ; +0x272, 0x14039b412\nmovdqu  [rbp+80h+var_80], xmm1                                         ; +0x275, 0x14039b415\nmov     r8, rdi                                                        ; +0x27a, 0x14039b41a\nnop     dword ptr [rax]                                                ; +0x27d, 0x14039b41d\ninc     r8                                                             ; +0x280, 0x14039b420\ncmp     byte ptr [rax+r8], 0                                           ; +0x283, 0x14039b423\njnz     short loc_14039B420                                            ; +0x288, 0x14039b428\nmov     rdx, rax                                                       ; +0x28a, 0x14039b42a\nlea     rcx, [rbp+80h+var_90]                                          ; +0x28d, 0x14039b42d\ncall    sub_14003D230                                                  ; +0x291, 0x14039b431\nnop                                                                    ; +0x296, 0x14039b436\nxorps   xmm0, xmm0                                                     ; +0x297, 0x14039b437\nmovups  xmmword ptr [rbp+80h+Block], xmm0                              ; +0x29a, 0x14039b43a\nxorps   xmm1, xmm1                                                     ; +0x29e, 0x14039b43e\nmovdqu  [rbp+80h+var_A0], xmm1                                         ; +0x2a1, 0x14039b441\ninc     rdi                                                            ; +0x2a6, 0x14039b446\ncmp     byte ptr [rsi+rdi], 0                                          ; +0x2a9, 0x14039b449\njnz     short loc_14039B446                                            ; +0x2ad, 0x14039b44d\nmov     r8, rdi                                                        ; +0x2af, 0x14039b44f\nmov     rdx, rsi                                                       ; +0x2b2, 0x14039b452\nlea     rcx, [rbp+80h+Block]                                           ; +0x2b5, 0x14039b455\ncall    sub_14003D230                                                  ; +0x2b9, 0x14039b459\nnop                                                                    ; +0x2be, 0x14039b45e\nmov     rbx, [r14+408h]                                                ; +0x2bf, 0x14039b45f\nlea     rcx, [rbp+80h+Block]                                           ; +0x2c6, 0x14039b466\ncall    cs:?create@CCString@cocos2d@@SAPEAV12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCString::create(std::string const &) ; +0x2ca, 0x14039b46a\nmov     rdx, rax                                                       ; +0x2d0, 0x14039b470\nlea     r8, [rbp+80h+var_90]                                           ; +0x2d3, 0x14039b473\nmov     rcx, rbx                                                       ; +0x2d7, 0x14039b477\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x2da, 0x14039b47a\nnop                                                                    ; +0x2e0, 0x14039b480\nmov     rdx, qword ptr [rbp+80h+var_A0+8]                              ; +0x2e1, 0x14039b481\ncmp     rdx, 0Fh                                                       ; +0x2e5, 0x14039b485\njbe     short loc_14039B4D2                                            ; +0x2e9, 0x14039b489\ninc     rdx                                                            ; +0x2eb, 0x14039b48b\nmov     rcx, [rbp+80h+Block]; Block                                    ; +0x2ee, 0x14039b48e\nmov     rax, rcx                                                       ; +0x2f2, 0x14039b492\ncmp     rdx, 1000h                                                     ; +0x2f5, 0x14039b495\njb      short loc_14039B4CD                                            ; +0x2fc, 0x14039b49c\nadd     rdx, 27h ; '''                                                 ; +0x2fe, 0x14039b49e\nmov     rcx, [rcx-8]                                                   ; +0x302, 0x14039b4a2\nsub     rax, rcx                                                       ; +0x306, 0x14039b4a6\nsub     rax, 8                                                         ; +0x309, 0x14039b4a9\ncmp     rax, 1Fh                                                       ; +0x30d, 0x14039b4ad\njbe     short loc_14039B4CD                                            ; +0x311, 0x14039b4b1\nmov     [rsp+180h+Reserved], 0; Reserved                               ; +0x313, 0x14039b4b3\nxor     r9d, r9d; LineNo                                               ; +0x31c, 0x14039b4bc\nxor     r8d, r8d; FileName                                             ; +0x31f, 0x14039b4bf\nxor     edx, edx; FunctionName                                         ; +0x322, 0x14039b4c2\nxor     ecx, ecx; Expression                                           ; +0x324, 0x14039b4c4\ncall    cs:_invoke_watson                                              ; +0x326, 0x14039b4c6\ndb 0CCh                                                                ; +0x32c, 0x14039b4cc\ncall    j_j_free                                                       ; +0x32d, 0x14039b4cd\nmovdqa  xmm0, cs:Size                                                  ; +0x332, 0x14039b4d2\nmovdqu  [rbp+80h+var_A0], xmm0                                         ; +0x33a, 0x14039b4da\nmov     byte ptr [rbp+80h+Block], 0                                    ; +0x33f, 0x14039b4df\nmov     rdx, qword ptr [rbp+80h+var_80+8]                              ; +0x343, 0x14039b4e3\ncmp     rdx, 0Fh                                                       ; +0x347, 0x14039b4e7\njbe     short loc_14039B534                                            ; +0x34b, 0x14039b4eb\ninc     rdx                                                            ; +0x34d, 0x14039b4ed\nmov     rcx, [rbp+80h+var_90]; Block                                   ; +0x350, 0x14039b4f0\nmov     rax, rcx                                                       ; +0x354, 0x14039b4f4\ncmp     rdx, 1000h                                                     ; +0x357, 0x14039b4f7\njb      short loc_14039B52F                                            ; +0x35e, 0x14039b4fe\nadd     rdx, 27h ; '''                                                 ; +0x360, 0x14039b500\nmov     rcx, [rcx-8]                                                   ; +0x364, 0x14039b504\nsub     rax, rcx                                                       ; +0x368, 0x14039b508\nsub     rax, 8                                                         ; +0x36b, 0x14039b50b\ncmp     rax, 1Fh                                                       ; +0x36f, 0x14039b50f\njbe     short loc_14039B52F                                            ; +0x373, 0x14039b513\nmov     [rsp+180h+Reserved], 0; Reserved                               ; +0x375, 0x14039b515\nxor     r9d, r9d; LineNo                                               ; +0x37e, 0x14039b51e\nxor     r8d, r8d; FileName                                             ; +0x381, 0x14039b521\nxor     edx, edx; FunctionName                                         ; +0x384, 0x14039b524\nxor     ecx, ecx; Expression                                           ; +0x386, 0x14039b526\ncall    cs:_invoke_watson                                              ; +0x388, 0x14039b528\ndb 0CCh                                                                ; +0x38e, 0x14039b52e\ncall    j_j_free                                                       ; +0x38f, 0x14039b52f\nlea     rcx, aGjInfoicon001P; \"GJ_infoIcon_001.png\"                    ; +0x394, 0x14039b534\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x39b, 0x14039b53b\nmov     rbx, rax                                                       ; +0x3a1, 0x14039b541\nmov     rcx, [rax]                                                     ; +0x3a4, 0x14039b544\nmov     rdx, [rcx+0A0h]                                                ; +0x3a7, 0x14039b547\nmovss   xmm1, cs:dword_140834F20                                       ; +0x3ae, 0x14039b54e\nmov     rcx, rax                                                       ; +0x3b6, 0x14039b556\ncall    rdx                                                            ; +0x3b9, 0x14039b559\nlea     r9, GJOptionsLayer__onInfo                                     ; +0x3bb, 0x14039b55b\nmov     r8, r14                                                        ; +0x3c2, 0x14039b562\nxor     edx, edx                                                       ; +0x3c5, 0x14039b565\nmov     rcx, rbx                                                       ; +0x3c7, 0x14039b567\ncall    CCMenuItemSpriteExtra__create                                  ; +0x3ca, 0x14039b56a\nmov     rdi, rax                                                       ; +0x3cf, 0x14039b56f\nmov     dword ptr [rax+174h], 40000000h                                ; +0x3d2, 0x14039b572\nmov     rcx, [rax]                                                     ; +0x3dc, 0x14039b57c\nmov     r8, [rcx+40h]                                                  ; +0x3df, 0x14039b57f\nmov     edx, dword ptr [rbp+80h+var_F8]                                ; +0x3e3, 0x14039b583\nmov     rcx, rax                                                       ; +0x3e6, 0x14039b586\ncall    r8                                                             ; +0x3e9, 0x14039b589\nmov     rcx, [r14+228h]                                                ; +0x3ec, 0x14039b58c\nmov     rdx, [rcx]                                                     ; +0x3f3, 0x14039b593\nmov     r8, [rdx+1D0h]                                                 ; +0x3f6, 0x14039b596\nmov     rdx, rdi                                                       ; +0x3fd, 0x14039b59d\ncall    r8                                                             ; +0x400, 0x14039b5a0\nmovss   xmm2, cs:dword_140835580                                       ; +0x403, 0x14039b5a3\nmovss   xmm1, cs:dword_140835E3C                                       ; +0x40b, 0x14039b5ab\nlea     rcx, [rbp+80h+Block]                                           ; +0x413, 0x14039b5b3\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x417, 0x14039b5b7\nmov     rbx, rax                                                       ; +0x41d, 0x14039b5bd\nmov     rcx, [r15]                                                     ; +0x420, 0x14039b5c0\nmov     rdx, [rcx+0C8h]                                                ; +0x423, 0x14039b5c3\nmov     rcx, r15                                                       ; +0x42a, 0x14039b5ca\ncall    rdx                                                            ; +0x42d, 0x14039b5cd\nmov     r8, rbx                                                        ; +0x42f, 0x14039b5cf\nlea     rdx, [rbp+80h+var_F0]                                          ; +0x432, 0x14039b5d2\nmov     rcx, rax                                                       ; +0x436, 0x14039b5d6\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x439, 0x14039b5d9\nmov     rax, [rdi]                                                     ; +0x43f, 0x14039b5df\nlea     rdx, [rbp+80h+var_F0]                                          ; +0x442, 0x14039b5e2\nmov     rcx, rdi                                                       ; +0x446, 0x14039b5e6\ncall    qword ptr [rax+0B8h]                                           ; +0x449, 0x14039b5e9\nmov     rdx, rdi                                                       ; +0x44f, 0x14039b5ef\nmov     rcx, r12                                                       ; +0x452, 0x14039b5f2\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x455, 0x14039b5f5\nmov     rax, [rdi]                                                     ; +0x45b, 0x14039b5fb\nxor     edx, edx                                                       ; +0x45e, 0x14039b5fe\nmov     rcx, rdi                                                       ; +0x460, 0x14039b600\ncall    qword ptr [rax+150h]                                           ; +0x463, 0x14039b603\nmov     rax, r15                                                       ; +0x469, 0x14039b609\nmov     rcx, [rbp+80h+var_70]                                          ; +0x46c, 0x14039b60c\nxor     rcx, rsp; StackCookie                                          ; +0x470, 0x14039b610\ncall    __security_check_cookie                                        ; +0x473, 0x14039b613\nmovaps  xmm6, [rsp+180h+var_50]                                        ; +0x478, 0x14039b618\nmovaps  xmm7, [rsp+180h+var_60]                                        ; +0x480, 0x14039b620\nadd     rsp, 148h                                                      ; +0x488, 0x14039b628\npop     r15                                                            ; +0x48f, 0x14039b62f\npop     r14                                                            ; +0x491, 0x14039b631\npop     r13                                                            ; +0x493, 0x14039b633\npop     r12                                                            ; +0x495, 0x14039b635\npop     rdi                                                            ; +0x497, 0x14039b637\npop     rsi                                                            ; +0x498, 0x14039b638\npop     rbx                                                            ; +0x499, 0x14039b639\npop     rbp                                                            ; +0x49a, 0x14039b63a\nretn                                                                   ; +0x49b, 0x14039b63b", "xrefs": ["GJOptionsLayer::addGVToggle @ 0x14039b0cb", "GameLevelOptionsLayer::setupOptions @ 0x1403aa62f", "GameLevelOptionsLayer::setupOptions @ 0x1403aa65f", "GameLevelOptionsLayer::setupOptions @ 0x1403aa692", "GameLevelOptionsLayer::setupOptions @ 0x1403aa6c8", "GameLevelOptionsLayer::setupOptions @ 0x1403aa715", "LevelOptionsLayer::setupOptions @ 0x14045d26a", "LevelOptionsLayer::setupOptions @ 0x14045d293", "LevelOptionsLayer::setupOptions @ 0x14045d2cd", "LevelOptionsLayer::setupOptions @ 0x14045d2f6", "LevelOptionsLayer::setupOptions @ 0x14045d31f", "LevelOptionsLayer::setupOptions @ 0x14045d348", "LevelOptionsLayer::setupOptions @ 0x14045d371", "LevelOptionsLayer::setupOptions @ 0x14045d3af", "LevelOptionsLayer2::setupOptions @ 0x14045dbb1", "LevelOptionsLayer2::setupOptions @ 0x14045dbe1", "LevelOptionsLayer2::setupOptions @ 0x14045dc11", "LevelOptionsLayer2::setupOptions @ 0x14045dc41", "LevelOptionsLayer2::setupOptions @ 0x14045dc71", "LevelOptionsLayer2::setupOptions @ 0x14045dca1", "LevelOptionsLayer2::setupOptions @ 0x14045dcd1", "LevelOptionsLayer2::setupOptions @ 0x14045dd01", "LevelOptionsLayer2::setupOptions @ 0x14045dd31", "LevelOptionsLayer2::setupOptions @ 0x14045dd61", "LevelOptionsLayer2::setupOptions @ 0x14045dd91", "LevelOptionsLayer2::setupOptions @ 0x14045ddc1", "LevelOptionsLayer2::setupOptions @ 0x14045ddf5", "<???> @ 0x140923318"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}