{"type": "func", "start": 5370854496, "end": 5370854737, "name": "GJBaseGameLayer::createGroundLayer", "pseudocode": "// \n// GJBaseGameLayer::createGroundLayer from 0x14020bc60 to 0x14020bd51 (241 bytes)\n// \n// 6 xrefs:\n// > GameManager::finishedLoadingGAsync @ 0x140182e1d\n// > GJBaseGameLayer::syncBGTextures @ 0x14023aff0\n// > LevelEditorLayer::init @ 0x1402d2b83\n// > LevelSettingsLayer::selectArtClosed @ 0x140322066\n// > PlayLayer::setupHasCompleted @ 0x1403a6a8e\n// > <???> @ 0x1406ccd20\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 GJBaseGameLayer::createGroundLayer(GJBaseGameLayer *a1, int a2, int a3)\n{\n  GJGroundLayer *m_groundLayer; // rcx\n  GJGroundLayer *m_groundLayer2; // rcx\n  GJGroundLayer *v8; // rax\n  GJGroundLayer *v9; // rax\n  cocos2d::CCNode *m_objectParent; // rcx\n\n  m_groundLayer = a1->m_groundLayer;\n  if ( m_groundLayer )\n  {\n    m_groundLayer->removeFromParent(m_groundLayer);\n    m_groundLayer2 = a1->m_groundLayer2;\n    a1->m_groundLayer = nullptr;\n    m_groundLayer2->removeFromParent(m_groundLayer2);\n    a1->m_groundLayer2 = nullptr;\n  }\n  if ( a2 > 22 )\n    a2 = 22;\n  v8 = GJGroundLayer::create(a2, a3);\n  a1->m_groundLayer = v8;\n  v8->setTag(v8, a2);\n  a1->m_objectParent->addChild_0(a1->m_objectParent, a1->m_groundLayer, 40);\n  v9 = GJGroundLayer::create(a2, a3);\n  m_objectParent = a1->m_objectParent;\n  a1->m_groundLayer2 = v9;\n  m_objectParent->addChild_0(m_objectParent, v9, 40);\n  ((void (__fastcall *)(GJGroundLayer *))a1->m_groundLayer2->setScaleY)(a1->m_groundLayer2);\n}", "assembly": "; \n; GJBaseGameLayer::createGroundLayer from 0x14020bc60 to 0x14020bd51 (241 bytes)\n; \n; 6 xrefs:\n; > GameManager::finishedLoadingGAsync @ 0x140182e1d\n; > GJBaseGameLayer::syncBGTextures @ 0x14023aff0\n; > LevelEditorLayer::init @ 0x1402d2b83\n; > LevelSettingsLayer::selectArtClosed @ 0x140322066\n; > PlayLayer::setupHasCompleted @ 0x1403a6a8e\n; > <???> @ 0x1406ccd20\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14020bc60\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14020bc65\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14020bc6a\npush    rdi                                                            ; +0xf, 0x14020bc6f\nsub     rsp, 20h                                                       ; +0x10, 0x14020bc70\nmov     rdi, rcx                                                       ; +0x14, 0x14020bc74\nmov     ebp, r8d                                                       ; +0x17, 0x14020bc77\nmov     rcx, [rcx+1010h]                                               ; +0x1a, 0x14020bc7a\nmov     esi, edx                                                       ; +0x21, 0x14020bc81\ntest    rcx, rcx                                                       ; +0x23, 0x14020bc83\njz      short loc_14020BCB7                                            ; +0x26, 0x14020bc86\nmov     rax, [rcx]                                                     ; +0x28, 0x14020bc88\ncall    qword ptr [rax+1F0h]                                           ; +0x2b, 0x14020bc8b\nmov     rcx, [rdi+1018h]                                               ; +0x31, 0x14020bc91\nmov     qword ptr [rdi+1010h], 0                                       ; +0x38, 0x14020bc98\nmov     rax, [rcx]                                                     ; +0x43, 0x14020bca3\ncall    qword ptr [rax+1F0h]                                           ; +0x46, 0x14020bca6\nmov     qword ptr [rdi+1018h], 0                                       ; +0x4c, 0x14020bcac\nmov     eax, 16h                                                       ; +0x57, 0x14020bcb7\nmov     edx, ebp                                                       ; +0x5c, 0x14020bcbc\ncmp     esi, eax                                                       ; +0x5e, 0x14020bcbe\ncmovg   esi, eax                                                       ; +0x60, 0x14020bcc0\nmov     ecx, esi                                                       ; +0x63, 0x14020bcc3\ncall    GJGroundLayer__create                                          ; +0x65, 0x14020bcc5\nmov     [rdi+1010h], rax                                               ; +0x6a, 0x14020bcca\nmov     edx, esi                                                       ; +0x71, 0x14020bcd1\nmov     rcx, rax                                                       ; +0x73, 0x14020bcd3\nmov     r8, [rax]                                                      ; +0x76, 0x14020bcd6\ncall    qword ptr [r8+40h]                                             ; +0x79, 0x14020bcd9\nmov     rcx, [rdi+0FD0h]                                               ; +0x7d, 0x14020bcdd\nmov     r8d, 28h ; '('                                                 ; +0x84, 0x14020bce4\nmov     rdx, [rdi+1010h]                                               ; +0x8a, 0x14020bcea\nmov     rax, [rcx]                                                     ; +0x91, 0x14020bcf1\ncall    qword ptr [rax+1B8h]                                           ; +0x94, 0x14020bcf4\nmov     edx, ebp                                                       ; +0x9a, 0x14020bcfa\nmov     ecx, esi                                                       ; +0x9c, 0x14020bcfc\ncall    GJGroundLayer__create                                          ; +0x9e, 0x14020bcfe\nmov     rcx, [rdi+0FD0h]                                               ; +0xa3, 0x14020bd03\nmov     r8d, 28h ; '('                                                 ; +0xaa, 0x14020bd0a\nmov     [rdi+1018h], rax                                               ; +0xb0, 0x14020bd10\nmov     rdx, rax                                                       ; +0xb7, 0x14020bd17\nmov     r9, [rcx]                                                      ; +0xba, 0x14020bd1a\ncall    qword ptr [r9+1B8h]                                            ; +0xbd, 0x14020bd1d\nmov     rcx, [rdi+1018h]                                               ; +0xc4, 0x14020bd24\nmovss   xmm1, cs:dword_1406236F0                                       ; +0xcb, 0x14020bd2b\nmov     rax, [rcx]                                                     ; +0xd3, 0x14020bd33\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xd6, 0x14020bd36\nmov     rbp, [rsp+28h+arg_8]                                           ; +0xdb, 0x14020bd3b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xe0, 0x14020bd40\nadd     rsp, 20h                                                       ; +0xe5, 0x14020bd45\npop     rdi                                                            ; +0xe9, 0x14020bd49\njmp     qword ptr [rax+88h]                                            ; +0xea, 0x14020bd4a", "xrefs": ["GameManager::finishedLoadingGAsync @ 0x140182e1d", "GJBaseGameLayer::syncBGTextures @ 0x14023aff0", "LevelEditorLayer::init @ 0x1402d2b83", "LevelSettingsLayer::selectArtClosed @ 0x140322066", "PlayLayer::setupHasCompleted @ 0x1403a6a8e", "<???> @ 0x1406ccd20"], "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"}