{"type": "func", "start": 4301173648, "end": 4301173765, "name": "GJGroundLayer::updateGround01Color", "pseudocode": "// \n// GJGroundLayer::updateGround01Color from 0x1005eb390 to 0x1005eb405 (117 bytes)\n// \n// 11 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x1000de900\n// > LevelEditorLayer::updateEditorMode @ 0x1000de97a\n// > GJBaseGameLayer::updateLevelColors @ 0x10011465a\n// > GJBaseGameLayer::updateLevelColors @ 0x100114669\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10016508a\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100165099\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1001650ec\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100165105\n// > LevelSelectLayer::scrollLayerMoved @ 0x100434340\n// > MenuGameLayer::updateColors @ 0x1004fab90\n// > MenuGameLayer::update @ 0x1004fac46\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 GJGroundLayer::updateGround01Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  __int64 v4; // rbx\n  unsigned int v5; // r14d\n  __int64 v6; // rax\n  cocos2d::ccColor3B v7; // [rsp+0h] [rbp-1Ch] BYREF\n  char v8; // [rsp+3h] [rbp-19h]\n\n  v8 = HIBYTE(v2);\n  v7 = a2;\n  v3 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_ground1Sprite->getChildren)(a1->m_ground1Sprite);\n  if ( v3 )\n  {\n    v4 = v3;\n    if ( (unsigned int)sub_100720070(v3) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1007200C0(v4, v5);\n        (*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v6 + 944LL))(v6, &v7);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_100720070(v4) );\n    }\n  }\n}", "assembly": "; \n; GJGroundLayer::updateGround01Color from 0x1005eb390 to 0x1005eb405 (117 bytes)\n; \n; 11 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x1000de900\n; > LevelEditorLayer::updateEditorMode @ 0x1000de97a\n; > GJBaseGameLayer::updateLevelColors @ 0x10011465a\n; > GJBaseGameLayer::updateLevelColors @ 0x100114669\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10016508a\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100165099\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1001650ec\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100165105\n; > LevelSelectLayer::scrollLayerMoved @ 0x100434340\n; > MenuGameLayer::updateColors @ 0x1004fab90\n; > MenuGameLayer::update @ 0x1004fac46\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, 0x1005eb390\nmov     rbp, rsp                                                       ; +0x1, 0x1005eb391\npush    r15                                                            ; +0x4, 0x1005eb394\npush    r14                                                            ; +0x6, 0x1005eb396\npush    rbx                                                            ; +0x8, 0x1005eb398\npush    rax                                                            ; +0x9, 0x1005eb399\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1005eb39a\nshr     esi, 10h                                                       ; +0xe, 0x1005eb39e\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1005eb3a1\nmov     rdi, [rdi+198h]                                                ; +0x15, 0x1005eb3a5\nmov     rax, [rdi]                                                     ; +0x1c, 0x1005eb3ac\ncall    qword ptr [rax+1D8h]                                           ; +0x1f, 0x1005eb3af\ntest    rax, rax                                                       ; +0x25, 0x1005eb3b5\njz      short loc_1005EB3FA                                            ; +0x28, 0x1005eb3b8\nmov     rbx, rax                                                       ; +0x2a, 0x1005eb3ba\nmov     rdi, rax                                                       ; +0x2d, 0x1005eb3bd\ncall    sub_100720070                                                  ; +0x30, 0x1005eb3c0\ntest    eax, eax                                                       ; +0x35, 0x1005eb3c5\njz      short loc_1005EB3FA                                            ; +0x37, 0x1005eb3c7\nxor     r14d, r14d                                                     ; +0x39, 0x1005eb3c9\nlea     r15, [rbp+var_1C]                                              ; +0x3c, 0x1005eb3cc\nmov     rdi, rbx                                                       ; +0x40, 0x1005eb3d0\nmov     esi, r14d                                                      ; +0x43, 0x1005eb3d3\ncall    sub_1007200C0                                                  ; +0x46, 0x1005eb3d6\nmov     rcx, [rax]                                                     ; +0x4b, 0x1005eb3db\nmov     rdi, rax                                                       ; +0x4e, 0x1005eb3de\nmov     rsi, r15                                                       ; +0x51, 0x1005eb3e1\ncall    qword ptr [rcx+3B0h]                                           ; +0x54, 0x1005eb3e4\ninc     r14d                                                           ; +0x5a, 0x1005eb3ea\nmov     rdi, rbx                                                       ; +0x5d, 0x1005eb3ed\ncall    sub_100720070                                                  ; +0x60, 0x1005eb3f0\ncmp     r14d, eax                                                      ; +0x65, 0x1005eb3f5\njb      short loc_1005EB3D0                                            ; +0x68, 0x1005eb3f8\nadd     rsp, 8                                                         ; +0x6a, 0x1005eb3fa\npop     rbx                                                            ; +0x6e, 0x1005eb3fe\npop     r14                                                            ; +0x6f, 0x1005eb3ff\npop     r15                                                            ; +0x71, 0x1005eb401\npop     rbp                                                            ; +0x73, 0x1005eb403\nretn                                                                   ; +0x74, 0x1005eb404", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x1000de900", "LevelEditorLayer::updateEditorMode @ 0x1000de97a", "GJBaseGameLayer::updateLevelColors @ 0x10011465a", "GJBaseGameLayer::updateLevelColors @ 0x100114669", "GJBaseGameLayer::visitWithColorFlash @ 0x10016508a", "GJBaseGameLayer::visitWithColorFlash @ 0x100165099", "GJBaseGameLayer::visitWithColorFlash @ 0x1001650ec", "GJBaseGameLayer::visitWithColorFlash @ 0x100165105", "LevelSelectLayer::scrollLayerMoved @ 0x100434340", "MenuGameLayer::updateColors @ 0x1004fab90", "MenuGameLayer::update @ 0x1004fac46"], "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"}