{"type": "func", "start": 4302042480, "end": 4302042597, "name": "GJMGLayer::updateGroundOpacity", "pseudocode": "// \n// GJMGLayer::updateGroundOpacity from 0x1006bf570 to 0x1006bf5e5 (117 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0ac7\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0af8\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::updateGroundOpacity(__int64 a1, unsigned __int8 a2, unsigned __int8 a3)\n{\n  __int64 result; // rax\n  __int64 v4; // rdi\n  __int64 v5; // rbx\n  unsigned int v6; // r15d\n  __int64 v7; // rax\n\n  result = a3 ^ 1u;\n  v4 = *(_QWORD *)(a1 + 8 * result + 408);\n  if ( v4 )\n  {\n    v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 488LL))(v4);\n    result = sub_1007FEF90(v5);\n    if ( (_DWORD)result )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = sub_1007FEFE0(v5, v6);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 912LL))(v7, a2);\n        ++v6;\n        result = sub_1007FEF90(v5);\n      }\n      while ( v6 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJMGLayer::updateGroundOpacity from 0x1006bf570 to 0x1006bf5e5 (117 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0ac7\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0af8\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; \nxor     dl, 1                                                          ; +0x0, 0x1006bf570\nmovzx   eax, dl                                                        ; +0x3, 0x1006bf573\nmov     rdi, [rdi+rax*8+198h]                                          ; +0x6, 0x1006bf576\ntest    rdi, rdi                                                       ; +0xe, 0x1006bf57e\njz      short locret_1006BF5E4                                         ; +0x11, 0x1006bf581\npush    rbp                                                            ; +0x13, 0x1006bf583\nmov     rbp, rsp                                                       ; +0x14, 0x1006bf584\npush    r15                                                            ; +0x17, 0x1006bf587\npush    r14                                                            ; +0x19, 0x1006bf589\npush    rbx                                                            ; +0x1b, 0x1006bf58b\npush    rax                                                            ; +0x1c, 0x1006bf58c\nmov     r14d, esi                                                      ; +0x1d, 0x1006bf58d\nmov     rax, [rdi]                                                     ; +0x20, 0x1006bf590\ncall    qword ptr [rax+1E8h]                                           ; +0x23, 0x1006bf593\nmov     rbx, rax                                                       ; +0x29, 0x1006bf599\nmov     rdi, rax                                                       ; +0x2c, 0x1006bf59c\ncall    sub_1007FEF90                                                  ; +0x2f, 0x1006bf59f\ntest    eax, eax                                                       ; +0x34, 0x1006bf5a4\njz      short loc_1006BF5DA                                            ; +0x36, 0x1006bf5a6\nxor     r15d, r15d                                                     ; +0x38, 0x1006bf5a8\nmovzx   r14d, r14b                                                     ; +0x3b, 0x1006bf5ab\nnop                                                                    ; +0x3f, 0x1006bf5af\nmov     rdi, rbx                                                       ; +0x40, 0x1006bf5b0\nmov     esi, r15d                                                      ; +0x43, 0x1006bf5b3\ncall    sub_1007FEFE0                                                  ; +0x46, 0x1006bf5b6\nmov     rcx, [rax]                                                     ; +0x4b, 0x1006bf5bb\nmov     rdi, rax                                                       ; +0x4e, 0x1006bf5be\nmov     esi, r14d                                                      ; +0x51, 0x1006bf5c1\ncall    qword ptr [rcx+390h]                                           ; +0x54, 0x1006bf5c4\ninc     r15d                                                           ; +0x5a, 0x1006bf5ca\nmov     rdi, rbx                                                       ; +0x5d, 0x1006bf5cd\ncall    sub_1007FEF90                                                  ; +0x60, 0x1006bf5d0\ncmp     r15d, eax                                                      ; +0x65, 0x1006bf5d5\njb      short loc_1006BF5B0                                            ; +0x68, 0x1006bf5d8\nadd     rsp, 8                                                         ; +0x6a, 0x1006bf5da\npop     rbx                                                            ; +0x6e, 0x1006bf5de\npop     r14                                                            ; +0x6f, 0x1006bf5df\npop     r15                                                            ; +0x71, 0x1006bf5e1\npop     rbp                                                            ; +0x73, 0x1006bf5e3\nretn                                                                   ; +0x74, 0x1006bf5e4", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x1000f0ac7", "GJBaseGameLayer::updateLevelColors @ 0x1000f0af8"], "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"}