{"type": "func", "start": 4302038368, "end": 4302038501, "name": "GJGroundLayer::updateGround02Color", "pseudocode": "// \n// GJGroundLayer::updateGround02Color from 0x1006be560 to 0x1006be5e5 (133 bytes)\n// \n// 11 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x1000ada2d\n// > LevelEditorLayer::updateEditorMode @ 0x1000adaa7\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f093c\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f094b\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1001445f8\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100144607\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10014466e\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100144687\n// > LevelSelectLayer::scrollLayerMoved @ 0x100421db1\n// > MenuGameLayer::updateColors @ 0x1004f9a54\n// > MenuGameLayer::update @ 0x1004f9b06\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:35:30 +0000\n// \n\n__int64 __fastcall GJGroundLayer::updateGround02Color(__int64 a1, int a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rdi\n  __int64 v4; // rbx\n  unsigned int v5; // r14d\n  __int64 v6; // rax\n  __int16 v7; // [rsp+0h] [rbp-1Ch] BYREF\n  char v8; // [rsp+2h] [rbp-1Ah]\n  char v9; // [rsp+3h] [rbp-19h]\n\n  v9 = HIBYTE(result);\n  v7 = a2;\n  v8 = BYTE2(a2);\n  v3 = *(_QWORD *)(a1 + 416);\n  if ( v3 )\n  {\n    result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3);\n    if ( result )\n    {\n      v4 = result;\n      result = sub_1007FEF90(result);\n      if ( (_DWORD)result )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = sub_1007FEFE0(v4, v5);\n          (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v6 + 960LL))(v6, &v7);\n          ++v5;\n          result = sub_1007FEF90(v4);\n        }\n        while ( v5 < (unsigned int)result );\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::updateGround02Color from 0x1006be560 to 0x1006be5e5 (133 bytes)\n; \n; 11 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x1000ada2d\n; > LevelEditorLayer::updateEditorMode @ 0x1000adaa7\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f093c\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f094b\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1001445f8\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100144607\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10014466e\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100144687\n; > LevelSelectLayer::scrollLayerMoved @ 0x100421db1\n; > MenuGameLayer::updateColors @ 0x1004f9a54\n; > MenuGameLayer::update @ 0x1004f9b06\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:35:30 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006be560\nmov     rbp, rsp                                                       ; +0x1, 0x1006be561\npush    r15                                                            ; +0x4, 0x1006be564\npush    r14                                                            ; +0x6, 0x1006be566\npush    rbx                                                            ; +0x8, 0x1006be568\npush    rax                                                            ; +0x9, 0x1006be569\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1006be56a\nshr     esi, 10h                                                       ; +0xe, 0x1006be56e\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1006be571\nmov     rdi, [rdi+1A0h]                                                ; +0x15, 0x1006be575\ntest    rdi, rdi                                                       ; +0x1c, 0x1006be57c\njz      short loc_1006BE5DA                                            ; +0x1f, 0x1006be57f\nmov     rax, [rdi]                                                     ; +0x21, 0x1006be581\ncall    qword ptr [rax+1E8h]                                           ; +0x24, 0x1006be584\ntest    rax, rax                                                       ; +0x2a, 0x1006be58a\njz      short loc_1006BE5DA                                            ; +0x2d, 0x1006be58d\nmov     rbx, rax                                                       ; +0x2f, 0x1006be58f\nmov     rdi, rax                                                       ; +0x32, 0x1006be592\ncall    sub_1007FEF90                                                  ; +0x35, 0x1006be595\ntest    eax, eax                                                       ; +0x3a, 0x1006be59a\njz      short loc_1006BE5DA                                            ; +0x3c, 0x1006be59c\nxor     r14d, r14d                                                     ; +0x3e, 0x1006be59e\nlea     r15, [rbp+var_1C]                                              ; +0x41, 0x1006be5a1\nnop     word ptr [rax+rax+00000000h]                                   ; +0x45, 0x1006be5a5\nmov     rdi, rbx                                                       ; +0x50, 0x1006be5b0\nmov     esi, r14d                                                      ; +0x53, 0x1006be5b3\ncall    sub_1007FEFE0                                                  ; +0x56, 0x1006be5b6\nmov     rcx, [rax]                                                     ; +0x5b, 0x1006be5bb\nmov     rdi, rax                                                       ; +0x5e, 0x1006be5be\nmov     rsi, r15                                                       ; +0x61, 0x1006be5c1\ncall    qword ptr [rcx+3C0h]                                           ; +0x64, 0x1006be5c4\ninc     r14d                                                           ; +0x6a, 0x1006be5ca\nmov     rdi, rbx                                                       ; +0x6d, 0x1006be5cd\ncall    sub_1007FEF90                                                  ; +0x70, 0x1006be5d0\ncmp     r14d, eax                                                      ; +0x75, 0x1006be5d5\njb      short loc_1006BE5B0                                            ; +0x78, 0x1006be5d8\nadd     rsp, 8                                                         ; +0x7a, 0x1006be5da\npop     rbx                                                            ; +0x7e, 0x1006be5de\npop     r14                                                            ; +0x7f, 0x1006be5df\npop     r15                                                            ; +0x81, 0x1006be5e1\npop     rbp                                                            ; +0x83, 0x1006be5e3\nretn                                                                   ; +0x84, 0x1006be5e4", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x1000ada2d", "LevelEditorLayer::updateEditorMode @ 0x1000adaa7", "GJBaseGameLayer::updateLevelColors @ 0x1000f093c", "GJBaseGameLayer::updateLevelColors @ 0x1000f094b", "GJBaseGameLayer::visitWithColorFlash @ 0x1001445f8", "GJBaseGameLayer::visitWithColorFlash @ 0x100144607", "GJBaseGameLayer::visitWithColorFlash @ 0x10014466e", "GJBaseGameLayer::visitWithColorFlash @ 0x100144687", "LevelSelectLayer::scrollLayerMoved @ 0x100421db1", "MenuGameLayer::updateColors @ 0x1004f9a54", "MenuGameLayer::update @ 0x1004f9b06"], "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"}