{"type": "func", "start": 10455180, "end": 10455568, "name": "ColorChannelSprite::updateOpacity", "pseudocode": "// \n// ColorChannelSprite::updateOpacity from 0x9f888c to 0x9f8a10 (388 bytes)\n// \n// 3 xrefs:\n// > ColorChannelSprite::updateValues @ 0x9f8b8c\n// > ColorChannelSprite::updateValues @ 0x9f8c40\n// > <???> @ 0xb9188\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::updateOpacity(ColorChannelSprite *this, float a2, __int64 a3, const char *a4)\n{\n  __int64 v6; // x0\n  const char **v8; // x21\n  void (__fastcall *v9)(const char **, __int64); // x22\n  cocos2d::CCString *v10; // x0\n  __int64 CString; // x0\n  __int64 v12; // x0\n  __int64 v13; // x22\n  void (__fastcall *v14)(__int64, _BYTE *); // x23\n  __int64 v15; // x0\n  float v16; // [xsp+50h] [xbp+50h]\n  _BYTE v17[8]; // [xsp+70h] [xbp+70h] BYREF\n\n  if ( a2 == 1.0 )\n  {\n    v6 = *((_QWORD *)this + 76);\n    if ( v6 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);\n  }\n  else\n  {\n    v8 = *((const char ***)this + 76);\n    if ( !v8 )\n    {\n      v12 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, \"bigFont.fnt\", a4);\n      *((_QWORD *)this + 76) = v12;\n      (*(void (__fastcall **)(ColorChannelSprite *, __int64))(*(_QWORD *)this + 456LL))(this, v12);\n      v13 = *((_QWORD *)this + 76);\n      v14 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 184LL);\n      v16 = *(float *)(*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5;\n      v15 = (*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v16, (float)(*(float *)(v15 + 4) * 0.5) + -9.5);\n      v14(v13, v17);\n      (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 76) + 160LL))(*((_QWORD *)this + 76), 0.3);\n      v8 = *((const char ***)this + 76);\n    }\n    v9 = *((void (__fastcall **)(const char **, __int64))*v8 + 116);\n    v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%0.2f\", *v8, a2);\n    CString = cocos2d::CCString::getCString(v10);\n    v9(v8, CString);\n    (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 76) + 344LL))(*((_QWORD *)this + 76), 1);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; ColorChannelSprite::updateOpacity from 0x9f888c to 0x9f8a10 (388 bytes)\n; \n; 3 xrefs:\n; > ColorChannelSprite::updateValues @ 0x9f8b8c\n; > ColorChannelSprite::updateValues @ 0x9f8c40\n; > <???> @ 0xb9188\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, 0x9f888c\nMOV             X29, SP                                                ; +0x4, 0x9f8890\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x9f8894\nSTP             D8, D9, [SP,#0x80+var_48]                              ; +0xc, 0x9f8898\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x9f889c\nMOV             X20, X0                                                ; +0x14, 0x9f88a0\nFMOV            S8, S0                                                 ; +0x18, 0x9f88a4\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x1c, 0x9f88a8\nFMOV            S0, #1.0                                               ; +0x20, 0x9f88ac\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x9f88b0\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x28, 0x9f88b4\nFCMP            S8, S0                                                 ; +0x2c, 0x9f88b8\nLDR             X0, [X0]                                               ; +0x30, 0x9f88bc\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x34, 0x9f88c0\nB.NE            loc_9F890C                                             ; +0x38, 0x9f88c4\nLDR             X0, [X20,#0x260]                                       ; +0x3c, 0x9f88c8\nCBZ             X0, loc_9F88E0                                         ; +0x40, 0x9f88cc\nLDR             X2, [X0]                                               ; +0x44, 0x9f88d0\nMOV             W1, #0                                                 ; +0x48, 0x9f88d4\nLDR             X2, [X2,#0x158]                                        ; +0x4c, 0x9f88d8\nBLR             X2                                                     ; +0x50, 0x9f88dc\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x54, 0x9f88e0\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x58, 0x9f88e4\nLDR             X0, [X19]                                              ; +0x5c, 0x9f88e8\nCMP             X1, X0                                                 ; +0x60, 0x9f88ec\nB.NE            loc_9F8A0C                                             ; +0x64, 0x9f88f0\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x68, 0x9f88f4\nLDP             D8, D9, [SP,#0x80+var_48]                              ; +0x6c, 0x9f88f8\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x70, 0x9f88fc\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x74, 0x9f8900\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x78, 0x9f8904\nRET                                                                    ; +0x7c, 0x9f8908\nLDR             X21, [X20,#0x260]                                      ; +0x80, 0x9f890c\nCBZ             X21, loc_9F8958                                        ; +0x84, 0x9f8910\nFCVT            D0, S8                                                 ; +0x88, 0x9f8914\nLDR             X1, [X21]; char *                                      ; +0x8c, 0x9f8918\nADRL            X0, a02f; \"%0.2f\"                                      ; +0x90, 0x9f891c\nLDR             X22, [X1,#0x3A0]                                       ; +0x98, 0x9f8924\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x9c, 0x9f8928\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xa0, 0x9f892c\nMOV             X1, X0                                                 ; +0xa4, 0x9f8930\nMOV             X0, X21                                                ; +0xa8, 0x9f8934\nBLR             X22                                                    ; +0xac, 0x9f8938\nLDR             X2, [X20,#0x260]                                       ; +0xb0, 0x9f893c\nMOV             W1, #1                                                 ; +0xb4, 0x9f8940\nMOV             X0, X2                                                 ; +0xb8, 0x9f8944\nLDR             X2, [X2]                                               ; +0xbc, 0x9f8948\nLDR             X2, [X2,#0x158]                                        ; +0xc0, 0x9f894c\nBLR             X2                                                     ; +0xc4, 0x9f8950\nB               loc_9F88E0                                             ; +0xc8, 0x9f8954\nADRP            X1, #aBigfontFnt@PAGE; \"bigFont.fnt\"                   ; +0xcc, 0x9f8958\nADRP            X0, #byte_11E1A70@PAGE                                 ; +0xd0, 0x9f895c\nFMOV            S9, #0.5                                               ; +0xd4, 0x9f8960\nADD             X1, X1, #aBigfontFnt@PAGEOFF; \"bigFont.fnt\"            ; +0xd8, 0x9f8964\nADD             X0, X0, #byte_11E1A70@PAGEOFF; this                    ; +0xdc, 0x9f8968\nADD             X21, X29, #0x80+var_10                                 ; +0xe0, 0x9f896c\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0xe4, 0x9f8970\nSTR             X0, [X20,#0x260]                                       ; +0xe8, 0x9f8974\nLDR             X2, [X20]                                              ; +0xec, 0x9f8978\nMOV             X1, X0                                                 ; +0xf0, 0x9f897c\nMOV             X0, X20                                                ; +0xf4, 0x9f8980\nLDR             X2, [X2,#0x1C8]                                        ; +0xf8, 0x9f8984\nBLR             X2                                                     ; +0xfc, 0x9f8988\nLDR             X22, [X20,#0x260]                                      ; +0x100, 0x9f898c\nLDR             X1, [X20]                                              ; +0x104, 0x9f8990\nMOV             X0, X20                                                ; +0x108, 0x9f8994\nLDR             X2, [X22]                                              ; +0x10c, 0x9f8998\nLDR             X1, [X1,#0x148]                                        ; +0x110, 0x9f899c\nLDR             X23, [X2,#0xB8]                                        ; +0x114, 0x9f89a0\nBLR             X1                                                     ; +0x118, 0x9f89a4\nLDR             X1, [X20]                                              ; +0x11c, 0x9f89a8\nLDR             S0, [X0]                                               ; +0x120, 0x9f89ac\nMOV             X0, X20                                                ; +0x124, 0x9f89b0\nFMUL            S0, S0, S9                                             ; +0x128, 0x9f89b4\nLDR             X1, [X1,#0x148]                                        ; +0x12c, 0x9f89b8\nSTR             Q0, [X29,#0x80+var_30]                                 ; +0x130, 0x9f89bc\nBLR             X1                                                     ; +0x134, 0x9f89c0\nFMOV            S1, #-9.5                                              ; +0x138, 0x9f89c4\nSTR             X21, [X29,#0x80+var_18]                                ; +0x13c, 0x9f89c8\nLDR             S2, [X0,#4]                                            ; +0x140, 0x9f89cc\nMOV             X0, X21; this                                          ; +0x144, 0x9f89d0\nLDR             Q0, [X29,#0x80+var_30]; float                          ; +0x148, 0x9f89d4\nFMADD           S1, S2, S9, S1; float                                  ; +0x14c, 0x9f89d8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x150, 0x9f89dc\nLDR             X1, [X29,#0x80+var_18]                                 ; +0x154, 0x9f89e0\nMOV             X0, X22                                                ; +0x158, 0x9f89e4\nBLR             X23                                                    ; +0x15c, 0x9f89e8\nLDR             X1, [X20,#0x260]                                       ; +0x160, 0x9f89ec\nLDR             S0, =0x3E99999A                                        ; +0x164, 0x9f89f0\nMOV             X0, X1                                                 ; +0x168, 0x9f89f4\nLDR             X1, [X1]                                               ; +0x16c, 0x9f89f8\nLDR             X1, [X1,#0xA0]                                         ; +0x170, 0x9f89fc\nBLR             X1                                                     ; +0x174, 0x9f8a00\nLDR             X21, [X20,#0x260]                                      ; +0x178, 0x9f8a04\nB               loc_9F8914                                             ; +0x17c, 0x9f8a08\nBL              .__stack_chk_fail                                      ; +0x180, 0x9f8a0c", "xrefs": ["ColorChannelSprite::updateValues @ 0x9f8b8c", "ColorChannelSprite::updateValues @ 0x9f8c40", "<???> @ 0xb9188"], "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"}