{"type": "func", "start": 4297865392, "end": 4297865718, "name": "ColorChannelSprite::updateOpacity", "pseudocode": "// \n// ColorChannelSprite::updateOpacity from 0x1002c38b0 to 0x1002c39f6 (326 bytes)\n// \n// 1 xrefs:\n// > ColorChannelSprite::updateValues @ 0x1002c3b3f\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\n__int64 __fastcall ColorChannelSprite::updateOpacity(_QWORD **a1, __m128 a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rax\n  _QWORD *v4; // r14\n  __int64 v5; // rax\n  _QWORD *v6; // r14\n  double v7; // xmm0_8\n  __int64 v8; // rax\n  __int64 CString; // rax\n  __m128 v10; // rt1\n  char v11; // [rsp+0h] [rbp-30h]\n  float v12; // [rsp+8h] [rbp-28h] BYREF\n  float v13; // [rsp+10h] [rbp-20h]\n  float v14; // [rsp+14h] [rbp-1Ch]\n\n  result = (__int64)a1[76];\n  if ( a2.f32[0] == 1.0 )\n  {\n    if ( !result )\n      return result;\n  }\n  else\n  {\n    v14 = a2.f32[0];\n    if ( !result )\n    {\n      v3 = cocos2d::CCLabelBMFont::create_3(\" \", \"bigFont.fnt\");\n      a1[76] = (_QWORD *)v3;\n      ((void (__fastcall *)(_QWORD **, __int64))(*a1)[57])(a1, v3);\n      v4 = a1[76];\n      v13 = *(float *)((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1) * 0.5;\n      v5 = ((__int64 (__fastcall *)(_QWORD **))(*a1)[41])(a1);\n      sub_100278250(&v12, v13, (float)(0.5 * *(float *)(v5 + 4)) + -9.5);\n      (*(void (__fastcall **)(_QWORD *, float *))(*v4 + 184LL))(v4, &v12);\n      (*(void (__fastcall **)(_QWORD *, float))(*a1[76] + 160LL))(a1[76], 0.30000001);\n    }\n    v6 = a1[76];\n    v7 = v14;\n    v8 = sub_10088E820(\"%0.2f\", v11);\n    CString = cocos2d::CCString::getCString(v8);\n    (*(void (__fastcall **)(_QWORD *, __int64, double))(*v6 + 928LL))(v6, CString, v7);\n    a2 = (__m128)LODWORD(v14);\n  }\n  v10.i32[0] = 1065353216;\n  return (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1[76] + 344LL))(\n           a1[76],\n           _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(a2, v10)) & 1);\n}", "assembly": "; \n; ColorChannelSprite::updateOpacity from 0x1002c38b0 to 0x1002c39f6 (326 bytes)\n; \n; 1 xrefs:\n; > ColorChannelSprite::updateValues @ 0x1002c3b3f\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, 0x1002c38b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002c38b1\npush    r15                                                            ; +0x4, 0x1002c38b4\npush    r14                                                            ; +0x6, 0x1002c38b6\npush    rbx                                                            ; +0x8, 0x1002c38b8\nsub     rsp, 18h                                                       ; +0x9, 0x1002c38b9\nmov     rbx, rdi                                                       ; +0xd, 0x1002c38bd\nucomiss xmm0, cs:alpha                                                 ; +0x10, 0x1002c38c0\nmov     rax, [rdi+260h]                                                ; +0x17, 0x1002c38c7\njnz     short loc_1002C38D6                                            ; +0x1e, 0x1002c38ce\njnp     loc_1002C39C6                                                  ; +0x20, 0x1002c38d0\ntest    rax, rax                                                       ; +0x26, 0x1002c38d6\nmovss   [rbp+var_1C], xmm0                                             ; +0x29, 0x1002c38d9\njnz     loc_1002C398A                                                  ; +0x2e, 0x1002c38de\nlea     rdi, asc_100A41844; \" \"                                        ; +0x34, 0x1002c38e4\nlea     rsi, aBigfontFnt; \"bigFont.fnt\"                                ; +0x3b, 0x1002c38eb\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x42, 0x1002c38f2\nmov     [rbx+260h], rax                                                ; +0x47, 0x1002c38f7\nmov     rcx, [rbx]                                                     ; +0x4e, 0x1002c38fe\nmov     rdi, rbx                                                       ; +0x51, 0x1002c3901\nmov     rsi, rax                                                       ; +0x54, 0x1002c3904\ncall    qword ptr [rcx+1C8h]                                           ; +0x57, 0x1002c3907\nmov     r14, [rbx+260h]                                                ; +0x5d, 0x1002c390d\nmov     rax, [rbx]                                                     ; +0x64, 0x1002c3914\nmov     rdi, rbx                                                       ; +0x67, 0x1002c3917\ncall    qword ptr [rax+148h]                                           ; +0x6a, 0x1002c391a\nmovss   xmm0, dword ptr [rax]                                          ; +0x70, 0x1002c3920\nmulss   xmm0, cs:dword_100A03578                                       ; +0x74, 0x1002c3924\nmovss   [rbp+var_20], xmm0                                             ; +0x7c, 0x1002c392c\nmov     rax, [rbx]                                                     ; +0x81, 0x1002c3931\nmov     rdi, rbx                                                       ; +0x84, 0x1002c3934\ncall    qword ptr [rax+148h]                                           ; +0x87, 0x1002c3937\nmovss   xmm1, cs:dword_100A03578                                       ; +0x8d, 0x1002c393d\nmulss   xmm1, dword ptr [rax+4]                                        ; +0x95, 0x1002c3945\naddss   xmm1, cs:dword_100A07980                                       ; +0x9a, 0x1002c394a\nlea     r15, [rbp+var_28]                                              ; +0xa2, 0x1002c3952\nmov     rdi, r15                                                       ; +0xa6, 0x1002c3956\nmovss   xmm0, [rbp+var_20]                                             ; +0xa9, 0x1002c3959\ncall    sub_100278250                                                  ; +0xae, 0x1002c395e\nmov     rax, [r14]                                                     ; +0xb3, 0x1002c3963\nmov     rdi, r14                                                       ; +0xb6, 0x1002c3966\nmov     rsi, r15                                                       ; +0xb9, 0x1002c3969\ncall    qword ptr [rax+0B8h]                                           ; +0xbc, 0x1002c396c\nmov     rdi, [rbx+260h]                                                ; +0xc2, 0x1002c3972\nmov     rax, [rdi]                                                     ; +0xc9, 0x1002c3979\nmovss   xmm0, cs:dword_100A03748                                       ; +0xcc, 0x1002c397c\ncall    qword ptr [rax+0A0h]                                           ; +0xd4, 0x1002c3984\nmov     r14, [rbx+260h]                                                ; +0xda, 0x1002c398a\nmovss   xmm0, [rbp+var_1C]                                             ; +0xe1, 0x1002c3991\ncvtss2sd xmm0, xmm0                                                    ; +0xe6, 0x1002c3996\nlea     rdi, a02f_0; \"%0.2f\"                                           ; +0xea, 0x1002c399a\nmov     al, 1                                                          ; +0xf1, 0x1002c39a1\ncall    sub_10088E820                                                  ; +0xf3, 0x1002c39a3\nmov     rdi, rax                                                       ; +0xf8, 0x1002c39a8\ncall    cocos2d__CCString__getCString                                  ; +0xfb, 0x1002c39ab\nmov     rcx, [r14]                                                     ; +0x100, 0x1002c39b0\nmov     rdi, r14                                                       ; +0x103, 0x1002c39b3\nmov     rsi, rax                                                       ; +0x106, 0x1002c39b6\ncall    qword ptr [rcx+3A0h]                                           ; +0x109, 0x1002c39b9\nmovss   xmm0, [rbp+var_1C]                                             ; +0x10f, 0x1002c39bf\njmp     short loc_1002C39CB                                            ; +0x114, 0x1002c39c4\ntest    rax, rax                                                       ; +0x116, 0x1002c39c6\njz      short loc_1002C39EB                                            ; +0x119, 0x1002c39c9\ncmpneqss xmm0, cs:alpha                                                ; +0x11b, 0x1002c39cb\nmovd    esi, xmm0                                                      ; +0x124, 0x1002c39d4\nand     esi, 1                                                         ; +0x128, 0x1002c39d8\nmov     rdi, [rbx+260h]                                                ; +0x12b, 0x1002c39db\nmov     rax, [rdi]                                                     ; +0x132, 0x1002c39e2\ncall    qword ptr [rax+158h]                                           ; +0x135, 0x1002c39e5\nadd     rsp, 18h                                                       ; +0x13b, 0x1002c39eb\npop     rbx                                                            ; +0x13f, 0x1002c39ef\npop     r14                                                            ; +0x140, 0x1002c39f0\npop     r15                                                            ; +0x142, 0x1002c39f2\npop     rbp                                                            ; +0x144, 0x1002c39f4\nretn                                                                   ; +0x145, 0x1002c39f5", "xrefs": ["ColorChannelSprite::updateValues @ 0x1002c3b3f"], "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"}