{"type": "func", "start": 4298577424, "end": 4298577573, "name": "GJItemIcon::setOpacity", "pseudocode": "// \n// GJItemIcon::setOpacity from 0x100371610 to 0x1003716a5 (149 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10091c628\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 GJItemIcon::setOpacity(GJItemIcon *a1, unsigned __int8 a2)\n{\n  __int64 v2; // rax\n  __int64 v3; // rbx\n  unsigned int v4; // r15d\n  __int64 v5; // rax\n\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_player->setOpacity)(a1->m_player, a2);\n  v2 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_player->getChildren)(a1->m_player);\n  if ( v2 )\n  {\n    v3 = v2;\n    if ( (unsigned int)sub_100720070(v2) )\n    {\n      v4 = 0;\n      do\n      {\n        v5 = sub_1007200C0(v3, v4);\n        (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 896LL))(v5, a2);\n        ++v4;\n      }\n      while ( v4 < (unsigned int)sub_100720070(v3) );\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::setOpacity from 0x100371610 to 0x1003716a5 (149 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10091c628\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, 0x100371610\nmov     rbp, rsp                                                       ; +0x1, 0x100371611\npush    r15                                                            ; +0x4, 0x100371614\npush    r14                                                            ; +0x6, 0x100371616\npush    rbx                                                            ; +0x8, 0x100371618\npush    rax                                                            ; +0x9, 0x100371619\nmov     r14d, esi                                                      ; +0xa, 0x10037161a\nmov     rbx, rdi                                                       ; +0xd, 0x10037161d\ncall    cocos2d__CCSprite__setOpacity                                  ; +0x10, 0x100371620\nmov     rdi, [rbx+258h]                                                ; +0x15, 0x100371625\nmov     rax, [rdi]                                                     ; +0x1c, 0x10037162c\nmov     esi, r14d                                                      ; +0x1f, 0x10037162f\ncall    qword ptr [rax+380h]                                           ; +0x22, 0x100371632\nmov     rdi, [rbx+258h]                                                ; +0x28, 0x100371638\nmov     rax, [rdi]                                                     ; +0x2f, 0x10037163f\ncall    qword ptr [rax+1D8h]                                           ; +0x32, 0x100371642\ntest    rax, rax                                                       ; +0x38, 0x100371648\njz      short loc_10037169A                                            ; +0x3b, 0x10037164b\nmov     rbx, rax                                                       ; +0x3d, 0x10037164d\nmov     rdi, rax                                                       ; +0x40, 0x100371650\ncall    sub_100720070                                                  ; +0x43, 0x100371653\ntest    eax, eax                                                       ; +0x48, 0x100371658\njz      short loc_10037169A                                            ; +0x4a, 0x10037165a\nxor     r15d, r15d                                                     ; +0x4c, 0x10037165c\nmovzx   r14d, r14b                                                     ; +0x4f, 0x10037165f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x53, 0x100371663\nmov     rdi, rbx                                                       ; +0x60, 0x100371670\nmov     esi, r15d                                                      ; +0x63, 0x100371673\ncall    sub_1007200C0                                                  ; +0x66, 0x100371676\nmov     rcx, [rax]                                                     ; +0x6b, 0x10037167b\nmov     rdi, rax                                                       ; +0x6e, 0x10037167e\nmov     esi, r14d                                                      ; +0x71, 0x100371681\ncall    qword ptr [rcx+380h]                                           ; +0x74, 0x100371684\ninc     r15d                                                           ; +0x7a, 0x10037168a\nmov     rdi, rbx                                                       ; +0x7d, 0x10037168d\ncall    sub_100720070                                                  ; +0x80, 0x100371690\ncmp     r15d, eax                                                      ; +0x85, 0x100371695\njb      short loc_100371670                                            ; +0x88, 0x100371698\nadd     rsp, 8                                                         ; +0x8a, 0x10037169a\npop     rbx                                                            ; +0x8e, 0x10037169e\npop     r14                                                            ; +0x8f, 0x10037169f\npop     r15                                                            ; +0x91, 0x1003716a1\npop     rbp                                                            ; +0x93, 0x1003716a3\nretn                                                                   ; +0x94, 0x1003716a4", "xrefs": ["<???> @ 0x10091c628"], "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"}