{"type": "func", "start": 5372905040, "end": 5372905178, "name": "SetupObjectOptionsPopup::onToggleAreaParent", "pseudocode": "// \n// SetupObjectOptionsPopup::onToggleAreaParent from 0x140400650 to 0x1404006da (138 bytes)\n// \n// 2 xrefs:\n// > SetupObjectOptionsPopup::init @ 0x1403fe831\n// > <???> @ 0x1406d8798\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\nvoid SetupObjectOptionsPopup::onToggleAreaParent(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  GameObject *m_gameObject; // rax\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v6; // rax\n\n  v3 = !a1->m_areaParent;\n  a1->m_areaParent = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_hasAreaParent = v3;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); HIBYTE(v6[20].m_uUnknown) = a1->m_areaParent )\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i++);\n  }\n}", "assembly": "; \n; SetupObjectOptionsPopup::onToggleAreaParent from 0x140400650 to 0x1404006da (138 bytes)\n; \n; 2 xrefs:\n; > SetupObjectOptionsPopup::init @ 0x1403fe831\n; > <???> @ 0x1406d8798\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, 0x140400650\nsub     rsp, 20h                                                       ; +0x2, 0x140400652\ncmp     byte ptr [rcx+2A1h], 0                                         ; +0x6, 0x140400656\nmov     rbx, rcx                                                       ; +0xd, 0x14040065d\nsetz    al                                                             ; +0x10, 0x140400660\nmovzx   ecx, al                                                        ; +0x13, 0x140400663\nmov     [rbx+2A1h], al                                                 ; +0x16, 0x140400666\nmov     rax, [rbx+280h]                                                ; +0x1c, 0x14040066c\ntest    rax, rax                                                       ; +0x23, 0x140400673\njz      short loc_140400684                                            ; +0x26, 0x140400676\nmov     [rax+487h], cl                                                 ; +0x28, 0x140400678\nadd     rsp, 20h                                                       ; +0x2e, 0x14040067e\npop     rbx                                                            ; +0x32, 0x140400682\nretn                                                                   ; +0x33, 0x140400683\nmov     rcx, [rbx+288h]                                                ; +0x34, 0x140400684\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3b, 0x14040068b\nxor     edi, edi                                                       ; +0x40, 0x140400690\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x42, 0x140400692\ntest    eax, eax                                                       ; +0x48, 0x140400698\njz      short loc_1404006CF                                            ; +0x4a, 0x14040069a\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x14040069c\nmov     rcx, [rbx+288h]                                                ; +0x50, 0x1404006a0\nmov     edx, edi                                                       ; +0x57, 0x1404006a7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x1404006a9\nmovzx   ecx, byte ptr [rbx+2A1h]                                       ; +0x5f, 0x1404006af\ninc     edi                                                            ; +0x66, 0x1404006b6\nmov     [rax+487h], cl                                                 ; +0x68, 0x1404006b8\nmov     rcx, [rbx+288h]                                                ; +0x6e, 0x1404006be\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x1404006c5\ncmp     edi, eax                                                       ; +0x7b, 0x1404006cb\njb      short loc_1404006A0                                            ; +0x7d, 0x1404006cd\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7f, 0x1404006cf\nadd     rsp, 20h                                                       ; +0x84, 0x1404006d4\npop     rbx                                                            ; +0x88, 0x1404006d8\nretn                                                                   ; +0x89, 0x1404006d9", "xrefs": ["SetupObjectOptionsPopup::init @ 0x1403fe831", "<???> @ 0x1406d8798"], "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"}