{"type": "func", "start": 6038428, "end": 6038628, "name": "ColorChannelSprite::updateBlending", "pseudocode": "// \n// ColorChannelSprite::updateBlending from 0x5c239c to 0x5c2464 (200 bytes)\n// \n// 2 xrefs:\n// > ColorChannelSprite::updateValues @ 0x5c249c\n// > ColorChannelSprite::updateValues @ 0x5c24f6\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:53:50 +0000\n// \n\nint __fastcall ColorChannelSprite::updateBlending(int this, int a2)\n{\n  _DWORD *v2; // r4\n  int v4; // r3\n  int v5; // r0\n  int v6; // r3\n  int v7; // r8\n  void (__fastcall *v8)(int, _BYTE *); // r9\n  float v9; // s15\n  int v10; // r0\n  _BYTE v11[8]; // [sp+4h] [bp-10h] BYREF\n\n  v2 = (_DWORD *)this;\n  v4 = *(_DWORD *)(this + 516);\n  if ( a2 || v4 )\n  {\n    if ( !v4 )\n    {\n      v5 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B7AF60, \"bigFont.fnt\", _stack_chk_guard);\n      v6 = *v2;\n      v2[129] = v5;\n      (*(void (__fastcall **)(_DWORD *, int))(v6 + 228))(v2, v5);\n      v7 = v2[129];\n      v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 92);\n      v9 = *(float *)(*(int (__fastcall **)(_DWORD *))(*v2 + 164))(v2);\n      v10 = (*(int (__fastcall **)(_DWORD *))(*v2 + 164))(v2);\n      cocos2d::CCPoint::CCPoint(\n        (cocos2d::CCPoint *)v11,\n        (float)(v9 * 0.5) - 10.0,\n        (float)(*(float *)(v10 + 4) * 0.5) + 12.0);\n      v8(v7, v11);\n      (*(void (__fastcall **)(_DWORD, float))(*(_DWORD *)v2[129] + 80))(v2[129], 0.5);\n    }\n    return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)v2[129] + 172))(v2[129], a2);\n  }\n  return this;\n}", "assembly": "; \n; ColorChannelSprite::updateBlending from 0x5c239c to 0x5c2464 (200 bytes)\n; \n; 2 xrefs:\n; > ColorChannelSprite::updateValues @ 0x5c249c\n; > ColorChannelSprite::updateValues @ 0x5c24f6\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:53:50 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x5c239c\nMOV             R4, R0                                                 ; +0x4, 0x5c23a0\nVPUSH           {D8}                                                   ; +0x6, 0x5c23a2\nMOV             R7, R1                                                 ; +0xa, 0x5c23a6\nLDR             R3, =(__stack_chk_guard_ptr - 0x5C23AE)                ; +0xc, 0x5c23a8\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xe, 0x5c23aa\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x10, 0x5c23ac\nSUB             SP, SP, #0x14                                          ; +0x12, 0x5c23ae\nLDR             R2, [R3]; char *                                       ; +0x14, 0x5c23b0\nMOV             R6, R3                                                 ; +0x16, 0x5c23b2\nLDR.W           R3, [R0,#0x204]                                        ; +0x18, 0x5c23b4\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x1c, 0x5c23b8\nCBNZ            R1, loc_5C23C0                                         ; +0x1e, 0x5c23ba\nCMP             R3, #0                                                 ; +0x20, 0x5c23bc\nBEQ             loc_5C244E                                             ; +0x22, 0x5c23be\nCMP             R3, #0                                                 ; +0x24, 0x5c23c0\nBNE             loc_5C2440                                             ; +0x26, 0x5c23c2\nLDR             R0, =(unk_B7AF60 - 0x5C23D2)                           ; +0x28, 0x5c23c4\nVMOV.F32        S16, #0.5                                              ; +0x2a, 0x5c23c6\nLDR             R1, =(aBigfontFnt - 0x5C23D4); \"bigFont.fnt\"           ; +0x2e, 0x5c23ca\nADD             R5, SP, #0x14+var_10                                   ; +0x30, 0x5c23cc\nADD             R0, PC; unk_B7AF60 ; this                              ; +0x32, 0x5c23ce\nADD             R1, PC; \"bigFont.fnt\"                                  ; +0x34, 0x5c23d0\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x36, 0x5c23d2\nLDR             R3, [R4]                                               ; +0x3a, 0x5c23d6\nVMOV.F32        S17, #10.0                                             ; +0x3c, 0x5c23d8\nMOV             R1, R0                                                 ; +0x40, 0x5c23dc\nSTR.W           R0, [R4,#0x204]                                        ; +0x42, 0x5c23de\nMOV             R0, R4                                                 ; +0x46, 0x5c23e2\nLDR.W           R3, [R3,#0xE4]                                         ; +0x48, 0x5c23e4\nBLX             R3                                                     ; +0x4c, 0x5c23e8\nLDR.W           R8, [R4,#0x204]                                        ; +0x4e, 0x5c23ea\nMOV             R0, R4                                                 ; +0x52, 0x5c23ee\nLDR.W           R3, [R8]                                               ; +0x54, 0x5c23f0\nLDR.W           R9, [R3,#0x5C]                                         ; +0x58, 0x5c23f4\nLDR             R3, [R4]                                               ; +0x5c, 0x5c23f8\nLDR.W           R3, [R3,#0xA4]                                         ; +0x5e, 0x5c23fa\nBLX             R3                                                     ; +0x62, 0x5c23fe\nLDR             R3, [R4]                                               ; +0x64, 0x5c2400\nLDR.W           R3, [R3,#0xA4]                                         ; +0x66, 0x5c2402\nVLDR            S15, [R0]                                              ; +0x6a, 0x5c2406\nMOV             R0, R4                                                 ; +0x6e, 0x5c240a\nVNMLS.F32       S17, S15, S16                                          ; +0x70, 0x5c240c\nBLX             R3                                                     ; +0x74, 0x5c2410\nVMOV.F32        S15, #12.0                                             ; +0x76, 0x5c2412\nVMOV            R1, S17; float                                         ; +0x7a, 0x5c2416\nVLDR            S14, [R0,#4]                                           ; +0x7e, 0x5c241a\nMOV             R0, R5; this                                           ; +0x82, 0x5c241e\nVMLA.F32        S15, S14, S16                                          ; +0x84, 0x5c2420\nVMOV            R2, S15; float                                         ; +0x88, 0x5c2424\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x8c, 0x5c2428\nMOV             R0, R8                                                 ; +0x90, 0x5c242c\nMOV             R1, R5                                                 ; +0x92, 0x5c242e\nBLX             R9                                                     ; +0x94, 0x5c2430\nLDR.W           R0, [R4,#0x204]                                        ; +0x96, 0x5c2432\nVMOV            R1, S16                                                ; +0x9a, 0x5c2436\nLDR             R3, [R0]                                               ; +0x9e, 0x5c243a\nLDR             R3, [R3,#0x50]                                         ; +0xa0, 0x5c243c\nBLX             R3                                                     ; +0xa2, 0x5c243e\nLDR.W           R0, [R4,#0x204]                                        ; +0xa4, 0x5c2440\nMOV             R1, R7                                                 ; +0xa8, 0x5c2444\nLDR             R3, [R0]                                               ; +0xaa, 0x5c2446\nLDR.W           R3, [R3,#0xAC]                                         ; +0xac, 0x5c2448\nBLX             R3                                                     ; +0xb0, 0x5c244c\nLDR             R2, [SP,#0x14+var_8]                                   ; +0xb2, 0x5c244e\nLDR             R3, [R6]                                               ; +0xb4, 0x5c2450\nCMP             R2, R3                                                 ; +0xb6, 0x5c2452\nBEQ             loc_5C245A                                             ; +0xb8, 0x5c2454\nBLX             __stack_chk_fail                                       ; +0xba, 0x5c2456\nADD             SP, SP, #0x14                                          ; +0xbe, 0x5c245a\nVPOP            {D8}                                                   ; +0xc0, 0x5c245c\nPOP.W           {R4-R9,PC}                                             ; +0xc4, 0x5c2460", "xrefs": ["ColorChannelSprite::updateValues @ 0x5c249c", "ColorChannelSprite::updateValues @ 0x5c24f6"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}