{"type": "func", "start": 3042966, "end": 3043086, "name": "CCPartAnimSprite::setOpacity", "pseudocode": "// \n// CCPartAnimSprite::setOpacity from 0x2e6e96 to 0x2e6f0e (120 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x2e6f12\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 CCPartAnimSprite::setOpacity(CCPartAnimSprite *a1, unsigned __int8 a2)\n{\n  int v3; // r7\n  cocos2d::CCObject **arr; // r5\n  cocos2d::CCObject **v5; // r6\n  cocos2d::CCObject **v6; // r4\n  int v7; // r0\n  int v8; // t1\n\n  v3 = a2;\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  if ( a1->getChildren(a1) && a1->getChildren(a1)->data->num )\n  {\n    arr = a1->getChildren(a1)->data->arr;\n    v5 = a1->getChildren(a1)->data->arr;\n    v6 = &v5[a1->getChildren(a1)->data->num] + 0x3FFFFFFF;\n    while ( arr <= v6 )\n    {\n      v8 = (int)*arr++;\n      v7 = v8;\n      if ( !v8 )\n        break;\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 448))(v7, v3);\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setOpacity from 0x2e6e96 to 0x2e6f0e (120 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x2e6f12\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            {R3-R7,LR}                                             ; +0x0, 0x2e6e96\nMOV             R4, R0                                                 ; +0x2, 0x2e6e98\nMOV             R7, R1                                                 ; +0x4, 0x2e6e9a\nBL              _ZN7cocos2d8CCSprite10setOpacityEh; cocos2d::CCSprite::setOpacity(uchar) ; +0x6, 0x2e6e9c\nLDR             R3, [R4]                                               ; +0xa, 0x2e6ea0\nMOV             R0, R4                                                 ; +0xc, 0x2e6ea2\nLDR.W           R3, [R3,#0xEC]                                         ; +0xe, 0x2e6ea4\nBLX             R3                                                     ; +0x12, 0x2e6ea8\nCMP             R0, #0                                                 ; +0x14, 0x2e6eaa\nBEQ             locret_2E6F0C                                          ; +0x16, 0x2e6eac\nLDR             R3, [R4]                                               ; +0x18, 0x2e6eae\nMOV             R0, R4                                                 ; +0x1a, 0x2e6eb0\nLDR.W           R3, [R3,#0xEC]                                         ; +0x1c, 0x2e6eb2\nBLX             R3                                                     ; +0x20, 0x2e6eb6\nLDR             R3, [R0,#0x34]                                         ; +0x22, 0x2e6eb8\nLDR             R3, [R3]                                               ; +0x24, 0x2e6eba\nCBNZ            R3, loc_2E6EC0                                         ; +0x26, 0x2e6ebc\nPOP             {R3-R7,PC}                                             ; +0x28, 0x2e6ebe\nLDR             R3, [R4]                                               ; +0x2a, 0x2e6ec0\nMOV             R0, R4                                                 ; +0x2c, 0x2e6ec2\nLDR.W           R3, [R3,#0xEC]                                         ; +0x2e, 0x2e6ec4\nBLX             R3                                                     ; +0x32, 0x2e6ec8\nLDR             R3, [R0,#0x34]                                         ; +0x34, 0x2e6eca\nMOV             R0, R4                                                 ; +0x36, 0x2e6ecc\nLDR             R5, [R3,#0xC]                                          ; +0x38, 0x2e6ece\nLDR             R3, [R4]                                               ; +0x3a, 0x2e6ed0\nLDR.W           R3, [R3,#0xEC]                                         ; +0x3c, 0x2e6ed2\nBLX             R3                                                     ; +0x40, 0x2e6ed6\nLDR             R3, [R0,#0x34]                                         ; +0x42, 0x2e6ed8\nMOV             R0, R4                                                 ; +0x44, 0x2e6eda\nLDR             R6, [R3,#0xC]                                          ; +0x46, 0x2e6edc\nLDR             R3, [R4]                                               ; +0x48, 0x2e6ede\nLDR.W           R3, [R3,#0xEC]                                         ; +0x4a, 0x2e6ee0\nBLX             R3                                                     ; +0x4e, 0x2e6ee4\nLDR             R3, [R0,#0x34]                                         ; +0x50, 0x2e6ee6\nLDR             R3, [R3]                                               ; +0x52, 0x2e6ee8\nADD.W           R3, R3, #0x40000000                                    ; +0x54, 0x2e6eea\nSUBS            R3, #1                                                 ; +0x58, 0x2e6eee\nADD.W           R4, R6, R3,LSL#2                                       ; +0x5a, 0x2e6ef0\nCMP             R5, R4                                                 ; +0x5e, 0x2e6ef4\nBHI             locret_2E6F0C                                          ; +0x60, 0x2e6ef6\nLDR.W           R0, [R5],#4                                            ; +0x62, 0x2e6ef8\nCBZ             R0, locret_2E6F0A                                      ; +0x66, 0x2e6efc\nLDR             R3, [R0]                                               ; +0x68, 0x2e6efe\nMOV             R1, R7                                                 ; +0x6a, 0x2e6f00\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x6c, 0x2e6f02\nBLX             R3                                                     ; +0x70, 0x2e6f06\nB               loc_2E6EF4                                             ; +0x72, 0x2e6f08\nPOP             {R3-R7,PC}                                             ; +0x74, 0x2e6f0a\nPOP             {R3-R7,PC}                                             ; +0x76, 0x2e6f0c", "xrefs": ["`non-virtual thunk to'CCPartAnimSprite::setOpacity @ 0x2e6f12"], "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"}