{"type": "func", "start": 5371310624, "end": 5371310779, "name": "GJItemIcon::setOpacity", "pseudocode": "// \n// GJItemIcon::setOpacity from 0x14027b220 to 0x14027b2bb (155 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14056a758\n// > <???> @ 0x1406d110c\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 GJItemIcon::setOpacity(GJItemIcon *a1, unsigned __int8 a2)\n{\n  cocos2d::CCArray *v4; // rax\n  cocos2d::CCArray *v5; // rdi\n  unsigned int v6; // ebx\n  struct cocos2d::CCObject *v7; // rax\n\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_fTransformY + 320LL) + 40LL))(\n    *(_QWORD *)&a1->m_fTransformY + 320LL,\n    a2);\n  v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_fTransformY + 464LL))(*(_QWORD *)&a1->m_fTransformY);\n  v5 = v4;\n  if ( v4 )\n  {\n    v6 = 0;\n    if ( cocos2d::CCArray::count(v4) )\n    {\n      do\n      {\n        v7 = cocos2d::CCArray::objectAtIndex(v5, v6);\n        (*(void (__fastcall **)(int *, _QWORD))(*(_QWORD *)&v7[5].m_unknown2 + 40LL))(&v7[5].m_unknown2, a2);\n        ++v6;\n      }\n      while ( v6 < cocos2d::CCArray::count(v5) );\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::setOpacity from 0x14027b220 to 0x14027b2bb (155 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14056a758\n; > <???> @ 0x1406d110c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14027b220\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14027b225\npush    rdi                                                            ; +0xa, 0x14027b22a\nsub     rsp, 20h                                                       ; +0xb, 0x14027b22b\nmovzx   esi, dl                                                        ; +0xf, 0x14027b22f\nmov     rbx, rcx                                                       ; +0x12, 0x14027b232\ncall    cs:__imp_?setOpacity@CCSprite@cocos2d@@UEAAXE@Z; cocos2d::CCSprite::setOpacity(uchar) ; +0x15, 0x14027b235\nmov     rcx, [rbx+118h]                                                ; +0x1b, 0x14027b23b\nmovzx   edx, sil                                                       ; +0x22, 0x14027b242\nadd     rcx, 140h                                                      ; +0x26, 0x14027b246\nmov     rax, [rcx]                                                     ; +0x2d, 0x14027b24d\ncall    qword ptr [rax+28h]                                            ; +0x30, 0x14027b250\nmov     rcx, [rbx+118h]                                                ; +0x33, 0x14027b253\nmov     rax, [rcx]                                                     ; +0x3a, 0x14027b25a\ncall    qword ptr [rax+1D0h]                                           ; +0x3d, 0x14027b25d\nmov     rdi, rax                                                       ; +0x43, 0x14027b263\ntest    rax, rax                                                       ; +0x46, 0x14027b266\njz      short loc_14027B2AB                                            ; +0x49, 0x14027b269\nmov     rcx, rax                                                       ; +0x4b, 0x14027b26b\nxor     ebx, ebx                                                       ; +0x4e, 0x14027b26e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x50, 0x14027b270\ntest    eax, eax                                                       ; +0x56, 0x14027b276\njz      short loc_14027B2AB                                            ; +0x58, 0x14027b278\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x14027b27a\nmov     edx, ebx                                                       ; +0x60, 0x14027b280\nmov     rcx, rdi                                                       ; +0x62, 0x14027b282\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x65, 0x14027b285\nmovzx   edx, sil                                                       ; +0x6b, 0x14027b28b\nlea     rcx, [rax+140h]                                                ; +0x6f, 0x14027b28f\nmov     rax, [rcx]                                                     ; +0x76, 0x14027b296\ncall    qword ptr [rax+28h]                                            ; +0x79, 0x14027b299\nmov     rcx, rdi                                                       ; +0x7c, 0x14027b29c\ninc     ebx                                                            ; +0x7f, 0x14027b29f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x81, 0x14027b2a1\ncmp     ebx, eax                                                       ; +0x87, 0x14027b2a7\njb      short loc_14027B280                                            ; +0x89, 0x14027b2a9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8b, 0x14027b2ab\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x90, 0x14027b2b0\nadd     rsp, 20h                                                       ; +0x95, 0x14027b2b5\npop     rdi                                                            ; +0x99, 0x14027b2b9\nretn                                                                   ; +0x9a, 0x14027b2ba", "xrefs": ["<???> @ 0x14056a758", "<???> @ 0x1406d110c"], "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"}