{"type": "func", "start": 10454716, "end": 10455180, "name": "ColorChannelSprite::updateCopyLabel", "pseudocode": "// \n// ColorChannelSprite::updateCopyLabel from 0x9f86bc to 0x9f888c (464 bytes)\n// \n// 3 xrefs:\n// > ColorChannelSprite::updateValues @ 0x9f8b80\n// > ColorChannelSprite::updateValues @ 0x9f8c34\n// > <???> @ 0x104878\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::updateCopyLabel(ColorChannelSprite *this, char *a2, const char *a3)\n{\n  int v4; // w21\n  int v5; // w22\n  __int64 v6; // x0\n  __int64 CString; // x0\n  __int64 *v9; // x1\n  cocos2d::CCString *v10; // x0\n  __int64 v11; // x0\n  __int64 v12; // x24\n  void (__fastcall *v13)(__int64, _BYTE *); // x25\n  __int64 v14; // x0\n  float v15; // [xsp+50h] [xbp+50h]\n  _BYTE v16[8]; // [xsp+70h] [xbp+70h] BYREF\n\n  v4 = (int)a2;\n  v5 = (unsigned __int8)a3;\n  v6 = *((_QWORD *)this + 75);\n  if ( (_DWORD)a2 )\n  {\n    if ( !v6 )\n    {\n      v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, \"bigFont.fnt\", a3);\n      *((_QWORD *)this + 75) = v11;\n      (*(void (__fastcall **)(ColorChannelSprite *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v11, 1);\n      v12 = *((_QWORD *)this + 75);\n      v13 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 184LL);\n      v15 = *(float *)(*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5;\n      v14 = (*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v15, (float)(*(float *)(v14 + 4) * 0.5) + 3.0);\n      v13(v12, v16);\n      (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 75) + 160LL))(*((_QWORD *)this + 75), 0.5);\n    }\n    if ( v4 <= 999 )\n    {\n      v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                   (cocos2d::CCString *)\"%i\",\n                                   (const char *)(unsigned int)v4);\n      CString = cocos2d::CCString::getCString(v10);\n    }\n    else\n    {\n      CString = GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)(unsigned int)v4, (int)a2);\n    }\n    (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 75) + 928LL))(*((_QWORD *)this + 75), CString);\n    cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 75), 28.0, 0.5, 0.0);\n    (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 75) + 344LL))(*((_QWORD *)this + 75), 1);\n    v9 = (__int64 *)&unk_116D738;\n    if ( !v5 )\n      v9 = &qword_116D740;\n    (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 75) + 1072LL))(*((_QWORD *)this + 75), v9);\n  }\n  else if ( v6 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; ColorChannelSprite::updateCopyLabel from 0x9f86bc to 0x9f888c (464 bytes)\n; \n; 3 xrefs:\n; > ColorChannelSprite::updateValues @ 0x9f8b80\n; > ColorChannelSprite::updateValues @ 0x9f8c34\n; > <???> @ 0x104878\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, 0x9f86bc\nMOV             X29, SP                                                ; +0x4, 0x9f86c0\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x9f86c4\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9f86c8\nMOV             X19, X0                                                ; +0x10, 0x9f86cc\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0x9f86d0\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x18, 0x9f86d4\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x9f86d8\nMOV             W21, W1                                                ; +0x20, 0x9f86dc\nSTR             X25, [SP,#0x80+var_40]                                 ; +0x24, 0x9f86e0\nUXTB            W22, W2                                                ; +0x28, 0x9f86e4\nSTR             D8, [SP,#0x80+var_38]                                  ; +0x2c, 0x9f86e8\nLDR             X0, [X0]                                               ; +0x30, 0x9f86ec\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x34, 0x9f86f0\nLDR             X0, [X19,#0x258]                                       ; +0x38, 0x9f86f4\nCBNZ            W1, loc_9F8740                                         ; +0x3c, 0x9f86f8\nCBZ             X0, loc_9F8710                                         ; +0x40, 0x9f86fc\nLDR             X2, [X0]                                               ; +0x44, 0x9f8700\nMOV             W1, #0                                                 ; +0x48, 0x9f8704\nLDR             X2, [X2,#0x158]                                        ; +0x4c, 0x9f8708\nBLR             X2                                                     ; +0x50, 0x9f870c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x54, 0x9f8710\nLDR             X1, [X29,#0x80+var_8]; int                             ; +0x58, 0x9f8714\nLDR             X0, [X20]                                              ; +0x5c, 0x9f8718\nCMP             X1, X0                                                 ; +0x60, 0x9f871c\nB.NE            loc_9F8888                                             ; +0x64, 0x9f8720\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x68, 0x9f8724\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x6c, 0x9f8728\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x70, 0x9f872c\nLDR             X25, [SP,#0x80+var_40]                                 ; +0x74, 0x9f8730\nLDR             D8, [SP,#0x80+var_38]                                  ; +0x78, 0x9f8734\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x7c, 0x9f8738\nRET                                                                    ; +0x80, 0x9f873c\nCBZ             X0, loc_9F87D4                                         ; +0x84, 0x9f8740\nCMP             W21, #0x3E7                                            ; +0x88, 0x9f8744\nB.LE            loc_9F87BC                                             ; +0x8c, 0x9f8748\nMOV             W0, W21; this                                          ; +0x90, 0x9f874c\nBL              _ZN20GJSpecialColorSelect15textForColorIdxEi; GJSpecialColorSelect::textForColorIdx(int) ; +0x94, 0x9f8750\nLDR             X2, [X19,#0x258]                                       ; +0x98, 0x9f8754\nMOV             X1, X0                                                 ; +0x9c, 0x9f8758\nMOV             X0, X2                                                 ; +0xa0, 0x9f875c\nLDR             X2, [X2]                                               ; +0xa4, 0x9f8760\nLDR             X2, [X2,#0x3A0]                                        ; +0xa8, 0x9f8764\nBLR             X2                                                     ; +0xac, 0x9f8768\nFMOV            S2, WZR; float                                         ; +0xb0, 0x9f876c\nLDR             X0, [X19,#0x258]; this                                 ; +0xb4, 0x9f8770\nFMOV            S0, #28.0; float                                       ; +0xb8, 0x9f8774\nFMOV            S1, #0.5; float                                        ; +0xbc, 0x9f8778\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xc0, 0x9f877c\nLDR             X2, [X19,#0x258]                                       ; +0xc4, 0x9f8780\nMOV             W1, #1                                                 ; +0xc8, 0x9f8784\nMOV             X0, X2                                                 ; +0xcc, 0x9f8788\nLDR             X2, [X2]                                               ; +0xd0, 0x9f878c\nLDR             X2, [X2,#0x158]                                        ; +0xd4, 0x9f8790\nBLR             X2                                                     ; +0xd8, 0x9f8794\nLDR             X0, [X19,#0x258]                                       ; +0xdc, 0x9f8798\nLDR             X1, [X0]                                               ; +0xe0, 0x9f879c\nLDR             X2, [X1,#0x430]                                        ; +0xe4, 0x9f87a0\nADRL            X1, unk_116D738                                        ; +0xe8, 0x9f87a4\nCBNZ            W22, loc_9F87B4                                        ; +0xf0, 0x9f87ac\nADD             X1, X1, #(qword_116D740 - 0x116D738)                   ; +0xf4, 0x9f87b0\nBLR             X2                                                     ; +0xf8, 0x9f87b4\nB               loc_9F8710                                             ; +0xfc, 0x9f87b8\nADRP            X0, #(aSongidI+8)@PAGE; \"%i\"                           ; +0x100, 0x9f87bc\nMOV             W1, W21; char *                                        ; +0x104, 0x9f87c0\nADD             X0, X0, #(aSongidI+8)@PAGEOFF; this                    ; +0x108, 0x9f87c4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x10c, 0x9f87c8\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x110, 0x9f87cc\nB               loc_9F8754                                             ; +0x114, 0x9f87d0\nADRP            X1, #aBigfontFnt@PAGE; \"bigFont.fnt\"                   ; +0x118, 0x9f87d4\nADRP            X0, #byte_11E1A70@PAGE                                 ; +0x11c, 0x9f87d8\nFMOV            S8, #0.5                                               ; +0x120, 0x9f87dc\nADD             X1, X1, #aBigfontFnt@PAGEOFF; \"bigFont.fnt\"            ; +0x124, 0x9f87e0\nADD             X0, X0, #byte_11E1A70@PAGEOFF; this                    ; +0x128, 0x9f87e4\nADD             X23, X29, #0x80+var_10                                 ; +0x12c, 0x9f87e8\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x130, 0x9f87ec\nSTR             X0, [X19,#0x258]                                       ; +0x134, 0x9f87f0\nLDR             X3, [X19]                                              ; +0x138, 0x9f87f4\nMOV             X1, X0                                                 ; +0x13c, 0x9f87f8\nMOV             W2, #1                                                 ; +0x140, 0x9f87fc\nMOV             X0, X19                                                ; +0x144, 0x9f8800\nLDR             X3, [X3,#0x1D0]                                        ; +0x148, 0x9f8804\nBLR             X3                                                     ; +0x14c, 0x9f8808\nLDR             X24, [X19,#0x258]                                      ; +0x150, 0x9f880c\nLDR             X1, [X19]                                              ; +0x154, 0x9f8810\nMOV             X0, X19                                                ; +0x158, 0x9f8814\nLDR             X2, [X24]                                              ; +0x15c, 0x9f8818\nLDR             X1, [X1,#0x148]                                        ; +0x160, 0x9f881c\nLDR             X25, [X2,#0xB8]                                        ; +0x164, 0x9f8820\nBLR             X1                                                     ; +0x168, 0x9f8824\nLDR             X1, [X19]                                              ; +0x16c, 0x9f8828\nLDR             S0, [X0]                                               ; +0x170, 0x9f882c\nMOV             X0, X19                                                ; +0x174, 0x9f8830\nFMUL            S0, S0, S8                                             ; +0x178, 0x9f8834\nLDR             X1, [X1,#0x148]                                        ; +0x17c, 0x9f8838\nSTR             Q0, [X29,#0x80+var_30]                                 ; +0x180, 0x9f883c\nBLR             X1                                                     ; +0x184, 0x9f8840\nFMOV            S1, #3.0                                               ; +0x188, 0x9f8844\nSTR             X23, [X29,#0x80+var_18]                                ; +0x18c, 0x9f8848\nLDR             S2, [X0,#4]                                            ; +0x190, 0x9f884c\nMOV             X0, X23; this                                          ; +0x194, 0x9f8850\nLDR             Q0, [X29,#0x80+var_30]; float                          ; +0x198, 0x9f8854\nFMADD           S1, S2, S8, S1; float                                  ; +0x19c, 0x9f8858\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a0, 0x9f885c\nLDR             X1, [X29,#0x80+var_18]                                 ; +0x1a4, 0x9f8860\nMOV             X0, X24                                                ; +0x1a8, 0x9f8864\nBLR             X25                                                    ; +0x1ac, 0x9f8868\nLDR             X1, [X19,#0x258]                                       ; +0x1b0, 0x9f886c\nFMOV            S0, S8                                                 ; +0x1b4, 0x9f8870\nMOV             X0, X1                                                 ; +0x1b8, 0x9f8874\nLDR             X1, [X1]                                               ; +0x1bc, 0x9f8878\nLDR             X1, [X1,#0xA0]                                         ; +0x1c0, 0x9f887c\nBLR             X1                                                     ; +0x1c4, 0x9f8880\nB               loc_9F8744                                             ; +0x1c8, 0x9f8884\nBL              .__stack_chk_fail                                      ; +0x1cc, 0x9f8888", "xrefs": ["ColorChannelSprite::updateValues @ 0x9f8b80", "ColorChannelSprite::updateValues @ 0x9f8c34", "<???> @ 0x104878"], "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"}