{"type": "func", "start": 4226852, "end": 4226930, "name": "GJItemIcon::setOpacity", "pseudocode": "// \n// GJItemIcon::setOpacity from 0x407f24 to 0x407f72 (78 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'GJItemIcon::setOpacity @ 0x407f76\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  int v3; // r6\n  cocos2d::CCArray *v4; // r5\n  unsigned int i; // r4\n  int v6; // r0\n\n  v3 = a2;\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  a1->m_player->setOpacity(a1->m_player, v3);\n  v4 = a1->m_player->getChildren(a1->m_player);\n  if ( v4 )\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(v4); ++i )\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(v4, i);\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 448))(v6, v3);\n    }\n  }\n}", "assembly": "; \n; GJItemIcon::setOpacity from 0x407f24 to 0x407f72 (78 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'GJItemIcon::setOpacity @ 0x407f76\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            {R4-R6,LR}                                             ; +0x0, 0x407f24\nMOV             R4, R0                                                 ; +0x2, 0x407f26\nMOV             R6, R1                                                 ; +0x4, 0x407f28\nBL              _ZN7cocos2d8CCSprite10setOpacityEh; cocos2d::CCSprite::setOpacity(uchar) ; +0x6, 0x407f2a\nLDR.W           R0, [R4,#0x1FC]                                        ; +0xa, 0x407f2e\nMOV             R1, R6                                                 ; +0xe, 0x407f32\nLDR             R3, [R0]                                               ; +0x10, 0x407f34\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x12, 0x407f36\nBLX             R3                                                     ; +0x16, 0x407f3a\nLDR.W           R0, [R4,#0x1FC]                                        ; +0x18, 0x407f3c\nLDR             R3, [R0]                                               ; +0x1c, 0x407f40\nLDR.W           R3, [R3,#0xEC]                                         ; +0x1e, 0x407f42\nBLX             R3                                                     ; +0x22, 0x407f46\nMOV             R5, R0                                                 ; +0x24, 0x407f48\nCBNZ            R0, loc_407F4E                                         ; +0x26, 0x407f4a\nPOP             {R4-R6,PC}                                             ; +0x28, 0x407f4c\nMOVS            R4, #0                                                 ; +0x2a, 0x407f4e\nMOV             R0, R5; this                                           ; +0x2c, 0x407f50\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2e, 0x407f52\nCMP             R4, R0                                                 ; +0x32, 0x407f56\nBCS             locret_407F70                                          ; +0x34, 0x407f58\nMOV             R1, R4; unsigned int                                   ; +0x36, 0x407f5a\nMOV             R0, R5; this                                           ; +0x38, 0x407f5c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x3a, 0x407f5e\nMOV             R1, R6                                                 ; +0x3e, 0x407f62\nADDS            R4, #1                                                 ; +0x40, 0x407f64\nLDR             R3, [R0]                                               ; +0x42, 0x407f66\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x44, 0x407f68\nBLX             R3                                                     ; +0x48, 0x407f6c\nB               loc_407F50                                             ; +0x4a, 0x407f6e\nPOP             {R4-R6,PC}                                             ; +0x4c, 0x407f70", "xrefs": ["`non-virtual thunk to'GJItemIcon::setOpacity @ 0x407f76"], "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"}