{"type": "func", "start": 4296769348, "end": 4296769532, "name": "CCSpritePlus::setFlipY", "pseudocode": "// \n// CCSpritePlus::setFlipY from 0x1001b7f44 to 0x1001b7ffc (184 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x10077bc50\n// > <???> @ 0x1007b3458\n// > <???> @ 0x1007efad8\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 __fastcall CCSpritePlus::setFlipY(CCSpritePlus *a1, bool a2)\n{\n  cocos2d::CCArray *m_pChildren; // x0\n  __int64 v5; // x21\n  cocos2d::CCSprite *v6; // x0\n  __int64 v7; // x21\n  cocos2d::CCSprite *v8; // x0\n\n  cocos2d::CCSprite::setFlipY(a1, a2);\n  if ( a1->m_propagateFlipChanges )\n  {\n    m_pChildren = a1->m_pChildren;\n    if ( m_pChildren )\n    {\n      if ( (unsigned int)sub_10024A36C(m_pChildren) )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = (cocos2d::CCSprite *)sub_10024A388(a1->m_pChildren, v5);\n          cocos2d::CCSprite::setFlipY(v6, a2);\n          v5 = (unsigned int)(v5 + 1);\n        }\n        while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_pChildren) );\n      }\n    }\n  }\n  if ( a1->m_hasFollower && (unsigned int)sub_10024A36C(a1->m_followers) )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = (cocos2d::CCSprite *)sub_10024A388(a1->m_followers, v7);\n      cocos2d::CCSprite::setFlipY(v8, a2);\n      v7 = (unsigned int)(v7 + 1);\n    }\n    while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(a1->m_followers) );\n  }\n}", "assembly": "; \n; CCSpritePlus::setFlipY from 0x1001b7f44 to 0x1001b7ffc (184 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x10077bc50\n; > <???> @ 0x1007b3458\n; > <???> @ 0x1007efad8\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, 0x1001b7f44\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001b7f48\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001b7f4c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001b7f50\nMOV             X19, X1                                                ; +0x10, 0x1001b7f54\nMOV             X20, X0                                                ; +0x14, 0x1001b7f58\nBL              cocos2d__CCSprite__setFlipY                            ; +0x18, 0x1001b7f5c\nLDRB            W8, [X20,#0x26A]                                       ; +0x1c, 0x1001b7f60\nCMP             W8, #1                                                 ; +0x20, 0x1001b7f64\nB.NE            loc_1001B7FA8                                          ; +0x24, 0x1001b7f68\nLDR             X0, [X20,#0xD0]                                        ; +0x28, 0x1001b7f6c\nCBZ             X0, loc_1001B7FA8                                      ; +0x2c, 0x1001b7f70\nBL              sub_10024A36C                                          ; +0x30, 0x1001b7f74\nCBZ             W0, loc_1001B7FA8                                      ; +0x34, 0x1001b7f78\nMOV             W21, #0                                                ; +0x38, 0x1001b7f7c\nLDR             X0, [X20,#0xD0]                                        ; +0x3c, 0x1001b7f80\nMOV             X1, X21                                                ; +0x40, 0x1001b7f84\nBL              sub_10024A388                                          ; +0x44, 0x1001b7f88\nMOV             X1, X19                                                ; +0x48, 0x1001b7f8c\nBL              cocos2d__CCSprite__setFlipY                            ; +0x4c, 0x1001b7f90\nADD             W21, W21, #1                                           ; +0x50, 0x1001b7f94\nLDR             X0, [X20,#0xD0]                                        ; +0x54, 0x1001b7f98\nBL              sub_10024A36C                                          ; +0x58, 0x1001b7f9c\nCMP             W21, W0                                                ; +0x5c, 0x1001b7fa0\nB.CC            loc_1001B7F80                                          ; +0x60, 0x1001b7fa4\nLDRB            W8, [X20,#0x268]                                       ; +0x64, 0x1001b7fa8\nCMP             W8, #1                                                 ; +0x68, 0x1001b7fac\nB.NE            loc_1001B7FEC                                          ; +0x6c, 0x1001b7fb0\nLDR             X0, [X20,#0x258]                                       ; +0x70, 0x1001b7fb4\nBL              sub_10024A36C                                          ; +0x74, 0x1001b7fb8\nCBZ             W0, loc_1001B7FEC                                      ; +0x78, 0x1001b7fbc\nMOV             W21, #0                                                ; +0x7c, 0x1001b7fc0\nLDR             X0, [X20,#0x258]                                       ; +0x80, 0x1001b7fc4\nMOV             X1, X21                                                ; +0x84, 0x1001b7fc8\nBL              sub_10024A388                                          ; +0x88, 0x1001b7fcc\nMOV             X1, X19                                                ; +0x8c, 0x1001b7fd0\nBL              cocos2d__CCSprite__setFlipY                            ; +0x90, 0x1001b7fd4\nADD             W21, W21, #1                                           ; +0x94, 0x1001b7fd8\nLDR             X0, [X20,#0x258]                                       ; +0x98, 0x1001b7fdc\nBL              sub_10024A36C                                          ; +0x9c, 0x1001b7fe0\nCMP             W21, W0                                                ; +0xa0, 0x1001b7fe4\nB.CC            loc_1001B7FC4                                          ; +0xa4, 0x1001b7fe8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xa8, 0x1001b7fec\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xac, 0x1001b7ff0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xb0, 0x1001b7ff4\nRET                                                                    ; +0xb4, 0x1001b7ff8", "xrefs": ["<???> @ 0x10077bc50", "<???> @ 0x1007b3458", "<???> @ 0x1007efad8"], "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"}