{"type": "func", "start": 4299646752, "end": 4299646951, "name": "CCSpritePlus::setFlipX", "pseudocode": "// \n// CCSpritePlus::setFlipX from 0x100476720 to 0x1004767e7 (199 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x100b26420\n// > <???> @ 0x100b46cb8\n// > <???> @ 0x100ba7218\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:30:35 +0000\n// \n\n__int64 __fastcall CCSpritePlus::setFlipX(__int64 a1, unsigned __int8 a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rdi\n  unsigned int v5; // r15d\n  unsigned __int8 *v6; // rax\n  unsigned int v7; // r15d\n  unsigned __int8 *v8; // rax\n\n  result = cocos2d::CCSprite::setFlipX((unsigned __int8 *)a1, a2);\n  if ( *(_BYTE *)(a1 + 618) == 1 )\n  {\n    v4 = *(_QWORD *)(a1 + 208);\n    if ( v4 )\n    {\n      result = sub_1007FEF90(v4);\n      if ( (_DWORD)result )\n      {\n        v5 = 0;\n        do\n        {\n          v6 = (unsigned __int8 *)sub_1007FEFE0(*(_QWORD *)(a1 + 208), v5);\n          cocos2d::CCSprite::setFlipX(v6, a2);\n          ++v5;\n          result = sub_1007FEF90(*(_QWORD *)(a1 + 208));\n        }\n        while ( v5 < (unsigned int)result );\n      }\n    }\n  }\n  if ( *(_BYTE *)(a1 + 616) == 1 )\n  {\n    result = sub_1007FEF90(*(_QWORD *)(a1 + 600));\n    if ( (_DWORD)result )\n    {\n      v7 = 0;\n      do\n      {\n        v8 = (unsigned __int8 *)sub_1007FEFE0(*(_QWORD *)(a1 + 600), v7);\n        cocos2d::CCSprite::setFlipX(v8, a2);\n        ++v7;\n        result = sub_1007FEF90(*(_QWORD *)(a1 + 600));\n      }\n      while ( v7 < (unsigned int)result );\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCSpritePlus::setFlipX from 0x100476720 to 0x1004767e7 (199 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x100b26420\n; > <???> @ 0x100b46cb8\n; > <???> @ 0x100ba7218\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:30:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x100476720\nmov     rbp, rsp                                                       ; +0x1, 0x100476721\npush    r15                                                            ; +0x4, 0x100476724\npush    r14                                                            ; +0x6, 0x100476726\npush    r12                                                            ; +0x8, 0x100476728\npush    rbx                                                            ; +0xa, 0x10047672a\nmov     r14d, esi                                                      ; +0xb, 0x10047672b\nmov     rbx, rdi                                                       ; +0xe, 0x10047672e\ncall    cocos2d__CCSprite__setFlipX                                    ; +0x11, 0x100476731\ncmp     byte ptr [rbx+26Ah], 1                                         ; +0x16, 0x100476736\njnz     short loc_10047678E                                            ; +0x1d, 0x10047673d\nmov     rdi, [rbx+0D0h]                                                ; +0x1f, 0x10047673f\ntest    rdi, rdi                                                       ; +0x26, 0x100476746\njz      short loc_10047678E                                            ; +0x29, 0x100476749\ncall    sub_1007FEF90                                                  ; +0x2b, 0x10047674b\ntest    eax, eax                                                       ; +0x30, 0x100476750\njz      short loc_10047678E                                            ; +0x32, 0x100476752\nxor     r15d, r15d                                                     ; +0x34, 0x100476754\nmovzx   r12d, r14b                                                     ; +0x37, 0x100476757\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x10047675b\nmov     rdi, [rbx+0D0h]                                                ; +0x40, 0x100476760\nmov     esi, r15d                                                      ; +0x47, 0x100476767\ncall    sub_1007FEFE0                                                  ; +0x4a, 0x10047676a\nmov     rdi, rax                                                       ; +0x4f, 0x10047676f\nmov     esi, r12d                                                      ; +0x52, 0x100476772\ncall    cocos2d__CCSprite__setFlipX                                    ; +0x55, 0x100476775\ninc     r15d                                                           ; +0x5a, 0x10047677a\nmov     rdi, [rbx+0D0h]                                                ; +0x5d, 0x10047677d\ncall    sub_1007FEF90                                                  ; +0x64, 0x100476784\ncmp     r15d, eax                                                      ; +0x69, 0x100476789\njb      short loc_100476760                                            ; +0x6c, 0x10047678c\ncmp     byte ptr [rbx+268h], 1                                         ; +0x6e, 0x10047678e\njnz     short loc_1004767DE                                            ; +0x75, 0x100476795\nmov     rdi, [rbx+258h]                                                ; +0x77, 0x100476797\ncall    sub_1007FEF90                                                  ; +0x7e, 0x10047679e\ntest    eax, eax                                                       ; +0x83, 0x1004767a3\njz      short loc_1004767DE                                            ; +0x85, 0x1004767a5\nxor     r15d, r15d                                                     ; +0x87, 0x1004767a7\nmovzx   r14d, r14b                                                     ; +0x8a, 0x1004767aa\nxchg    ax, ax                                                         ; +0x8e, 0x1004767ae\nmov     rdi, [rbx+258h]                                                ; +0x90, 0x1004767b0\nmov     esi, r15d                                                      ; +0x97, 0x1004767b7\ncall    sub_1007FEFE0                                                  ; +0x9a, 0x1004767ba\nmov     rdi, rax                                                       ; +0x9f, 0x1004767bf\nmov     esi, r14d                                                      ; +0xa2, 0x1004767c2\ncall    cocos2d__CCSprite__setFlipX                                    ; +0xa5, 0x1004767c5\ninc     r15d                                                           ; +0xaa, 0x1004767ca\nmov     rdi, [rbx+258h]                                                ; +0xad, 0x1004767cd\ncall    sub_1007FEF90                                                  ; +0xb4, 0x1004767d4\ncmp     r15d, eax                                                      ; +0xb9, 0x1004767d9\njb      short loc_1004767B0                                            ; +0xbc, 0x1004767dc\npop     rbx                                                            ; +0xbe, 0x1004767de\npop     r12                                                            ; +0xbf, 0x1004767df\npop     r14                                                            ; +0xc1, 0x1004767e1\npop     r15                                                            ; +0xc3, 0x1004767e3\npop     rbp                                                            ; +0xc5, 0x1004767e5\nretn                                                                   ; +0xc6, 0x1004767e6", "xrefs": ["<???> @ 0x100b26420", "<???> @ 0x100b46cb8", "<???> @ 0x100ba7218"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}