{"type": "func", "start": 5373023616, "end": 5373023874, "name": "SetupEndPopup::determineStartValues", "pseudocode": "// \n// SetupEndPopup::determineStartValues from 0x14041d580 to 0x14041d682 (258 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405e2c38\n// > <???> @ 0x1406a0278\n// > <???> @ 0x1406a0288\n// > <???> @ 0x1406d93bc\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 SetupEndPopup::determineStartValues(SetupEndPopup *a1)\n{\n  __int64 v2; // rcx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v4; // esi\n  struct cocos2d::CCObject *v5; // rax\n  int m_groupID; // edx\n  int m_uAutoReleaseCount; // ecx\n\n  SetupTriggerPopup::determineStartValues(a1);\n  if ( a1->m_gameObject )\n  {\n    m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);\n    cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n  }\n  if ( m_gameObjects )\n  {\n    if ( cocos2d::CCArray::count(m_gameObjects) )\n    {\n      v4 = 0;\n      *(_WORD *)&a1->m_reversed = 257;\n      for ( a1->m_groupID = -1; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 )\n      {\n        v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);\n        if ( !BYTE1(v5[31].m_unknown2) )\n          a1->m_reversed = 0;\n        if ( !BYTE1(v5[27].m_uID) )\n          a1->m_lockY = 0;\n        m_groupID = a1->m_groupID;\n        m_uAutoReleaseCount = v5[26].m_uAutoReleaseCount;\n        if ( m_groupID == -1 )\n        {\n          a1->m_groupID = m_uAutoReleaseCount;\n        }\n        else if ( m_groupID != m_uAutoReleaseCount )\n        {\n          a1->m_groupID = 0;\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; SetupEndPopup::determineStartValues from 0x14041d580 to 0x14041d682 (258 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405e2c38\n; > <???> @ 0x1406a0278\n; > <???> @ 0x1406a0288\n; > <???> @ 0x1406d93bc\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_10], rbx                                              ; +0x0, 0x14041d580\npush    rdi                                                            ; +0x5, 0x14041d585\nsub     rsp, 20h                                                       ; +0x6, 0x14041d586\nmov     rbx, rcx                                                       ; +0xa, 0x14041d58a\ncall    SetupTriggerPopup__determineStartValues                        ; +0xd, 0x14041d58d\ncmp     qword ptr [rbx+290h], 0                                        ; +0x12, 0x14041d592\njz      short loc_14041D5B7                                            ; +0x1a, 0x14041d59a\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x1c, 0x14041d59c\nmov     rdx, [rbx+290h]                                                ; +0x22, 0x14041d5a2\nmov     rcx, rax                                                       ; +0x29, 0x14041d5a9\nmov     rdi, rax                                                       ; +0x2c, 0x14041d5ac\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x2f, 0x14041d5af\njmp     short loc_14041D5BE                                            ; +0x35, 0x14041d5b5\nmov     rdi, [rbx+298h]                                                ; +0x37, 0x14041d5b7\ntest    rdi, rdi                                                       ; +0x3e, 0x14041d5be\njz      loc_14041D677                                                  ; +0x41, 0x14041d5c1\nmov     rcx, rdi                                                       ; +0x47, 0x14041d5c7\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4a, 0x14041d5ca\ntest    eax, eax                                                       ; +0x50, 0x14041d5d0\njz      loc_14041D677                                                  ; +0x52, 0x14041d5d2\nmov     [rsp+28h+arg_0], rbp                                           ; +0x58, 0x14041d5d8\nmov     rcx, rdi                                                       ; +0x5d, 0x14041d5dd\nxor     ebp, ebp                                                       ; +0x60, 0x14041d5e0\nmov     [rsp+28h+arg_8], rsi                                           ; +0x62, 0x14041d5e2\nmov     esi, ebp                                                       ; +0x67, 0x14041d5e7\nmov     word ptr [rbx+3B0h], 101h                                      ; +0x69, 0x14041d5e9\nmov     dword ptr [rbx+3B4h], 0FFFFFFFFh                               ; +0x72, 0x14041d5f2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7c, 0x14041d5fc\ntest    eax, eax                                                       ; +0x82, 0x14041d602\njz      short loc_14041D66D                                            ; +0x84, 0x14041d604\nnop     word ptr [rax+rax+00000000h]                                   ; +0x86, 0x14041d606\nmov     edx, esi                                                       ; +0x90, 0x14041d610\nmov     rcx, rdi                                                       ; +0x92, 0x14041d612\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x95, 0x14041d615\ncmp     [rax+6F1h], bpl                                                ; +0x9b, 0x14041d61b\njnz     short loc_14041D62B                                            ; +0xa2, 0x14041d622\nmov     [rbx+3B0h], bpl                                                ; +0xa4, 0x14041d624\ncmp     [rax+5F1h], bpl                                                ; +0xab, 0x14041d62b\njnz     short loc_14041D63B                                            ; +0xb2, 0x14041d632\nmov     [rbx+3B1h], bpl                                                ; +0xb4, 0x14041d634\nmov     edx, [rbx+3B4h]                                                ; +0xbb, 0x14041d63b\nmov     ecx, [rax+5C8h]                                                ; +0xc1, 0x14041d641\ncmp     edx, 0FFFFFFFFh                                                ; +0xc7, 0x14041d647\njnz     short loc_14041D654                                            ; +0xca, 0x14041d64a\nmov     [rbx+3B4h], ecx                                                ; +0xcc, 0x14041d64c\njmp     short loc_14041D65E                                            ; +0xd2, 0x14041d652\ncmp     edx, ecx                                                       ; +0xd4, 0x14041d654\njz      short loc_14041D65E                                            ; +0xd6, 0x14041d656\nmov     [rbx+3B4h], ebp                                                ; +0xd8, 0x14041d658\nmov     rcx, rdi                                                       ; +0xde, 0x14041d65e\ninc     esi                                                            ; +0xe1, 0x14041d661\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xe3, 0x14041d663\ncmp     esi, eax                                                       ; +0xe9, 0x14041d669\njb      short loc_14041D610                                            ; +0xeb, 0x14041d66b\nmov     rbp, [rsp+28h+arg_0]                                           ; +0xed, 0x14041d66d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xf2, 0x14041d672\nmov     rbx, [rsp+28h+arg_10]                                          ; +0xf7, 0x14041d677\nadd     rsp, 20h                                                       ; +0xfc, 0x14041d67c\npop     rdi                                                            ; +0x100, 0x14041d680\nretn                                                                   ; +0x101, 0x14041d681", "xrefs": ["<???> @ 0x1405e2c38", "<???> @ 0x1406a0278", "<???> @ 0x1406a0288", "<???> @ 0x1406d93bc"], "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"}