{"type": "func", "start": 4297864944, "end": 4297865379, "name": "ColorChannelSprite::updateCopyLabel", "pseudocode": "// \n// ColorChannelSprite::updateCopyLabel from 0x1002c36f0 to 0x1002c38a3 (435 bytes)\n// \n// 1 xrefs:\n// > ColorChannelSprite::updateValues @ 0x1002c3b31\n// \n// This function is hookable on this platform (idp: pc, 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:28:06 +0000\n// \n\nvoid __fastcall ColorChannelSprite::updateCopyLabel(_QWORD **a1, int a2, char a3)\n{\n  _QWORD *v4; // rdi\n  __int64 v6; // rax\n  __int64 CString; // rax\n  __int64 v8; // rax\n  _QWORD *v9; // r15\n  __int64 v10; // rax\n  void *v11; // rsi\n  char v12; // [rsp+0h] [rbp-40h]\n  float v13[2]; // [rsp+Ch] [rbp-34h] BYREF\n  float v14; // [rsp+14h] [rbp-2Ch]\n\n  v4 = a1[75];\n  if ( a2 )\n  {\n    if ( v4 )\n    {\n      if ( a2 <= 999 )\n      {\nLABEL_4:\n        v6 = sub_10088E820(\"%i\", v12);\n        CString = cocos2d::CCString::getCString(v6);\nLABEL_9:\n        (*(void (__fastcall **)(_QWORD *, __int64))(*a1[75] + 928LL))(a1[75], CString);\n        cocos2d::CCLabelBMFont::limitLabelWidth(a1[75], 28.0, 0.5, 0.0);\n        (*(void (__fastcall **)(_QWORD *, __int64))(*a1[75] + 344LL))(a1[75], 1);\n        v11 = &unk_100A079B3;\n        if ( a3 )\n          v11 = &unk_100A079B0;\n        (*(void (__fastcall **)(_QWORD *, void *))(*a1[75] + 1072LL))(a1[75], v11);\n        return;\n      }\n    }\n    else\n    {\n      v8 = cocos2d::CCLabelBMFont::create_3(\" \", \"bigFont.fnt\");\n      a1[75] = (_QWORD *)v8;\n      ((void (__fastcall *)(_QWORD **, __int64, __int64))(*a1)[58])(a1, v8, 1);\n      v9 = a1[75];\n      v14 = *(float *)((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1) * 0.5;\n      v10 = ((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1);\n      sub_100278250(v13, v14, (float)(*(float *)(v10 + 4) * 0.5) + 3.0);\n      (*(void (__fastcall **)(_QWORD *, float *))(*v9 + 184LL))(v9, v13);\n      (*(void (__fastcall **)(_QWORD *, float))(*a1[75] + 160LL))(a1[75], 0.5);\n      if ( a2 <= 999 )\n        goto LABEL_4;\n    }\n    CString = GJSpecialColorSelect::textForColorIdx((unsigned int)a2);\n    goto LABEL_9;\n  }\n  if ( v4 )\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*v4 + 344LL))(v4, 0);\n}", "assembly": "; \n; ColorChannelSprite::updateCopyLabel from 0x1002c36f0 to 0x1002c38a3 (435 bytes)\n; \n; 1 xrefs:\n; > ColorChannelSprite::updateValues @ 0x1002c3b31\n; \n; This function is hookable on this platform (idp: pc, 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:28:06 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002c36f0\nmov     rbp, rsp                                                       ; +0x1, 0x1002c36f1\npush    r15                                                            ; +0x4, 0x1002c36f4\npush    r14                                                            ; +0x6, 0x1002c36f6\npush    r13                                                            ; +0x8, 0x1002c36f8\npush    r12                                                            ; +0xa, 0x1002c36fa\npush    rbx                                                            ; +0xc, 0x1002c36fc\nsub     rsp, 18h                                                       ; +0xd, 0x1002c36fd\nmov     r14, rdi                                                       ; +0x11, 0x1002c3701\nmov     rdi, [rdi+258h]                                                ; +0x14, 0x1002c3704\ntest    esi, esi                                                       ; +0x1b, 0x1002c370b\njz      short loc_1002C373D                                            ; +0x1d, 0x1002c370d\nmov     ebx, edx                                                       ; +0x1f, 0x1002c370f\ntest    rdi, rdi                                                       ; +0x21, 0x1002c3711\njz      short loc_1002C3762                                            ; +0x24, 0x1002c3714\ncmp     esi, 3E7h                                                      ; +0x26, 0x1002c3716\njg      loc_1002C3822                                                  ; +0x2c, 0x1002c371c\nlea     rdi, aI_14; \"%i\"                                               ; +0x32, 0x1002c3722\nxor     eax, eax                                                       ; +0x39, 0x1002c3729\ncall    sub_10088E820                                                  ; +0x3b, 0x1002c372b\nmov     rdi, rax                                                       ; +0x40, 0x1002c3730\ncall    cocos2d__CCString__getCString                                  ; +0x43, 0x1002c3733\njmp     loc_1002C3829                                                  ; +0x48, 0x1002c3738\ntest    rdi, rdi                                                       ; +0x4d, 0x1002c373d\njz      loc_1002C3894                                                  ; +0x50, 0x1002c3740\nmov     rax, [rdi]                                                     ; +0x56, 0x1002c3746\nmov     rax, [rax+158h]                                                ; +0x59, 0x1002c3749\nxor     esi, esi                                                       ; +0x60, 0x1002c3750\nadd     rsp, 18h                                                       ; +0x62, 0x1002c3752\npop     rbx                                                            ; +0x66, 0x1002c3756\npop     r12                                                            ; +0x67, 0x1002c3757\npop     r13                                                            ; +0x69, 0x1002c3759\npop     r14                                                            ; +0x6b, 0x1002c375b\npop     r15                                                            ; +0x6d, 0x1002c375d\npop     rbp                                                            ; +0x6f, 0x1002c375f\njmp     rax                                                            ; +0x70, 0x1002c3760\nlea     rdi, asc_100A41844; \" \"                                        ; +0x72, 0x1002c3762\nlea     rax, aBigfontFnt; \"bigFont.fnt\"                                ; +0x79, 0x1002c3769\nmov     r13d, esi                                                      ; +0x80, 0x1002c3770\nmov     rsi, rax                                                       ; +0x83, 0x1002c3773\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x86, 0x1002c3776\nmov     [r14+258h], rax                                                ; +0x8b, 0x1002c377b\nmov     rcx, [r14]                                                     ; +0x92, 0x1002c3782\nmov     rdi, r14                                                       ; +0x95, 0x1002c3785\nmov     rsi, rax                                                       ; +0x98, 0x1002c3788\nmov     edx, 1                                                         ; +0x9b, 0x1002c378b\ncall    qword ptr [rcx+1D0h]                                           ; +0xa0, 0x1002c3790\nmov     r15, [r14+258h]                                                ; +0xa6, 0x1002c3796\nmov     rax, [r14]                                                     ; +0xad, 0x1002c379d\nmov     rdi, r14                                                       ; +0xb0, 0x1002c37a0\ncall    qword ptr [rax+148h]                                           ; +0xb3, 0x1002c37a3\nmovss   xmm0, dword ptr [rax]                                          ; +0xb9, 0x1002c37a9\nmulss   xmm0, cs:dword_100A03578                                       ; +0xbd, 0x1002c37ad\nmovss   [rbp+var_2C], xmm0                                             ; +0xc5, 0x1002c37b5\nmov     rax, [r14]                                                     ; +0xca, 0x1002c37ba\nmov     rdi, r14                                                       ; +0xcd, 0x1002c37bd\ncall    qword ptr [rax+148h]                                           ; +0xd0, 0x1002c37c0\nmovss   xmm1, dword ptr [rax+4]                                        ; +0xd6, 0x1002c37c6\nmulss   xmm1, cs:dword_100A03578                                       ; +0xdb, 0x1002c37cb\naddss   xmm1, cs:flt_100A03B60                                         ; +0xe3, 0x1002c37d3\nlea     r12, [rbp+var_34]                                              ; +0xeb, 0x1002c37db\nmov     rdi, r12                                                       ; +0xef, 0x1002c37df\nmovss   xmm0, [rbp+var_2C]                                             ; +0xf2, 0x1002c37e2\ncall    sub_100278250                                                  ; +0xf7, 0x1002c37e7\nmov     rax, [r15]                                                     ; +0xfc, 0x1002c37ec\nmov     rdi, r15                                                       ; +0xff, 0x1002c37ef\nmov     rsi, r12                                                       ; +0x102, 0x1002c37f2\ncall    qword ptr [rax+0B8h]                                           ; +0x105, 0x1002c37f5\nmov     rdi, [r14+258h]                                                ; +0x10b, 0x1002c37fb\nmov     rax, [rdi]                                                     ; +0x112, 0x1002c3802\nmovss   xmm0, cs:dword_100A03578                                       ; +0x115, 0x1002c3805\ncall    qword ptr [rax+0A0h]                                           ; +0x11d, 0x1002c380d\nmov     esi, r13d                                                      ; +0x123, 0x1002c3813\ncmp     esi, 3E7h                                                      ; +0x126, 0x1002c3816\njle     loc_1002C3722                                                  ; +0x12c, 0x1002c381c\nmov     edi, esi                                                       ; +0x132, 0x1002c3822\ncall    GJSpecialColorSelect__textForColorIdx                          ; +0x134, 0x1002c3824\nmov     rdi, [r14+258h]                                                ; +0x139, 0x1002c3829\nmov     rcx, [rdi]                                                     ; +0x140, 0x1002c3830\nmov     rsi, rax                                                       ; +0x143, 0x1002c3833\ncall    qword ptr [rcx+3A0h]                                           ; +0x146, 0x1002c3836\nmov     rdi, [r14+258h]                                                ; +0x14c, 0x1002c383c\nmovss   xmm0, cs:dword_100A03838                                       ; +0x153, 0x1002c3843\nmovss   xmm1, cs:dword_100A03578                                       ; +0x15b, 0x1002c384b\nxorps   xmm2, xmm2                                                     ; +0x163, 0x1002c3853\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0x166, 0x1002c3856\nmov     rdi, [r14+258h]                                                ; +0x16b, 0x1002c385b\nmov     rax, [rdi]                                                     ; +0x172, 0x1002c3862\nmov     esi, 1                                                         ; +0x175, 0x1002c3865\ncall    qword ptr [rax+158h]                                           ; +0x17a, 0x1002c386a\nmov     rdi, [r14+258h]                                                ; +0x180, 0x1002c3870\nlea     rax, unk_100A079B0                                             ; +0x187, 0x1002c3877\nlea     rsi, unk_100A079B3                                             ; +0x18e, 0x1002c387e\ntest    bl, bl                                                         ; +0x195, 0x1002c3885\ncmovnz  rsi, rax                                                       ; +0x197, 0x1002c3887\nmov     rax, [rdi]                                                     ; +0x19b, 0x1002c388b\ncall    qword ptr [rax+430h]                                           ; +0x19e, 0x1002c388e\nadd     rsp, 18h                                                       ; +0x1a4, 0x1002c3894\npop     rbx                                                            ; +0x1a8, 0x1002c3898\npop     r12                                                            ; +0x1a9, 0x1002c3899\npop     r13                                                            ; +0x1ab, 0x1002c389b\npop     r14                                                            ; +0x1ad, 0x1002c389d\npop     r15                                                            ; +0x1af, 0x1002c389f\npop     rbp                                                            ; +0x1b1, 0x1002c38a1\nretn                                                                   ; +0x1b2, 0x1002c38a2", "xrefs": ["ColorChannelSprite::updateValues @ 0x1002c3b31"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}