{"type": "func", "start": 4823826, "end": 4823858, "name": "GJEffectManager::shouldBlend", "pseudocode": "// \n// GJEffectManager::shouldBlend from 0x499b12 to 0x499b32 (32 bytes)\n// \n// 7 xrefs:\n// > PlayLayer::shouldBlend @ 0x310cf4\n// > LevelEditorLayer::updateBlendValues @ 0x368078\n// > GJBaseGameLayer::updateLevelColors @ 0x46dabe\n// > GJBaseGameLayer::updateLevelColors @ 0x46dad6\n// > GJBaseGameLayer::updateLevelColors @ 0x46dba6\n// > GJBaseGameLayer::updateLevelColors @ 0x46dbbe\n// > GJBaseGameLayer::updateShaderLayer @ 0x4725d0\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\nbool GJEffectManager::shouldBlend(GJEffectManager *a1, int a2)\n{\n  int v2; // r1\n  ColorAction *v3; // r0\n\n  if ( a2 > 1100 )\n    v2 = 1101;\n  else\n    v2 = a2 & ~(a2 >> 31);\n  v3 = a1->m_colorActionVector.m_start[v2];\n  if ( v3 )\n    LOBYTE(v3) = v3->m_blending;\n  return (char)v3;\n}", "assembly": "; \n; GJEffectManager::shouldBlend from 0x499b12 to 0x499b32 (32 bytes)\n; \n; 7 xrefs:\n; > PlayLayer::shouldBlend @ 0x310cf4\n; > LevelEditorLayer::updateBlendValues @ 0x368078\n; > GJBaseGameLayer::updateLevelColors @ 0x46dabe\n; > GJBaseGameLayer::updateLevelColors @ 0x46dad6\n; > GJBaseGameLayer::updateLevelColors @ 0x46dba6\n; > GJBaseGameLayer::updateLevelColors @ 0x46dbbe\n; > GJBaseGameLayer::updateShaderLayer @ 0x4725d0\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\nMOVW            R3, #0x44C                                             ; +0x0, 0x499b12\nCMP             R1, R3                                                 ; +0x4, 0x499b16\nLDR.W           R3, [R0,#0x1C8]                                        ; +0x6, 0x499b18\nITE LE                                                                 ; +0xa, 0x499b1c\nBICLE.W         R1, R1, R1,ASR#31                                      ; +0xc, 0x499b1e\nMOVWGT          R1, #0x44D                                             ; +0x10, 0x499b22\nLDR.W           R0, [R3,R1,LSL#2]                                      ; +0x14, 0x499b26\nCBZ             R0, locret_499B30                                      ; +0x18, 0x499b2a\nLDRB.W          R0, [R0,#0x50]                                         ; +0x1a, 0x499b2c\nBX              LR                                                     ; +0x1e, 0x499b30", "xrefs": ["PlayLayer::shouldBlend @ 0x310cf4", "LevelEditorLayer::updateBlendValues @ 0x368078", "GJBaseGameLayer::updateLevelColors @ 0x46dabe", "GJBaseGameLayer::updateLevelColors @ 0x46dad6", "GJBaseGameLayer::updateLevelColors @ 0x46dba6", "GJBaseGameLayer::updateLevelColors @ 0x46dbbe", "GJBaseGameLayer::updateShaderLayer @ 0x4725d0"], "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"}