{"type": "func", "start": 5371928048, "end": 5371928295, "name": "GJBaseGameLayer::createGroundLayer", "pseudocode": "// \n// GJBaseGameLayer::createGroundLayer from 0x140311df0 to 0x140311ee7 (247 bytes)\n// \n// 6 xrefs:\n// > GameManager::finishedLoadingGAsync @ 0x14027e28d\n// > GJBaseGameLayer::syncBGTextures @ 0x140344f50\n// > LevelEditorLayer::init @ 0x1403eeabe\n// > LevelSettingsLayer::selectArtClosed @ 0x14045b2b0\n// > PlayLayer::setupHasCompleted @ 0x140504d90\n// > <???> @ 0x14091e800\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:16 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::createGroundLayer(__int64 a1, unsigned int a2, unsigned int a3)\n{\n  __int64 v5; // rcx\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  __int64 v9; // rax\n  __int64 v10; // rcx\n\n  v5 = *(_QWORD *)(a1 + 4336);\n  if ( v5 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 512LL))(v5);\n    v7 = *(_QWORD *)(a1 + 4344);\n    *(_QWORD *)(a1 + 4336) = 0;\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 512LL))(v7);\n    *(_QWORD *)(a1 + 4344) = 0;\n  }\n  if ( (int)a2 > 22 )\n    a2 = 22;\n  v8 = GJGroundLayer::create(a2, a3);\n  *(_QWORD *)(a1 + 4336) = v8;\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 64LL))(v8, a2);\n  (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 4272) + 456LL))(\n    *(_QWORD *)(a1 + 4272),\n    *(_QWORD *)(a1 + 4336),\n    40);\n  v9 = GJGroundLayer::create(a2, a3);\n  v10 = *(_QWORD *)(a1 + 4272);\n  *(_QWORD *)(a1 + 4344) = v9;\n  (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v10 + 456LL))(v10, v9, 40);\n  return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4344) + 136LL))(*(_QWORD *)(a1 + 4344));\n}", "assembly": "; \n; GJBaseGameLayer::createGroundLayer from 0x140311df0 to 0x140311ee7 (247 bytes)\n; \n; 6 xrefs:\n; > GameManager::finishedLoadingGAsync @ 0x14027e28d\n; > GJBaseGameLayer::syncBGTextures @ 0x140344f50\n; > LevelEditorLayer::init @ 0x1403eeabe\n; > LevelSettingsLayer::selectArtClosed @ 0x14045b2b0\n; > PlayLayer::setupHasCompleted @ 0x140504d90\n; > <???> @ 0x14091e800\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:16 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140311df0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140311df5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140311dfa\npush    rdi                                                            ; +0xf, 0x140311dff\nsub     rsp, 20h                                                       ; +0x10, 0x140311e00\nmov     rdi, rcx                                                       ; +0x14, 0x140311e04\nmov     ebp, r8d                                                       ; +0x17, 0x140311e07\nmov     rcx, [rcx+10F0h]                                               ; +0x1a, 0x140311e0a\nmov     esi, edx                                                       ; +0x21, 0x140311e11\ntest    rcx, rcx                                                       ; +0x23, 0x140311e13\njz      short loc_140311E47                                            ; +0x26, 0x140311e16\nmov     rax, [rcx]                                                     ; +0x28, 0x140311e18\ncall    qword ptr [rax+200h]                                           ; +0x2b, 0x140311e1b\nmov     rcx, [rdi+10F8h]                                               ; +0x31, 0x140311e21\nmov     qword ptr [rdi+10F0h], 0                                       ; +0x38, 0x140311e28\nmov     rax, [rcx]                                                     ; +0x43, 0x140311e33\ncall    qword ptr [rax+200h]                                           ; +0x46, 0x140311e36\nmov     qword ptr [rdi+10F8h], 0                                       ; +0x4c, 0x140311e3c\nmov     eax, 16h                                                       ; +0x57, 0x140311e47\nmov     edx, ebp                                                       ; +0x5c, 0x140311e4c\ncmp     esi, eax                                                       ; +0x5e, 0x140311e4e\ncmovg   esi, eax                                                       ; +0x60, 0x140311e50\nmov     ecx, esi                                                       ; +0x63, 0x140311e53\ncall    GJGroundLayer__create                                          ; +0x65, 0x140311e55\nmov     [rdi+10F0h], rax                                               ; +0x6a, 0x140311e5a\nmov     edx, esi                                                       ; +0x71, 0x140311e61\nmov     rcx, [rax]                                                     ; +0x73, 0x140311e63\nmov     r8, [rcx+40h]                                                  ; +0x76, 0x140311e66\nmov     rcx, rax                                                       ; +0x7a, 0x140311e6a\ncall    r8                                                             ; +0x7d, 0x140311e6d\nmov     rcx, [rdi+10B0h]                                               ; +0x80, 0x140311e70\nmov     r8d, 28h ; '('                                                 ; +0x87, 0x140311e77\nmov     rdx, [rdi+10F0h]                                               ; +0x8d, 0x140311e7d\nmov     rax, [rcx]                                                     ; +0x94, 0x140311e84\ncall    qword ptr [rax+1C8h]                                           ; +0x97, 0x140311e87\nmov     edx, ebp                                                       ; +0x9d, 0x140311e8d\nmov     ecx, esi                                                       ; +0x9f, 0x140311e8f\ncall    GJGroundLayer__create                                          ; +0xa1, 0x140311e91\nmov     rcx, [rdi+10B0h]                                               ; +0xa6, 0x140311e96\nmov     r8d, 28h ; '('                                                 ; +0xad, 0x140311e9d\nmov     [rdi+10F8h], rax                                               ; +0xb3, 0x140311ea3\nmov     rdx, [rcx]                                                     ; +0xba, 0x140311eaa\nmov     r9, [rdx+1C8h]                                                 ; +0xbd, 0x140311ead\nmov     rdx, rax                                                       ; +0xc4, 0x140311eb4\ncall    r9                                                             ; +0xc7, 0x140311eb7\nmov     rcx, [rdi+10F8h]                                               ; +0xca, 0x140311eba\nmovss   xmm1, cs:dword_140835C90                                       ; +0xd1, 0x140311ec1\nmov     rax, [rcx]                                                     ; +0xd9, 0x140311ec9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xdc, 0x140311ecc\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xe1, 0x140311ed1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xe6, 0x140311ed6\nadd     rsp, 20h                                                       ; +0xeb, 0x140311edb\npop     rdi                                                            ; +0xef, 0x140311edf\njmp     qword ptr [rax+88h]                                            ; +0xf0, 0x140311ee0", "xrefs": ["GameManager::finishedLoadingGAsync @ 0x14027e28d", "GJBaseGameLayer::syncBGTextures @ 0x140344f50", "LevelEditorLayer::init @ 0x1403eeabe", "LevelSettingsLayer::selectArtClosed @ 0x14045b2b0", "PlayLayer::setupHasCompleted @ 0x140504d90", "<???> @ 0x14091e800"], "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"}