{"type": "func", "start": 4298787896, "end": 4298788044, "name": "GJItemIcon::setOpacity", "pseudocode": "// \n// GJItemIcon::setOpacity from 0x1003a4c38 to 0x1003a4ccc (148 bytes)\n// \n// 2 xrefs:\n// > sub_1003A4CCC @ 0x1003a4cd0\n// > <???> @ 0x100944da8\n// \n// This function is hookable on this platform (idp: arm, 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:03:48 +0000\n// \n\n__int64 __fastcall GJItemIcon::setOpacity(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 v5; // x20\n  unsigned int v6; // w21\n  __int64 v7; // x0\n\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 600) + 912LL))(*(_QWORD *)(a1 + 600), a2);\n  result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 600) + 488LL))(*(_QWORD *)(a1 + 600));\n  if ( result )\n  {\n    v5 = result;\n    result = sub_1002E757C(result);\n    if ( (_DWORD)result )\n    {\n      v6 = 0;\n      do\n      {\n        v7 = sub_1002E75A0(v5, v6);\n        (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 912LL))(v7, a2);\n        ++v6;\n        result = sub_1002E757C(v5);\n      }\n      while ( v6 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJItemIcon::setOpacity from 0x1003a4c38 to 0x1003a4ccc (148 bytes)\n; \n; 2 xrefs:\n; > sub_1003A4CCC @ 0x1003a4cd0\n; > <???> @ 0x100944da8\n; \n; This function is hookable on this platform (idp: arm, 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:03:48 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1003a4c38\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003a4c3c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003a4c40\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003a4c44\nMOV             X19, X1                                                ; +0x10, 0x1003a4c48\nMOV             X20, X0                                                ; +0x14, 0x1003a4c4c\nBL              cocos2d__CCSprite__setOpacity                          ; +0x18, 0x1003a4c50\nLDR             X0, [X20,#0x258]                                       ; +0x1c, 0x1003a4c54\nLDR             X8, [X0]                                               ; +0x20, 0x1003a4c58\nLDR             X8, [X8,#0x390]                                        ; +0x24, 0x1003a4c5c\nMOV             X1, X19                                                ; +0x28, 0x1003a4c60\nBLR             X8                                                     ; +0x2c, 0x1003a4c64\nLDR             X0, [X20,#0x258]                                       ; +0x30, 0x1003a4c68\nLDR             X8, [X0]                                               ; +0x34, 0x1003a4c6c\nLDR             X8, [X8,#0x1E8]                                        ; +0x38, 0x1003a4c70\nBLR             X8                                                     ; +0x3c, 0x1003a4c74\nCBZ             X0, loc_1003A4CBC                                      ; +0x40, 0x1003a4c78\nMOV             X20, X0                                                ; +0x44, 0x1003a4c7c\nBL              sub_1002E757C                                          ; +0x48, 0x1003a4c80\nCBZ             W0, loc_1003A4CBC                                      ; +0x4c, 0x1003a4c84\nMOV             W21, #0                                                ; +0x50, 0x1003a4c88\nMOV             X0, X20                                                ; +0x54, 0x1003a4c8c\nMOV             X1, X21                                                ; +0x58, 0x1003a4c90\nBL              sub_1002E75A0                                          ; +0x5c, 0x1003a4c94\nLDR             X8, [X0]                                               ; +0x60, 0x1003a4c98\nLDR             X8, [X8,#0x390]                                        ; +0x64, 0x1003a4c9c\nMOV             X1, X19                                                ; +0x68, 0x1003a4ca0\nBLR             X8                                                     ; +0x6c, 0x1003a4ca4\nADD             W21, W21, #1                                           ; +0x70, 0x1003a4ca8\nMOV             X0, X20                                                ; +0x74, 0x1003a4cac\nBL              sub_1002E757C                                          ; +0x78, 0x1003a4cb0\nCMP             W21, W0                                                ; +0x7c, 0x1003a4cb4\nB.CC            loc_1003A4C8C                                          ; +0x80, 0x1003a4cb8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1003a4cbc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1003a4cc0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1003a4cc4\nRET                                                                    ; +0x90, 0x1003a4cc8", "xrefs": ["sub_1003A4CCC @ 0x1003a4cd0", "<???> @ 0x100944da8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}