{"type": "func", "start": 5369301952, "end": 5369302112, "name": "ColorSelectPopup::onCopyOpacity", "pseudocode": "// \n// ColorSelectPopup::onCopyOpacity from 0x140090bc0 to 0x140090c60 (160 bytes)\n// \n// 4 xrefs:\n// > ColorSelectPopup::init @ 0x14008ef4c\n// > <???> @ 0x1406692c0\n// > <???> @ 0x1406692d0\n// > <???> @ 0x1406c6f60\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::onCopyOpacity(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v3; // cl\n  EffectGameObject *m_gameObject; // rax\n  cocos2d::CCArray *m_gameObjects; // rax\n  unsigned int v6; // edi\n  struct cocos2d::CCObject *v7; // rax\n  ColorAction *m_colorAction; // rax\n\n  v3 = !a1->m_copyOpacity;\n  m_gameObject = a1->m_gameObject;\n  a1->m_copyOpacity = v3;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_copyOpacity = v3;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      v6 = 0;\n      if ( cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v6++);\n          LOBYTE(v7[29].m_uAutoReleaseCount) = a1->m_copyOpacity;\n        }\n        while ( v6 < 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_copyOpacity = v3;\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::onCopyOpacity from 0x140090bc0 to 0x140090c60 (160 bytes)\n; \n; 4 xrefs:\n; > ColorSelectPopup::init @ 0x14008ef4c\n; > <???> @ 0x1406692c0\n; > <???> @ 0x1406692d0\n; > <???> @ 0x1406c6f60\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, 0x140090bc0\nsub     rsp, 20h                                                       ; +0x2, 0x140090bc2\ncmp     byte ptr [rcx+44Ch], 0                                         ; +0x6, 0x140090bc6\nmov     rbx, rcx                                                       ; +0xd, 0x140090bcd\nsetz    cl                                                             ; +0x10, 0x140090bd0\nmov     rax, [rbx+290h]                                                ; +0x13, 0x140090bd3\nmov     [rbx+44Ch], cl                                                 ; +0x1a, 0x140090bda\ntest    rax, rax                                                       ; +0x20, 0x140090be0\njz      short loc_140090BF1                                            ; +0x23, 0x140090be3\nmov     [rax+670h], cl                                                 ; +0x25, 0x140090be5\nadd     rsp, 20h                                                       ; +0x2b, 0x140090beb\npop     rbx                                                            ; +0x2f, 0x140090bef\nretn                                                                   ; +0x30, 0x140090bf0\nmov     rax, [rbx+298h]                                                ; +0x31, 0x140090bf1\ntest    rax, rax                                                       ; +0x38, 0x140090bf8\njz      short loc_140090C4B                                            ; +0x3b, 0x140090bfb\nmov     [rsp+28h+arg_0], rdi                                           ; +0x3d, 0x140090bfd\nmov     rcx, rax                                                       ; +0x42, 0x140090c02\nxor     edi, edi                                                       ; +0x45, 0x140090c05\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x47, 0x140090c07\ntest    eax, eax                                                       ; +0x4d, 0x140090c0d\njz      short loc_140090C40                                            ; +0x4f, 0x140090c0f\nmov     rcx, [rbx+298h]                                                ; +0x51, 0x140090c11\nmov     edx, edi                                                       ; +0x58, 0x140090c18\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x140090c1a\nmovzx   ecx, byte ptr [rbx+44Ch]                                       ; +0x60, 0x140090c20\ninc     edi                                                            ; +0x67, 0x140090c27\nmov     [rax+670h], cl                                                 ; +0x69, 0x140090c29\nmov     rcx, [rbx+298h]                                                ; +0x6f, 0x140090c2f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x76, 0x140090c36\ncmp     edi, eax                                                       ; +0x7c, 0x140090c3c\njb      short loc_140090C11                                            ; +0x7e, 0x140090c3e\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x80, 0x140090c40\nadd     rsp, 20h                                                       ; +0x85, 0x140090c45\npop     rbx                                                            ; +0x89, 0x140090c49\nretn                                                                   ; +0x8a, 0x140090c4a\nmov     rax, [rbx+428h]                                                ; +0x8b, 0x140090c4b\ntest    rax, rax                                                       ; +0x92, 0x140090c52\njz      short loc_140090C45                                            ; +0x95, 0x140090c55\nmov     [rax+7Dh], cl                                                  ; +0x97, 0x140090c57\nadd     rsp, 20h                                                       ; +0x9a, 0x140090c5a\npop     rbx                                                            ; +0x9e, 0x140090c5e\nretn                                                                   ; +0x9f, 0x140090c5f", "xrefs": ["ColorSelectPopup::init @ 0x14008ef4c", "<???> @ 0x1406692c0", "<???> @ 0x1406692d0", "<???> @ 0x1406c6f60"], "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"}