{"type": "func", "start": 4295151924, "end": 4295151984, "name": "GJMGLayer::updateMG02Blend", "pseudocode": "// \n// GJMGLayer::updateMG02Blend from 0x10002d134 to 0x10002d170 (60 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::updateLevelColors @ 0x1001de09c\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::updateMG02Blend(GJMGLayer *a1, bool a2)\n{\n  __int64 v2; // x1\n\n  if ( a1->m_blendMG2 != a2 )\n  {\n    a1->m_blendMG2 = a2;\n    if ( a2 )\n      v2 = 0x100000302LL;\n    else\n      v2 = 0x30300000001LL;\n    ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))a1->m_mg2BatchNode->setBlendFunc)(\n      a1->m_mg2BatchNode,\n      v2);\n  }\n}", "assembly": "; \n; GJMGLayer::updateMG02Blend from 0x10002d134 to 0x10002d170 (60 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::updateLevelColors @ 0x1001de09c\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            W8, [X0,#0x1CA]                                        ; +0x0, 0x10002d134\nCMP             W8, W1                                                 ; +0x4, 0x10002d138\nB.NE            loc_10002D144                                          ; +0x8, 0x10002d13c\nRET                                                                    ; +0xc, 0x10002d140\nSTRB            W1, [X0,#0x1CA]                                        ; +0x10, 0x10002d144\nCMP             W1, #0                                                 ; +0x14, 0x10002d148\nMOV             X8, #0x30300000001                                     ; +0x18, 0x10002d14c\nMOV             X9, #0x100000302                                       ; +0x20, 0x10002d154\nCSEL            X1, X9, X8, NE                                         ; +0x28, 0x10002d15c\nLDR             X0, [X0,#0x1D8]                                        ; +0x2c, 0x10002d160\nLDR             X8, [X0]                                               ; +0x30, 0x10002d164\nLDR             X2, [X8,#0x380]                                        ; +0x34, 0x10002d168\nBR              X2                                                     ; +0x38, 0x10002d16c", "xrefs": ["GJBaseGameLayer::updateLevelColors @ 0x1001de09c"], "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"}