{"type": "func", "start": 4299693504, "end": 4299693703, "name": "CCSpritePlus::setFlipX", "pseudocode": "// \n// CCSpritePlus::setFlipX from 0x100481dc0 to 0x100481e87 (199 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x10091e168\n// > <???> @ 0x10093ca90\n// > <???> @ 0x100991ae0\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::setFlipX(CCSpritePlus *a1, bool a2)\n{\n  cocos2d::CCArray *m_pChildren; // rdi\n  unsigned int v4; // r15d\n  cocos2d::CCSprite *v5; // rax\n  unsigned int v6; // r15d\n  cocos2d::CCSprite *v7; // rax\n\n  cocos2d::CCSprite::setFlipX(a1, a2);\n  if ( a1->m_propagateFlipChanges )\n  {\n    m_pChildren = a1->m_pChildren;\n    if ( m_pChildren )\n    {\n      if ( (unsigned int)sub_100720070(m_pChildren) )\n      {\n        v4 = 0;\n        do\n        {\n          v5 = (cocos2d::CCSprite *)sub_1007200C0(a1->m_pChildren, v4);\n          cocos2d::CCSprite::setFlipX(v5, a2);\n          ++v4;\n        }\n        while ( v4 < (unsigned int)sub_100720070(a1->m_pChildren) );\n      }\n    }\n  }\n  if ( a1->m_hasFollower && (unsigned int)sub_100720070(a1->m_followers) )\n  {\n    v6 = 0;\n    do\n    {\n      v7 = (cocos2d::CCSprite *)sub_1007200C0(a1->m_followers, v6);\n      cocos2d::CCSprite::setFlipX(v7, a2);\n      ++v6;\n    }\n    while ( v6 < (unsigned int)sub_100720070(a1->m_followers) );\n  }\n}", "assembly": "; \n; CCSpritePlus::setFlipX from 0x100481dc0 to 0x100481e87 (199 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x10091e168\n; > <???> @ 0x10093ca90\n; > <???> @ 0x100991ae0\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    rbp                                                            ; +0x0, 0x100481dc0\nmov     rbp, rsp                                                       ; +0x1, 0x100481dc1\npush    r15                                                            ; +0x4, 0x100481dc4\npush    r14                                                            ; +0x6, 0x100481dc6\npush    r12                                                            ; +0x8, 0x100481dc8\npush    rbx                                                            ; +0xa, 0x100481dca\nmov     r14d, esi                                                      ; +0xb, 0x100481dcb\nmov     rbx, rdi                                                       ; +0xe, 0x100481dce\ncall    cocos2d__CCSprite__setFlipX                                    ; +0x11, 0x100481dd1\ncmp     byte ptr [rbx+26Ah], 1                                         ; +0x16, 0x100481dd6\njnz     short loc_100481E2E                                            ; +0x1d, 0x100481ddd\nmov     rdi, [rbx+0D0h]                                                ; +0x1f, 0x100481ddf\ntest    rdi, rdi                                                       ; +0x26, 0x100481de6\njz      short loc_100481E2E                                            ; +0x29, 0x100481de9\ncall    sub_100720070                                                  ; +0x2b, 0x100481deb\ntest    eax, eax                                                       ; +0x30, 0x100481df0\njz      short loc_100481E2E                                            ; +0x32, 0x100481df2\nxor     r15d, r15d                                                     ; +0x34, 0x100481df4\nmovzx   r12d, r14b                                                     ; +0x37, 0x100481df7\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x100481dfb\nmov     rdi, [rbx+0D0h]                                                ; +0x40, 0x100481e00\nmov     esi, r15d                                                      ; +0x47, 0x100481e07\ncall    sub_1007200C0                                                  ; +0x4a, 0x100481e0a\nmov     rdi, rax                                                       ; +0x4f, 0x100481e0f\nmov     esi, r12d                                                      ; +0x52, 0x100481e12\ncall    cocos2d__CCSprite__setFlipX                                    ; +0x55, 0x100481e15\ninc     r15d                                                           ; +0x5a, 0x100481e1a\nmov     rdi, [rbx+0D0h]                                                ; +0x5d, 0x100481e1d\ncall    sub_100720070                                                  ; +0x64, 0x100481e24\ncmp     r15d, eax                                                      ; +0x69, 0x100481e29\njb      short loc_100481E00                                            ; +0x6c, 0x100481e2c\ncmp     byte ptr [rbx+268h], 1                                         ; +0x6e, 0x100481e2e\njnz     short loc_100481E7E                                            ; +0x75, 0x100481e35\nmov     rdi, [rbx+258h]                                                ; +0x77, 0x100481e37\ncall    sub_100720070                                                  ; +0x7e, 0x100481e3e\ntest    eax, eax                                                       ; +0x83, 0x100481e43\njz      short loc_100481E7E                                            ; +0x85, 0x100481e45\nxor     r15d, r15d                                                     ; +0x87, 0x100481e47\nmovzx   r14d, r14b                                                     ; +0x8a, 0x100481e4a\nxchg    ax, ax                                                         ; +0x8e, 0x100481e4e\nmov     rdi, [rbx+258h]                                                ; +0x90, 0x100481e50\nmov     esi, r15d                                                      ; +0x97, 0x100481e57\ncall    sub_1007200C0                                                  ; +0x9a, 0x100481e5a\nmov     rdi, rax                                                       ; +0x9f, 0x100481e5f\nmov     esi, r14d                                                      ; +0xa2, 0x100481e62\ncall    cocos2d__CCSprite__setFlipX                                    ; +0xa5, 0x100481e65\ninc     r15d                                                           ; +0xaa, 0x100481e6a\nmov     rdi, [rbx+258h]                                                ; +0xad, 0x100481e6d\ncall    sub_100720070                                                  ; +0xb4, 0x100481e74\ncmp     r15d, eax                                                      ; +0xb9, 0x100481e79\njb      short loc_100481E50                                            ; +0xbc, 0x100481e7c\npop     rbx                                                            ; +0xbe, 0x100481e7e\npop     r12                                                            ; +0xbf, 0x100481e7f\npop     r14                                                            ; +0xc1, 0x100481e81\npop     r15                                                            ; +0xc3, 0x100481e83\npop     rbp                                                            ; +0xc5, 0x100481e85\nretn                                                                   ; +0xc6, 0x100481e86", "xrefs": ["<???> @ 0x10091e168", "<???> @ 0x10093ca90", "<???> @ 0x100991ae0"], "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"}