{"type": "func", "start": 4296196848, "end": 4296197436, "name": "GJBaseGameLayer::loadStartPosObject", "pseudocode": "// \n// GJBaseGameLayer::loadStartPosObject from 0x10012c2f0 to 0x10012c53c (588 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::resetLevel @ 0x10008cf96\n// > LevelEditorLayer::onPlaytest @ 0x1000c5fc1\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:24:44 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::loadStartPosObject(__int64 a1, __int64 a2, __int64 a3)\n{\n  double v4; // xmm0_8\n  __int64 v5; // rax\n  float *v6; // rax\n  __int64 v7; // rsi\n  int v8[9]; // [rsp+Ch] [rbp-24h] BYREF\n\n  *(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0];\n  *(_BYTE *)(a1 + 13807) = GameManager::getGameVariable(v5, \"0151\");\n  *(_BYTE *)(a1 + 13804) = 1;\n  PlayerObject::doReversePlayer(*(_QWORD *)(a1 + 3256), 0);\n  PlayerObject::rotateGameplayOnly(*(_QWORD *)(a1 + 3256), 0);\n  v6 = (float *)(*(__int64 (__fastcall **)(_QWORD, double))(**(_QWORD **)(a1 + 3256) + 192LL))(\n                  *(_QWORD *)(a1 + 3256),\n                  v4);\n  GJBaseGameLayer::loadUpToPosition(\n    a1,\n    *(unsigned int *)(*(_QWORD *)(a2 + 1840) + 372LL),\n    *(unsigned int *)(*(_QWORD *)(a2 + 1840) + 376LL),\n    *v6);\n  *(_BYTE *)(a1 + 13804) = 0;\n  *(_WORD *)(a1 + 1720) = 257;\n  sub_100278300(a1 + 576, &qword_100BE1268);\n  v8[0] = 12;\n  sub_10001C120((__int64 *)(a1 + 1016), v8);\n  v8[0] = 13;\n  sub_10001C120((__int64 *)(a1 + 1016), v8);\n  sub_100278300(a1 + 496, &qword_100BE1268);\n  sub_100278300(a1 + 608, &qword_100BE1268);\n  v7 = *(_QWORD *)(a2 + 1840);\n  if ( *(_BYTE *)(v7 + 440) == 1 )\n  {\n    *(_OWORD *)(a1 + 1056) = 0;\n    (*(void (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD, __int64, __int64, double, double, double))(*(_QWORD *)a1 + 1432LL))(\n      a1,\n      0,\n      0,\n      0,\n      0xFFFFFFFFLL,\n      0xFFFFFFFFLL,\n      0.0,\n      0.0,\n      0.0);\n    *(_QWORD *)(a1 + 12568) = 0;\n    *(_QWORD *)(a1 + 12628) = 0;\n    *(_BYTE *)(a1 + 12636) = 1;\n    sub_100278300(a1 + 1148, &qword_100BE1268);\n    sub_100278300(a1 + 512, &qword_100BE1268);\n    v8[0] = 10;\n    sub_10001C120((__int64 *)(a1 + 1016), v8);\n    v8[0] = 12;\n    sub_10001C120((__int64 *)(a1 + 1016), v8);\n    *(_DWORD *)(a1 + 480) = 0;\n    *(_DWORD *)(a1 + 496) = 0;\n    *(_DWORD *)(a1 + 568) = 0;\n    *(_DWORD *)(a1 + 576) = 0;\n    *(_DWORD *)(a1 + 608) = 0;\n    v8[0] = 11;\n    sub_10001C120((__int64 *)(a1 + 1016), v8);\n    v8[0] = 13;\n    sub_10001C120((__int64 *)(a1 + 1016), v8);\n    *(_DWORD *)(a1 + 484) = 0;\n    *(_DWORD *)(a1 + 500) = 0;\n    *(_DWORD *)(a1 + 572) = 0;\n    *(_DWORD *)(a1 + 580) = 0;\n    *(_DWORD *)(a1 + 612) = 0;\n    v7 = *(_QWORD *)(a2 + 1840);\n  }\n  GJBaseGameLayer::setupLevelStart(a1, v7);\n  *(_BYTE *)(a1 + 13807) = 0;\n}", "assembly": "; \n; GJBaseGameLayer::loadStartPosObject from 0x10012c2f0 to 0x10012c53c (588 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::resetLevel @ 0x10008cf96\n; > LevelEditorLayer::onPlaytest @ 0x1000c5fc1\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:24:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x10012c2f0\nmov     rbp, rsp                                                       ; +0x1, 0x10012c2f1\npush    r15                                                            ; +0x4, 0x10012c2f4\npush    r14                                                            ; +0x6, 0x10012c2f6\npush    r12                                                            ; +0x8, 0x10012c2f8\npush    rbx                                                            ; +0xa, 0x10012c2fa\nsub     rsp, 10h                                                       ; +0xb, 0x10012c2fb\nmov     r14, rsi                                                       ; +0xf, 0x10012c2ff\nmov     rbx, rdi                                                       ; +0x12, 0x10012c302\ncall    GameManager__sharedState                                       ; +0x15, 0x10012c305\nlea     rsi, a0151; \"0151\"                                             ; +0x1a, 0x10012c30a\nmov     rdi, rax                                                       ; +0x21, 0x10012c311\ncall    GameManager__getGameVariable                                   ; +0x24, 0x10012c314\nmov     [rbx+35EFh], al                                                ; +0x29, 0x10012c319\nmov     byte ptr [rbx+35ECh], 1                                        ; +0x2f, 0x10012c31f\nmov     rdi, [rbx+0CB8h]                                               ; +0x36, 0x10012c326\nxor     esi, esi                                                       ; +0x3d, 0x10012c32d\ncall    PlayerObject__doReversePlayer                                  ; +0x3f, 0x10012c32f\nmov     rdi, [rbx+0CB8h]                                               ; +0x44, 0x10012c334\nxor     esi, esi                                                       ; +0x4b, 0x10012c33b\ncall    PlayerObject__rotateGameplayOnly                               ; +0x4d, 0x10012c33d\nmov     rdi, [rbx+0CB8h]                                               ; +0x52, 0x10012c342\nmov     rax, [rdi]                                                     ; +0x59, 0x10012c349\ncall    qword ptr [rax+0C0h]                                           ; +0x5c, 0x10012c34c\nmovss   xmm0, dword ptr [rax]                                          ; +0x62, 0x10012c352\nmov     rax, [r14+730h]                                                ; +0x66, 0x10012c356\nmov     esi, [rax+174h]                                                ; +0x6d, 0x10012c35d\nmov     edx, [rax+178h]                                                ; +0x73, 0x10012c363\nmov     rdi, rbx                                                       ; +0x79, 0x10012c369\ncall    GJBaseGameLayer__loadUpToPosition                              ; +0x7c, 0x10012c36c\nmov     byte ptr [rbx+35ECh], 0                                        ; +0x81, 0x10012c371\nmov     word ptr [rbx+6B8h], 101h                                      ; +0x88, 0x10012c378\nlea     rdi, [rbx+240h]                                                ; +0x91, 0x10012c381\nlea     r12, qword_100BE1268                                           ; +0x98, 0x10012c388\nmov     rsi, r12                                                       ; +0x9f, 0x10012c38f\ncall    sub_100278300                                                  ; +0xa2, 0x10012c392\nmov     [rbp+var_24], 0Ch                                              ; +0xa7, 0x10012c397\nlea     r15, [rbx+3F8h]                                                ; +0xae, 0x10012c39e\nlea     rsi, [rbp+var_24]                                              ; +0xb5, 0x10012c3a5\nmov     rdi, r15                                                       ; +0xb9, 0x10012c3a9\ncall    sub_10001C120                                                  ; +0xbc, 0x10012c3ac\nmov     [rbp+var_24], 0Dh                                              ; +0xc1, 0x10012c3b1\nlea     rsi, [rbp+var_24]                                              ; +0xc8, 0x10012c3b8\nmov     rdi, r15                                                       ; +0xcc, 0x10012c3bc\ncall    sub_10001C120                                                  ; +0xcf, 0x10012c3bf\nlea     rdi, [rbx+1F0h]                                                ; +0xd4, 0x10012c3c4\nmov     rsi, r12                                                       ; +0xdb, 0x10012c3cb\ncall    sub_100278300                                                  ; +0xde, 0x10012c3ce\nlea     rdi, [rbx+260h]                                                ; +0xe3, 0x10012c3d3\nmov     rsi, r12                                                       ; +0xea, 0x10012c3da\ncall    sub_100278300                                                  ; +0xed, 0x10012c3dd\nmov     rsi, [r14+730h]                                                ; +0xf2, 0x10012c3e2\ncmp     byte ptr [rsi+1B8h], 1                                         ; +0xf9, 0x10012c3e9\njnz     loc_10012C520                                                  ; +0x100, 0x10012c3f0\nxorps   xmm0, xmm0                                                     ; +0x106, 0x10012c3f6\nmovups  xmmword ptr [rbx+420h], xmm0                                   ; +0x109, 0x10012c3f9\nmov     rax, [rbx]                                                     ; +0x110, 0x10012c400\nxorps   xmm0, xmm0                                                     ; +0x113, 0x10012c403\nxorps   xmm1, xmm1                                                     ; +0x116, 0x10012c406\nxorps   xmm2, xmm2                                                     ; +0x119, 0x10012c409\nmov     rdi, rbx                                                       ; +0x11c, 0x10012c40c\nxor     esi, esi                                                       ; +0x11f, 0x10012c40f\nxor     edx, edx                                                       ; +0x121, 0x10012c411\nxor     ecx, ecx                                                       ; +0x123, 0x10012c413\nmov     r8d, 0FFFFFFFFh                                                ; +0x125, 0x10012c415\nmov     r9d, 0FFFFFFFFh                                                ; +0x12b, 0x10012c41b\ncall    qword ptr [rax+598h]                                           ; +0x131, 0x10012c421\nmov     qword ptr [rbx+3118h], 0                                       ; +0x137, 0x10012c427\nmov     qword ptr [rbx+3154h], 0                                       ; +0x142, 0x10012c432\nmov     byte ptr [rbx+315Ch], 1                                        ; +0x14d, 0x10012c43d\nlea     rdi, [rbx+47Ch]                                                ; +0x154, 0x10012c444\nlea     r12, qword_100BE1268                                           ; +0x15b, 0x10012c44b\nmov     rsi, r12                                                       ; +0x162, 0x10012c452\ncall    sub_100278300                                                  ; +0x165, 0x10012c455\nlea     rdi, [rbx+200h]                                                ; +0x16a, 0x10012c45a\nmov     rsi, r12                                                       ; +0x171, 0x10012c461\ncall    sub_100278300                                                  ; +0x174, 0x10012c464\nmov     [rbp+var_24], 0Ah                                              ; +0x179, 0x10012c469\nlea     rsi, [rbp+var_24]                                              ; +0x180, 0x10012c470\nmov     rdi, r15                                                       ; +0x184, 0x10012c474\ncall    sub_10001C120                                                  ; +0x187, 0x10012c477\nmov     [rbp+var_24], 0Ch                                              ; +0x18c, 0x10012c47c\nlea     rsi, [rbp+var_24]                                              ; +0x193, 0x10012c483\nmov     rdi, r15                                                       ; +0x197, 0x10012c487\ncall    sub_10001C120                                                  ; +0x19a, 0x10012c48a\nmov     dword ptr [rbx+1E0h], 0                                        ; +0x19f, 0x10012c48f\nmov     dword ptr [rbx+1F0h], 0                                        ; +0x1a9, 0x10012c499\nmov     dword ptr [rbx+238h], 0                                        ; +0x1b3, 0x10012c4a3\nmov     dword ptr [rbx+240h], 0                                        ; +0x1bd, 0x10012c4ad\nmov     dword ptr [rbx+260h], 0                                        ; +0x1c7, 0x10012c4b7\nmov     [rbp+var_24], 0Bh                                              ; +0x1d1, 0x10012c4c1\nlea     rsi, [rbp+var_24]                                              ; +0x1d8, 0x10012c4c8\nmov     rdi, r15                                                       ; +0x1dc, 0x10012c4cc\ncall    sub_10001C120                                                  ; +0x1df, 0x10012c4cf\nmov     [rbp+var_24], 0Dh                                              ; +0x1e4, 0x10012c4d4\nlea     rsi, [rbp+var_24]                                              ; +0x1eb, 0x10012c4db\nmov     rdi, r15                                                       ; +0x1ef, 0x10012c4df\ncall    sub_10001C120                                                  ; +0x1f2, 0x10012c4e2\nmov     dword ptr [rbx+1E4h], 0                                        ; +0x1f7, 0x10012c4e7\nmov     dword ptr [rbx+1F4h], 0                                        ; +0x201, 0x10012c4f1\nmov     dword ptr [rbx+23Ch], 0                                        ; +0x20b, 0x10012c4fb\nmov     dword ptr [rbx+244h], 0                                        ; +0x215, 0x10012c505\nmov     dword ptr [rbx+264h], 0                                        ; +0x21f, 0x10012c50f\nmov     rsi, [r14+730h]                                                ; +0x229, 0x10012c519\nmov     rdi, rbx                                                       ; +0x230, 0x10012c520\ncall    GJBaseGameLayer__setupLevelStart                               ; +0x233, 0x10012c523\nmov     byte ptr [rbx+35EFh], 0                                        ; +0x238, 0x10012c528\nadd     rsp, 10h                                                       ; +0x23f, 0x10012c52f\npop     rbx                                                            ; +0x243, 0x10012c533\npop     r12                                                            ; +0x244, 0x10012c534\npop     r14                                                            ; +0x246, 0x10012c536\npop     r15                                                            ; +0x248, 0x10012c538\npop     rbp                                                            ; +0x24a, 0x10012c53a\nretn                                                                   ; +0x24b, 0x10012c53b", "xrefs": ["PlayLayer::resetLevel @ 0x10008cf96", "LevelEditorLayer::onPlaytest @ 0x1000c5fc1"], "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"}