{"type": "func", "start": 6443025152, "end": 6443025319, "name": "cocos2d::CCSprite::setChildOpacity", "pseudocode": "// \n// cocos2d::CCSprite::setChildOpacity from 0x18008c300 to 0x18008c3a7 (167 bytes)\n// \n// 9 xrefs:\n// > <???> @ 0x1800ebc28\n// > <???> @ 0x1800ec100\n// > <???> @ 0x1800ecc80\n// > <???> @ 0x180103b38\n// > <???> @ 0x180106b30\n// > <???> @ 0x18013d51c\n// > <???> @ 0x18013d574\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b5cdc\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 cocos2d::CCSprite::setChildOpacity(cocos2d::CCSprite *this, unsigned __int8 a2)\n{\n  cocos2d::CCArray *m_pChildren; // rax\n  cocos2d::ccArray *data; // rbx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rbx\n  cocos2d::CCObject **i; // rdi\n  __int64 v8; // rax\n\n  if ( this->m_bHasChildren )\n  {\n    m_pChildren = this->m_pChildren;\n    if ( m_pChildren )\n    {\n      data = m_pChildren->data;\n      num = data->num;\n      if ( (_DWORD)num )\n      {\n        arr = data->arr;\n        for ( i = &arr[num - 1]; arr <= i; ++arr )\n        {\n          if ( !*arr )\n            break;\n          v8 = _RTDynamicCast(\n                 *arr,\n                 0,\n                 &cocos2d::CCObject `RTTI Type Descriptor',\n                 &cocos2d::CCSprite `RTTI Type Descriptor',\n                 0);\n          if ( v8 )\n            (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v8 + 320) + 40LL))(v8 + 320, a2);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCSprite::setChildOpacity from 0x18008c300 to 0x18008c3a7 (167 bytes)\n; \n; 9 xrefs:\n; > <???> @ 0x1800ebc28\n; > <???> @ 0x1800ec100\n; > <???> @ 0x1800ecc80\n; > <???> @ 0x180103b38\n; > <???> @ 0x180106b30\n; > <???> @ 0x18013d51c\n; > <???> @ 0x18013d574\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b5cdc\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    rsi                                                            ; +0x0, 0x18008c300\nsub     rsp, 30h                                                       ; +0x2, 0x18008c302\ncmp     byte ptr [rcx+17Ah], 0                                         ; +0x6, 0x18008c306\nmovzx   esi, dl                                                        ; +0xd, 0x18008c30d\njz      loc_18008C3A1                                                  ; +0x10, 0x18008c310\nmov     rax, [rcx+0D0h]                                                ; +0x16, 0x18008c316\ntest    rax, rax                                                       ; +0x1d, 0x18008c31d\njz      loc_18008C3A1                                                  ; +0x20, 0x18008c320\nmov     [rsp+38h+arg_0], rbx                                           ; +0x26, 0x18008c326\nmov     rbx, [rax+38h]                                                 ; +0x2b, 0x18008c32b\nmov     eax, [rbx]                                                     ; +0x2f, 0x18008c32f\ntest    eax, eax                                                       ; +0x31, 0x18008c331\njz      short loc_18008C39C                                            ; +0x33, 0x18008c333\nmov     rbx, [rbx+10h]                                                 ; +0x35, 0x18008c335\nmov     [rsp+38h+arg_10], rdi                                          ; +0x39, 0x18008c339\nlea     rdi, [rax-1]                                                   ; +0x3e, 0x18008c33e\nlea     rdi, [rbx+rdi*8]                                               ; +0x42, 0x18008c342\ncmp     rbx, rdi                                                       ; +0x46, 0x18008c346\nja      short loc_18008C397                                            ; +0x49, 0x18008c349\nmov     [rsp+38h+arg_8], rbp                                           ; +0x4b, 0x18008c34b\nxor     ebp, ebp                                                       ; +0x50, 0x18008c350\nmov     rcx, [rbx]                                                     ; +0x52, 0x18008c352\ntest    rcx, rcx                                                       ; +0x55, 0x18008c355\njz      short loc_18008C392                                            ; +0x58, 0x18008c358\nlea     r9, ??_R0?AVCCSprite@cocos2d@@@8; cocos2d::CCSprite `RTTI Type Descriptor' ; +0x5a, 0x18008c35a\nmov     [rsp+38h+var_18], ebp                                          ; +0x61, 0x18008c361\nlea     r8, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x65, 0x18008c365\nxor     edx, edx                                                       ; +0x6c, 0x18008c36c\ncall    __RTDynamicCast                                                ; +0x6e, 0x18008c36e\ntest    rax, rax                                                       ; +0x73, 0x18008c373\njz      short loc_18008C389                                            ; +0x76, 0x18008c376\nlea     rcx, [rax+140h]                                                ; +0x78, 0x18008c378\nmovzx   edx, sil                                                       ; +0x7f, 0x18008c37f\nmov     rax, [rcx]                                                     ; +0x83, 0x18008c383\ncall    qword ptr [rax+28h]                                            ; +0x86, 0x18008c386\nadd     rbx, 8                                                         ; +0x89, 0x18008c389\ncmp     rbx, rdi                                                       ; +0x8d, 0x18008c38d\njbe     short loc_18008C352                                            ; +0x90, 0x18008c390\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x92, 0x18008c392\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x97, 0x18008c397\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x9c, 0x18008c39c\nadd     rsp, 30h                                                       ; +0xa1, 0x18008c3a1\npop     rsi                                                            ; +0xa5, 0x18008c3a5\nretn                                                                   ; +0xa6, 0x18008c3a6", "xrefs": ["<???> @ 0x1800ebc28", "<???> @ 0x1800ec100", "<???> @ 0x1800ecc80", "<???> @ 0x180103b38", "<???> @ 0x180106b30", "<???> @ 0x18013d51c", "<???> @ 0x18013d574", "<???> @ 0x1801438a8", "<???> @ 0x1801b5cdc"], "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"}