{"type": "func", "start": 4302043120, "end": 4302043189, "name": "GJMGLayer::updateMG02Blend", "pseudocode": "// \n// GJMGLayer::updateMG02Blend from 0x1006bf7f0 to 0x1006bf835 (69 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x1000f0b3e\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::updateMG02Blend(__int64 a1, char a2)\n{\n  bool v2; // zf\n  __int64 v3; // rsi\n  __int64 result; // rax\n\n  if ( *(_BYTE *)(a1 + 458) != a2 )\n  {\n    *(_BYTE *)(a1 + 458) = a2;\n    v2 = a2 == 0;\n    v3 = 0x30300000001LL;\n    if ( !v2 )\n      v3 = 0x100000302LL;\n    return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 472) + 912LL))(*(_QWORD *)(a1 + 472), v3);\n  }\n  return result;\n}", "assembly": "; \n; GJMGLayer::updateMG02Blend from 0x1006bf7f0 to 0x1006bf835 (69 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x1000f0b3e\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, 0x1006bf7f0\nmov     rbp, rsp                                                       ; +0x1, 0x1006bf7f1\ncmp     [rdi+1CAh], sil                                                ; +0x4, 0x1006bf7f4\njnz     short loc_1006BF7FF                                            ; +0xb, 0x1006bf7fb\npop     rbp                                                            ; +0xd, 0x1006bf7fd\nretn                                                                   ; +0xe, 0x1006bf7fe\nmov     [rdi+1CAh], sil                                                ; +0xf, 0x1006bf7ff\ntest    sil, sil                                                       ; +0x16, 0x1006bf806\nmov     rax, 100000302h                                                ; +0x19, 0x1006bf809\nmov     rsi, 30300000001h                                              ; +0x23, 0x1006bf813\ncmovnz  rsi, rax                                                       ; +0x2d, 0x1006bf81d\nmov     rdi, [rdi+1D8h]                                                ; +0x31, 0x1006bf821\nmov     rax, [rdi]                                                     ; +0x38, 0x1006bf828\nmov     rax, [rax+390h]                                                ; +0x3b, 0x1006bf82b\npop     rbp                                                            ; +0x42, 0x1006bf832\njmp     rax                                                            ; +0x43, 0x1006bf833", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x1000f0b3e"], "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"}