{"type": "func", "start": 4298145568, "end": 4298145716, "name": "GJItemIcon::setOpacity", "pseudocode": "// \n// GJItemIcon::setOpacity from 0x100307f20 to 0x100307fb4 (148 bytes)\n// \n// 2 xrefs:\n// > sub_100307FB4 @ 0x100307fb8\n// > <???> @ 0x1007ecb60\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJItemIcon::setOpacity(GJItemIcon *a1, unsigned __int8 a2)\n{\n  __int64 v2; // x19\n  __int64 v4; // x0\n  __int64 v5; // x20\n  unsigned int v6; // w21\n  __int64 v7; // x0\n\n  v2 = a2;\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_player->setOpacity)(a1->m_player, v2);\n  v4 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_player->getChildren)(a1->m_player);\n  if ( v4 )\n  {\n    v5 = v4;\n    if ( (unsigned int)sub_10024A36C(v4) )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = sub_10024A388(v5, v6);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 896LL))(v7, v2);\n        ++v6;\n      }\n      while ( v6 < (unsigned int)sub_10024A36C(v5) );\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::setOpacity from 0x100307f20 to 0x100307fb4 (148 bytes)\n; \n; 2 xrefs:\n; > sub_100307FB4 @ 0x100307fb8\n; > <???> @ 0x1007ecb60\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100307f20\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100307f24\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100307f28\nADD             X29, SP, #0x20                                         ; +0xc, 0x100307f2c\nMOV             X19, X1                                                ; +0x10, 0x100307f30\nMOV             X20, X0                                                ; +0x14, 0x100307f34\nBL              cocos2d__CCSprite__setOpacity                          ; +0x18, 0x100307f38\nLDR             X0, [X20,#0x258]                                       ; +0x1c, 0x100307f3c\nLDR             X8, [X0]                                               ; +0x20, 0x100307f40\nLDR             X8, [X8,#0x380]                                        ; +0x24, 0x100307f44\nMOV             X1, X19                                                ; +0x28, 0x100307f48\nBLR             X8                                                     ; +0x2c, 0x100307f4c\nLDR             X0, [X20,#0x258]                                       ; +0x30, 0x100307f50\nLDR             X8, [X0]                                               ; +0x34, 0x100307f54\nLDR             X8, [X8,#0x1D8]                                        ; +0x38, 0x100307f58\nBLR             X8                                                     ; +0x3c, 0x100307f5c\nCBZ             X0, loc_100307FA4                                      ; +0x40, 0x100307f60\nMOV             X20, X0                                                ; +0x44, 0x100307f64\nBL              sub_10024A36C                                          ; +0x48, 0x100307f68\nCBZ             W0, loc_100307FA4                                      ; +0x4c, 0x100307f6c\nMOV             W21, #0                                                ; +0x50, 0x100307f70\nMOV             X0, X20                                                ; +0x54, 0x100307f74\nMOV             X1, X21                                                ; +0x58, 0x100307f78\nBL              sub_10024A388                                          ; +0x5c, 0x100307f7c\nLDR             X8, [X0]                                               ; +0x60, 0x100307f80\nLDR             X8, [X8,#0x380]                                        ; +0x64, 0x100307f84\nMOV             X1, X19                                                ; +0x68, 0x100307f88\nBLR             X8                                                     ; +0x6c, 0x100307f8c\nADD             W21, W21, #1                                           ; +0x70, 0x100307f90\nMOV             X0, X20                                                ; +0x74, 0x100307f94\nBL              sub_10024A36C                                          ; +0x78, 0x100307f98\nCMP             W21, W0                                                ; +0x7c, 0x100307f9c\nB.CC            loc_100307F74                                          ; +0x80, 0x100307fa0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x100307fa4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x100307fa8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x100307fac\nRET                                                                    ; +0x90, 0x100307fb0", "xrefs": ["sub_100307FB4 @ 0x100307fb8", "<???> @ 0x1007ecb60"], "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"}