{"type": "func", "start": 4412556, "end": 4412618, "name": "GJMGLayer::updateMG01Blend", "pseudocode": "// \n// GJMGLayer::updateMG01Blend from 0x43548c to 0x4354ca (62 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x46dbae\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 GJMGLayer::updateMG01Blend(GJMGLayer *a1, bool a2)\n{\n  _BOOL4 m_blendMG1; // r3\n  _DWORD *v3; // r2\n  _DWORD v4[2]; // [sp+0h] [bp-8h] BYREF\n\n  m_blendMG1 = a1->m_blendMG1;\n  v4[0] = a1;\n  v4[1] = a2;\n  if ( m_blendMG1 != a2 )\n  {\n    a1->m_blendMG1 = a2;\n    if ( a2 )\n      v3 = &unk_9AB6B0;\n    else\n      v3 = &unk_9AB6B8;\n    ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, _DWORD, _DWORD, _DWORD *, _DWORD, _DWORD))a1->m_mg1BatchNode->setBlendFunc)(\n      a1->m_mg1BatchNode,\n      *v3,\n      v3[1],\n      v4,\n      *v3,\n      v3[1]);\n  }\n}", "assembly": "; \n; GJMGLayer::updateMG01Blend from 0x43548c to 0x4354ca (62 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x46dbae\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\nLDRB.W          R3, [R0,#0x15D]                                        ; +0x0, 0x43548c\nPUSH            {R0,R1,R4,LR}                                          ; +0x4, 0x435490\nCMP             R3, R1                                                 ; +0x6, 0x435492\nMOV             R4, R0                                                 ; +0x8, 0x435494\nBEQ             loc_4354C6                                             ; +0xa, 0x435496\nSTRB.W          R1, [R0,#0x15D]                                        ; +0xc, 0x435498\nMOV             R3, SP                                                 ; +0x10, 0x43549c\nCBZ             R1, loc_4354A8                                         ; +0x12, 0x43549e\nLDR             R2, =(off_9AB688 - 0x4354A6)                           ; +0x14, 0x4354a0\nADD             R2, PC; off_9AB688                                     ; +0x16, 0x4354a2\nADDS            R2, #(unk_9AB6B0 - 0x9AB688)                           ; +0x18, 0x4354a4\nB               loc_4354AE                                             ; +0x1a, 0x4354a6\nLDR             R2, =(off_9AB688 - 0x4354AE)                           ; +0x1c, 0x4354a8\nADD             R2, PC; off_9AB688                                     ; +0x1e, 0x4354aa\nADDS            R2, #(unk_9AB6B8 - 0x9AB688)                           ; +0x20, 0x4354ac\nLDM.W           R2, {R0,R1}                                            ; +0x22, 0x4354ae\nSTM.W           R3, {R0,R1}                                            ; +0x26, 0x4354b2\nLDR.W           R0, [R4,#0x160]                                        ; +0x2a, 0x4354b6\nLDR             R2, [R0]                                               ; +0x2e, 0x4354ba\nLDR.W           R4, [R2,#0x1C0]                                        ; +0x30, 0x4354bc\nLDM.W           R3, {R1,R2}                                            ; +0x34, 0x4354c0\nBLX             R4                                                     ; +0x38, 0x4354c4\nADD             SP, SP, #8                                             ; +0x3a, 0x4354c6\nPOP             {R4,PC}                                                ; +0x3c, 0x4354c8", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x46dbae"], "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"}