{"type": "func", "start": 5138368, "end": 5138478, "name": "AnimatedGameObject::setOpacity", "pseudocode": "// \n// AnimatedGameObject::setOpacity from 0x4e67c0 to 0x4e682e (110 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x4e6832\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:05 +0000\n// \n\nunsigned int __fastcall AnimatedGameObject::setOpacity(AnimatedGameObject *this, unsigned __int8 a2)\n{\n  int v3; // r5\n  unsigned int result; // r0\n  int v5; // r0\n  unsigned int v6; // r4\n  cocos2d::CCArray *v7; // r6\n  int v8; // r0\n\n  GameObject::setOpacity(this, a2);\n  v3 = (*(int (__fastcall **)(AnimatedGameObject *))(*(_DWORD *)this + 448))(this);\n  (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 319) + 456))(*((_DWORD *)this + 319), v3);\n  result = *((_DWORD *)this + 320);\n  if ( result )\n  {\n    if ( *((_BYTE *)this + 884) )\n      v3 = 0;\n    (*(void (__fastcall **)(unsigned int, int))(*(_DWORD *)result + 456))(result, v3);\n    v5 = *((_DWORD *)this + 320);\n    v6 = 0;\n    v7 = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 244))(v5);\n    while ( 1 )\n    {\n      result = cocos2d::CCArray::count(v7);\n      if ( v6 >= result )\n        break;\n      v8 = cocos2d::CCArray::objectAtIndex(v7, v6++);\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 456))(v8, v3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; AnimatedGameObject::setOpacity from 0x4e67c0 to 0x4e682e (110 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x4e6832\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:51:05 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x4e67c0\nMOV             R4, R0                                                 ; +0x2, 0x4e67c2\nBL              _ZN10GameObject10setOpacityEh; GameObject::setOpacity(uchar) ; +0x4, 0x4e67c4\nLDR             R3, [R4]                                               ; +0x8, 0x4e67c8\nMOV             R0, R4                                                 ; +0xa, 0x4e67ca\nLDR.W           R3, [R3,#0x1C0]                                        ; +0xc, 0x4e67cc\nBLX             R3                                                     ; +0x10, 0x4e67d0\nMOV             R5, R0                                                 ; +0x12, 0x4e67d2\nLDR.W           R0, [R4,#0x4FC]                                        ; +0x14, 0x4e67d4\nMOV             R1, R5                                                 ; +0x18, 0x4e67d8\nLDR             R3, [R0]                                               ; +0x1a, 0x4e67da\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x1c, 0x4e67dc\nBLX             R3                                                     ; +0x20, 0x4e67e0\nLDR.W           R0, [R4,#0x500]                                        ; +0x22, 0x4e67e2\nCBZ             R0, locret_4E682C                                      ; +0x26, 0x4e67e6\nLDRB.W          R3, [R4,#0x374]                                        ; +0x28, 0x4e67e8\nCMP             R3, #0                                                 ; +0x2c, 0x4e67ec\nLDR             R3, [R0]                                               ; +0x2e, 0x4e67ee\nIT NE                                                                  ; +0x30, 0x4e67f0\nMOVNE           R5, #0                                                 ; +0x32, 0x4e67f2\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x34, 0x4e67f4\nMOV             R1, R5                                                 ; +0x38, 0x4e67f8\nBLX             R3                                                     ; +0x3a, 0x4e67fa\nLDR.W           R0, [R4,#0x500]                                        ; +0x3c, 0x4e67fc\nMOVS            R4, #0                                                 ; +0x40, 0x4e6800\nLDR             R3, [R0]                                               ; +0x42, 0x4e6802\nLDR.W           R3, [R3,#0xF4]                                         ; +0x44, 0x4e6804\nBLX             R3                                                     ; +0x48, 0x4e6808\nMOV             R6, R0                                                 ; +0x4a, 0x4e680a\nMOV             R0, R6; this                                           ; +0x4c, 0x4e680c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4e, 0x4e680e\nCMP             R4, R0                                                 ; +0x52, 0x4e6812\nBCS             locret_4E682C                                          ; +0x54, 0x4e6814\nMOV             R1, R4; unsigned int                                   ; +0x56, 0x4e6816\nMOV             R0, R6; this                                           ; +0x58, 0x4e6818\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x5a, 0x4e681a\nMOV             R1, R5                                                 ; +0x5e, 0x4e681e\nADDS            R4, #1                                                 ; +0x60, 0x4e6820\nLDR             R3, [R0]                                               ; +0x62, 0x4e6822\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x64, 0x4e6824\nBLX             R3                                                     ; +0x68, 0x4e6828\nB               loc_4E680C                                             ; +0x6a, 0x4e682a\nPOP             {R4-R6,PC}                                             ; +0x6c, 0x4e682c", "xrefs": ["`non-virtual thunk to'AnimatedGameObject::setOpacity @ 0x4e6832"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}