{"type": "func", "start": 4298592720, "end": 4298592788, "name": "CCPartAnimSprite::setFlipX", "pseudocode": "// \n// CCPartAnimSprite::setFlipX from 0x1003751d0 to 0x100375214 (68 bytes)\n// \n// 1 xrefs:\n// > CCAnimatedSprite::switchToMode @ 0x1003509b0\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 CCPartAnimSprite::setFlipX(CCPartAnimSprite *a1, bool a2)\n{\n  bool isFlipX; // al\n\n  isFlipX = cocos2d::CCSprite::isFlipX(a1);\n  if ( isFlipX != a2 )\n    ((void (__fastcall *)(CCPartAnimSprite *, float))a1->setScaleX)(a1, (float)!isFlipX);\n  cocos2d::CCSprite::setFlipX(a1, a2);\n  a1->m_hasChanged = 1;\n}", "assembly": "; \n; CCPartAnimSprite::setFlipX from 0x1003751d0 to 0x100375214 (68 bytes)\n; \n; 1 xrefs:\n; > CCAnimatedSprite::switchToMode @ 0x1003509b0\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, 0x1003751d0\nmov     rbp, rsp                                                       ; +0x1, 0x1003751d1\npush    r14                                                            ; +0x4, 0x1003751d4\npush    rbx                                                            ; +0x6, 0x1003751d6\nmov     r14d, esi                                                      ; +0x7, 0x1003751d7\nmov     rbx, rdi                                                       ; +0xa, 0x1003751da\ncall    cocos2d__CCSprite__isFlipX                                     ; +0xd, 0x1003751dd\ncmp     al, r14b                                                       ; +0x12, 0x1003751e2\njz      short loc_1003751FC                                            ; +0x15, 0x1003751e5\nxor     al, 1                                                          ; +0x17, 0x1003751e7\nmovzx   eax, al                                                        ; +0x19, 0x1003751e9\ncvtsi2ss xmm0, eax                                                     ; +0x1c, 0x1003751ec\nmov     rax, [rbx]                                                     ; +0x20, 0x1003751f0\nmov     rdi, rbx                                                       ; +0x23, 0x1003751f3\ncall    qword ptr [rax+80h]                                            ; +0x26, 0x1003751f6\nmovzx   esi, r14b                                                      ; +0x2c, 0x1003751fc\nmov     rdi, rbx                                                       ; +0x30, 0x100375200\ncall    cocos2d__CCSprite__setFlipX                                    ; +0x33, 0x100375203\nmov     byte ptr [rbx+268h], 1                                         ; +0x38, 0x100375208\npop     rbx                                                            ; +0x3f, 0x10037520f\npop     r14                                                            ; +0x40, 0x100375210\npop     rbp                                                            ; +0x42, 0x100375212\nretn                                                                   ; +0x43, 0x100375213", "xrefs": ["CCAnimatedSprite::switchToMode @ 0x1003509b0"], "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"}