{"type": "func", "start": 4297593544, "end": 4297593716, "name": "GJBaseGameLayer::getStartPosObjectsForCurrentMode", "pseudocode": "// \n// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x1002812c8 to 0x100281374 (172 bytes)\n// \n// 3 xrefs:\n// > UILayer::handleAction @ 0x100052390\n// > PauseLayer::customSetup @ 0x1001bef30\n// > PauseLayer::createStartPosPopupClosed @ 0x1001c0514\n// \n// This function is hookable on this platform (idp: arm, 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:01:55 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x19\n  __int64 v4; // x21\n  __int64 v5; // x0\n\n  v2 = sub_1002E736C(a1);\n  v3 = v2;\n  if ( *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL) == 2 )\n  {\n    sub_1002E7570(v2, *(_QWORD *)(a1 + 12440));\n  }\n  else if ( *(_BYTE *)(a1 + 12544) == 1 && (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 12440)) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = sub_1002E75A0(*(_QWORD *)(a1 + 12440), v4);\n      if ( *(_BYTE *)(*(_QWORD *)(v5 + 1840) + 465LL) == 1 )\n        sub_1002E74E0(v3, v5);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 12440)) );\n  }\n  return v3;\n}", "assembly": "; \n; GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x1002812c8 to 0x100281374 (172 bytes)\n; \n; 3 xrefs:\n; > UILayer::handleAction @ 0x100052390\n; > PauseLayer::customSetup @ 0x1001bef30\n; > PauseLayer::createStartPosPopupClosed @ 0x1001c0514\n; \n; This function is hookable on this platform (idp: arm, 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:01:55 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002812c8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002812cc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002812d0\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002812d4\nMOV             X20, X0                                                ; +0x10, 0x1002812d8\nBL              sub_1002E736C                                          ; +0x14, 0x1002812dc\nMOV             X19, X0                                                ; +0x18, 0x1002812e0\nLDR             X8, [X20,#0x790]                                       ; +0x1c, 0x1002812e4\nLDR             W8, [X8,#0x474]                                        ; +0x20, 0x1002812e8\nCMP             W8, #2                                                 ; +0x24, 0x1002812ec\nB.NE            loc_100281304                                          ; +0x28, 0x1002812f0\nLDR             X1, [X20,#0x3098]                                      ; +0x2c, 0x1002812f4\nMOV             X0, X19                                                ; +0x30, 0x1002812f8\nBL              sub_1002E7570                                          ; +0x34, 0x1002812fc\nB               loc_100281360                                          ; +0x38, 0x100281300\nMOV             W8, #0x3100                                            ; +0x3c, 0x100281304\nLDRB            W8, [X20,X8]                                           ; +0x40, 0x100281308\nCMP             W8, #1                                                 ; +0x44, 0x10028130c\nB.NE            loc_100281360                                          ; +0x48, 0x100281310\nLDR             X0, [X20,#0x3098]                                      ; +0x4c, 0x100281314\nBL              sub_1002E757C                                          ; +0x50, 0x100281318\nCBZ             W0, loc_100281360                                      ; +0x54, 0x10028131c\nMOV             W21, #0                                                ; +0x58, 0x100281320\nLDR             X0, [X20,#0x3098]                                      ; +0x5c, 0x100281324\nMOV             X1, X21                                                ; +0x60, 0x100281328\nBL              sub_1002E75A0                                          ; +0x64, 0x10028132c\nLDR             X8, [X0,#0x730]                                        ; +0x68, 0x100281330\nLDRB            W8, [X8,#0x1D1]                                        ; +0x6c, 0x100281334\nCMP             W8, #1                                                 ; +0x70, 0x100281338\nB.NE            loc_10028134C                                          ; +0x74, 0x10028133c\nMOV             X1, X0                                                 ; +0x78, 0x100281340\nMOV             X0, X19                                                ; +0x7c, 0x100281344\nBL              sub_1002E74E0                                          ; +0x80, 0x100281348\nADD             W21, W21, #1                                           ; +0x84, 0x10028134c\nLDR             X0, [X20,#0x3098]                                      ; +0x88, 0x100281350\nBL              sub_1002E757C                                          ; +0x8c, 0x100281354\nCMP             W21, W0                                                ; +0x90, 0x100281358\nB.CC            loc_100281324                                          ; +0x94, 0x10028135c\nMOV             X0, X19                                                ; +0x98, 0x100281360\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x9c, 0x100281364\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa0, 0x100281368\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa4, 0x10028136c\nRET                                                                    ; +0xa8, 0x100281370", "xrefs": ["UILayer::handleAction @ 0x100052390", "PauseLayer::customSetup @ 0x1001bef30", "PauseLayer::createStartPosPopupClosed @ 0x1001c0514"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}