{"type": "func", "start": 4296018240, "end": 4296018414, "name": "GJBaseGameLayer::getStartPosObjectsForCurrentMode", "pseudocode": "// \n// GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x100100940 to 0x1001009ee (174 bytes)\n// \n// 3 xrefs:\n// > PauseLayer::customSetup @ 0x1003c0871\n// > PauseLayer::createStartPosPopupClosed @ 0x1003c225c\n// > UILayer::handleAction @ 0x1004c4804\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 12:21:20 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getStartPosObjectsForCurrentMode(__int64 a1)\n{\n  __int64 v1; // rbx\n  unsigned int v2; // r15d\n  __int64 v3; // rax\n\n  v1 = sub_1007FE900(a1);\n  if ( *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL) == 2 )\n  {\n    sub_1007FEF70(v1, *(_QWORD *)(a1 + 12440));\n  }\n  else if ( *(_BYTE *)(a1 + 12544) == 1 && (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 12440)) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 12440), v2);\n      if ( *(_BYTE *)(*(_QWORD *)(v3 + 1840) + 465LL) == 1 )\n        sub_1007FEBF0(v1, v3);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 12440)) );\n  }\n  return v1;\n}", "assembly": "; \n; GJBaseGameLayer::getStartPosObjectsForCurrentMode from 0x100100940 to 0x1001009ee (174 bytes)\n; \n; 3 xrefs:\n; > PauseLayer::customSetup @ 0x1003c0871\n; > PauseLayer::createStartPosPopupClosed @ 0x1003c225c\n; > UILayer::handleAction @ 0x1004c4804\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 12:21:20 +0000\n; \npush    rbp                                                            ; +0x0, 0x100100940\nmov     rbp, rsp                                                       ; +0x1, 0x100100941\npush    r15                                                            ; +0x4, 0x100100944\npush    r14                                                            ; +0x6, 0x100100946\npush    rbx                                                            ; +0x8, 0x100100948\npush    rax                                                            ; +0x9, 0x100100949\nmov     r14, rdi                                                       ; +0xa, 0x10010094a\ncall    sub_1007FE900                                                  ; +0xd, 0x10010094d\nmov     rbx, rax                                                       ; +0x12, 0x100100952\nmov     rax, [r14+790h]                                                ; +0x15, 0x100100955\ncmp     dword ptr [rax+474h], 2                                        ; +0x1c, 0x10010095c\njnz     short loc_100100976                                            ; +0x23, 0x100100963\nmov     rsi, [r14+3098h]                                               ; +0x25, 0x100100965\nmov     rdi, rbx                                                       ; +0x2c, 0x10010096c\ncall    sub_1007FEF70                                                  ; +0x2f, 0x10010096f\njmp     short loc_1001009E0                                            ; +0x34, 0x100100974\ncmp     byte ptr [r14+3100h], 1                                        ; +0x36, 0x100100976\njnz     short loc_1001009E0                                            ; +0x3e, 0x10010097e\nmov     rdi, [r14+3098h]                                               ; +0x40, 0x100100980\ncall    sub_1007FEF90                                                  ; +0x47, 0x100100987\ntest    eax, eax                                                       ; +0x4c, 0x10010098c\njz      short loc_1001009E0                                            ; +0x4e, 0x10010098e\nxor     r15d, r15d                                                     ; +0x50, 0x100100990\njmp     short loc_1001009B4                                            ; +0x53, 0x100100993\nalign 20h                                                              ; +0x55, 0x100100995\ninc     r15d                                                           ; +0x60, 0x1001009a0\nmov     rdi, [r14+3098h]                                               ; +0x63, 0x1001009a3\ncall    sub_1007FEF90                                                  ; +0x6a, 0x1001009aa\ncmp     r15d, eax                                                      ; +0x6f, 0x1001009af\njnb     short loc_1001009E0                                            ; +0x72, 0x1001009b2\nmov     rdi, [r14+3098h]                                               ; +0x74, 0x1001009b4\nmov     esi, r15d                                                      ; +0x7b, 0x1001009bb\ncall    sub_1007FEFE0                                                  ; +0x7e, 0x1001009be\nmov     rcx, [rax+730h]                                                ; +0x83, 0x1001009c3\ncmp     byte ptr [rcx+1D1h], 1                                         ; +0x8a, 0x1001009ca\njnz     short loc_1001009A0                                            ; +0x91, 0x1001009d1\nmov     rdi, rbx                                                       ; +0x93, 0x1001009d3\nmov     rsi, rax                                                       ; +0x96, 0x1001009d6\ncall    sub_1007FEBF0                                                  ; +0x99, 0x1001009d9\njmp     short loc_1001009A0                                            ; +0x9e, 0x1001009de\nmov     rax, rbx                                                       ; +0xa0, 0x1001009e0\nadd     rsp, 8                                                         ; +0xa3, 0x1001009e3\npop     rbx                                                            ; +0xa7, 0x1001009e7\npop     r14                                                            ; +0xa8, 0x1001009e8\npop     r15                                                            ; +0xaa, 0x1001009ea\npop     rbp                                                            ; +0xac, 0x1001009ec\nretn                                                                   ; +0xad, 0x1001009ed", "xrefs": ["PauseLayer::customSetup @ 0x1003c0871", "PauseLayer::createStartPosPopupClosed @ 0x1003c225c", "UILayer::handleAction @ 0x1004c4804"], "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"}