{"type": "func", "start": 4412628, "end": 4412690, "name": "GJMGLayer::updateMG02Blend", "pseudocode": "// \n// GJMGLayer::updateMG02Blend from 0x4354d4 to 0x435512 (62 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x46dbc6\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::updateMG02Blend(GJMGLayer *a1, bool a2)\n{\n  _BOOL4 m_blendMG2; // r3\n  _DWORD *v3; // r2\n  _DWORD v4[2]; // [sp+0h] [bp-8h] BYREF\n\n  m_blendMG2 = a1->m_blendMG2;\n  v4[0] = a1;\n  v4[1] = a2;\n  if ( m_blendMG2 != a2 )\n  {\n    a1->m_blendMG2 = 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_mg2BatchNode->setBlendFunc)(\n      a1->m_mg2BatchNode,\n      *v3,\n      v3[1],\n      v4,\n      *v3,\n      v3[1]);\n  }\n}", "assembly": "; \n; GJMGLayer::updateMG02Blend from 0x4354d4 to 0x435512 (62 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x46dbc6\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,#0x15E]                                        ; +0x0, 0x4354d4\nPUSH            {R0,R1,R4,LR}                                          ; +0x4, 0x4354d8\nCMP             R3, R1                                                 ; +0x6, 0x4354da\nMOV             R4, R0                                                 ; +0x8, 0x4354dc\nBEQ             loc_43550E                                             ; +0xa, 0x4354de\nSTRB.W          R1, [R0,#0x15E]                                        ; +0xc, 0x4354e0\nMOV             R3, SP                                                 ; +0x10, 0x4354e4\nCBZ             R1, loc_4354F0                                         ; +0x12, 0x4354e6\nLDR             R2, =(off_9AB688 - 0x4354EE)                           ; +0x14, 0x4354e8\nADD             R2, PC; off_9AB688                                     ; +0x16, 0x4354ea\nADDS            R2, #(unk_9AB6B0 - 0x9AB688)                           ; +0x18, 0x4354ec\nB               loc_4354F6                                             ; +0x1a, 0x4354ee\nLDR             R2, =(off_9AB688 - 0x4354F6)                           ; +0x1c, 0x4354f0\nADD             R2, PC; off_9AB688                                     ; +0x1e, 0x4354f2\nADDS            R2, #(unk_9AB6B8 - 0x9AB688)                           ; +0x20, 0x4354f4\nLDM.W           R2, {R0,R1}                                            ; +0x22, 0x4354f6\nSTM.W           R3, {R0,R1}                                            ; +0x26, 0x4354fa\nLDR.W           R0, [R4,#0x164]                                        ; +0x2a, 0x4354fe\nLDR             R2, [R0]                                               ; +0x2e, 0x435502\nLDR.W           R4, [R2,#0x1C0]                                        ; +0x30, 0x435504\nLDM.W           R3, {R1,R2}                                            ; +0x34, 0x435508\nBLX             R4                                                     ; +0x38, 0x43550c\nADD             SP, SP, #8                                             ; +0x3a, 0x43550e\nPOP             {R4,PC}                                                ; +0x3c, 0x435510", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x46dbc6"], "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"}