{"type": "func", "start": 5371957488, "end": 5371957681, "name": "GJBaseGameLayer::getStartPosObjectsForCurrentMode", "pseudocode": "// \n// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x1403190f0 to 0x1403191b1 (193 bytes)\n// \n// 6 xrefs:\n// > PauseLayer::customSetup @ 0x1404d86c1\n// > PauseLayer::createStartPosPopupClosed @ 0x1404d9370\n// > UILayer::handleAction @ 0x140672924\n// > <???> @ 0x1408b4fb8\n// > <???> @ 0x1408b4fc8\n// > <???> @ 0x14091eac4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:19 +0000\n// \n\ncocos2d::CCArray *__fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(__int64 a1)\n{\n  cocos2d::CCArray *result; // rax\n  cocos2d::CCArray *v3; // rsi\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v5; // rax\n\n  result = (cocos2d::CCArray *)cocos2d::CCArray::create(a1);\n  v3 = result;\n  if ( *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 1220LL) == 2 )\n  {\n    cocos2d::CCArray::addObjectsFromArray(result, *(struct cocos2d::CCArray **)(a1 + 12920));\n    return v3;\n  }\n  else if ( *(_BYTE *)(a1 + 13024) )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 12920)); ++i )\n    {\n      v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 12920), i);\n      if ( *(_BYTE *)(*((_QWORD *)v5 + 232) + 473LL) )\n        cocos2d::CCArray::addObject(v3, v5);\n    }\n    return v3;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x1403190f0 to 0x1403191b1 (193 bytes)\n; \n; 6 xrefs:\n; > PauseLayer::customSetup @ 0x1404d86c1\n; > PauseLayer::createStartPosPopupClosed @ 0x1404d9370\n; > UILayer::handleAction @ 0x140672924\n; > <???> @ 0x1408b4fb8\n; > <???> @ 0x1408b4fc8\n; > <???> @ 0x14091eac4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:19 +0000\n; \nmov     [rsp+arg_8], rsi                                               ; +0x0, 0x1403190f0\npush    rdi                                                            ; +0x5, 0x1403190f5\nsub     rsp, 20h                                                       ; +0x6, 0x1403190f6\nmov     rdi, rcx                                                       ; +0xa, 0x1403190fa\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0xd, 0x1403190fd\nmov     rdx, [rdi+878h]                                                ; +0x13, 0x140319103\nmov     rsi, rax                                                       ; +0x1a, 0x14031910a\ncmp     dword ptr [rdx+4C4h], 2                                        ; +0x1d, 0x14031910d\njnz     short loc_140319134                                            ; +0x24, 0x140319114\nmov     rdx, [rdi+3278h]                                               ; +0x26, 0x140319116\nmov     rcx, rax                                                       ; +0x2d, 0x14031911d\ncall    cs:?addObjectsFromArray@CCArray@cocos2d@@QEAAXPEAV12@@Z; cocos2d::CCArray::addObjectsFromArray(cocos2d::CCArray *) ; +0x30, 0x140319120\nmov     rax, rsi                                                       ; +0x36, 0x140319126\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x39, 0x140319129\nadd     rsp, 20h                                                       ; +0x3e, 0x14031912e\npop     rdi                                                            ; +0x42, 0x140319132\nretn                                                                   ; +0x43, 0x140319133\ncmp     byte ptr [rdi+32E0h], 0                                        ; +0x44, 0x140319134\njz      short loc_1403191A6                                            ; +0x4b, 0x14031913b\nmov     rcx, [rdi+3278h]                                               ; +0x4d, 0x14031913d\nmov     [rsp+28h+arg_0], rbx                                           ; +0x54, 0x140319144\nxor     ebx, ebx                                                       ; +0x59, 0x140319149\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5b, 0x14031914b\ntest    eax, eax                                                       ; +0x61, 0x140319151\njz      short loc_14031919E                                            ; +0x63, 0x140319153\nnop     word ptr [rax+rax+00000000h]                                   ; +0x65, 0x140319155\nmov     rcx, [rdi+3278h]                                               ; +0x70, 0x140319160\nmov     edx, ebx                                                       ; +0x77, 0x140319167\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x79, 0x140319169\nmov     rcx, [rax+740h]                                                ; +0x7f, 0x14031916f\ncmp     byte ptr [rcx+1D9h], 0                                         ; +0x86, 0x140319176\njz      short loc_14031918B                                            ; +0x8d, 0x14031917d\nmov     rdx, rax                                                       ; +0x8f, 0x14031917f\nmov     rcx, rsi                                                       ; +0x92, 0x140319182\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x95, 0x140319185\nmov     rcx, [rdi+3278h]                                               ; +0x9b, 0x14031918b\ninc     ebx                                                            ; +0xa2, 0x140319192\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa4, 0x140319194\ncmp     ebx, eax                                                       ; +0xaa, 0x14031919a\njb      short loc_140319160                                            ; +0xac, 0x14031919c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xae, 0x14031919e\nmov     rax, rsi                                                       ; +0xb3, 0x1403191a3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb6, 0x1403191a6\nadd     rsp, 20h                                                       ; +0xbb, 0x1403191ab\npop     rdi                                                            ; +0xbf, 0x1403191af\nretn                                                                   ; +0xc0, 0x1403191b0", "xrefs": ["PauseLayer::customSetup @ 0x1404d86c1", "PauseLayer::createStartPosPopupClosed @ 0x1404d9370", "UILayer::handleAction @ 0x140672924", "<???> @ 0x1408b4fb8", "<???> @ 0x1408b4fc8", "<???> @ 0x14091eac4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}