{"type": "func", "start": 4295489072, "end": 4295489284, "name": "CCPartAnimSprite::setOpacity", "pseudocode": "// \n// CCPartAnimSprite::setOpacity from 0x10007f630 to 0x10007f704 (212 bytes)\n// \n// 2 xrefs:\n// > sub_10007F704 @ 0x10007f708\n// > <???> @ 0x10077b560\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall CCPartAnimSprite::setOpacity(CCPartAnimSprite *a1, unsigned __int8 a2)\n{\n  __int64 v2; // x19\n  _QWORD *v4; // x21\n  __int64 v5; // x22\n  unsigned __int64 v6; // x20\n\n  v2 = a2;\n  cocos2d::CCSprite::setOpacity(a1, a2);\n  if ( ((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1)\n    && **(_DWORD **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) )\n  {\n    v4 = *(_QWORD **)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n    v5 = *(_QWORD *)(*(_QWORD *)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) + 16LL);\n    v6 = v5 + 8LL * **(unsigned int **)(((__int64 (__fastcall *)(CCPartAnimSprite *))a1->getChildren)(a1) + 56) - 8;\n    while ( (unsigned __int64)v4 <= v6 && *v4 )\n    {\n      (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v4 + 896LL))(*v4, v2);\n      ++v4;\n    }\n  }\n}", "assembly": "; \n; CCPartAnimSprite::setOpacity from 0x10007f630 to 0x10007f704 (212 bytes)\n; \n; 2 xrefs:\n; > sub_10007F704 @ 0x10007f708\n; > <???> @ 0x10077b560\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10007f630\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10007f634\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10007f638\nADD             X29, SP, #0x20                                         ; +0xc, 0x10007f63c\nMOV             X19, X1                                                ; +0x10, 0x10007f640\nMOV             X20, X0                                                ; +0x14, 0x10007f644\nBL              cocos2d__CCSprite__setOpacity                          ; +0x18, 0x10007f648\nLDR             X8, [X20]                                              ; +0x1c, 0x10007f64c\nLDR             X8, [X8,#0x1D8]                                        ; +0x20, 0x10007f650\nMOV             X0, X20                                                ; +0x24, 0x10007f654\nBLR             X8                                                     ; +0x28, 0x10007f658\nCBZ             X0, loc_10007F6F4                                      ; +0x2c, 0x10007f65c\nLDR             X8, [X20]                                              ; +0x30, 0x10007f660\nLDR             X8, [X8,#0x1D8]                                        ; +0x34, 0x10007f664\nMOV             X0, X20                                                ; +0x38, 0x10007f668\nBLR             X8                                                     ; +0x3c, 0x10007f66c\nLDR             X8, [X0,#0x38]                                         ; +0x40, 0x10007f670\nLDR             W8, [X8]                                               ; +0x44, 0x10007f674\nCBZ             W8, loc_10007F6F4                                      ; +0x48, 0x10007f678\nLDR             X8, [X20]                                              ; +0x4c, 0x10007f67c\nLDR             X8, [X8,#0x1D8]                                        ; +0x50, 0x10007f680\nMOV             X0, X20                                                ; +0x54, 0x10007f684\nBLR             X8                                                     ; +0x58, 0x10007f688\nLDR             X8, [X0,#0x38]                                         ; +0x5c, 0x10007f68c\nLDR             X21, [X8,#0x10]                                        ; +0x60, 0x10007f690\nLDR             X8, [X20]                                              ; +0x64, 0x10007f694\nLDR             X8, [X8,#0x1D8]                                        ; +0x68, 0x10007f698\nMOV             X0, X20                                                ; +0x6c, 0x10007f69c\nBLR             X8                                                     ; +0x70, 0x10007f6a0\nLDR             X8, [X0,#0x38]                                         ; +0x74, 0x10007f6a4\nLDR             X22, [X8,#0x10]                                        ; +0x78, 0x10007f6a8\nLDR             X8, [X20]                                              ; +0x7c, 0x10007f6ac\nLDR             X8, [X8,#0x1D8]                                        ; +0x80, 0x10007f6b0\nMOV             X0, X20                                                ; +0x84, 0x10007f6b4\nBLR             X8                                                     ; +0x88, 0x10007f6b8\nLDR             X8, [X0,#0x38]                                         ; +0x8c, 0x10007f6bc\nLDR             W8, [X8]                                               ; +0x90, 0x10007f6c0\nADD             X8, X22, X8,LSL#3                                      ; +0x94, 0x10007f6c4\nSUB             X20, X8, #8                                            ; +0x98, 0x10007f6c8\nCMP             X21, X20                                               ; +0x9c, 0x10007f6cc\nB.HI            loc_10007F6F4                                          ; +0xa0, 0x10007f6d0\nLDR             X0, [X21]                                              ; +0xa4, 0x10007f6d4\nCBZ             X0, loc_10007F6F4                                      ; +0xa8, 0x10007f6d8\nLDR             X8, [X0]                                               ; +0xac, 0x10007f6dc\nLDR             X8, [X8,#0x380]                                        ; +0xb0, 0x10007f6e0\nMOV             X1, X19                                                ; +0xb4, 0x10007f6e4\nBLR             X8                                                     ; +0xb8, 0x10007f6e8\nADD             X21, X21, #8                                           ; +0xbc, 0x10007f6ec\nB               loc_10007F6CC                                          ; +0xc0, 0x10007f6f0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc4, 0x10007f6f4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc8, 0x10007f6f8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xcc, 0x10007f6fc\nRET                                                                    ; +0xd0, 0x10007f700", "xrefs": ["sub_10007F704 @ 0x10007f708", "<???> @ 0x10077b560"], "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"}