{"type": "func", "start": 4301178080, "end": 4301178197, "name": "GJMGLayer::updateGroundOpacity", "pseudocode": "// \n// GJMGLayer::updateGroundOpacity from 0x1005ec4e0 to 0x1005ec555 (117 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x100114827\n// > GJBaseGameLayer::updateLevelColors @ 0x100114858\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 GJMGLayer::updateGroundOpacity(GJMGLayer *a1, unsigned __int8 a2, bool a3)\n{\n  __int64 v3; // rdi\n  __int64 v4; // rbx\n  unsigned int v5; // r15d\n  __int64 v6; // rax\n\n  v3 = *((_QWORD *)&a1->m_ground1Sprite + !a3);\n  if ( v3 )\n  {\n    v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 472LL))(v3);\n    if ( (unsigned int)sub_100720070(v4) )\n    {\n      v5 = 0;\n      do\n      {\n        v6 = sub_1007200C0(v4, v5);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 896LL))(v6, a2);\n        ++v5;\n      }\n      while ( v5 < (unsigned int)sub_100720070(v4) );\n    }\n  }\n}", "assembly": "; \n; GJMGLayer::updateGroundOpacity from 0x1005ec4e0 to 0x1005ec555 (117 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x100114827\n; > GJBaseGameLayer::updateLevelColors @ 0x100114858\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\nxor     dl, 1                                                          ; +0x0, 0x1005ec4e0\nmovzx   eax, dl                                                        ; +0x3, 0x1005ec4e3\nmov     rdi, [rdi+rax*8+198h]                                          ; +0x6, 0x1005ec4e6\ntest    rdi, rdi                                                       ; +0xe, 0x1005ec4ee\njz      short locret_1005EC554                                         ; +0x11, 0x1005ec4f1\npush    rbp                                                            ; +0x13, 0x1005ec4f3\nmov     rbp, rsp                                                       ; +0x14, 0x1005ec4f4\npush    r15                                                            ; +0x17, 0x1005ec4f7\npush    r14                                                            ; +0x19, 0x1005ec4f9\npush    rbx                                                            ; +0x1b, 0x1005ec4fb\npush    rax                                                            ; +0x1c, 0x1005ec4fc\nmov     r14d, esi                                                      ; +0x1d, 0x1005ec4fd\nmov     rax, [rdi]                                                     ; +0x20, 0x1005ec500\ncall    qword ptr [rax+1D8h]                                           ; +0x23, 0x1005ec503\nmov     rbx, rax                                                       ; +0x29, 0x1005ec509\nmov     rdi, rax                                                       ; +0x2c, 0x1005ec50c\ncall    sub_100720070                                                  ; +0x2f, 0x1005ec50f\ntest    eax, eax                                                       ; +0x34, 0x1005ec514\njz      short loc_1005EC54A                                            ; +0x36, 0x1005ec516\nxor     r15d, r15d                                                     ; +0x38, 0x1005ec518\nmovzx   r14d, r14b                                                     ; +0x3b, 0x1005ec51b\nnop                                                                    ; +0x3f, 0x1005ec51f\nmov     rdi, rbx                                                       ; +0x40, 0x1005ec520\nmov     esi, r15d                                                      ; +0x43, 0x1005ec523\ncall    sub_1007200C0                                                  ; +0x46, 0x1005ec526\nmov     rcx, [rax]                                                     ; +0x4b, 0x1005ec52b\nmov     rdi, rax                                                       ; +0x4e, 0x1005ec52e\nmov     esi, r14d                                                      ; +0x51, 0x1005ec531\ncall    qword ptr [rcx+380h]                                           ; +0x54, 0x1005ec534\ninc     r15d                                                           ; +0x5a, 0x1005ec53a\nmov     rdi, rbx                                                       ; +0x5d, 0x1005ec53d\ncall    sub_100720070                                                  ; +0x60, 0x1005ec540\ncmp     r15d, eax                                                      ; +0x65, 0x1005ec545\njb      short loc_1005EC520                                            ; +0x68, 0x1005ec548\nadd     rsp, 8                                                         ; +0x6a, 0x1005ec54a\npop     rbx                                                            ; +0x6e, 0x1005ec54e\npop     r14                                                            ; +0x6f, 0x1005ec54f\npop     r15                                                            ; +0x71, 0x1005ec551\npop     rbp                                                            ; +0x73, 0x1005ec553\nretn                                                                   ; +0x74, 0x1005ec554", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x100114827", "GJBaseGameLayer::updateLevelColors @ 0x100114858"], "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"}