{"type": "func", "start": 5369303920, "end": 5369304084, "name": "ColorSelectPopup::updateOpacity", "pseudocode": "// \n// ColorSelectPopup::updateOpacity from 0x140091370 to 0x140091414 (164 bytes)\n// \n// 5 xrefs:\n// > ColorSelectPopup::onDefault @ 0x14009100c\n// > ColorSelectPopup::sliderChanged @ 0x1400912b4\n// > <???> @ 0x140669398\n// > <???> @ 0x1406693a8\n// > <???> @ 0x1406c6ff0\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 ColorSelectPopup::updateOpacity(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rcx\n  unsigned int v4; // edi\n  struct cocos2d::CCObject *v5; // rax\n  ColorAction *m_colorAction; // rcx\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_opacity = a1->m_opacity;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v4 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v4++);\n          v5[26].m_nTag = LODWORD(a1->m_opacity);\n        }\n        while ( v4 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n        m_colorAction->m_fromOpacity = a1->m_opacity;\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateOpacity from 0x140091370 to 0x140091414 (164 bytes)\n; \n; 5 xrefs:\n; > ColorSelectPopup::onDefault @ 0x14009100c\n; > ColorSelectPopup::sliderChanged @ 0x1400912b4\n; > <???> @ 0x140669398\n; > <???> @ 0x1406693a8\n; > <???> @ 0x1406c6ff0\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\npush    rbx                                                            ; +0x0, 0x140091370\nsub     rsp, 20h                                                       ; +0x2, 0x140091372\nmov     rbx, rcx                                                       ; +0x6, 0x140091376\nmov     rcx, [rcx+290h]                                                ; +0x9, 0x140091379\ntest    rcx, rcx                                                       ; +0x10, 0x140091380\njz      short loc_140091397                                            ; +0x13, 0x140091383\nmov     eax, [rbx+424h]                                                ; +0x15, 0x140091385\nmov     [rcx+5C0h], eax                                                ; +0x1b, 0x14009138b\nadd     rsp, 20h                                                       ; +0x21, 0x140091391\npop     rbx                                                            ; +0x25, 0x140091395\nretn                                                                   ; +0x26, 0x140091396\nmov     rcx, [rbx+298h]                                                ; +0x27, 0x140091397\ntest    rcx, rcx                                                       ; +0x2e, 0x14009139e\njz      short loc_1400913F9                                            ; +0x31, 0x1400913a1\nmov     [rsp+28h+arg_0], rdi                                           ; +0x33, 0x1400913a3\nxor     edi, edi                                                       ; +0x38, 0x1400913a8\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3a, 0x1400913aa\ntest    eax, eax                                                       ; +0x40, 0x1400913b0\njz      short loc_1400913EE                                            ; +0x42, 0x1400913b2\nnop     dword ptr [rax+00h]                                            ; +0x44, 0x1400913b4\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x1400913b8\nmov     rcx, [rbx+298h]                                                ; +0x50, 0x1400913c0\nmov     edx, edi                                                       ; +0x57, 0x1400913c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x1400913c9\nmov     ecx, [rbx+424h]                                                ; +0x5f, 0x1400913cf\ninc     edi                                                            ; +0x65, 0x1400913d5\nmov     [rax+5C0h], ecx                                                ; +0x67, 0x1400913d7\nmov     rcx, [rbx+298h]                                                ; +0x6d, 0x1400913dd\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x1400913e4\ncmp     edi, eax                                                       ; +0x7a, 0x1400913ea\njb      short loc_1400913C0                                            ; +0x7c, 0x1400913ec\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x7e, 0x1400913ee\nadd     rsp, 20h                                                       ; +0x83, 0x1400913f3\npop     rbx                                                            ; +0x87, 0x1400913f7\nretn                                                                   ; +0x88, 0x1400913f8\nmov     rcx, [rbx+428h]                                                ; +0x89, 0x1400913f9\ntest    rcx, rcx                                                       ; +0x90, 0x140091400\njz      short loc_1400913F3                                            ; +0x93, 0x140091403\nmov     eax, [rbx+424h]                                                ; +0x95, 0x140091405\nmov     [rcx+60h], eax                                                 ; +0x9b, 0x14009140b\nadd     rsp, 20h                                                       ; +0x9e, 0x14009140e\npop     rbx                                                            ; +0xa2, 0x140091412\nretn                                                                   ; +0xa3, 0x140091413", "xrefs": ["ColorSelectPopup::onDefault @ 0x14009100c", "ColorSelectPopup::sliderChanged @ 0x1400912b4", "<???> @ 0x140669398", "<???> @ 0x1406693a8", "<???> @ 0x1406c6ff0"], "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"}