{"type": "func", "start": 5373257824, "end": 5373259346, "name": "ControlSlotsPopup::init", "pseudocode": "// \n// ControlSlotsPopup::init from 0x140456860 to 0x140456e52 (1522 bytes)\n// \n// 2 xrefs:\n// > TouchControlEditLayer::onSlots @ 0x140456495\n// > <???> @ 0x140927b3c\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:32:29 +0000\n// \n\n// Hidden C++ exception states: #wind=5\nchar __fastcall ControlSlotsPopup::init(__int64 a1, __int64 a2, char a3, int a4)\n{\n  char result; // al\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // rax\n  float v11; // xmm9_4\n  float v12; // xmm12_4\n  int i; // r14d\n  cocos2d::CCString *v14; // rax\n  const char *CString; // rdi\n  cocos2d::CCObject *v16; // rbx\n  __int64 *v17; // rax\n  cocos2d::CCObject *v18; // rdi\n  float v19; // xmm7_4\n  __int64 v20; // rax\n  __int64 v21; // rbx\n  __int64 v22; // rax\n  cocos2d::CCString *v23; // rax\n  const char *v24; // rdi\n  cocos2d::CCObject *v25; // rbx\n  cocos2d::CCObject *v26; // rdi\n  __int64 v27; // rax\n  __int64 v28; // rbx\n  __int64 v29; // rax\n  __int64 *v30; // rbx\n  cocos2d::CCObject *v31; // r14\n  __int64 v32; // rdi\n  __int64 v33; // rbx\n  __int64 v34; // rax\n  __int64 v35; // rax\n  float v36[2]; // [rsp+50h] [rbp-B0h] BYREF\n  _BYTE v37[8]; // [rsp+58h] [rbp-A8h] BYREF\n  _WORD v38[8]; // [rsp+60h] [rbp-A0h] BYREF\n  __int64 v39; // [rsp+70h] [rbp-90h]\n  __int64 v40; // [rsp+78h] [rbp-88h]\n  _BYTE v41[8]; // [rsp+80h] [rbp-80h] BYREF\n  _BYTE v42[8]; // [rsp+88h] [rbp-78h] BYREF\n  void *v43; // [rsp+90h] [rbp-70h]\n  void *v44; // [rsp+98h] [rbp-68h]\n  _BYTE v45[8]; // [rsp+A0h] [rbp-60h] BYREF\n  _BYTE v46[8]; // [rsp+A8h] [rbp-58h] BYREF\n  void *v47; // [rsp+B0h] [rbp-50h]\n  void *v48; // [rsp+B8h] [rbp-48h]\n  _BYTE v49[160]; // [rsp+C0h] [rbp-40h] BYREF\n  void *v50; // [rsp+1A8h] [rbp+A8h] BYREF\n\n  result = SetupTriggerPopup::init(a1, 0, 0, a4, 1128792064, 7, 0);\n  if ( !result )\n    return result;\n  *(_BYTE *)(a1 + 744) = 1;\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1);\n  qmemcpy(&v50, \"PWi\", 3);\n  v8 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 472LL))(*(_QWORD *)(a1 + 584), 3);\n  if ( v8 )\n    (**(void (__fastcall ***)(__int64, void **))(v8 + 320))(v8 + 320, &v50);\n  *(_QWORD *)(a1 + 1000) = a2;\n  *(_BYTE *)(a1 + 1008) = a3;\n  v10 = cocos2d::CCDirector::sharedDirector(v9);\n  cocos2d::CCDirector::getWinSize(v10, v36);\n  v11 = v36[0] * 0.5;\n  v12 = v36[1] * 0.5;\n  v38[7] = 0;\n  v39 = 13;\n  v40 = 15;\n  strcpy((char *)v38, \"Control Slots\");\n  SetupTriggerPopup::addTitle(a1, v38);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, v11, v12 + 25.0);\n  for ( i = 1; i <= 3; ++i )\n  {\n    v14 = cocos2d::CCString::createWithFormat(\"Save %i\", i);\n    CString = cocos2d::CCString::getCString(v14);\n    v43 = operator new(0x2C8u);\n    v16 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v43);\n    if ( v16 )\n    {\n      if ( ButtonSprite::init_1(\n             (__int64)v16,\n             (__int64)CString,\n             50,\n             0,\n             1060320051,\n             1,\n             \"goldFont.fnt\",\n             (__int64)\"GJ_button_01.png\",\n             1105199104) )\n      {\n        cocos2d::CCObject::autorelease(v16);\n      }\n      else\n      {\n        (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v16 + 8LL))(v16, 1);\n        v16 = nullptr;\n      }\n    }\n    v44 = operator new(0x208u);\n    v17 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v44);\n    v18 = (cocos2d::CCObject *)v17;\n    if ( v17 )\n    {\n      if ( CCMenuItemSpriteExtra::init(v17, (__int64 *)v16, 0, a1, (__int64)ControlSlotsPopup::onSave) )\n      {\n        cocos2d::CCObject::autorelease(v18);\n        goto LABEL_14;\n      }\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v18 + 8LL))(v18, 1);\n    }\n    v18 = nullptr;\nLABEL_14:\n    (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v18 + 64LL))(v18, (unsigned int)i);\n    (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v18);\n    v19 = (float)(i - 1) * -42.0;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v45, -45.0, v19);\n    cocos2d::CCPoint::operator+(v37, &v50, v20);\n    v21 = *(_QWORD *)v18;\n    cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v46, &v50);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v21 + 184))(v18, v22);\n    v23 = cocos2d::CCString::createWithFormat(\"Load %i\", i);\n    v24 = cocos2d::CCString::getCString(v23);\n    v47 = operator new(0x2C8u);\n    v25 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v47);\n    if ( v25 )\n    {\n      if ( ButtonSprite::init_1(\n             (__int64)v25,\n             (__int64)v24,\n             50,\n             0,\n             1060320051,\n             1,\n             \"goldFont.fnt\",\n             (__int64)\"GJ_button_02.png\",\n             1105199104) )\n      {\n        cocos2d::CCObject::autorelease(v25);\n      }\n      else\n      {\n        (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v25 + 8LL))(v25, 1);\n        v25 = nullptr;\n      }\n    }\n    v48 = operator new(0x208u);\n    v26 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v48);\n    if ( v26 )\n    {\n      if ( CCMenuItemSpriteExtra::init((__int64 *)v26, (__int64 *)v25, 0, a1, (__int64)ControlSlotsPopup::onLoad) )\n      {\n        cocos2d::CCObject::autorelease(v26);\n        goto LABEL_23;\n      }\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v26 + 8LL))(v26, 1);\n    }\n    v26 = nullptr;\nLABEL_23:\n    (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v26 + 64LL))(v26, (unsigned int)i);\n    (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v26);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, 45.0, v19);\n    cocos2d::CCPoint::operator+(v37, v41, v27);\n    v28 = *(_QWORD *)v26;\n    cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v42, v41);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v28 + 184))(v26, v29);\n  }\n  v30 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_closeBtn_001.png\");\n  (*(void (__fastcall **)(__int64 *))(*v30 + 160))(v30);\n  v50 = operator new(0x208u);\n  v31 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v50);\n  if ( v31 )\n  {\n    if ( CCMenuItemSpriteExtra::init((__int64 *)v31, v30, 0, a1, (__int64)sub_14009D628) )\n    {\n      cocos2d::CCObject::autorelease(v31);\n      goto LABEL_29;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v31 + 8LL))(v31, 1);\n  }\n  v31 = nullptr;\nLABEL_29:\n  (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v31);\n  v32 = *(_QWORD *)v31;\n  v33 = *(_QWORD *)(a1 + 552);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v50,\n    v11 - (float)(*(float *)(a1 + 732) * 0.5),\n    (float)(*(float *)(a1 + 736) * 0.5) + v12);\n  cocos2d::CCNode::convertToNodeSpace(v33, v42, v34);\n  (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v32 + 184))(v31, v35);\n  (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1);\n  *(_BYTE *)(a1 + 744) = 0;\n  return 1;\n}", "assembly": "; \n; ControlSlotsPopup::init from 0x140456860 to 0x140456e52 (1522 bytes)\n; \n; 2 xrefs:\n; > TouchControlEditLayer::onSlots @ 0x140456495\n; > <???> @ 0x140927b3c\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:32:29 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x140456860\nmov     [rax+8], rbx                                                   ; +0x3, 0x140456863\nmov     [rax+10h], rsi                                                 ; +0x7, 0x140456867\nmov     [rax+18h], rdi                                                 ; +0xb, 0x14045686b\npush    rbp                                                            ; +0xf, 0x14045686f\npush    r12                                                            ; +0x10, 0x140456870\npush    r13                                                            ; +0x12, 0x140456872\npush    r14                                                            ; +0x14, 0x140456874\npush    r15                                                            ; +0x16, 0x140456876\nlea     rbp, [rsp-60h]                                                 ; +0x18, 0x140456878\nsub     rsp, 160h                                                      ; +0x1d, 0x14045687d\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x24, 0x140456884\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x28, 0x140456888\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x2c, 0x14045688c\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x31, 0x140456891\nmovaps  xmmword ptr [rax-78h], xmm10                                   ; +0x36, 0x140456896\nmovaps  xmmword ptr [rax-88h], xmm11                                   ; +0x3b, 0x14045689b\nmovaps  xmmword ptr [rax-98h], xmm12                                   ; +0x43, 0x1404568a3\nmovaps  xmmword ptr [rax-0A8h], xmm13                                  ; +0x4b, 0x1404568ab\nmovaps  xmmword ptr [rax-0B8h], xmm14                                  ; +0x53, 0x1404568b3\nmovzx   ebx, r8b                                                       ; +0x5b, 0x1404568bb\nmov     rdi, rdx                                                       ; +0x5f, 0x1404568bf\nmov     rsi, rcx                                                       ; +0x62, 0x1404568c2\nxorps   xmm0, xmm0                                                     ; +0x65, 0x1404568c5\nmovss   dword ptr [rsp+180h+var_150], xmm0                             ; +0x68, 0x1404568c8\nmov     [rsp+180h+var_158], 7                                          ; +0x6e, 0x1404568ce\nmovss   xmm1, cs:dword_1408358F4                                       ; +0x76, 0x1404568d6\nmovss   dword ptr [rsp+180h+var_160], xmm1                             ; +0x7e, 0x1404568de\nmovss   xmm3, cs:dword_140835950                                       ; +0x84, 0x1404568e4\nxor     r8d, r8d                                                       ; +0x8c, 0x1404568ec\nxor     edx, edx                                                       ; +0x8f, 0x1404568ef\ncall    SetupTriggerPopup__init                                        ; +0x91, 0x1404568f1\ntest    al, al                                                         ; +0x96, 0x1404568f6\njz      loc_140456E01                                                  ; +0x98, 0x1404568f8\nmov     byte ptr [rsi+2E8h], 1                                         ; +0x9e, 0x1404568fe\nmov     rax, [rsi]                                                     ; +0xa5, 0x140456905\nmov     rcx, rsi                                                       ; +0xa8, 0x140456908\ncall    qword ptr [rax+448h]                                           ; +0xab, 0x14045690b\nmov     word ptr [rbp+80h+arg_18], 5750h                               ; +0xb1, 0x140456911\nmovzx   eax, word ptr [rbp+80h+arg_18]                                 ; +0xba, 0x14045691a\nmov     word ptr [rbp+80h+arg_18], ax                                  ; +0xc1, 0x140456921\nmov     byte ptr [rbp+80h+arg_18+2], 69h ; 'i'                         ; +0xc8, 0x140456928\nmov     rcx, [rsi+248h]                                                ; +0xcf, 0x14045692f\nmov     rax, [rcx]                                                     ; +0xd6, 0x140456936\nmov     edx, 3                                                         ; +0xd9, 0x140456939\ncall    qword ptr [rax+1D8h]                                           ; +0xde, 0x14045693e\ntest    rax, rax                                                       ; +0xe4, 0x140456944\njz      short loc_14045695C                                            ; +0xe7, 0x140456947\nlea     rcx, [rax+140h]                                                ; +0xe9, 0x140456949\nmov     rax, [rcx]                                                     ; +0xf0, 0x140456950\nlea     rdx, [rbp+80h+arg_18]                                          ; +0xf3, 0x140456953\ncall    qword ptr [rax]                                                ; +0xfa, 0x14045695a\nmov     [rsi+3E8h], rdi                                                ; +0xfc, 0x14045695c\nmov     [rsi+3F0h], bl                                                 ; +0x103, 0x140456963\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x109, 0x140456969\nmov     rcx, rax                                                       ; +0x10f, 0x14045696f\nlea     rdx, [rsp+180h+var_130]                                        ; +0x112, 0x140456972\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x117, 0x140456977\nmovss   xmm9, [rsp+180h+var_130]                                       ; +0x11d, 0x14045697d\nmovss   xmm10, cs:dword_140834F20                                      ; +0x124, 0x140456984\nmulss   xmm9, xmm10                                                    ; +0x12d, 0x14045698d\nmovss   xmm12, [rsp+180h+var_12C]                                      ; +0x132, 0x140456992\nmulss   xmm12, xmm10                                                   ; +0x139, 0x140456999\nxor     r15d, r15d                                                     ; +0x13e, 0x14045699e\nmov     word ptr [rsp+180h+var_120+0Eh], r15w                          ; +0x141, 0x1404569a1\nmov     [rsp+180h+var_110], 0Dh                                        ; +0x147, 0x1404569a7\nmov     [rsp+180h+var_108], 0Fh                                        ; +0x150, 0x1404569b0\nmovsd   xmm0, cs:qword_140794F10                                       ; +0x159, 0x1404569b9\nmovsd   qword ptr [rsp+180h+var_120], xmm0                             ; +0x161, 0x1404569c1\nmov     eax, cs:dword_140794F18                                        ; +0x167, 0x1404569c7\nmov     dword ptr [rsp+180h+var_120+8], eax                            ; +0x16d, 0x1404569cd\nmovzx   eax, cs:byte_140794F1C                                         ; +0x171, 0x1404569d1\nmov     [rsp+180h+var_120+0Ch], al                                     ; +0x178, 0x1404569d8\nmov     [rsp+180h+var_120+0Dh], r15b                                   ; +0x17c, 0x1404569dc\nlea     rdx, [rsp+180h+var_120]                                        ; +0x181, 0x1404569e1\nmov     rcx, rsi                                                       ; +0x186, 0x1404569e6\ncall    SetupTriggerPopup__addTitle                                    ; +0x189, 0x1404569e9\nmovaps  xmm2, xmm12                                                    ; +0x18e, 0x1404569ee\naddss   xmm2, cs:dword_1408355E8                                       ; +0x192, 0x1404569f2\nmovaps  xmm1, xmm9                                                     ; +0x19a, 0x1404569fa\nlea     rcx, [rsp+180h+var_128]                                        ; +0x19e, 0x1404569fe\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a3, 0x140456a03\nmov     r14d, 1                                                        ; +0x1a9, 0x140456a09\nlea     r12, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x1af, 0x140456a0f\nlea     r13, ControlSlotsPopup__onSave                                 ; +0x1b6, 0x140456a16\nmovss   xmm8, cs:dword_140835610                                       ; +0x1bd, 0x140456a1d\nmovss   xmm6, cs:dword_140834FAC                                       ; +0x1c6, 0x140456a26\nmovss   xmm13, cs:dword_140835ECC                                      ; +0x1ce, 0x140456a2e\nmovss   xmm14, cs:dword_140835EDC                                      ; +0x1d7, 0x140456a37\nmovss   xmm11, cs:dword_140835690                                      ; +0x1e0, 0x140456a40\nnop     dword ptr [rax+00000000h]                                      ; +0x1e9, 0x140456a49\nmov     edx, r14d                                                      ; +0x1f0, 0x140456a50\nlea     rcx, aSaveI; \"Save %i\"                                         ; +0x1f3, 0x140456a53\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1fa, 0x140456a5a\nmov     rcx, rax                                                       ; +0x200, 0x140456a60\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x203, 0x140456a63\nmov     rdi, rax                                                       ; +0x209, 0x140456a69\nmov     ecx, 2C8h; Size                                                ; +0x20c, 0x140456a6c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x211, 0x140456a71\nmov     [rbp+80h+var_F0], rax                                          ; +0x216, 0x140456a76\nmov     rcx, rax                                                       ; +0x21a, 0x140456a7a\ncall    ButtonSprite__ButtonSprite                                     ; +0x21d, 0x140456a7d\nmov     rbx, rax                                                       ; +0x222, 0x140456a82\ntest    rax, rax                                                       ; +0x225, 0x140456a85\njz      short loc_140456ADE                                            ; +0x228, 0x140456a88\nmovss   [rsp+180h+var_140], xmm8                                       ; +0x22a, 0x140456a8a\nlea     rax, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x231, 0x140456a91\nmov     [rsp+180h+var_148], rax                                        ; +0x238, 0x140456a98\nmov     [rsp+180h+var_150], r12                                        ; +0x23d, 0x140456a9d\nmov     byte ptr [rsp+180h+var_158], 1                                 ; +0x242, 0x140456aa2\nmovss   dword ptr [rsp+180h+var_160], xmm6                             ; +0x247, 0x140456aa7\nxor     r9d, r9d                                                       ; +0x24d, 0x140456aad\nmov     r8d, 32h ; '2'                                                 ; +0x250, 0x140456ab0\nmov     rdx, rdi                                                       ; +0x256, 0x140456ab6\nmov     rcx, rbx                                                       ; +0x259, 0x140456ab9\ncall    ButtonSprite__init_1                                           ; +0x25c, 0x140456abc\nmov     rcx, rbx                                                       ; +0x261, 0x140456ac1\ntest    al, al                                                         ; +0x264, 0x140456ac4\njz      short loc_140456AD0                                            ; +0x266, 0x140456ac6\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x268, 0x140456ac8\njmp     short loc_140456ADE                                            ; +0x26e, 0x140456ace\nmov     rax, [rbx]                                                     ; +0x270, 0x140456ad0\nmov     edx, 1                                                         ; +0x273, 0x140456ad3\ncall    qword ptr [rax+8]                                              ; +0x278, 0x140456ad8\nmov     rbx, r15                                                       ; +0x27b, 0x140456adb\nmov     ecx, 208h; Size                                                ; +0x27e, 0x140456ade\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x283, 0x140456ae3\nmov     [rbp+80h+var_E8], rax                                          ; +0x288, 0x140456ae8\nmov     rcx, rax                                                       ; +0x28c, 0x140456aec\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x28f, 0x140456aef\nmov     rdi, rax                                                       ; +0x294, 0x140456af4\ntest    rax, rax                                                       ; +0x297, 0x140456af7\njz      short loc_140456B2C                                            ; +0x29a, 0x140456afa\nmov     [rsp+180h+var_160], r13                                        ; +0x29c, 0x140456afc\nmov     r9, rsi                                                        ; +0x2a1, 0x140456b01\nxor     r8d, r8d                                                       ; +0x2a4, 0x140456b04\nmov     rdx, rbx                                                       ; +0x2a7, 0x140456b07\nmov     rcx, rax                                                       ; +0x2aa, 0x140456b0a\ncall    CCMenuItemSpriteExtra__init                                    ; +0x2ad, 0x140456b0d\nmov     rcx, rdi                                                       ; +0x2b2, 0x140456b12\ntest    al, al                                                         ; +0x2b5, 0x140456b15\njz      short loc_140456B21                                            ; +0x2b7, 0x140456b17\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x2b9, 0x140456b19\njmp     short loc_140456B2F                                            ; +0x2bf, 0x140456b1f\nmov     rax, [rdi]                                                     ; +0x2c1, 0x140456b21\nmov     edx, 1                                                         ; +0x2c4, 0x140456b24\ncall    qword ptr [rax+8]                                              ; +0x2c9, 0x140456b29\nmov     rdi, r15                                                       ; +0x2cc, 0x140456b2c\nmov     rax, [rdi]                                                     ; +0x2cf, 0x140456b2f\nmov     edx, r14d                                                      ; +0x2d2, 0x140456b32\nmov     rcx, rdi                                                       ; +0x2d5, 0x140456b35\ncall    qword ptr [rax+40h]                                            ; +0x2d8, 0x140456b38\nmov     rcx, [rsi+228h]                                                ; +0x2db, 0x140456b3b\nmov     rax, [rcx]                                                     ; +0x2e2, 0x140456b42\nmov     rdx, rdi                                                       ; +0x2e5, 0x140456b45\ncall    qword ptr [rax+1D0h]                                           ; +0x2e8, 0x140456b48\nlea     eax, [r14-1]                                                   ; +0x2ee, 0x140456b4e\nmovd    xmm7, eax                                                      ; +0x2f2, 0x140456b52\ncvtdq2ps xmm7, xmm7                                                    ; +0x2f6, 0x140456b56\nmulss   xmm7, xmm13                                                    ; +0x2f9, 0x140456b59\nmovaps  xmm2, xmm7                                                     ; +0x2fe, 0x140456b5e\nmovaps  xmm1, xmm14                                                    ; +0x301, 0x140456b61\nlea     rcx, [rbp+80h+var_E0]                                          ; +0x305, 0x140456b65\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x309, 0x140456b69\nmov     r8, rax                                                        ; +0x30f, 0x140456b6f\nlea     rdx, [rbp+80h+arg_18]                                          ; +0x312, 0x140456b72\nlea     rcx, [rsp+180h+var_128]                                        ; +0x319, 0x140456b79\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x31e, 0x140456b7e\nmov     rbx, [rdi]                                                     ; +0x324, 0x140456b84\nlea     r8, [rbp+80h+arg_18]                                           ; +0x327, 0x140456b87\nlea     rdx, [rbp+80h+var_D8]                                          ; +0x32e, 0x140456b8e\nmov     rcx, [rsi+228h]                                                ; +0x332, 0x140456b92\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x339, 0x140456b99\nmov     rdx, rax                                                       ; +0x33f, 0x140456b9f\nmov     rcx, rdi                                                       ; +0x342, 0x140456ba2\ncall    qword ptr [rbx+0B8h]                                           ; +0x345, 0x140456ba5\nmov     edx, r14d                                                      ; +0x34b, 0x140456bab\nlea     rcx, aLoadI; \"Load %i\"                                         ; +0x34e, 0x140456bae\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x355, 0x140456bb5\nmov     rcx, rax                                                       ; +0x35b, 0x140456bbb\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x35e, 0x140456bbe\nmov     rdi, rax                                                       ; +0x364, 0x140456bc4\nmov     ecx, 2C8h; Size                                                ; +0x367, 0x140456bc7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x36c, 0x140456bcc\nmov     [rbp+80h+var_D0], rax                                          ; +0x371, 0x140456bd1\nmov     rcx, rax                                                       ; +0x375, 0x140456bd5\ncall    ButtonSprite__ButtonSprite                                     ; +0x378, 0x140456bd8\nmov     rbx, rax                                                       ; +0x37d, 0x140456bdd\ntest    rax, rax                                                       ; +0x380, 0x140456be0\njz      short loc_140456C39                                            ; +0x383, 0x140456be3\nmovss   [rsp+180h+var_140], xmm8                                       ; +0x385, 0x140456be5\nlea     rax, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x38c, 0x140456bec\nmov     [rsp+180h+var_148], rax                                        ; +0x393, 0x140456bf3\nmov     [rsp+180h+var_150], r12                                        ; +0x398, 0x140456bf8\nmov     byte ptr [rsp+180h+var_158], 1                                 ; +0x39d, 0x140456bfd\nmovss   dword ptr [rsp+180h+var_160], xmm6                             ; +0x3a2, 0x140456c02\nxor     r9d, r9d                                                       ; +0x3a8, 0x140456c08\nmov     r8d, 32h ; '2'                                                 ; +0x3ab, 0x140456c0b\nmov     rdx, rdi                                                       ; +0x3b1, 0x140456c11\nmov     rcx, rbx                                                       ; +0x3b4, 0x140456c14\ncall    ButtonSprite__init_1                                           ; +0x3b7, 0x140456c17\nmov     rcx, rbx                                                       ; +0x3bc, 0x140456c1c\ntest    al, al                                                         ; +0x3bf, 0x140456c1f\njz      short loc_140456C2B                                            ; +0x3c1, 0x140456c21\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x3c3, 0x140456c23\njmp     short loc_140456C39                                            ; +0x3c9, 0x140456c29\nmov     rax, [rbx]                                                     ; +0x3cb, 0x140456c2b\nmov     edx, 1                                                         ; +0x3ce, 0x140456c2e\ncall    qword ptr [rax+8]                                              ; +0x3d3, 0x140456c33\nmov     rbx, r15                                                       ; +0x3d6, 0x140456c36\nmov     ecx, 208h; Size                                                ; +0x3d9, 0x140456c39\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3de, 0x140456c3e\nmov     [rbp+80h+var_C8], rax                                          ; +0x3e3, 0x140456c43\nmov     rcx, rax                                                       ; +0x3e7, 0x140456c47\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x3ea, 0x140456c4a\nmov     rdi, rax                                                       ; +0x3ef, 0x140456c4f\ntest    rax, rax                                                       ; +0x3f2, 0x140456c52\njz      short loc_140456C8E                                            ; +0x3f5, 0x140456c55\nlea     rax, ControlSlotsPopup__onLoad                                 ; +0x3f7, 0x140456c57\nmov     [rsp+180h+var_160], rax                                        ; +0x3fe, 0x140456c5e\nmov     r9, rsi                                                        ; +0x403, 0x140456c63\nxor     r8d, r8d                                                       ; +0x406, 0x140456c66\nmov     rdx, rbx                                                       ; +0x409, 0x140456c69\nmov     rcx, rdi                                                       ; +0x40c, 0x140456c6c\ncall    CCMenuItemSpriteExtra__init                                    ; +0x40f, 0x140456c6f\nmov     rcx, rdi                                                       ; +0x414, 0x140456c74\ntest    al, al                                                         ; +0x417, 0x140456c77\njz      short loc_140456C83                                            ; +0x419, 0x140456c79\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x41b, 0x140456c7b\njmp     short loc_140456C91                                            ; +0x421, 0x140456c81\nmov     rax, [rdi]                                                     ; +0x423, 0x140456c83\nmov     edx, 1                                                         ; +0x426, 0x140456c86\ncall    qword ptr [rax+8]                                              ; +0x42b, 0x140456c8b\nmov     rdi, r15                                                       ; +0x42e, 0x140456c8e\nmov     rax, [rdi]                                                     ; +0x431, 0x140456c91\nmov     edx, r14d                                                      ; +0x434, 0x140456c94\nmov     rcx, rdi                                                       ; +0x437, 0x140456c97\ncall    qword ptr [rax+40h]                                            ; +0x43a, 0x140456c9a\nmov     rcx, [rsi+228h]                                                ; +0x43d, 0x140456c9d\nmov     rax, [rcx]                                                     ; +0x444, 0x140456ca4\nmov     rdx, rdi                                                       ; +0x447, 0x140456ca7\ncall    qword ptr [rax+1D0h]                                           ; +0x44a, 0x140456caa\nmovaps  xmm2, xmm7                                                     ; +0x450, 0x140456cb0\nmovaps  xmm1, xmm11                                                    ; +0x453, 0x140456cb3\nlea     rcx, [rbp+80h+var_C0]                                          ; +0x457, 0x140456cb7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x45b, 0x140456cbb\nmov     r8, rax                                                        ; +0x461, 0x140456cc1\nlea     rdx, [rbp+80h+var_100]                                         ; +0x464, 0x140456cc4\nlea     rcx, [rsp+180h+var_128]                                        ; +0x468, 0x140456cc8\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x46d, 0x140456ccd\nmov     rbx, [rdi]                                                     ; +0x473, 0x140456cd3\nlea     r8, [rbp+80h+var_100]                                          ; +0x476, 0x140456cd6\nlea     rdx, [rbp+80h+var_F8]                                          ; +0x47a, 0x140456cda\nmov     rcx, [rsi+228h]                                                ; +0x47e, 0x140456cde\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x485, 0x140456ce5\nmov     rdx, rax                                                       ; +0x48b, 0x140456ceb\nmov     rcx, rdi                                                       ; +0x48e, 0x140456cee\ncall    qword ptr [rbx+0B8h]                                           ; +0x491, 0x140456cf1\ninc     r14d                                                           ; +0x497, 0x140456cf7\ncmp     r14d, 3                                                        ; +0x49a, 0x140456cfa\njle     loc_140456A50                                                  ; +0x49e, 0x140456cfe\nlea     rcx, aGjClosebtn001P; \"GJ_closeBtn_001.png\"                    ; +0x4a4, 0x140456d04\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x4ab, 0x140456d0b\nmov     rbx, rax                                                       ; +0x4b1, 0x140456d11\nmov     rdx, [rax]                                                     ; +0x4b4, 0x140456d14\nmovaps  xmm1, xmm6                                                     ; +0x4b7, 0x140456d17\nmov     rcx, rax                                                       ; +0x4ba, 0x140456d1a\ncall    qword ptr [rdx+0A0h]                                           ; +0x4bd, 0x140456d1d\nmov     ecx, 208h; Size                                                ; +0x4c3, 0x140456d23\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4c8, 0x140456d28\nmov     [rbp+80h+arg_18], rax                                          ; +0x4cd, 0x140456d2d\nmov     rcx, rax                                                       ; +0x4d4, 0x140456d34\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x4d7, 0x140456d37\nmov     r14, rax                                                       ; +0x4dc, 0x140456d3c\ntest    rax, rax                                                       ; +0x4df, 0x140456d3f\njz      short loc_140456D7B                                            ; +0x4e2, 0x140456d42\nlea     rax, sub_14009D628                                             ; +0x4e4, 0x140456d44\nmov     [rsp+180h+var_160], rax                                        ; +0x4eb, 0x140456d4b\nmov     r9, rsi                                                        ; +0x4f0, 0x140456d50\nxor     r8d, r8d                                                       ; +0x4f3, 0x140456d53\nmov     rdx, rbx                                                       ; +0x4f6, 0x140456d56\nmov     rcx, r14                                                       ; +0x4f9, 0x140456d59\ncall    CCMenuItemSpriteExtra__init                                    ; +0x4fc, 0x140456d5c\nmov     rcx, r14                                                       ; +0x501, 0x140456d61\ntest    al, al                                                         ; +0x504, 0x140456d64\njz      short loc_140456D70                                            ; +0x506, 0x140456d66\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x508, 0x140456d68\njmp     short loc_140456D7E                                            ; +0x50e, 0x140456d6e\nmov     rax, [r14]                                                     ; +0x510, 0x140456d70\nmov     edx, 1                                                         ; +0x513, 0x140456d73\ncall    qword ptr [rax+8]                                              ; +0x518, 0x140456d78\nmov     r14, r15                                                       ; +0x51b, 0x140456d7b\nmov     rcx, [rsi+228h]                                                ; +0x51e, 0x140456d7e\nmov     rax, [rcx]                                                     ; +0x525, 0x140456d85\nmov     rdx, r14                                                       ; +0x528, 0x140456d88\ncall    qword ptr [rax+1D0h]                                           ; +0x52b, 0x140456d8b\nmov     rdi, [r14]                                                     ; +0x531, 0x140456d91\nmov     rbx, [rsi+228h]                                                ; +0x534, 0x140456d94\nmovss   xmm2, dword ptr [rsi+2E0h]                                     ; +0x53b, 0x140456d9b\nmulss   xmm2, xmm10                                                    ; +0x543, 0x140456da3\naddss   xmm2, xmm12                                                    ; +0x548, 0x140456da8\nmovss   xmm0, dword ptr [rsi+2DCh]                                     ; +0x54d, 0x140456dad\nmulss   xmm0, xmm10                                                    ; +0x555, 0x140456db5\nsubss   xmm9, xmm0                                                     ; +0x55a, 0x140456dba\nmovaps  xmm1, xmm9                                                     ; +0x55f, 0x140456dbf\nlea     rcx, [rbp+80h+arg_18]                                          ; +0x563, 0x140456dc3\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x56a, 0x140456dca\nmov     r8, rax                                                        ; +0x570, 0x140456dd0\nlea     rdx, [rbp+80h+var_F8]                                          ; +0x573, 0x140456dd3\nmov     rcx, rbx                                                       ; +0x577, 0x140456dd7\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x57a, 0x140456dda\nmov     rdx, rax                                                       ; +0x580, 0x140456de0\nmov     rcx, r14                                                       ; +0x583, 0x140456de3\ncall    qword ptr [rdi+0B8h]                                           ; +0x586, 0x140456de6\nmov     rax, [rsi]                                                     ; +0x58c, 0x140456dec\nmov     rcx, rsi                                                       ; +0x58f, 0x140456def\ncall    qword ptr [rax+470h]                                           ; +0x592, 0x140456df2\nmov     byte ptr [rsi+2E8h], 0                                         ; +0x598, 0x140456df8\nmov     al, 1                                                          ; +0x59f, 0x140456dff\nlea     r11, [rsp+180h+var_20]                                         ; +0x5a1, 0x140456e01\nmov     rbx, [r11+30h]                                                 ; +0x5a9, 0x140456e09\nmov     rsi, [r11+38h]                                                 ; +0x5ad, 0x140456e0d\nmov     rdi, [r11+40h]                                                 ; +0x5b1, 0x140456e11\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x5b5, 0x140456e15\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x5ba, 0x140456e1a\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x5bf, 0x140456e1f\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x5c4, 0x140456e24\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x5c9, 0x140456e29\nmovaps  xmm11, xmmword ptr [r11-60h]                                   ; +0x5ce, 0x140456e2e\nmovaps  xmm12, xmmword ptr [r11-70h]                                   ; +0x5d3, 0x140456e33\nmovaps  xmm13, xmmword ptr [r11-80h]                                   ; +0x5d8, 0x140456e38\nmovaps  xmm14, xmmword ptr [r11-90h]                                   ; +0x5dd, 0x140456e3d\nmov     rsp, r11                                                       ; +0x5e5, 0x140456e45\npop     r15                                                            ; +0x5e8, 0x140456e48\npop     r14                                                            ; +0x5ea, 0x140456e4a\npop     r13                                                            ; +0x5ec, 0x140456e4c\npop     r12                                                            ; +0x5ee, 0x140456e4e\npop     rbp                                                            ; +0x5f0, 0x140456e50\nretn                                                                   ; +0x5f1, 0x140456e51", "xrefs": ["TouchControlEditLayer::onSlots @ 0x140456495", "<???> @ 0x140927b3c"], "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"}