{"type": "func", "start": 4302471872, "end": 4302472022, "name": "ColorSelectPopup::onCopyOpacity", "pseudocode": "// \n// ColorSelectPopup::onCopyOpacity from 0x1007282c0 to 0x100728356 (150 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::init @ 0x100725f9d\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 ColorSelectPopup::onCopyOpacity(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  bool v2; // al\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rdi\n  unsigned int v6; // r14d\n  ColorAction *m_colorAction; // rcx\n\n  v2 = !a1->m_copyOpacity;\n  a1->m_copyOpacity = v2;\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    m_gameObject->m_copyOpacity = v2;\n  }\n  else\n  {\n    m_gameObjects = a1->m_gameObjects;\n    if ( m_gameObjects )\n    {\n      if ( (unsigned int)sub_100720070((__int64)m_gameObjects) )\n      {\n        v6 = 0;\n        do\n          *(_BYTE *)(sub_1007200C0((__int64)a1->m_gameObjects, v6++) + 1632) = a1->m_copyOpacity;\n        while ( v6 < (unsigned int)sub_100720070((__int64)a1->m_gameObjects) );\n      }\n    }\n    else\n    {\n      m_colorAction = a1->m_colorAction;\n      if ( m_colorAction )\n        m_colorAction->m_copyOpacity = v2;\n    }\n  }\n}", "assembly": "; \n; ColorSelectPopup::onCopyOpacity from 0x1007282c0 to 0x100728356 (150 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::init @ 0x100725f9d\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    rbp                                                            ; +0x0, 0x1007282c0\nmov     rbp, rsp                                                       ; +0x1, 0x1007282c1\npush    r14                                                            ; +0x4, 0x1007282c4\npush    rbx                                                            ; +0x6, 0x1007282c6\nmovzx   eax, byte ptr [rdi+454h]                                       ; +0x7, 0x1007282c7\nxor     al, 1                                                          ; +0xe, 0x1007282ce\nmov     [rdi+454h], al                                                 ; +0x10, 0x1007282d0\nmov     rcx, [rdi+290h]                                                ; +0x16, 0x1007282d6\ntest    rcx, rcx                                                       ; +0x1d, 0x1007282dd\njz      short loc_1007282ED                                            ; +0x20, 0x1007282e0\nmov     [rcx+660h], al                                                 ; +0x22, 0x1007282e2\npop     rbx                                                            ; +0x28, 0x1007282e8\npop     r14                                                            ; +0x29, 0x1007282e9\npop     rbp                                                            ; +0x2b, 0x1007282eb\nretn                                                                   ; +0x2c, 0x1007282ec\nmov     rbx, rdi                                                       ; +0x2d, 0x1007282ed\nmov     rdi, [rdi+298h]                                                ; +0x30, 0x1007282f0\ntest    rdi, rdi                                                       ; +0x37, 0x1007282f7\njz      short loc_100728342                                            ; +0x3a, 0x1007282fa\ncall    sub_100720070                                                  ; +0x3c, 0x1007282fc\ntest    eax, eax                                                       ; +0x41, 0x100728301\njz      short loc_1007282E8                                            ; +0x43, 0x100728303\nxor     r14d, r14d                                                     ; +0x45, 0x100728305\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x100728308\nmov     rdi, [rbx+298h]                                                ; +0x50, 0x100728310\nmov     esi, r14d                                                      ; +0x57, 0x100728317\ncall    sub_1007200C0                                                  ; +0x5a, 0x10072831a\nmovzx   ecx, byte ptr [rbx+454h]                                       ; +0x5f, 0x10072831f\nmov     [rax+660h], cl                                                 ; +0x66, 0x100728326\ninc     r14d                                                           ; +0x6c, 0x10072832c\nmov     rdi, [rbx+298h]                                                ; +0x6f, 0x10072832f\ncall    sub_100720070                                                  ; +0x76, 0x100728336\ncmp     r14d, eax                                                      ; +0x7b, 0x10072833b\njb      short loc_100728310                                            ; +0x7e, 0x10072833e\njmp     short loc_1007282E8                                            ; +0x80, 0x100728340\nmov     rcx, [rbx+430h]                                                ; +0x82, 0x100728342\ntest    rcx, rcx                                                       ; +0x89, 0x100728349\njz      short loc_1007282E8                                            ; +0x8c, 0x10072834c\nmov     [rcx+7Dh], al                                                  ; +0x8e, 0x10072834e\npop     rbx                                                            ; +0x91, 0x100728351\npop     r14                                                            ; +0x92, 0x100728352\npop     rbp                                                            ; +0x94, 0x100728354\nretn                                                                   ; +0x95, 0x100728355", "xrefs": ["ColorSelectPopup::init @ 0x100725f9d"], "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"}