{"type": "func", "start": 4301173968, "end": 4301174101, "name": "GJGroundLayer::updateGround02Color", "pseudocode": "// \n// GJGroundLayer::updateGround02Color from 0x1005eb4d0 to 0x1005eb555 (133 bytes)\n// \n// 11 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x1000de90d\n// > LevelEditorLayer::updateEditorMode @ 0x1000de987\n// > GJBaseGameLayer::updateLevelColors @ 0x10011469c\n// > GJBaseGameLayer::updateLevelColors @ 0x1001146ab\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1001650a8\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1001650b7\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10016511e\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100165137\n// > LevelSelectLayer::scrollLayerMoved @ 0x10043439d\n// > MenuGameLayer::updateColors @ 0x1004fabc4\n// > MenuGameLayer::update @ 0x1004fac76\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::updateGround02Color(GJGroundLayer *a1, cocos2d::ccColor3B a2)\n{\n  __int64 v2; // rax\n  cocos2d::CCSprite *m_ground2Sprite; // rdi\n  __int64 v4; // rax\n  __int64 v5; // rbx\n  unsigned int v6; // r14d\n  __int64 v7; // rax\n  cocos2d::ccColor3B v8; // [rsp+0h] [rbp-1Ch] BYREF\n  char v9; // [rsp+3h] [rbp-19h]\n\n  v9 = HIBYTE(v2);\n  v8 = a2;\n  m_ground2Sprite = a1->m_ground2Sprite;\n  if ( m_ground2Sprite )\n  {\n    v4 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_ground2Sprite->getChildren)(m_ground2Sprite);\n    if ( v4 )\n    {\n      v5 = v4;\n      if ( (unsigned int)sub_100720070(v4) )\n      {\n        v6 = 0;\n        do\n        {\n          v7 = sub_1007200C0(v5, v6);\n          (*(void (__fastcall **)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)v7 + 944LL))(v7, &v8);\n          ++v6;\n        }\n        while ( v6 < (unsigned int)sub_100720070(v5) );\n      }\n    }\n  }\n}", "assembly": "; \n; GJGroundLayer::updateGround02Color from 0x1005eb4d0 to 0x1005eb555 (133 bytes)\n; \n; 11 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x1000de90d\n; > LevelEditorLayer::updateEditorMode @ 0x1000de987\n; > GJBaseGameLayer::updateLevelColors @ 0x10011469c\n; > GJBaseGameLayer::updateLevelColors @ 0x1001146ab\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1001650a8\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1001650b7\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10016511e\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100165137\n; > LevelSelectLayer::scrollLayerMoved @ 0x10043439d\n; > MenuGameLayer::updateColors @ 0x1004fabc4\n; > MenuGameLayer::update @ 0x1004fac76\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, 0x1005eb4d0\nmov     rbp, rsp                                                       ; +0x1, 0x1005eb4d1\npush    r15                                                            ; +0x4, 0x1005eb4d4\npush    r14                                                            ; +0x6, 0x1005eb4d6\npush    rbx                                                            ; +0x8, 0x1005eb4d8\npush    rax                                                            ; +0x9, 0x1005eb4d9\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1005eb4da\nshr     esi, 10h                                                       ; +0xe, 0x1005eb4de\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1005eb4e1\nmov     rdi, [rdi+1A0h]                                                ; +0x15, 0x1005eb4e5\ntest    rdi, rdi                                                       ; +0x1c, 0x1005eb4ec\njz      short loc_1005EB54A                                            ; +0x1f, 0x1005eb4ef\nmov     rax, [rdi]                                                     ; +0x21, 0x1005eb4f1\ncall    qword ptr [rax+1D8h]                                           ; +0x24, 0x1005eb4f4\ntest    rax, rax                                                       ; +0x2a, 0x1005eb4fa\njz      short loc_1005EB54A                                            ; +0x2d, 0x1005eb4fd\nmov     rbx, rax                                                       ; +0x2f, 0x1005eb4ff\nmov     rdi, rax                                                       ; +0x32, 0x1005eb502\ncall    sub_100720070                                                  ; +0x35, 0x1005eb505\ntest    eax, eax                                                       ; +0x3a, 0x1005eb50a\njz      short loc_1005EB54A                                            ; +0x3c, 0x1005eb50c\nxor     r14d, r14d                                                     ; +0x3e, 0x1005eb50e\nlea     r15, [rbp+var_1C]                                              ; +0x41, 0x1005eb511\nnop     word ptr [rax+rax+00000000h]                                   ; +0x45, 0x1005eb515\nmov     rdi, rbx                                                       ; +0x50, 0x1005eb520\nmov     esi, r14d                                                      ; +0x53, 0x1005eb523\ncall    sub_1007200C0                                                  ; +0x56, 0x1005eb526\nmov     rcx, [rax]                                                     ; +0x5b, 0x1005eb52b\nmov     rdi, rax                                                       ; +0x5e, 0x1005eb52e\nmov     rsi, r15                                                       ; +0x61, 0x1005eb531\ncall    qword ptr [rcx+3B0h]                                           ; +0x64, 0x1005eb534\ninc     r14d                                                           ; +0x6a, 0x1005eb53a\nmov     rdi, rbx                                                       ; +0x6d, 0x1005eb53d\ncall    sub_100720070                                                  ; +0x70, 0x1005eb540\ncmp     r14d, eax                                                      ; +0x75, 0x1005eb545\njb      short loc_1005EB520                                            ; +0x78, 0x1005eb548\nadd     rsp, 8                                                         ; +0x7a, 0x1005eb54a\npop     rbx                                                            ; +0x7e, 0x1005eb54e\npop     r14                                                            ; +0x7f, 0x1005eb54f\npop     r15                                                            ; +0x81, 0x1005eb551\npop     rbp                                                            ; +0x83, 0x1005eb553\nretn                                                                   ; +0x84, 0x1005eb554", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x1000de90d", "LevelEditorLayer::updateEditorMode @ 0x1000de987", "GJBaseGameLayer::updateLevelColors @ 0x10011469c", "GJBaseGameLayer::updateLevelColors @ 0x1001146ab", "GJBaseGameLayer::visitWithColorFlash @ 0x1001650a8", "GJBaseGameLayer::visitWithColorFlash @ 0x1001650b7", "GJBaseGameLayer::visitWithColorFlash @ 0x10016511e", "GJBaseGameLayer::visitWithColorFlash @ 0x100165137", "LevelSelectLayer::scrollLayerMoved @ 0x10043439d", "MenuGameLayer::updateColors @ 0x1004fabc4", "MenuGameLayer::update @ 0x1004fac76"], "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"}