{"type": "func", "start": 4082184, "end": 4082294, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x3e4a08 to 0x3e4a76 (110 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x3e4a7a\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 AnimatedGameObject::setOpacity(AnimatedGameObject *a1, unsigned __int8 a2)\n{\n  int v3; // r5\n  cocos2d::CCSprite *m_childSprite; // r0\n  cocos2d::CCSprite *v5; // r0\n  unsigned int v6; // r4\n  cocos2d::CCArray *v7; // r6\n  int v8; // r0\n\n  GameObject::setOpacity(a1, a2);\n  v3 = ((int (__fastcall *)(AnimatedGameObject *))a1->getOpacity)(a1);\n  a1->m_animatedSprite->setOpacity(a1->m_animatedSprite, v3);\n  m_childSprite = a1->m_childSprite;\n  if ( m_childSprite )\n  {\n    if ( a1->m_hasNoGlow )\n      v3 = 0;\n    m_childSprite->setOpacity(m_childSprite, v3);\n    v5 = a1->m_childSprite;\n    v6 = 0;\n    v7 = v5->getChildren(v5);\n    while ( v6 < cocos2d::CCArray::count(v7) )\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(v7, v6++);\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 448))(v8, v3);\n    }\n  }\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x3e4a08 to 0x3e4a76 (110 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x3e4a7a\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, 0x3e4a08\nMOV             R4, R0                                                 ; +0x2, 0x3e4a0a\nBL              _ZN10GameObject10setOpacityEh; GameObject::setOpacity(uchar) ; +0x4, 0x3e4a0c\nLDR             R3, [R4]                                               ; +0x8, 0x3e4a10\nMOV             R0, R4                                                 ; +0xa, 0x3e4a12\nLDR.W           R3, [R3,#0x1B8]                                        ; +0xc, 0x3e4a14\nBLX             R3                                                     ; +0x10, 0x3e4a18\nMOV             R5, R0                                                 ; +0x12, 0x3e4a1a\nLDR.W           R0, [R4,#0x4F4]                                        ; +0x14, 0x3e4a1c\nMOV             R1, R5                                                 ; +0x18, 0x3e4a20\nLDR             R3, [R0]                                               ; +0x1a, 0x3e4a22\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x1c, 0x3e4a24\nBLX             R3                                                     ; +0x20, 0x3e4a28\nLDR.W           R0, [R4,#0x4F8]                                        ; +0x22, 0x3e4a2a\nCBZ             R0, locret_3E4A74                                      ; +0x26, 0x3e4a2e\nLDRB.W          R3, [R4,#0x36C]                                        ; +0x28, 0x3e4a30\nCMP             R3, #0                                                 ; +0x2c, 0x3e4a34\nLDR             R3, [R0]                                               ; +0x2e, 0x3e4a36\nIT NE                                                                  ; +0x30, 0x3e4a38\nMOVNE           R5, #0                                                 ; +0x32, 0x3e4a3a\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x34, 0x3e4a3c\nMOV             R1, R5                                                 ; +0x38, 0x3e4a40\nBLX             R3                                                     ; +0x3a, 0x3e4a42\nLDR.W           R0, [R4,#0x4F8]                                        ; +0x3c, 0x3e4a44\nMOVS            R4, #0                                                 ; +0x40, 0x3e4a48\nLDR             R3, [R0]                                               ; +0x42, 0x3e4a4a\nLDR.W           R3, [R3,#0xEC]                                         ; +0x44, 0x3e4a4c\nBLX             R3                                                     ; +0x48, 0x3e4a50\nMOV             R6, R0                                                 ; +0x4a, 0x3e4a52\nMOV             R0, R6; this                                           ; +0x4c, 0x3e4a54\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4e, 0x3e4a56\nCMP             R4, R0                                                 ; +0x52, 0x3e4a5a\nBCS             locret_3E4A74                                          ; +0x54, 0x3e4a5c\nMOV             R1, R4; unsigned int                                   ; +0x56, 0x3e4a5e\nMOV             R0, R6; this                                           ; +0x58, 0x3e4a60\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x3e4a62\nMOV             R1, R5                                                 ; +0x5e, 0x3e4a66\nADDS            R4, #1                                                 ; +0x60, 0x3e4a68\nLDR             R3, [R0]                                               ; +0x62, 0x3e4a6a\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x64, 0x3e4a6c\nBLX             R3                                                     ; +0x68, 0x3e4a70\nB               loc_3E4A54                                             ; +0x6a, 0x3e4a72\nPOP             {R4-R6,PC}                                             ; +0x6c, 0x3e4a74", "xrefs": ["`non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x3e4a7a"], "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"}