{"type": "func", "start": 4297326728, "end": 4297326948, "name": "GJRobotSprite::setOpacity", "pseudocode": "// \n// GJRobotSprite::setOpacity from 0x100240088 to 0x100240164 (220 bytes)\n// \n// 3 xrefs:\n// > sub_100240164 @ 0x100240168\n// > <???> @ 0x1007c9978\n// > <???> @ 0x1007c9f30\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 GJRobotSprite::setOpacity(GJRobotSprite *a1, unsigned __int8 a2)\n{\n  __int64 v2; // x19\n  __int64 v4; // x21\n  __int64 v5; // x0\n  __int64 v6; // x21\n  __int64 v7; // x22\n  __int64 v8; // x0\n\n  v2 = a2;\n  if ( (unsigned int)sub_10024A36C(a1->m_secondArray) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = sub_10024A388(a1->m_secondArray, v4);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 896LL))(v5, v2);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_secondArray) );\n  }\n  ((void (__fastcall *)(CCPartAnimSprite *, __int64))a1->m_paSprite->setOpacity)(a1->m_paSprite, v2);\n  v6 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_glowSprite->getChildren)(a1->m_glowSprite);\n  if ( (unsigned int)sub_10024A36C(v6) )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = sub_10024A388(v6, v7);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 896LL))(v8, v2);\n      v7 = (unsigned int)(v7 + 1);\n    }\n    while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(v6) );\n  }\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_extraSprite->setOpacity)(a1->m_extraSprite, v2);\n}", "assembly": "; \n; GJRobotSprite::setOpacity from 0x100240088 to 0x100240164 (220 bytes)\n; \n; 3 xrefs:\n; > sub_100240164 @ 0x100240168\n; > <???> @ 0x1007c9978\n; > <???> @ 0x1007c9f30\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, 0x100240088\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10024008c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100240090\nADD             X29, SP, #0x20                                         ; +0xc, 0x100240094\nMOV             X19, X1                                                ; +0x10, 0x100240098\nMOV             X20, X0                                                ; +0x14, 0x10024009c\nLDR             X0, [X0,#0x2E0]                                        ; +0x18, 0x1002400a0\nBL              sub_10024A36C                                          ; +0x1c, 0x1002400a4\nCBZ             W0, loc_1002400E0                                      ; +0x20, 0x1002400a8\nMOV             W21, #0                                                ; +0x24, 0x1002400ac\nLDR             X0, [X20,#0x2E0]                                       ; +0x28, 0x1002400b0\nMOV             X1, X21                                                ; +0x2c, 0x1002400b4\nBL              sub_10024A388                                          ; +0x30, 0x1002400b8\nLDR             X8, [X0]                                               ; +0x34, 0x1002400bc\nLDR             X8, [X8,#0x380]                                        ; +0x38, 0x1002400c0\nMOV             X1, X19                                                ; +0x3c, 0x1002400c4\nBLR             X8                                                     ; +0x40, 0x1002400c8\nADD             W21, W21, #1                                           ; +0x44, 0x1002400cc\nLDR             X0, [X20,#0x2E0]                                       ; +0x48, 0x1002400d0\nBL              sub_10024A36C                                          ; +0x4c, 0x1002400d4\nCMP             W21, W0                                                ; +0x50, 0x1002400d8\nB.CC            loc_1002400B0                                          ; +0x54, 0x1002400dc\nLDR             X0, [X20,#0x2A0]                                       ; +0x58, 0x1002400e0\nLDR             X8, [X0]                                               ; +0x5c, 0x1002400e4\nLDR             X8, [X8,#0x380]                                        ; +0x60, 0x1002400e8\nMOV             X1, X19                                                ; +0x64, 0x1002400ec\nBLR             X8                                                     ; +0x68, 0x1002400f0\nLDR             X0, [X20,#0x2E8]                                       ; +0x6c, 0x1002400f4\nLDR             X8, [X0]                                               ; +0x70, 0x1002400f8\nLDR             X8, [X8,#0x1D8]                                        ; +0x74, 0x1002400fc\nBLR             X8                                                     ; +0x78, 0x100240100\nMOV             X21, X0                                                ; +0x7c, 0x100240104\nBL              sub_10024A36C                                          ; +0x80, 0x100240108\nCBZ             W0, loc_100240144                                      ; +0x84, 0x10024010c\nMOV             W22, #0                                                ; +0x88, 0x100240110\nMOV             X0, X21                                                ; +0x8c, 0x100240114\nMOV             X1, X22                                                ; +0x90, 0x100240118\nBL              sub_10024A388                                          ; +0x94, 0x10024011c\nLDR             X8, [X0]                                               ; +0x98, 0x100240120\nLDR             X8, [X8,#0x380]                                        ; +0x9c, 0x100240124\nMOV             X1, X19                                                ; +0xa0, 0x100240128\nBLR             X8                                                     ; +0xa4, 0x10024012c\nADD             W22, W22, #1                                           ; +0xa8, 0x100240130\nMOV             X0, X21                                                ; +0xac, 0x100240134\nBL              sub_10024A36C                                          ; +0xb0, 0x100240138\nCMP             W22, W0                                                ; +0xb4, 0x10024013c\nB.CC            loc_100240114                                          ; +0xb8, 0x100240140\nLDR             X0, [X20,#0x2F0]                                       ; +0xbc, 0x100240144\nLDR             X8, [X0]                                               ; +0xc0, 0x100240148\nLDR             X2, [X8,#0x380]                                        ; +0xc4, 0x10024014c\nMOV             X1, X19                                                ; +0xc8, 0x100240150\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xcc, 0x100240154\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xd0, 0x100240158\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xd4, 0x10024015c\nBR              X2                                                     ; +0xd8, 0x100240160", "xrefs": ["sub_100240164 @ 0x100240168", "<???> @ 0x1007c9978", "<???> @ 0x1007c9f30"], "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"}