{"type": "func", "start": 4821516, "end": 4821716, "name": "ColorChannelSprite::updateBlending", "pseudocode": "// \n// ColorChannelSprite::updateBlending from 0x49920c to 0x4992d4 (200 bytes)\n// \n// 2 xrefs:\n// > ColorChannelSprite::updateValues @ 0x49930c\n// > ColorChannelSprite::updateValues @ 0x499366\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 ColorChannelSprite::updateBlending(ColorChannelSprite *a1, bool a2)\n{\n  _BOOL4 v3; // r7\n  cocos2d::CCLabelBMFont *m_blendingLabel; // r3\n  cocos2d::CCLabelBMFont *v5; // r0\n  ColorChannelSprite_vtbl *v6; // r3\n  cocos2d::CCLabelBMFont *v7; // r8\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9\n  float width; // s15\n  const cocos2d::CCSize *v10; // r0\n  cocos2d::CCPoint v11; // [sp+4h] [bp-10h] BYREF\n\n  v3 = a2;\n  m_blendingLabel = a1->m_blendingLabel;\n  if ( a2 || m_blendingLabel )\n  {\n    if ( !m_blendingLabel )\n    {\n      v5 = cocos2d::CCLabelBMFont::create();\n      v6 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      a1->m_blendingLabel = v5;\n      v6->addChild(a1, v5);\n      v7 = a1->m_blendingLabel;\n      setPosition = v7->setPosition;\n      width = a1->getContentSize(a1)->width;\n      v10 = a1->getContentSize(a1);\n      cocos2d::CCPoint::CCPoint(&v11, (float)(width * 0.5) - 10.0, (float)(v10->height * 0.5) + 12.0);\n      setPosition(v7, &v11);\n      ((void (__fastcall *)(_DWORD, _DWORD))a1->m_blendingLabel->setScale)(a1->m_blendingLabel, 0.5);\n    }\n    a1->m_blendingLabel->setVisible(a1->m_blendingLabel, v3);\n  }\n}", "assembly": "; \n; ColorChannelSprite::updateBlending from 0x49920c to 0x4992d4 (200 bytes)\n; \n; 2 xrefs:\n; > ColorChannelSprite::updateValues @ 0x49930c\n; > ColorChannelSprite::updateValues @ 0x499366\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x499216)                ; +0x0, 0x49920c\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x49920e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x499212\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x499214\nVPUSH           {D8}                                                   ; +0xa, 0x499216\nMOV             R4, R0                                                 ; +0xe, 0x49921a\nLDR             R2, [R3]; char *                                       ; +0x10, 0x49921c\nMOV             R6, R3                                                 ; +0x12, 0x49921e\nMOV             R7, R1                                                 ; +0x14, 0x499220\nLDR.W           R3, [R0,#0x204]                                        ; +0x16, 0x499222\nSUB             SP, SP, #0x14                                          ; +0x1a, 0x499226\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x1c, 0x499228\nCBNZ            R1, loc_499230                                         ; +0x1e, 0x49922a\nCMP             R3, #0                                                 ; +0x20, 0x49922c\nBEQ             loc_4992BE                                             ; +0x22, 0x49922e\nCMP             R3, #0                                                 ; +0x24, 0x499230\nBNE             loc_4992B0                                             ; +0x26, 0x499232\nLDR             R0, =(off_949500 - 0x499242)                           ; +0x28, 0x499234\nVMOV.F32        S16, #0.5                                              ; +0x2a, 0x499236\nLDR             R1, =(aBigfontFnt - 0x499244); \"bigFont.fnt\"           ; +0x2e, 0x49923a\nADD             R5, SP, #0x14+var_10                                   ; +0x30, 0x49923c\nADD             R0, PC; off_949500 ; this                              ; +0x32, 0x49923e\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0x34, 0x499240\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x36, 0x499242\nLDR             R3, [R4]                                               ; +0x3a, 0x499246\nVMOV.F32        S17, #10.0                                             ; +0x3c, 0x499248\nMOV             R1, R0                                                 ; +0x40, 0x49924c\nSTR.W           R0, [R4,#0x204]                                        ; +0x42, 0x49924e\nMOV             R0, R4                                                 ; +0x46, 0x499252\nLDR.W           R3, [R3,#0xDC]                                         ; +0x48, 0x499254\nBLX             R3                                                     ; +0x4c, 0x499258\nLDR.W           R8, [R4,#0x204]                                        ; +0x4e, 0x49925a\nMOV             R0, R4                                                 ; +0x52, 0x49925e\nLDR.W           R3, [R8]                                               ; +0x54, 0x499260\nLDR.W           R9, [R3,#0x5C]                                         ; +0x58, 0x499264\nLDR             R3, [R4]                                               ; +0x5c, 0x499268\nLDR.W           R3, [R3,#0x9C]                                         ; +0x5e, 0x49926a\nBLX             R3                                                     ; +0x62, 0x49926e\nLDR             R3, [R4]                                               ; +0x64, 0x499270\nLDR.W           R3, [R3,#0x9C]                                         ; +0x66, 0x499272\nVLDR            S15, [R0]                                              ; +0x6a, 0x499276\nMOV             R0, R4                                                 ; +0x6e, 0x49927a\nVNMLS.F32       S17, S15, S16                                          ; +0x70, 0x49927c\nBLX             R3                                                     ; +0x74, 0x499280\nVMOV.F32        S15, #12.0                                             ; +0x76, 0x499282\nVMOV            R1, S17; float                                         ; +0x7a, 0x499286\nVLDR            S14, [R0,#4]                                           ; +0x7e, 0x49928a\nMOV             R0, R5; this                                           ; +0x82, 0x49928e\nVMLA.F32        S15, S14, S16                                          ; +0x84, 0x499290\nVMOV            R2, S15; float                                         ; +0x88, 0x499294\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8c, 0x499298\nMOV             R0, R8                                                 ; +0x90, 0x49929c\nMOV             R1, R5                                                 ; +0x92, 0x49929e\nBLX             R9                                                     ; +0x94, 0x4992a0\nLDR.W           R0, [R4,#0x204]                                        ; +0x96, 0x4992a2\nVMOV            R1, S16                                                ; +0x9a, 0x4992a6\nLDR             R3, [R0]                                               ; +0x9e, 0x4992aa\nLDR             R3, [R3,#0x50]                                         ; +0xa0, 0x4992ac\nBLX             R3                                                     ; +0xa2, 0x4992ae\nLDR.W           R0, [R4,#0x204]                                        ; +0xa4, 0x4992b0\nMOV             R1, R7                                                 ; +0xa8, 0x4992b4\nLDR             R3, [R0]                                               ; +0xaa, 0x4992b6\nLDR.W           R3, [R3,#0xA4]                                         ; +0xac, 0x4992b8\nBLX             R3                                                     ; +0xb0, 0x4992bc\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xb2, 0x4992be\nLDR             R3, [R6]                                               ; +0xb4, 0x4992c0\nCMP             R2, R3                                                 ; +0xb6, 0x4992c2\nBEQ             loc_4992CA                                             ; +0xb8, 0x4992c4\nBLX             __stack_chk_fail                                       ; +0xba, 0x4992c6\nADD             SP, SP, #0x14                                          ; +0xbe, 0x4992ca\nVPOP            {D8}                                                   ; +0xc0, 0x4992cc\nPOP.W           {R4-R9,PC}                                             ; +0xc4, 0x4992d0", "xrefs": ["ColorChannelSprite::updateValues @ 0x49930c", "ColorChannelSprite::updateValues @ 0x499366"], "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"}