{"type": "func", "start": 4295020276, "end": 4295020600, "name": "ColorChannelSprite::updateOpacity", "pseudocode": "// \n// ColorChannelSprite::updateOpacity from 0x10000cef4 to 0x10000d038 (324 bytes)\n// \n// 1 xrefs:\n// > ColorChannelSprite::updateValues @ 0x10000d174\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall ColorChannelSprite::updateOpacity(ColorChannelSprite *a1, float a2)\n{\n  cocos2d::CCLabelBMFont *m_opacityLabel; // x8\n  cocos2d::CCLabelBMFont *v5; // x0\n  cocos2d::CCLabelBMFont *v6; // x20\n  float v7; // s9\n  __n128 v8; // q1\n  __n128 v9; // q0\n  cocos2d::CCLabelBMFont *v10; // x20\n  cocos2d::CCString *v11; // x0\n  const char *CString; // x0\n  _BYTE v13[8]; // [xsp+8h] [xbp-38h] BYREF\n  cocos2d::CCPoint v14; // 0:kr00_8.8\n\n  m_opacityLabel = a1->m_opacityLabel;\n  if ( a2 == 1.0 )\n  {\n    if ( !m_opacityLabel )\n      return;\n  }\n  else\n  {\n    if ( !m_opacityLabel )\n    {\n      v5 = cocos2d::CCLabelBMFont::create_1(\" \", \"bigFont.fnt\");\n      a1->m_opacityLabel = v5;\n      ((void (__fastcall *)(ColorChannelSprite *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v5);\n      v6 = a1->m_opacityLabel;\n      v7 = *(float *)((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) * 0.5;\n      v8.n128_f32[0] = (float)(*(float *)(((__int64 (__fastcall *)(ColorChannelSprite *))a1->getContentSize)(a1) + 4)\n                             * 0.5)\n                     + -9.5;\n      v9.n128_f32[0] = v7;\n      v14 = sub_100022980(v9, v8);\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *, float, float))v6->setPosition)(v6, v13, v14.x, v14.y);\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))a1->m_opacityLabel->setScale)(a1->m_opacityLabel, 0.3);\n    }\n    v10 = a1->m_opacityLabel;\n    v11 = (cocos2d::CCString *)sub_100268F4C(\"%0.2f\", a2);\n    CString = cocos2d::CCString::getCString(v11);\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v10->setString)(v10, CString);\n  }\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, bool))a1->m_opacityLabel->setVisible)(a1->m_opacityLabel, a2 != 1.0);\n}", "assembly": "; \n; ColorChannelSprite::updateOpacity from 0x10000cef4 to 0x10000d038 (324 bytes)\n; \n; 1 xrefs:\n; > ColorChannelSprite::updateValues @ 0x10000d174\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x50                                          ; +0x0, 0x10000cef4\nSTP             D11, D10, [SP,#0x40+var_30]                            ; +0x4, 0x10000cef8\nSTP             D9, D8, [SP,#0x40+var_20]                              ; +0x8, 0x10000cefc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x10000cf00\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x10000cf04\nADD             X29, SP, #0x40                                         ; +0x14, 0x10000cf08\nFMOV            S8, S0                                                 ; +0x18, 0x10000cf0c\nMOV             X19, X0                                                ; +0x1c, 0x10000cf10\nLDR             X8, [X0,#0x260]                                        ; +0x20, 0x10000cf14\nFMOV            S0, #1.0                                               ; +0x24, 0x10000cf18\nFCMP            S8, S0                                                 ; +0x28, 0x10000cf1c\nB.EQ            loc_10000D000                                          ; +0x2c, 0x10000cf20\nCBNZ            X8, loc_10000CFCC                                      ; +0x30, 0x10000cf24\nADRL            X0, asc_1006B11F7; \" \"                                 ; +0x34, 0x10000cf28\nADRL            X1, aBigfontFnt; \"bigFont.fnt\"                         ; +0x3c, 0x10000cf30\nBL              cocos2d__CCLabelBMFont__create_1                       ; +0x44, 0x10000cf38\nMOV             X1, X0                                                 ; +0x48, 0x10000cf3c\nSTR             X0, [X19,#0x260]                                       ; +0x4c, 0x10000cf40\nLDR             X8, [X19]                                              ; +0x50, 0x10000cf44\nLDR             X8, [X8,#0x1B8]                                        ; +0x54, 0x10000cf48\nMOV             X0, X19                                                ; +0x58, 0x10000cf4c\nBLR             X8                                                     ; +0x5c, 0x10000cf50\nLDR             X20, [X19,#0x260]                                      ; +0x60, 0x10000cf54\nLDR             X8, [X19]                                              ; +0x64, 0x10000cf58\nLDR             X8, [X8,#0x138]                                        ; +0x68, 0x10000cf5c\nMOV             X0, X19                                                ; +0x6c, 0x10000cf60\nBLR             X8                                                     ; +0x70, 0x10000cf64\nLDR             S0, [X0]                                               ; +0x74, 0x10000cf68\nFMOV            S10, #0.5                                              ; +0x78, 0x10000cf6c\nFMUL            S9, S0, S10                                            ; +0x7c, 0x10000cf70\nLDR             X8, [X19]                                              ; +0x80, 0x10000cf74\nLDR             X8, [X8,#0x138]                                        ; +0x84, 0x10000cf78\nMOV             X0, X19                                                ; +0x88, 0x10000cf7c\nBLR             X8                                                     ; +0x8c, 0x10000cf80\nLDR             S0, [X0,#4]                                            ; +0x90, 0x10000cf84\nFMUL            S0, S0, S10                                            ; +0x94, 0x10000cf88\nFMOV            S1, #-9.5                                              ; +0x98, 0x10000cf8c\nFADD            S1, S0, S1                                             ; +0x9c, 0x10000cf90\nADD             X0, SP, #0x40+var_38                                   ; +0xa0, 0x10000cf94\nFMOV            S0, S9                                                 ; +0xa4, 0x10000cf98\nBL              sub_100022980                                          ; +0xa8, 0x10000cf9c\nLDR             X8, [X20]                                              ; +0xac, 0x10000cfa0\nLDR             X8, [X8,#0xB8]                                         ; +0xb0, 0x10000cfa4\nADD             X1, SP, #0x40+var_38                                   ; +0xb4, 0x10000cfa8\nMOV             X0, X20                                                ; +0xb8, 0x10000cfac\nBLR             X8                                                     ; +0xbc, 0x10000cfb0\nLDR             X0, [X19,#0x260]                                       ; +0xc0, 0x10000cfb4\nLDR             X8, [X0]                                               ; +0xc4, 0x10000cfb8\nLDR             X8, [X8,#0xA0]                                         ; +0xc8, 0x10000cfbc\nADRP            X9, #dword_100635360@PAGE                              ; +0xcc, 0x10000cfc0\nLDR             S0, [X9,#dword_100635360@PAGEOFF]                      ; +0xd0, 0x10000cfc4\nBLR             X8                                                     ; +0xd4, 0x10000cfc8\nLDR             X20, [X19,#0x260]                                      ; +0xd8, 0x10000cfcc\nFCVT            D0, S8                                                 ; +0xdc, 0x10000cfd0\nSTR             D0, [SP,#0x40+var_40]                                  ; +0xe0, 0x10000cfd4\nADRL            X0, a02f; \"%0.2f\"                                      ; +0xe4, 0x10000cfd8\nBL              sub_100268F4C                                          ; +0xec, 0x10000cfe0\nBL              cocos2d__CCString__getCString                          ; +0xf0, 0x10000cfe4\nMOV             X1, X0                                                 ; +0xf4, 0x10000cfe8\nLDR             X8, [X20]                                              ; +0xf8, 0x10000cfec\nLDR             X8, [X8,#0x390]                                        ; +0xfc, 0x10000cff0\nMOV             X0, X20                                                ; +0x100, 0x10000cff4\nBLR             X8                                                     ; +0x104, 0x10000cff8\nB               loc_10000D004                                          ; +0x108, 0x10000cffc\nCBZ             X8, loc_10000D020                                      ; +0x10c, 0x10000d000\nFMOV            S0, #1.0                                               ; +0x110, 0x10000d004\nFCMP            S8, S0                                                 ; +0x114, 0x10000d008\nCSET            W1, NE                                                 ; +0x118, 0x10000d00c\nLDR             X0, [X19,#0x260]                                       ; +0x11c, 0x10000d010\nLDR             X8, [X0]                                               ; +0x120, 0x10000d014\nLDR             X8, [X8,#0x148]                                        ; +0x124, 0x10000d018\nBLR             X8                                                     ; +0x128, 0x10000d01c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x12c, 0x10000d020\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x130, 0x10000d024\nLDP             D9, D8, [SP,#0x40+var_20]                              ; +0x134, 0x10000d028\nLDP             D11, D10, [SP,#0x40+var_30]                            ; +0x138, 0x10000d02c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x13c, 0x10000d030\nRET                                                                    ; +0x140, 0x10000d034", "xrefs": ["ColorChannelSprite::updateValues @ 0x10000d174"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}