{"type": "func", "start": 5372906000, "end": 5372906163, "name": "SetupObjectOptionsPopup::onCenterEffect", "pseudocode": "// \n// SetupObjectOptionsPopup::onCenterEffect from 0x140400a10 to 0x140400ab3 (163 bytes)\n// \n// 4 xrefs:\n// > SetupObjectOptionsPopup::init @ 0x1403ff1cb\n// > <???> @ 0x14069e894\n// > <???> @ 0x14069e8a4\n// > <???> @ 0x1406d8804\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::onCenterEffect(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  GameObject *m_gameObject; // rax\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v6; // rax\n\n  v3 = !a1->m_centerEffect;\n  a1->m_centerEffect = v3;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    if ( m_gameObject->m_classType == Effect )\n      BYTE2(m_gameObject[1].m_sAdditionalTransform.d) = v3;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);\n      if ( v6[22].m_uAutoReleaseCount == 1 )\n        BYTE2(v6[26].m_uIndexInArray) = a1->m_centerEffect;\n    }\n  }\n}", "assembly": "; \n; SetupObjectOptionsPopup::onCenterEffect from 0x140400a10 to 0x140400ab3 (163 bytes)\n; \n; 4 xrefs:\n; > SetupObjectOptionsPopup::init @ 0x1403ff1cb\n; > <???> @ 0x14069e894\n; > <???> @ 0x14069e8a4\n; > <???> @ 0x1406d8804\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    rdi                                                            ; +0x0, 0x140400a10\nsub     rsp, 20h                                                       ; +0x2, 0x140400a12\ncmp     byte ptr [rcx+2B2h], 0                                         ; +0x6, 0x140400a16\nmov     rdi, rcx                                                       ; +0xd, 0x140400a1d\nsetz    al                                                             ; +0x10, 0x140400a20\nmovzx   ecx, al                                                        ; +0x13, 0x140400a23\nmov     [rdi+2B2h], al                                                 ; +0x16, 0x140400a26\nmov     rax, [rdi+280h]                                                ; +0x1c, 0x140400a2c\ntest    rax, rax                                                       ; +0x23, 0x140400a33\njz      short loc_140400A4D                                            ; +0x26, 0x140400a36\ncmp     dword ptr [rax+4E8h], 1                                        ; +0x28, 0x140400a38\njnz     short loc_140400AAD                                            ; +0x2f, 0x140400a3f\nmov     [rax+5D2h], cl                                                 ; +0x31, 0x140400a41\nadd     rsp, 20h                                                       ; +0x37, 0x140400a47\npop     rdi                                                            ; +0x3b, 0x140400a4b\nretn                                                                   ; +0x3c, 0x140400a4c\nmov     rcx, [rdi+288h]                                                ; +0x3d, 0x140400a4d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x44, 0x140400a54\nxor     ebx, ebx                                                       ; +0x49, 0x140400a59\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x140400a5b\ntest    eax, eax                                                       ; +0x51, 0x140400a61\njz      short loc_140400AA8                                            ; +0x53, 0x140400a63\nnop     word ptr [rax+rax+00000000h]                                   ; +0x55, 0x140400a65\nmov     rcx, [rdi+288h]                                                ; +0x60, 0x140400a70\nmov     edx, ebx                                                       ; +0x67, 0x140400a77\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x69, 0x140400a79\ncmp     dword ptr [rax+4E8h], 1                                        ; +0x6f, 0x140400a7f\njnz     short loc_140400A95                                            ; +0x76, 0x140400a86\nmovzx   ecx, byte ptr [rdi+2B2h]                                       ; +0x78, 0x140400a88\nmov     [rax+5D2h], cl                                                 ; +0x7f, 0x140400a8f\nmov     rcx, [rdi+288h]                                                ; +0x85, 0x140400a95\ninc     ebx                                                            ; +0x8c, 0x140400a9c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8e, 0x140400a9e\ncmp     ebx, eax                                                       ; +0x94, 0x140400aa4\njb      short loc_140400A70                                            ; +0x96, 0x140400aa6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x98, 0x140400aa8\nadd     rsp, 20h                                                       ; +0x9d, 0x140400aad\npop     rdi                                                            ; +0xa1, 0x140400ab1\nretn                                                                   ; +0xa2, 0x140400ab2", "xrefs": ["SetupObjectOptionsPopup::init @ 0x1403ff1cb", "<???> @ 0x14069e894", "<???> @ 0x14069e8a4", "<???> @ 0x1406d8804"], "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"}