{"type": "func", "start": 7972920, "end": 7973076, "name": "GJItemIcon::setOpacity", "pseudocode": "// \n// GJItemIcon::setOpacity from 0x79a838 to 0x79a8d4 (156 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'GJItemIcon::setOpacity @ 0x79a8d8\n// > <???> @ 0x8d3f0\n// > <???> @ 0x11795d0\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  unsigned int v2; // w21\n  unsigned int v4; // w19\n  cocos2d::CCArray *v5; // x20\n  __int64 v6; // x0\n  bool v7; // cf\n  unsigned int v8; // w1\n\n  v2 = a2;\n  v4 = 0;\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  a1->m_player->setOpacity(a1->m_player, v2);\n  v5 = a1->m_player->getChildren(a1->m_player);\n  if ( v5 )\n  {\n    while ( 1 )\n    {\n      v7 = v4 >= (unsigned int)cocos2d::CCArray::count(v5);\n      v8 = v4++;\n      if ( v7 )\n        break;\n      v6 = cocos2d::CCArray::objectAtIndex(v5, v8);\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 896LL))(v6, v2);\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::setOpacity from 0x79a838 to 0x79a8d4 (156 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'GJItemIcon::setOpacity @ 0x79a8d8\n; > <???> @ 0x8d3f0\n; > <???> @ 0x11795d0\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x79a838\nMOV             X29, SP                                                ; +0x4, 0x79a83c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x79a840\nUXTB            W21, W1                                                ; +0xc, 0x79a844\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0x79a848\nMOV             W1, W21; unsigned __int8                               ; +0x14, 0x79a84c\nMOV             X20, X0                                                ; +0x18, 0x79a850\nMOV             W19, #0                                                ; +0x1c, 0x79a854\nBL              _ZN7cocos2d8CCSprite10setOpacityEh; cocos2d::CCSprite::setOpacity(uchar) ; +0x20, 0x79a858\nLDR             X2, [X20,#0x258]                                       ; +0x24, 0x79a85c\nMOV             W1, W21                                                ; +0x28, 0x79a860\nMOV             X0, X2                                                 ; +0x2c, 0x79a864\nLDR             X2, [X2]                                               ; +0x30, 0x79a868\nLDR             X2, [X2,#0x380]                                        ; +0x34, 0x79a86c\nBLR             X2                                                     ; +0x38, 0x79a870\nLDR             X1, [X20,#0x258]                                       ; +0x3c, 0x79a874\nMOV             X0, X1                                                 ; +0x40, 0x79a878\nLDR             X1, [X1]                                               ; +0x44, 0x79a87c\nLDR             X1, [X1,#0x1D8]                                        ; +0x48, 0x79a880\nBLR             X1                                                     ; +0x4c, 0x79a884\nMOV             X20, X0                                                ; +0x50, 0x79a888\nCBNZ            X0, loc_79A8A8                                         ; +0x54, 0x79a88c\nB               loc_79A8C4                                             ; +0x58, 0x79a890\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x5c, 0x79a894\nLDR             X2, [X0]                                               ; +0x60, 0x79a898\nMOV             W1, W21                                                ; +0x64, 0x79a89c\nLDR             X2, [X2,#0x380]                                        ; +0x68, 0x79a8a0\nBLR             X2                                                     ; +0x6c, 0x79a8a4\nMOV             X0, X20; this                                          ; +0x70, 0x79a8a8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x74, 0x79a8ac\nCMP             W19, W0                                                ; +0x78, 0x79a8b0\nMOV             W1, W19; unsigned int                                  ; +0x7c, 0x79a8b4\nMOV             X0, X20; this                                          ; +0x80, 0x79a8b8\nADD             W19, W19, #1                                           ; +0x84, 0x79a8bc\nB.CC            loc_79A894                                             ; +0x88, 0x79a8c0\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x8c, 0x79a8c4\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x90, 0x79a8c8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x94, 0x79a8cc\nRET                                                                    ; +0x98, 0x79a8d0", "xrefs": ["`non-virtual thunk to'GJItemIcon::setOpacity @ 0x79a8d8", "<???> @ 0x8d3f0", "<???> @ 0x11795d0"], "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"}