{"type": "func", "start": 5372394608, "end": 5372394763, "name": "GJItemIcon::setOpacity", "pseudocode": "// \n// GJItemIcon::setOpacity from 0x140383c70 to 0x140383d0b (155 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14076fbf0\n// > <???> @ 0x140922a24\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:06 +0000\n// \n\nint __fastcall GJItemIcon::setOpacity(cocos2d::CCSprite *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 + 35) + 320LL) + 40LL))(\n    *((_QWORD *)a1 + 35) + 320LL,\n    a2);\n  v4 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 35) + 480LL))(*((_QWORD *)a1 + 35));\n  v5 = v4;\n  if ( v4 )\n  {\n    v6 = 0;\n    for ( LODWORD(v4) = cocos2d::CCArray::count(v4); v6 < (unsigned int)v4; LODWORD(v4) = cocos2d::CCArray::count(v5) )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(v5, v6);\n      (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v7 + 40) + 40LL))((__int64)v7 + 320, a2);\n      ++v6;\n    }\n  }\n  return (int)v4;\n}", "assembly": "; \n; GJItemIcon::setOpacity from 0x140383c70 to 0x140383d0b (155 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14076fbf0\n; > <???> @ 0x140922a24\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140383c70\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140383c75\npush    rdi                                                            ; +0xa, 0x140383c7a\nsub     rsp, 20h                                                       ; +0xb, 0x140383c7b\nmovzx   esi, dl                                                        ; +0xf, 0x140383c7f\nmov     rbx, rcx                                                       ; +0x12, 0x140383c82\ncall    cs:__imp_?setOpacity@CCSprite@cocos2d@@UEAAXE@Z; cocos2d::CCSprite::setOpacity(uchar) ; +0x15, 0x140383c85\nmov     rcx, [rbx+118h]                                                ; +0x1b, 0x140383c8b\nmovzx   edx, sil                                                       ; +0x22, 0x140383c92\nadd     rcx, 140h                                                      ; +0x26, 0x140383c96\nmov     rax, [rcx]                                                     ; +0x2d, 0x140383c9d\ncall    qword ptr [rax+28h]                                            ; +0x30, 0x140383ca0\nmov     rcx, [rbx+118h]                                                ; +0x33, 0x140383ca3\nmov     rax, [rcx]                                                     ; +0x3a, 0x140383caa\ncall    qword ptr [rax+1E0h]                                           ; +0x3d, 0x140383cad\nmov     rdi, rax                                                       ; +0x43, 0x140383cb3\ntest    rax, rax                                                       ; +0x46, 0x140383cb6\njz      short loc_140383CFB                                            ; +0x49, 0x140383cb9\nmov     rcx, rax                                                       ; +0x4b, 0x140383cbb\nxor     ebx, ebx                                                       ; +0x4e, 0x140383cbe\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x50, 0x140383cc0\ntest    eax, eax                                                       ; +0x56, 0x140383cc6\njz      short loc_140383CFB                                            ; +0x58, 0x140383cc8\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x140383cca\nmov     edx, ebx                                                       ; +0x60, 0x140383cd0\nmov     rcx, rdi                                                       ; +0x62, 0x140383cd2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x65, 0x140383cd5\nmovzx   edx, sil                                                       ; +0x6b, 0x140383cdb\nlea     rcx, [rax+140h]                                                ; +0x6f, 0x140383cdf\nmov     rax, [rcx]                                                     ; +0x76, 0x140383ce6\ncall    qword ptr [rax+28h]                                            ; +0x79, 0x140383ce9\nmov     rcx, rdi                                                       ; +0x7c, 0x140383cec\ninc     ebx                                                            ; +0x7f, 0x140383cef\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x81, 0x140383cf1\ncmp     ebx, eax                                                       ; +0x87, 0x140383cf7\njb      short loc_140383CD0                                            ; +0x89, 0x140383cf9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8b, 0x140383cfb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x90, 0x140383d00\nadd     rsp, 20h                                                       ; +0x95, 0x140383d05\npop     rdi                                                            ; +0x99, 0x140383d09\nretn                                                                   ; +0x9a, 0x140383d0a", "xrefs": ["<???> @ 0x14076fbf0", "<???> @ 0x140922a24"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}