{"type": "func", "start": 5372905632, "end": 5372905811, "name": "SetupObjectOptionsPopup::onReverse", "pseudocode": "// \n// SetupObjectOptionsPopup::onReverse from 0x1404008a0 to 0x140400953 (179 bytes)\n// \n// 4 xrefs:\n// > SetupObjectOptionsPopup::init @ 0x1403ff8c0\n// > <???> @ 0x14069e84c\n// > <???> @ 0x14069e85c\n// > <???> @ 0x1406d87bc\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::onReverse(SetupObjectOptionsPopup *a1, cocos2d::CCObject *a2)\n{\n  SetGroupIDLayer *m_groupIDLayer; // rax\n  bool v4; // cl\n  GameObject *m_gameObject; // rax\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v7; // rax\n\n  m_groupIDLayer = a1->m_groupIDLayer;\n  if ( m_groupIDLayer )\n    m_groupIDLayer->m_reverseChanged = 1;\n  v4 = !a1->m_reverse;\n  a1->m_reverse = v4;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    if ( m_gameObject->m_classType == Effect )\n      LOBYTE(m_gameObject[1].m_obRect.size.height) = v4;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);\n      if ( v7[22].m_uAutoReleaseCount == 1 )\n        BYTE4(v7[32].__vftable) = a1->m_reverse;\n    }\n  }\n}", "assembly": "; \n; SetupObjectOptionsPopup::onReverse from 0x1404008a0 to 0x140400953 (179 bytes)\n; \n; 4 xrefs:\n; > SetupObjectOptionsPopup::init @ 0x1403ff8c0\n; > <???> @ 0x14069e84c\n; > <???> @ 0x14069e85c\n; > <???> @ 0x1406d87bc\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, 0x1404008a0\nsub     rsp, 20h                                                       ; +0x2, 0x1404008a2\nmov     rax, [rcx+2A8h]                                                ; +0x6, 0x1404008a6\nmov     rbx, rcx                                                       ; +0xd, 0x1404008ad\ntest    rax, rax                                                       ; +0x10, 0x1404008b0\njz      short loc_1404008BC                                            ; +0x13, 0x1404008b3\nmov     byte ptr [rax+305h], 1                                         ; +0x15, 0x1404008b5\ncmp     byte ptr [rcx+2A4h], 0                                         ; +0x1c, 0x1404008bc\nsetz    al                                                             ; +0x23, 0x1404008c3\nmovzx   ecx, al                                                        ; +0x26, 0x1404008c6\nmov     [rbx+2A4h], al                                                 ; +0x29, 0x1404008c9\nmov     rax, [rbx+280h]                                                ; +0x2f, 0x1404008cf\ntest    rax, rax                                                       ; +0x36, 0x1404008d6\njz      short loc_1404008F0                                            ; +0x39, 0x1404008d9\ncmp     dword ptr [rax+4E8h], 1                                        ; +0x3b, 0x1404008db\njnz     short loc_14040094D                                            ; +0x42, 0x1404008e2\nmov     [rax+704h], cl                                                 ; +0x44, 0x1404008e4\nadd     rsp, 20h                                                       ; +0x4a, 0x1404008ea\npop     rbx                                                            ; +0x4e, 0x1404008ee\nretn                                                                   ; +0x4f, 0x1404008ef\nmov     rcx, [rbx+288h]                                                ; +0x50, 0x1404008f0\nmov     [rsp+28h+arg_0], rdi                                           ; +0x57, 0x1404008f7\nxor     edi, edi                                                       ; +0x5c, 0x1404008fc\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5e, 0x1404008fe\ntest    eax, eax                                                       ; +0x64, 0x140400904\njz      short loc_140400948                                            ; +0x66, 0x140400906\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x140400908\nmov     rcx, [rbx+288h]                                                ; +0x70, 0x140400910\nmov     edx, edi                                                       ; +0x77, 0x140400917\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x140400919\ncmp     dword ptr [rax+4E8h], 1                                        ; +0x7f, 0x14040091f\njnz     short loc_140400935                                            ; +0x86, 0x140400926\nmovzx   ecx, byte ptr [rbx+2A4h]                                       ; +0x88, 0x140400928\nmov     [rax+704h], cl                                                 ; +0x8f, 0x14040092f\nmov     rcx, [rbx+288h]                                                ; +0x95, 0x140400935\ninc     edi                                                            ; +0x9c, 0x14040093c\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9e, 0x14040093e\ncmp     edi, eax                                                       ; +0xa4, 0x140400944\njb      short loc_140400910                                            ; +0xa6, 0x140400946\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa8, 0x140400948\nadd     rsp, 20h                                                       ; +0xad, 0x14040094d\npop     rbx                                                            ; +0xb1, 0x140400951\nretn                                                                   ; +0xb2, 0x140400952", "xrefs": ["SetupObjectOptionsPopup::init @ 0x1403ff8c0", "<???> @ 0x14069e84c", "<???> @ 0x14069e85c", "<???> @ 0x1406d87bc"], "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"}