{"type": "func", "start": 10455572, "end": 10455884, "name": "ColorChannelSprite::updateBlending", "pseudocode": "// \n// ColorChannelSprite::updateBlending from 0x9f8a14 to 0x9f8b4c (312 bytes)\n// \n// 3 xrefs:\n// > ColorChannelSprite::updateValues @ 0x9f8b98\n// > ColorChannelSprite::updateValues @ 0x9f8c4c\n// > <???> @ 0x81280\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:59:15 +0000\n// \n\n__int64 __fastcall ColorChannelSprite::updateBlending(ColorChannelSprite *this, unsigned __int8 a2, const char *a3)\n{\n  unsigned int v3; // w20\n  __int64 v5; // x0\n  __int64 v7; // x0\n  __int64 v8; // x23\n  void (__fastcall *v9)(__int64, _BYTE *); // x24\n  __int64 v10; // x0\n  float v11; // [xsp+50h] [xbp+50h]\n  _BYTE v12[8]; // [xsp+70h] [xbp+70h] BYREF\n\n  v3 = a2;\n  v5 = *((_QWORD *)this + 77);\n  if ( a2 )\n  {\n    if ( !v5 )\n    {\n      v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_111D688, \"bigFont.fnt\", a3);\n      *((_QWORD *)this + 77) = v7;\n      (*(void (__fastcall **)(ColorChannelSprite *, __int64))(*(_QWORD *)this + 456LL))(this, v7);\n      v8 = *((_QWORD *)this + 77);\n      v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL);\n      v11 = (float)(*(float *)(*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5)\n          + -10.0;\n      v10 = (*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v11, (float)(*(float *)(v10 + 4) * 0.5) + 12.0);\n      v9(v8, v12);\n      (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 77) + 160LL))(*((_QWORD *)this + 77), 0.5);\n      v5 = *((_QWORD *)this + 77);\n    }\n    goto LABEL_3;\n  }\n  if ( v5 )\nLABEL_3:\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, v3);\n  return _stack_chk_guard;\n}", "assembly": "; \n; ColorChannelSprite::updateBlending from 0x9f8a14 to 0x9f8b4c (312 bytes)\n; \n; 3 xrefs:\n; > ColorChannelSprite::updateValues @ 0x9f8b98\n; > ColorChannelSprite::updateValues @ 0x9f8c4c\n; > <???> @ 0x81280\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:59:15 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x9f8a14\nMOV             X29, SP                                                ; +0x4, 0x9f8a18\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x9f8a1c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9f8a20\nUXTB            W20, W1                                                ; +0x10, 0x9f8a24\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0x9f8a28\nMOV             X21, X0                                                ; +0x18, 0x9f8a2c\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x9f8a30\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x20, 0x9f8a34\nSTR             D8, [SP,#0x80+var_40]                                  ; +0x24, 0x9f8a38\nLDR             X0, [X0]                                               ; +0x28, 0x9f8a3c\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x2c, 0x9f8a40\nLDR             X0, [X21,#0x268]                                       ; +0x30, 0x9f8a44\nCBNZ            W20, loc_9F8A8C                                        ; +0x34, 0x9f8a48\nCBZ             X0, loc_9F8A60                                         ; +0x38, 0x9f8a4c\nLDR             X2, [X0]                                               ; +0x3c, 0x9f8a50\nMOV             W1, W20                                                ; +0x40, 0x9f8a54\nLDR             X2, [X2,#0x158]                                        ; +0x44, 0x9f8a58\nBLR             X2                                                     ; +0x48, 0x9f8a5c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x4c, 0x9f8a60\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x50, 0x9f8a64\nLDR             X0, [X19]                                              ; +0x54, 0x9f8a68\nCMP             X1, X0                                                 ; +0x58, 0x9f8a6c\nB.NE            loc_9F8B48                                             ; +0x5c, 0x9f8a70\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x60, 0x9f8a74\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x64, 0x9f8a78\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x68, 0x9f8a7c\nLDR             D8, [SP,#0x80+var_40]                                  ; +0x6c, 0x9f8a80\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x70, 0x9f8a84\nRET                                                                    ; +0x74, 0x9f8a88\nCBNZ            X0, loc_9F8A50                                         ; +0x78, 0x9f8a8c\nADRP            X1, #aBigfontFnt@PAGE; \"bigFont.fnt\"                   ; +0x7c, 0x9f8a90\nADRP            X0, #unk_111D688@PAGE                                  ; +0x80, 0x9f8a94\nFMOV            S8, #0.5                                               ; +0x84, 0x9f8a98\nADD             X1, X1, #aBigfontFnt@PAGEOFF; \"bigFont.fnt\"            ; +0x88, 0x9f8a9c\nADD             X0, X0, #unk_111D688@PAGEOFF; this                     ; +0x8c, 0x9f8aa0\nADD             X22, X29, #0x80+var_10                                 ; +0x90, 0x9f8aa4\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x94, 0x9f8aa8\nSTR             X0, [X21,#0x268]                                       ; +0x98, 0x9f8aac\nLDR             X2, [X21]                                              ; +0x9c, 0x9f8ab0\nMOV             X1, X0                                                 ; +0xa0, 0x9f8ab4\nMOV             X0, X21                                                ; +0xa4, 0x9f8ab8\nLDR             X2, [X2,#0x1C8]                                        ; +0xa8, 0x9f8abc\nBLR             X2                                                     ; +0xac, 0x9f8ac0\nLDR             X23, [X21,#0x268]                                      ; +0xb0, 0x9f8ac4\nLDR             X1, [X21]                                              ; +0xb4, 0x9f8ac8\nMOV             X0, X21                                                ; +0xb8, 0x9f8acc\nLDR             X2, [X23]                                              ; +0xbc, 0x9f8ad0\nLDR             X1, [X1,#0x148]                                        ; +0xc0, 0x9f8ad4\nLDR             X24, [X2,#0xB8]                                        ; +0xc4, 0x9f8ad8\nBLR             X1                                                     ; +0xc8, 0x9f8adc\nFMOV            S1, #-10.0                                             ; +0xcc, 0x9f8ae0\nLDR             X1, [X21]                                              ; +0xd0, 0x9f8ae4\nLDR             S0, [X0]                                               ; +0xd4, 0x9f8ae8\nMOV             X0, X21                                                ; +0xd8, 0x9f8aec\nFMADD           S0, S0, S8, S1                                         ; +0xdc, 0x9f8af0\nLDR             X1, [X1,#0x148]                                        ; +0xe0, 0x9f8af4\nSTR             Q0, [X29,#0x80+var_30]                                 ; +0xe4, 0x9f8af8\nBLR             X1                                                     ; +0xe8, 0x9f8afc\nFMOV            S1, #12.0                                              ; +0xec, 0x9f8b00\nSTR             X22, [X29,#0x80+var_18]                                ; +0xf0, 0x9f8b04\nLDR             S2, [X0,#4]                                            ; +0xf4, 0x9f8b08\nMOV             X0, X22; this                                          ; +0xf8, 0x9f8b0c\nLDR             Q0, [X29,#0x80+var_30]; float                          ; +0xfc, 0x9f8b10\nFMADD           S1, S2, S8, S1; float                                  ; +0x100, 0x9f8b14\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x104, 0x9f8b18\nLDR             X1, [X29,#0x80+var_18]                                 ; +0x108, 0x9f8b1c\nMOV             X0, X23                                                ; +0x10c, 0x9f8b20\nBLR             X24                                                    ; +0x110, 0x9f8b24\nLDR             X1, [X21,#0x268]                                       ; +0x114, 0x9f8b28\nFMOV            S0, S8                                                 ; +0x118, 0x9f8b2c\nMOV             X0, X1                                                 ; +0x11c, 0x9f8b30\nLDR             X1, [X1]                                               ; +0x120, 0x9f8b34\nLDR             X1, [X1,#0xA0]                                         ; +0x124, 0x9f8b38\nBLR             X1                                                     ; +0x128, 0x9f8b3c\nLDR             X0, [X21,#0x268]                                       ; +0x12c, 0x9f8b40\nB               loc_9F8A50                                             ; +0x130, 0x9f8b44\nBL              .__stack_chk_fail                                      ; +0x134, 0x9f8b48", "xrefs": ["ColorChannelSprite::updateValues @ 0x9f8b98", "ColorChannelSprite::updateValues @ 0x9f8c4c", "<???> @ 0x81280"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}