{"type": "func", "start": 4295953328, "end": 4295953556, "name": "GJBaseGameLayer::createGroundLayer", "pseudocode": "// \n// GJBaseGameLayer::createGroundLayer from 0x1000f0bb0 to 0x1000f0c94 (228 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x10007b501\n// > LevelEditorLayer::init @ 0x1000aad24\n// > GJBaseGameLayer::asyncGLoaded @ 0x1000f0b9b\n// > GJBaseGameLayer::syncBGTextures @ 0x100138433\n// > LevelSettingsLayer::selectArtClosed @ 0x100259511\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:11 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::createGroundLayer(__int64 a1, int a2, unsigned int a3)\n{\n  __int64 v5; // rdi\n  unsigned int v6; // r12d\n  __int64 v7; // rax\n  __int64 v8; // rax\n\n  v5 = *(_QWORD *)(a1 + 3960);\n  if ( v5 )\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5);\n    *(_QWORD *)(a1 + 3960) = 0;\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3968) + 520LL))(*(_QWORD *)(a1 + 3968));\n    *(_QWORD *)(a1 + 3968) = 0;\n  }\n  v6 = 22;\n  if ( a2 < 22 )\n    v6 = a2;\n  v7 = GJGroundLayer::create(v6, a3);\n  *(_QWORD *)(a1 + 3960) = v7;\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 72LL))(v7, v6);\n  (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 3896) + 464LL))(\n    *(_QWORD *)(a1 + 3896),\n    *(_QWORD *)(a1 + 3960),\n    40);\n  v8 = GJGroundLayer::create(v6, a3);\n  *(_QWORD *)(a1 + 3968) = v8;\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 3896) + 464LL))(*(_QWORD *)(a1 + 3896), v8, 40);\n  return (*(__int64 (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 3968) + 144LL))(*(_QWORD *)(a1 + 3968), -1.0);\n}", "assembly": "; \n; GJBaseGameLayer::createGroundLayer from 0x1000f0bb0 to 0x1000f0c94 (228 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x10007b501\n; > LevelEditorLayer::init @ 0x1000aad24\n; > GJBaseGameLayer::asyncGLoaded @ 0x1000f0b9b\n; > GJBaseGameLayer::syncBGTextures @ 0x100138433\n; > LevelSettingsLayer::selectArtClosed @ 0x100259511\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:11 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000f0bb0\nmov     rbp, rsp                                                       ; +0x1, 0x1000f0bb1\npush    r15                                                            ; +0x4, 0x1000f0bb4\npush    r14                                                            ; +0x6, 0x1000f0bb6\npush    r12                                                            ; +0x8, 0x1000f0bb8\npush    rbx                                                            ; +0xa, 0x1000f0bba\nmov     r14d, edx                                                      ; +0xb, 0x1000f0bbb\nmov     r15d, esi                                                      ; +0xe, 0x1000f0bbe\nmov     rbx, rdi                                                       ; +0x11, 0x1000f0bc1\nmov     rdi, [rdi+0F78h]                                               ; +0x14, 0x1000f0bc4\ntest    rdi, rdi                                                       ; +0x1b, 0x1000f0bcb\njz      short loc_1000F0BFF                                            ; +0x1e, 0x1000f0bce\nmov     rax, [rdi]                                                     ; +0x20, 0x1000f0bd0\ncall    qword ptr [rax+208h]                                           ; +0x23, 0x1000f0bd3\nmov     qword ptr [rbx+0F78h], 0                                       ; +0x29, 0x1000f0bd9\nmov     rdi, [rbx+0F80h]                                               ; +0x34, 0x1000f0be4\nmov     rax, [rdi]                                                     ; +0x3b, 0x1000f0beb\ncall    qword ptr [rax+208h]                                           ; +0x3e, 0x1000f0bee\nmov     qword ptr [rbx+0F80h], 0                                       ; +0x44, 0x1000f0bf4\ncmp     r15d, 16h                                                      ; +0x4f, 0x1000f0bff\nmov     r12d, 16h                                                      ; +0x53, 0x1000f0c03\ncmovl   r12d, r15d                                                     ; +0x59, 0x1000f0c09\nmov     edi, r12d                                                      ; +0x5d, 0x1000f0c0d\nmov     esi, r14d                                                      ; +0x60, 0x1000f0c10\ncall    GJGroundLayer__create                                          ; +0x63, 0x1000f0c13\nmov     [rbx+0F78h], rax                                               ; +0x68, 0x1000f0c18\nmov     rcx, [rax]                                                     ; +0x6f, 0x1000f0c1f\nmov     rdi, rax                                                       ; +0x72, 0x1000f0c22\nmov     esi, r12d                                                      ; +0x75, 0x1000f0c25\ncall    qword ptr [rcx+48h]                                            ; +0x78, 0x1000f0c28\nmov     rdi, [rbx+0F38h]                                               ; +0x7b, 0x1000f0c2b\nmov     rsi, [rbx+0F78h]                                               ; +0x82, 0x1000f0c32\nmov     rax, [rdi]                                                     ; +0x89, 0x1000f0c39\nmov     edx, 28h ; '('                                                 ; +0x8c, 0x1000f0c3c\ncall    qword ptr [rax+1D0h]                                           ; +0x91, 0x1000f0c41\nmov     edi, r12d                                                      ; +0x97, 0x1000f0c47\nmov     esi, r14d                                                      ; +0x9a, 0x1000f0c4a\ncall    GJGroundLayer__create                                          ; +0x9d, 0x1000f0c4d\nmov     [rbx+0F80h], rax                                               ; +0xa2, 0x1000f0c52\nmov     rdi, [rbx+0F38h]                                               ; +0xa9, 0x1000f0c59\nmov     rcx, [rdi]                                                     ; +0xb0, 0x1000f0c60\nmov     rsi, rax                                                       ; +0xb3, 0x1000f0c63\nmov     edx, 28h ; '('                                                 ; +0xb6, 0x1000f0c66\ncall    qword ptr [rcx+1D0h]                                           ; +0xbb, 0x1000f0c6b\nmov     rdi, [rbx+0F80h]                                               ; +0xc1, 0x1000f0c71\nmov     rax, [rdi]                                                     ; +0xc8, 0x1000f0c78\nmov     rax, [rax+90h]                                                 ; +0xcb, 0x1000f0c7b\nmovss   xmm0, cs:dword_100A035E0                                       ; +0xd2, 0x1000f0c82\npop     rbx                                                            ; +0xda, 0x1000f0c8a\npop     r12                                                            ; +0xdb, 0x1000f0c8b\npop     r14                                                            ; +0xdd, 0x1000f0c8d\npop     r15                                                            ; +0xdf, 0x1000f0c8f\npop     rbp                                                            ; +0xe1, 0x1000f0c91\njmp     rax                                                            ; +0xe2, 0x1000f0c92", "xrefs": ["PlayLayer::setupHasCompleted @ 0x10007b501", "LevelEditorLayer::init @ 0x1000aad24", "GJBaseGameLayer::asyncGLoaded @ 0x1000f0b9b", "GJBaseGameLayer::syncBGTextures @ 0x100138433", "LevelSettingsLayer::selectArtClosed @ 0x100259511"], "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"}