{"type": "func", "start": 4302042144, "end": 4302042277, "name": "GJMGLayer::updateGroundColor", "pseudocode": "// \n// GJMGLayer::updateGroundColor from 0x1006bf420 to 0x1006bf4a5 (133 bytes)\n// \n// 4 xrefs:\n// > LevelEditorLayer::updateEditorMode @ 0x1000adb1b\n// > LevelEditorLayer::updateEditorMode @ 0x1000adb2e\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a6f\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a93\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:31 +0000\n// \n\n__int64 __fastcall GJMGLayer::updateGroundColor(__int64 a1, int a2, unsigned __int8 a3)\n{\n  __int64 v3; // rax\n  __int64 result; // rax\n  __int64 v5; // rdi\n  __int64 v6; // rbx\n  unsigned int v7; // r14d\n  __int64 v8; // rax\n  __int16 v9; // [rsp+0h] [rbp-1Ch] BYREF\n  char v10; // [rsp+2h] [rbp-1Ah]\n  char v11; // [rsp+3h] [rbp-19h]\n\n  v11 = HIBYTE(v3);\n  v9 = a2;\n  v10 = BYTE2(a2);\n  result = a3 ^ 1u;\n  v5 = *(_QWORD *)(a1 + 8 * result + 408);\n  if ( v5 )\n  {\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 488LL))(v5);\n    result = sub_1007FEF90(v6);\n    if ( (_DWORD)result )\n    {\n      v7 = 0;\n      do\n      {\n        v8 = sub_1007FEFE0(v6, v7);\n        (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 960LL))(v8, &v9);\n        ++v7;\n        result = sub_1007FEF90(v6);\n      }\n      while ( v7 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJMGLayer::updateGroundColor from 0x1006bf420 to 0x1006bf4a5 (133 bytes)\n; \n; 4 xrefs:\n; > LevelEditorLayer::updateEditorMode @ 0x1000adb1b\n; > LevelEditorLayer::updateEditorMode @ 0x1000adb2e\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0a6f\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0a93\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:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006bf420\nmov     rbp, rsp                                                       ; +0x1, 0x1006bf421\npush    r15                                                            ; +0x4, 0x1006bf424\npush    r14                                                            ; +0x6, 0x1006bf426\npush    rbx                                                            ; +0x8, 0x1006bf428\npush    rax                                                            ; +0x9, 0x1006bf429\nmov     [rbp+var_1C], si                                               ; +0xa, 0x1006bf42a\nshr     esi, 10h                                                       ; +0xe, 0x1006bf42e\nmov     [rbp+var_1A], sil                                              ; +0x11, 0x1006bf431\nxor     dl, 1                                                          ; +0x15, 0x1006bf435\nmovzx   eax, dl                                                        ; +0x18, 0x1006bf438\nmov     rdi, [rdi+rax*8+198h]                                          ; +0x1b, 0x1006bf43b\ntest    rdi, rdi                                                       ; +0x23, 0x1006bf443\njz      short loc_1006BF49A                                            ; +0x26, 0x1006bf446\nmov     rax, [rdi]                                                     ; +0x28, 0x1006bf448\ncall    qword ptr [rax+1E8h]                                           ; +0x2b, 0x1006bf44b\nmov     rbx, rax                                                       ; +0x31, 0x1006bf451\nmov     rdi, rax                                                       ; +0x34, 0x1006bf454\ncall    sub_1007FEF90                                                  ; +0x37, 0x1006bf457\ntest    eax, eax                                                       ; +0x3c, 0x1006bf45c\njz      short loc_1006BF49A                                            ; +0x3e, 0x1006bf45e\nxor     r14d, r14d                                                     ; +0x40, 0x1006bf460\nlea     r15, [rbp+var_1C]                                              ; +0x43, 0x1006bf463\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x1006bf467\nmov     rdi, rbx                                                       ; +0x50, 0x1006bf470\nmov     esi, r14d                                                      ; +0x53, 0x1006bf473\ncall    sub_1007FEFE0                                                  ; +0x56, 0x1006bf476\nmov     rcx, [rax]                                                     ; +0x5b, 0x1006bf47b\nmov     rdi, rax                                                       ; +0x5e, 0x1006bf47e\nmov     rsi, r15                                                       ; +0x61, 0x1006bf481\ncall    qword ptr [rcx+3C0h]                                           ; +0x64, 0x1006bf484\ninc     r14d                                                           ; +0x6a, 0x1006bf48a\nmov     rdi, rbx                                                       ; +0x6d, 0x1006bf48d\ncall    sub_1007FEF90                                                  ; +0x70, 0x1006bf490\ncmp     r14d, eax                                                      ; +0x75, 0x1006bf495\njb      short loc_1006BF470                                            ; +0x78, 0x1006bf498\nadd     rsp, 8                                                         ; +0x7a, 0x1006bf49a\npop     rbx                                                            ; +0x7e, 0x1006bf49e\npop     r14                                                            ; +0x7f, 0x1006bf49f\npop     r15                                                            ; +0x81, 0x1006bf4a1\npop     rbp                                                            ; +0x83, 0x1006bf4a3\nretn                                                                   ; +0x84, 0x1006bf4a4", "xrefs": ["LevelEditorLayer::updateEditorMode @ 0x1000adb1b", "LevelEditorLayer::updateEditorMode @ 0x1000adb2e", "GJBaseGameLayer::updateLevelColors @ 0x1000f0a6f", "GJBaseGameLayer::updateLevelColors @ 0x1000f0a93"], "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"}