{"type": "func", "start": 5372136544, "end": 5372136984, "name": "GJBaseGameLayer::loadLevelSettings", "pseudocode": "// \n// GJBaseGameLayer::loadLevelSettings from 0x140344c60 to 0x140344e18 (440 bytes)\n// \n// 5 xrefs:\n// > LevelEditorLayer::init @ 0x1403ee916\n// > LevelEditorLayer::levelSettingsUpdated @ 0x1403ef8cd\n// > LevelEditorLayer::createObjectsFromSetup @ 0x1403efc0e\n// > LevelEditorLayer::onPlaytest @ 0x1403fe9ce\n// > PlayLayer::prepareCreateObjectsFromSetup @ 0x14050b8f8\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:41 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::loadLevelSettings(__int64 a1)\n{\n  char v2; // dl\n  __int64 v3; // rax\n  __int64 v4; // r9\n  __int64 v5; // rax\n  int v6; // xmm0_4\n  __int64 result; // rax\n  unsigned int *v8; // rdx\n  __int64 *v9; // rdx\n  __int64 *i; // r9\n  __int64 v11; // rcx\n  char v12; // al\n  int v13; // eax\n  bool v14; // zf\n\n  v2 = *(_BYTE *)(*(_QWORD *)(a1 + 3528) + 341LL);\n  v3 = *(_QWORD *)(a1 + 3512);\n  *(_BYTE *)(a1 + 12670) = v2;\n  *(_BYTE *)(v3 + 2936) = v2;\n  *(_BYTE *)(*(_QWORD *)(a1 + 3520) + 2936LL) = *(_BYTE *)(a1 + 12670);\n  if ( *(_BYTE *)(a1 + 12670) )\n    *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 972LL) = 5;\n  *(_BYTE *)(*(_QWORD *)(a1 + 3512) + 3000LL) = *(_BYTE *)(*(_QWORD *)(a1 + 3528) + 460LL) == 0;\n  *(_BYTE *)(*(_QWORD *)(a1 + 3520) + 3000LL) = *(_BYTE *)(*(_QWORD *)(a1 + 3528) + 460LL) == 0;\n  *(_BYTE *)(*(_QWORD *)(a1 + 3512) + 2608LL) = *(_BYTE *)(*(_QWORD *)(a1 + 3528) + 469LL) == 0;\n  *(_BYTE *)(*(_QWORD *)(a1 + 3520) + 2608LL) = *(_BYTE *)(*(_QWORD *)(a1 + 3528) + 469LL) == 0;\n  v4 = *(_QWORD *)(a1 + 2168);\n  if ( *(int *)(v4 + 1336) <= 0 )\n    *(_DWORD *)(v4 + 1336) = *(_DWORD *)(*(_QWORD *)(a1 + 3528) + 440LL);\n  v5 = *(_QWORD *)(a1 + 3528);\n  if ( *(_BYTE *)(v5 + 341) || *(_BYTE *)(v5 + 461) )\n    v6 = 1008981770;\n  else\n    v6 = 0;\n  *(_DWORD *)(a1 + 14244) = v6;\n  result = *(_QWORD *)(a1 + 3536);\n  if ( result )\n  {\n    v8 = *(unsigned int **)(result + 56);\n    result = *v8;\n    if ( (_DWORD)result )\n    {\n      v9 = *((__int64 **)v8 + 2);\n      for ( i = &v9[result - 1]; v9 <= i; *(_BYTE *)(v11 + 877) = result )\n      {\n        v11 = *v9;\n        if ( !*v9 )\n          break;\n        if ( *(_BYTE *)(a1 + 2212) )\n        {\n          v12 = 1;\n        }\n        else\n        {\n          v13 = *(_DWORD *)(v11 + 928);\n          if ( !v13 || (v14 = ((v13 - 21) & 0xFFFFFFFB) == 0, v12 = 1, v14) )\n            v12 = *(_BYTE *)(v11 + 1222);\n        }\n        *(_BYTE *)(v11 + 876) = v12;\n        if ( *(_BYTE *)(v11 + 877) != *(_BYTE *)(a1 + 2213) )\n          *(_BYTE *)(v11 + 872) = 1;\n        result = *(unsigned __int8 *)(a1 + 2213);\n        ++v9;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::loadLevelSettings from 0x140344c60 to 0x140344e18 (440 bytes)\n; \n; 5 xrefs:\n; > LevelEditorLayer::init @ 0x1403ee916\n; > LevelEditorLayer::levelSettingsUpdated @ 0x1403ef8cd\n; > LevelEditorLayer::createObjectsFromSetup @ 0x1403efc0e\n; > LevelEditorLayer::onPlaytest @ 0x1403fe9ce\n; > PlayLayer::prepareCreateObjectsFromSetup @ 0x14050b8f8\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:41 +0000\n; \nmov     rax, [rcx+0DC8h]                                               ; +0x0, 0x140344c60\nmov     r8, rcx                                                        ; +0x7, 0x140344c67\nmovzx   edx, byte ptr [rax+155h]                                       ; +0xa, 0x140344c6a\nmov     rax, [rcx+0DB8h]                                               ; +0x11, 0x140344c71\nmov     [rcx+317Eh], dl                                                ; +0x18, 0x140344c78\nmov     [rax+0B78h], dl                                                ; +0x1e, 0x140344c7e\nmov     rcx, [rcx+0DC0h]                                               ; +0x24, 0x140344c84\nmovzx   eax, byte ptr [r8+317Eh]                                       ; +0x2b, 0x140344c8b\nmov     [rcx+0B78h], al                                                ; +0x33, 0x140344c93\ncmp     byte ptr [r8+317Eh], 0                                         ; +0x39, 0x140344c99\njz      short loc_140344CB4                                            ; +0x41, 0x140344ca1\nmov     rax, [r8+878h]                                                 ; +0x43, 0x140344ca3\nmov     dword ptr [rax+3CCh], 5                                        ; +0x4a, 0x140344caa\nmov     rax, [r8+0DC8h]                                                ; +0x54, 0x140344cb4\ncmp     byte ptr [rax+1CCh], 0                                         ; +0x5b, 0x140344cbb\nmov     rax, [r8+0DB8h]                                                ; +0x62, 0x140344cc2\nsetz    cl                                                             ; +0x69, 0x140344cc9\nmov     [rax+0BB8h], cl                                                ; +0x6c, 0x140344ccc\nmov     rax, [r8+0DC8h]                                                ; +0x72, 0x140344cd2\ncmp     byte ptr [rax+1CCh], 0                                         ; +0x79, 0x140344cd9\nmov     rax, [r8+0DC0h]                                                ; +0x80, 0x140344ce0\nsetz    cl                                                             ; +0x87, 0x140344ce7\nmov     [rax+0BB8h], cl                                                ; +0x8a, 0x140344cea\nmov     rax, [r8+0DC8h]                                                ; +0x90, 0x140344cf0\ncmp     byte ptr [rax+1D5h], 0                                         ; +0x97, 0x140344cf7\nmov     rax, [r8+0DB8h]                                                ; +0x9e, 0x140344cfe\nsetz    cl                                                             ; +0xa5, 0x140344d05\nmov     [rax+0A30h], cl                                                ; +0xa8, 0x140344d08\nmov     rax, [r8+0DC8h]                                                ; +0xae, 0x140344d0e\ncmp     byte ptr [rax+1D5h], 0                                         ; +0xb5, 0x140344d15\nmov     rax, [r8+0DC0h]                                                ; +0xbc, 0x140344d1c\nsetz    cl                                                             ; +0xc3, 0x140344d23\nmov     [rax+0A30h], cl                                                ; +0xc6, 0x140344d26\nmov     r9, [r8+878h]                                                  ; +0xcc, 0x140344d2c\ncmp     dword ptr [r9+538h], 0                                         ; +0xd3, 0x140344d33\njg      short loc_140344D51                                            ; +0xdb, 0x140344d3b\nmov     rax, [r8+0DC8h]                                                ; +0xdd, 0x140344d3d\nmov     ecx, [rax+1B8h]                                                ; +0xe4, 0x140344d44\nmov     [r9+538h], ecx                                                 ; +0xea, 0x140344d4a\nmov     rax, [r8+0DC8h]                                                ; +0xf1, 0x140344d51\ncmp     byte ptr [rax+155h], 0                                         ; +0xf8, 0x140344d58\njnz     short loc_140344D6F                                            ; +0xff, 0x140344d5f\ncmp     byte ptr [rax+1CDh], 0                                         ; +0x101, 0x140344d61\njnz     short loc_140344D6F                                            ; +0x108, 0x140344d68\nxorps   xmm0, xmm0                                                     ; +0x10a, 0x140344d6a\njmp     short loc_140344D77                                            ; +0x10d, 0x140344d6d\nmovss   xmm0, cs:dword_140834D9C                                       ; +0x10f, 0x140344d6f\nmov     eax, 37A4h                                                     ; +0x117, 0x140344d77\nmov     rcx, r8                                                        ; +0x11c, 0x140344d7c\nmovss   dword ptr [rcx+rax], xmm0                                      ; +0x11f, 0x140344d7f\nmov     rax, [r8+0DD0h]                                                ; +0x124, 0x140344d84\ntest    rax, rax                                                       ; +0x12b, 0x140344d8b\njz      locret_140344E17                                               ; +0x12e, 0x140344d8e\nmov     rdx, [rax+38h]                                                 ; +0x134, 0x140344d94\nmov     eax, [rdx]                                                     ; +0x138, 0x140344d98\ntest    eax, eax                                                       ; +0x13a, 0x140344d9a\njz      short locret_140344E17                                         ; +0x13c, 0x140344d9c\nmov     rdx, [rdx+10h]                                                 ; +0x13e, 0x140344d9e\nlea     r9, [rax-1]                                                    ; +0x142, 0x140344da2\nlea     r9, [rdx+r9*8]                                                 ; +0x146, 0x140344da6\ncmp     rdx, r9                                                        ; +0x14a, 0x140344daa\nja      short locret_140344E17                                         ; +0x14d, 0x140344dad\nnop                                                                    ; +0x14f, 0x140344daf\nmov     rcx, [rdx]                                                     ; +0x150, 0x140344db0\ntest    rcx, rcx                                                       ; +0x153, 0x140344db3\njz      short locret_140344E17                                         ; +0x156, 0x140344db6\ncmp     byte ptr [r8+8A4h], 0                                          ; +0x158, 0x140344db8\njz      short loc_140344DC6                                            ; +0x160, 0x140344dc0\nmov     al, 1                                                          ; +0x162, 0x140344dc2\njmp     short loc_140344DE3                                            ; +0x164, 0x140344dc4\nmov     eax, [rcx+3A0h]                                                ; +0x166, 0x140344dc6\ntest    eax, eax                                                       ; +0x16c, 0x140344dcc\njz      short loc_140344DDC                                            ; +0x16e, 0x140344dce\nadd     eax, 0FFFFFFEBh                                                ; +0x170, 0x140344dd0\ntest    eax, 0FFFFFFFBh                                                ; +0x173, 0x140344dd3\nmov     al, 1                                                          ; +0x178, 0x140344dd8\njnz     short loc_140344DE3                                            ; +0x17a, 0x140344dda\nmovzx   eax, byte ptr [rcx+4C6h]                                       ; +0x17c, 0x140344ddc\nmov     [rcx+36Ch], al                                                 ; +0x183, 0x140344de3\nmovzx   eax, byte ptr [r8+8A5h]                                        ; +0x189, 0x140344de9\ncmp     [rcx+36Dh], al                                                 ; +0x191, 0x140344df1\njz      short loc_140344E00                                            ; +0x197, 0x140344df7\nmov     byte ptr [rcx+368h], 1                                         ; +0x199, 0x140344df9\nmovzx   eax, byte ptr [r8+8A5h]                                        ; +0x1a0, 0x140344e00\nadd     rdx, 8                                                         ; +0x1a8, 0x140344e08\nmov     [rcx+36Dh], al                                                 ; +0x1ac, 0x140344e0c\ncmp     rdx, r9                                                        ; +0x1b2, 0x140344e12\njbe     short loc_140344DB0                                            ; +0x1b5, 0x140344e15\nretn                                                                   ; +0x1b7, 0x140344e17", "xrefs": ["LevelEditorLayer::init @ 0x1403ee916", "LevelEditorLayer::levelSettingsUpdated @ 0x1403ef8cd", "LevelEditorLayer::createObjectsFromSetup @ 0x1403efc0e", "LevelEditorLayer::onPlaytest @ 0x1403fe9ce", "PlayLayer::prepareCreateObjectsFromSetup @ 0x14050b8f8"], "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"}