{"type": "func", "start": 4296100112, "end": 4296100340, "name": "GJBaseGameLayer::createGroundLayer", "pseudocode": "// \n// GJBaseGameLayer::createGroundLayer from 0x100114910 to 0x1001149f4 (228 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x1000adf50\n// > LevelEditorLayer::init @ 0x1000dbf13\n// > GJBaseGameLayer::asyncGLoaded @ 0x1001148fb\n// > GJBaseGameLayer::syncBGTextures @ 0x100158fa3\n// > LevelSettingsLayer::selectArtClosed @ 0x10026f511\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJBaseGameLayer::createGroundLayer(GJBaseGameLayer *a1, int a2, int a3)\n{\n  GJGroundLayer *m_groundLayer; // rdi\n  unsigned int v6; // r12d\n  GJGroundLayer *v7; // rax\n  GJGroundLayer *v8; // rax\n\n  m_groundLayer = a1->m_groundLayer;\n  if ( m_groundLayer )\n  {\n    ((void (__fastcall *)(GJGroundLayer *))m_groundLayer->removeFromParent)(m_groundLayer);\n    a1->m_groundLayer = nullptr;\n    ((void (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->removeFromParent)(a1->m_groundLayer2);\n    a1->m_groundLayer2 = nullptr;\n  }\n  v6 = 22;\n  if ( a2 < 22 )\n    v6 = a2;\n  v7 = GJGroundLayer::create(v6, a3);\n  a1->m_groundLayer = v7;\n  ((void (__fastcall *)(GJGroundLayer *, _QWORD))v7->setTag)(v7, v6);\n  ((void (__fastcall *)(cocos2d::CCNode *, GJGroundLayer *, __int64))a1->m_objectParent->addChild_0)(\n    a1->m_objectParent,\n    a1->m_groundLayer,\n    40);\n  v8 = GJGroundLayer::create(v6, a3);\n  a1->m_groundLayer2 = v8;\n  ((void (__fastcall *)(cocos2d::CCNode *, GJGroundLayer *, __int64))a1->m_objectParent->addChild_0)(\n    a1->m_objectParent,\n    v8,\n    40);\n  ((void (__fastcall *)(GJGroundLayer *, float))a1->m_groundLayer2->setScaleY)(a1->m_groundLayer2, -1.0);\n}", "assembly": "; \n; GJBaseGameLayer::createGroundLayer from 0x100114910 to 0x1001149f4 (228 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x1000adf50\n; > LevelEditorLayer::init @ 0x1000dbf13\n; > GJBaseGameLayer::asyncGLoaded @ 0x1001148fb\n; > GJBaseGameLayer::syncBGTextures @ 0x100158fa3\n; > LevelSettingsLayer::selectArtClosed @ 0x10026f511\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100114910\nmov     rbp, rsp                                                       ; +0x1, 0x100114911\npush    r15                                                            ; +0x4, 0x100114914\npush    r14                                                            ; +0x6, 0x100114916\npush    r12                                                            ; +0x8, 0x100114918\npush    rbx                                                            ; +0xa, 0x10011491a\nmov     r14d, edx                                                      ; +0xb, 0x10011491b\nmov     r15d, esi                                                      ; +0xe, 0x10011491e\nmov     rbx, rdi                                                       ; +0x11, 0x100114921\nmov     rdi, [rdi+0EE0h]                                               ; +0x14, 0x100114924\ntest    rdi, rdi                                                       ; +0x1b, 0x10011492b\njz      short loc_10011495F                                            ; +0x1e, 0x10011492e\nmov     rax, [rdi]                                                     ; +0x20, 0x100114930\ncall    qword ptr [rax+1F8h]                                           ; +0x23, 0x100114933\nmov     qword ptr [rbx+0EE0h], 0                                       ; +0x29, 0x100114939\nmov     rdi, [rbx+0EE8h]                                               ; +0x34, 0x100114944\nmov     rax, [rdi]                                                     ; +0x3b, 0x10011494b\ncall    qword ptr [rax+1F8h]                                           ; +0x3e, 0x10011494e\nmov     qword ptr [rbx+0EE8h], 0                                       ; +0x44, 0x100114954\ncmp     r15d, 16h                                                      ; +0x4f, 0x10011495f\nmov     r12d, 16h                                                      ; +0x53, 0x100114963\ncmovl   r12d, r15d                                                     ; +0x59, 0x100114969\nmov     edi, r12d                                                      ; +0x5d, 0x10011496d\nmov     esi, r14d                                                      ; +0x60, 0x100114970\ncall    GJGroundLayer__create                                          ; +0x63, 0x100114973\nmov     [rbx+0EE0h], rax                                               ; +0x68, 0x100114978\nmov     rcx, [rax]                                                     ; +0x6f, 0x10011497f\nmov     rdi, rax                                                       ; +0x72, 0x100114982\nmov     esi, r12d                                                      ; +0x75, 0x100114985\ncall    qword ptr [rcx+48h]                                            ; +0x78, 0x100114988\nmov     rdi, [rbx+0EA0h]                                               ; +0x7b, 0x10011498b\nmov     rsi, [rbx+0EE0h]                                               ; +0x82, 0x100114992\nmov     rax, [rdi]                                                     ; +0x89, 0x100114999\nmov     edx, 28h ; '('                                                 ; +0x8c, 0x10011499c\ncall    qword ptr [rax+1C0h]                                           ; +0x91, 0x1001149a1\nmov     edi, r12d                                                      ; +0x97, 0x1001149a7\nmov     esi, r14d                                                      ; +0x9a, 0x1001149aa\ncall    GJGroundLayer__create                                          ; +0x9d, 0x1001149ad\nmov     [rbx+0EE8h], rax                                               ; +0xa2, 0x1001149b2\nmov     rdi, [rbx+0EA0h]                                               ; +0xa9, 0x1001149b9\nmov     rcx, [rdi]                                                     ; +0xb0, 0x1001149c0\nmov     rsi, rax                                                       ; +0xb3, 0x1001149c3\nmov     edx, 28h ; '('                                                 ; +0xb6, 0x1001149c6\ncall    qword ptr [rcx+1C0h]                                           ; +0xbb, 0x1001149cb\nmov     rdi, [rbx+0EE8h]                                               ; +0xc1, 0x1001149d1\nmov     rax, [rdi]                                                     ; +0xc8, 0x1001149d8\nmov     rax, [rax+90h]                                                 ; +0xcb, 0x1001149db\nmovss   xmm0, cs:dword_100815094                                       ; +0xd2, 0x1001149e2\npop     rbx                                                            ; +0xda, 0x1001149ea\npop     r12                                                            ; +0xdb, 0x1001149eb\npop     r14                                                            ; +0xdd, 0x1001149ed\npop     r15                                                            ; +0xdf, 0x1001149ef\npop     rbp                                                            ; +0xe1, 0x1001149f1\njmp     rax                                                            ; +0xe2, 0x1001149f2", "xrefs": ["PlayLayer::setupHasCompleted @ 0x1000adf50", "LevelEditorLayer::init @ 0x1000dbf13", "GJBaseGameLayer::asyncGLoaded @ 0x1001148fb", "GJBaseGameLayer::syncBGTextures @ 0x100158fa3", "LevelSettingsLayer::selectArtClosed @ 0x10026f511"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}