{"type": "func", "start": 5372903024, "end": 5372903301, "name": "SetupObjectOptionsPopup::onDisableObject", "pseudocode": "// \n// SetupObjectOptionsPopup::onDisableObject from 0x1403ffe70 to 0x1403fff85 (277 bytes)\n// \n// 2 xrefs:\n// > SetupObjectOptionsPopup::init @ 0x1403feca7\n// > <???> @ 0x1406d86fc\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=1\nvoid SetupObjectOptionsPopup::onDisableObject(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)\n{\n  GameObject *m_gameObject; // rcx\n  struct cocos2d::CCArray *m_gameObjects; // rbp\n  __int64 v5; // rdi\n  GJBaseGameLayer *v6; // rdi\n  unsigned int i; // esi\n  GameObject *v8; // rax\n  GameObject *v9; // rbx\n  void *v10; // [rsp+40h] [rbp+8h]\n\n  a1->m_noTouch = !a1->m_noTouch;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n    m_gameObjects = cocos2d::CCArray::createWithObject(m_gameObject);\n  else\n    m_gameObjects = a1->m_gameObjects;\n  v5 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v10 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v5 = qword_1406C2ED8;\n  }\n  v6 = *(GJBaseGameLayer **)(v5 + 528);\n  for ( i = 0; i < cocos2d::CCArray::count(m_gameObjects); ++i )\n  {\n    v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(m_gameObjects, i);\n    v9 = v8;\n    if ( v6 )\n      GJBaseGameLayer::removeObjectFromSection(v6, v8);\n    v9->m_isNoTouch = a1->m_noTouch;\n    v9->setType(v9, v9->m_savedObjectType);\n    v9->saveActiveColors(v9);\n    if ( v6 )\n      v6->addToSection(v6, v9);\n  }\n}", "assembly": "; \n; SetupObjectOptionsPopup::onDisableObject from 0x1403ffe70 to 0x1403fff85 (277 bytes)\n; \n; 2 xrefs:\n; > SetupObjectOptionsPopup::init @ 0x1403feca7\n; > <???> @ 0x1406d86fc\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403ffe70\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1403ffe75\npush    rsi                                                            ; +0xa, 0x1403ffe7a\npush    rdi                                                            ; +0xb, 0x1403ffe7b\npush    r14                                                            ; +0xc, 0x1403ffe7c\nsub     rsp, 20h                                                       ; +0xe, 0x1403ffe7e\nmov     r14, rcx                                                       ; +0x12, 0x1403ffe82\ncmp     byte ptr [rcx+295h], 0                                         ; +0x15, 0x1403ffe85\nsetz    al                                                             ; +0x1c, 0x1403ffe8c\nmov     [rcx+295h], al                                                 ; +0x1f, 0x1403ffe8f\nmov     rcx, [rcx+280h]                                                ; +0x25, 0x1403ffe95\ntest    rcx, rcx                                                       ; +0x2c, 0x1403ffe9c\njz      short loc_1403FFEAC                                            ; +0x2f, 0x1403ffe9f\ncall    cs:?createWithObject@CCArray@cocos2d@@SAPEAV12@PEAVCCObject@2@@Z; cocos2d::CCArray::createWithObject(cocos2d::CCObject *) ; +0x31, 0x1403ffea1\nmov     rbp, rax                                                       ; +0x37, 0x1403ffea7\njmp     short loc_1403FFEB3                                            ; +0x3a, 0x1403ffeaa\nmov     rbp, [r14+288h]                                                ; +0x3c, 0x1403ffeac\nmov     rdi, cs:qword_1406C2ED8                                        ; +0x43, 0x1403ffeb3\ntest    rdi, rdi                                                       ; +0x4a, 0x1403ffeba\njnz     short loc_1403FFEEE                                            ; +0x4d, 0x1403ffebd\nmov     ecx, 668h; Size                                                ; +0x4f, 0x1403ffebf\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x54, 0x1403ffec4\nmov     [rsp+38h+arg_0], rax                                           ; +0x59, 0x1403ffec9\nmov     rcx, rax                                                       ; +0x5e, 0x1403ffece\ncall    sub_14017AB00                                                  ; +0x61, 0x1403ffed1\nnop                                                                    ; +0x66, 0x1403ffed6\nmov     cs:qword_1406C2ED8, rax                                        ; +0x67, 0x1403ffed7\nmov     rdx, [rax]                                                     ; +0x6e, 0x1403ffede\nmov     rcx, rax                                                       ; +0x71, 0x1403ffee1\ncall    qword ptr [rdx+48h]                                            ; +0x74, 0x1403ffee4\nmov     rdi, cs:qword_1406C2ED8                                        ; +0x77, 0x1403ffee7\nmov     rdi, [rdi+210h]                                                ; +0x7e, 0x1403ffeee\nxor     esi, esi                                                       ; +0x85, 0x1403ffef5\nmov     rcx, rbp                                                       ; +0x87, 0x1403ffef7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8a, 0x1403ffefa\ntest    eax, eax                                                       ; +0x90, 0x1403fff00\njz      short loc_1403FFF72                                            ; +0x92, 0x1403fff02\nmov     edx, esi                                                       ; +0x94, 0x1403fff04\nmov     rcx, rbp                                                       ; +0x96, 0x1403fff06\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x99, 0x1403fff09\nmov     rbx, rax                                                       ; +0x9f, 0x1403fff0f\ntest    rdi, rdi                                                       ; +0xa2, 0x1403fff12\njz      short loc_1403FFF22                                            ; +0xa5, 0x1403fff15\nmov     rdx, rax                                                       ; +0xa7, 0x1403fff17\nmov     rcx, rdi                                                       ; +0xaa, 0x1403fff1a\ncall    GJBaseGameLayer__removeObjectFromSection                       ; +0xad, 0x1403fff1d\nmovzx   ecx, byte ptr [r14+295h]                                       ; +0xb2, 0x1403fff22\nmov     [rbx+4C6h], cl                                                 ; +0xba, 0x1403fff2a\nmov     r8, [rbx]                                                      ; +0xc0, 0x1403fff30\nmov     edx, [rbx+3A4h]                                                ; +0xc3, 0x1403fff33\nmov     rcx, rbx                                                       ; +0xc9, 0x1403fff39\ncall    qword ptr [r8+668h]                                            ; +0xcc, 0x1403fff3c\nmov     rax, [rbx]                                                     ; +0xd3, 0x1403fff43\nmov     rcx, rbx                                                       ; +0xd6, 0x1403fff46\ncall    qword ptr [rax+5A8h]                                           ; +0xd9, 0x1403fff49\ntest    rdi, rdi                                                       ; +0xdf, 0x1403fff4f\njz      short loc_1403FFF63                                            ; +0xe2, 0x1403fff52\nmov     rax, [rdi]                                                     ; +0xe4, 0x1403fff54\nmov     rdx, rbx                                                       ; +0xe7, 0x1403fff57\nmov     rcx, rdi                                                       ; +0xea, 0x1403fff5a\ncall    qword ptr [rax+478h]                                           ; +0xed, 0x1403fff5d\ninc     esi                                                            ; +0xf3, 0x1403fff63\nmov     rcx, rbp                                                       ; +0xf5, 0x1403fff65\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xf8, 0x1403fff68\ncmp     esi, eax                                                       ; +0xfe, 0x1403fff6e\njb      short loc_1403FFF04                                            ; +0x100, 0x1403fff70\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x102, 0x1403fff72\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x107, 0x1403fff77\nadd     rsp, 20h                                                       ; +0x10c, 0x1403fff7c\npop     r14                                                            ; +0x110, 0x1403fff80\npop     rdi                                                            ; +0x112, 0x1403fff82\npop     rsi                                                            ; +0x113, 0x1403fff83\nretn                                                                   ; +0x114, 0x1403fff84", "xrefs": ["SetupObjectOptionsPopup::init @ 0x1403feca7", "<???> @ 0x1406d86fc"], "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"}