{"type": "func", "start": 4297444596, "end": 4297444696, "name": "GameObject::updateBlendMode", "pseudocode": "// \n// GameObject::updateBlendMode from 0x10025ccf4 to 0x10025cd58 (100 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::manualUpdateObjectColors @ 0x10011df60\n// > GameObject::addMainSpriteToParent @ 0x10025cd74\n// > LevelEditorLayer::manualUpdateObjectColors @ 0x10035f218\n// > EditorUI::spriteFromObjectString @ 0x1003eab28\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 GameObject::updateBlendMode(GameObject *a1)\n{\n  bool shouldBlendColor; // w0\n  GJSpriteColor *m_detailColor; // x1\n  int m_defaultColorID; // w8\n\n  shouldBlendColor = GameObject::shouldBlendColor(a1, a1->m_baseColor, 0);\n  a1->m_shouldBlendBase = shouldBlendColor;\n  if ( a1->m_colorSprite )\n  {\n    m_detailColor = a1->m_detailColor;\n    m_defaultColorID = m_detailColor->m_defaultColorID;\n    if ( m_detailColor->m_colorID )\n      m_defaultColorID = m_detailColor->m_colorID;\n    if ( m_defaultColorID != 1012 )\n      shouldBlendColor = GameObject::shouldBlendColor(a1, m_detailColor, 0);\n  }\n  else\n  {\n    shouldBlendColor = 0;\n  }\n  a1->m_shouldBlendDetail = shouldBlendColor;\n}", "assembly": "; \n; GameObject::updateBlendMode from 0x10025ccf4 to 0x10025cd58 (100 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::manualUpdateObjectColors @ 0x10011df60\n; > GameObject::addMainSpriteToParent @ 0x10025cd74\n; > LevelEditorLayer::manualUpdateObjectColors @ 0x10035f218\n; > EditorUI::spriteFromObjectString @ 0x1003eab28\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10025ccf4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10025ccf8\nADD             X29, SP, #0x10                                         ; +0x8, 0x10025ccfc\nMOV             X19, X0                                                ; +0xc, 0x10025cd00\nLDR             X1, [X0,#0x448]                                        ; +0x10, 0x10025cd04\nMOV             W2, #0                                                 ; +0x14, 0x10025cd08\nBL              GameObject__shouldBlendColor                           ; +0x18, 0x10025cd0c\nSTRB            W0, [X19,#0x374]                                       ; +0x1c, 0x10025cd10\nLDR             X8, [X19,#0x378]                                       ; +0x20, 0x10025cd14\nCBZ             X8, loc_10025CD44                                      ; +0x24, 0x10025cd18\nLDR             X1, [X19,#0x450]                                       ; +0x28, 0x10025cd1c\nLDP             W9, W8, [X1]                                           ; +0x2c, 0x10025cd20\nCMP             W9, #0                                                 ; +0x30, 0x10025cd24\nCSEL            W8, W8, W9, EQ                                         ; +0x34, 0x10025cd28\nCMP             W8, #0x3F4                                             ; +0x38, 0x10025cd2c\nB.EQ            loc_10025CD48                                          ; +0x3c, 0x10025cd30\nMOV             X0, X19                                                ; +0x40, 0x10025cd34\nMOV             W2, #0                                                 ; +0x44, 0x10025cd38\nBL              GameObject__shouldBlendColor                           ; +0x48, 0x10025cd3c\nB               loc_10025CD48                                          ; +0x4c, 0x10025cd40\nMOV             W0, #0                                                 ; +0x50, 0x10025cd44\nSTRB            W0, [X19,#0x375]                                       ; +0x54, 0x10025cd48\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x10025cd4c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x10025cd50\nRET                                                                    ; +0x60, 0x10025cd54", "xrefs": ["PlayLayer::manualUpdateObjectColors @ 0x10011df60", "GameObject::addMainSpriteToParent @ 0x10025cd74", "LevelEditorLayer::manualUpdateObjectColors @ 0x10035f218", "EditorUI::spriteFromObjectString @ 0x1003eab28"], "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"}