{"type": "func", "start": 4302038048, "end": 4302038165, "name": "GJGroundLayer::updateGround01Color", "pseudocode": "// \n// GJGroundLayer::updateGround01Color from 0x1006be420 to 0x1006be495 (117 bytes)\n// \n// 11 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x1000ada20\n// > LevelEditorLayer::updateEditorMode @ 0x1000ada9a\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f08fa\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0909\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1001445da\n// > GJBaseGameLayer::visitWithColorFlash @ 0x1001445e9\n// > GJBaseGameLayer::visitWithColorFlash @ 0x10014463c\n// > GJBaseGameLayer::visitWithColorFlash @ 0x100144655\n// > LevelSelectLayer::scrollLayerMoved @ 0x100421d54\n// > MenuGameLayer::updateColors @ 0x1004f9a20\n// > MenuGameLayer::update @ 0x1004f9ad6\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::updateGround01Color(__int64 a1, int a2)\n{\n  __int64 v2; // rax\n  __int64 result; // rax\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(v2);\n  v7 = a2;\n  v8 = BYTE2(a2);\n  result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 488LL))(*(_QWORD *)(a1 + 408));\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  return result;\n}", "assembly": "; \n; GJGroundLayer::updateGround01Color from 0x1006be420 to 0x1006be495 (117 bytes)\n; \n; 11 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x1000ada20\n; > LevelEditorLayer::updateEditorMode @ 0x1000ada9a\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f08fa\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0909\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1001445da\n; > GJBaseGameLayer::visitWithColorFlash @ 0x1001445e9\n; > GJBaseGameLayer::visitWithColorFlash @ 0x10014463c\n; > GJBaseGameLayer::visitWithColorFlash @ 0x100144655\n; > LevelSelectLayer::scrollLayerMoved @ 0x100421d54\n; > MenuGameLayer::updateColors @ 0x1004f9a20\n; > MenuGameLayer::update @ 0x1004f9ad6\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, 0x1006be420\nmov     rbp, rsp                                                       ; +0x1, 0x1006be421\npush    r15                                                            ; +0x4, 0x1006be424\npush    r14                                                            ; +0x6, 0x1006be426\npush    rbx                                                            ; +0x8, 0x1006be428\npush    rax                                                            ; +0x9, 0x1006be429\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1006be42a\nshr     esi, 10h                                                       ; +0xe, 0x1006be42e\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1006be431\nmov     rdi, [rdi+198h]                                                ; +0x15, 0x1006be435\nmov     rax, [rdi]                                                     ; +0x1c, 0x1006be43c\ncall    qword ptr [rax+1E8h]                                           ; +0x1f, 0x1006be43f\ntest    rax, rax                                                       ; +0x25, 0x1006be445\njz      short loc_1006BE48A                                            ; +0x28, 0x1006be448\nmov     rbx, rax                                                       ; +0x2a, 0x1006be44a\nmov     rdi, rax                                                       ; +0x2d, 0x1006be44d\ncall    sub_1007FEF90                                                  ; +0x30, 0x1006be450\ntest    eax, eax                                                       ; +0x35, 0x1006be455\njz      short loc_1006BE48A                                            ; +0x37, 0x1006be457\nxor     r14d, r14d                                                     ; +0x39, 0x1006be459\nlea     r15, [rbp+var_1C]                                              ; +0x3c, 0x1006be45c\nmov     rdi, rbx                                                       ; +0x40, 0x1006be460\nmov     esi, r14d                                                      ; +0x43, 0x1006be463\ncall    sub_1007FEFE0                                                  ; +0x46, 0x1006be466\nmov     rcx, [rax]                                                     ; +0x4b, 0x1006be46b\nmov     rdi, rax                                                       ; +0x4e, 0x1006be46e\nmov     rsi, r15                                                       ; +0x51, 0x1006be471\ncall    qword ptr [rcx+3C0h]                                           ; +0x54, 0x1006be474\ninc     r14d                                                           ; +0x5a, 0x1006be47a\nmov     rdi, rbx                                                       ; +0x5d, 0x1006be47d\ncall    sub_1007FEF90                                                  ; +0x60, 0x1006be480\ncmp     r14d, eax                                                      ; +0x65, 0x1006be485\njb      short loc_1006BE460                                            ; +0x68, 0x1006be488\nadd     rsp, 8                                                         ; +0x6a, 0x1006be48a\npop     rbx                                                            ; +0x6e, 0x1006be48e\npop     r14                                                            ; +0x6f, 0x1006be48f\npop     r15                                                            ; +0x71, 0x1006be491\npop     rbp                                                            ; +0x73, 0x1006be493\nretn                                                                   ; +0x74, 0x1006be494", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x1000ada20", "LevelEditorLayer::updateEditorMode @ 0x1000ada9a", "GJBaseGameLayer::updateLevelColors @ 0x1000f08fa", "GJBaseGameLayer::updateLevelColors @ 0x1000f0909", "GJBaseGameLayer::visitWithColorFlash @ 0x1001445da", "GJBaseGameLayer::visitWithColorFlash @ 0x1001445e9", "GJBaseGameLayer::visitWithColorFlash @ 0x10014463c", "GJBaseGameLayer::visitWithColorFlash @ 0x100144655", "LevelSelectLayer::scrollLayerMoved @ 0x100421d54", "MenuGameLayer::updateColors @ 0x1004f9a20", "MenuGameLayer::update @ 0x1004f9ad6"], "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"}