{"type": "func", "start": 4299646960, "end": 4299647159, "name": "CCSpritePlus::setFlipY", "pseudocode": "// \n// CCSpritePlus::setFlipY from 0x1004767f0 to 0x1004768b7 (199 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x100b26428\n// > <???> @ 0x100b46cc0\n// > <???> @ 0x100ba7220\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::setFlipY(__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::setFlipY((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::setFlipY(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::setFlipY(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::setFlipY from 0x1004767f0 to 0x1004768b7 (199 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x100b26428\n; > <???> @ 0x100b46cc0\n; > <???> @ 0x100ba7220\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, 0x1004767f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004767f1\npush    r15                                                            ; +0x4, 0x1004767f4\npush    r14                                                            ; +0x6, 0x1004767f6\npush    r12                                                            ; +0x8, 0x1004767f8\npush    rbx                                                            ; +0xa, 0x1004767fa\nmov     r14d, esi                                                      ; +0xb, 0x1004767fb\nmov     rbx, rdi                                                       ; +0xe, 0x1004767fe\ncall    cocos2d__CCSprite__setFlipY                                    ; +0x11, 0x100476801\ncmp     byte ptr [rbx+26Ah], 1                                         ; +0x16, 0x100476806\njnz     short loc_10047685E                                            ; +0x1d, 0x10047680d\nmov     rdi, [rbx+0D0h]                                                ; +0x1f, 0x10047680f\ntest    rdi, rdi                                                       ; +0x26, 0x100476816\njz      short loc_10047685E                                            ; +0x29, 0x100476819\ncall    sub_1007FEF90                                                  ; +0x2b, 0x10047681b\ntest    eax, eax                                                       ; +0x30, 0x100476820\njz      short loc_10047685E                                            ; +0x32, 0x100476822\nxor     r15d, r15d                                                     ; +0x34, 0x100476824\nmovzx   r12d, r14b                                                     ; +0x37, 0x100476827\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x10047682b\nmov     rdi, [rbx+0D0h]                                                ; +0x40, 0x100476830\nmov     esi, r15d                                                      ; +0x47, 0x100476837\ncall    sub_1007FEFE0                                                  ; +0x4a, 0x10047683a\nmov     rdi, rax                                                       ; +0x4f, 0x10047683f\nmov     esi, r12d                                                      ; +0x52, 0x100476842\ncall    cocos2d__CCSprite__setFlipY                                    ; +0x55, 0x100476845\ninc     r15d                                                           ; +0x5a, 0x10047684a\nmov     rdi, [rbx+0D0h]                                                ; +0x5d, 0x10047684d\ncall    sub_1007FEF90                                                  ; +0x64, 0x100476854\ncmp     r15d, eax                                                      ; +0x69, 0x100476859\njb      short loc_100476830                                            ; +0x6c, 0x10047685c\ncmp     byte ptr [rbx+268h], 1                                         ; +0x6e, 0x10047685e\njnz     short loc_1004768AE                                            ; +0x75, 0x100476865\nmov     rdi, [rbx+258h]                                                ; +0x77, 0x100476867\ncall    sub_1007FEF90                                                  ; +0x7e, 0x10047686e\ntest    eax, eax                                                       ; +0x83, 0x100476873\njz      short loc_1004768AE                                            ; +0x85, 0x100476875\nxor     r15d, r15d                                                     ; +0x87, 0x100476877\nmovzx   r14d, r14b                                                     ; +0x8a, 0x10047687a\nxchg    ax, ax                                                         ; +0x8e, 0x10047687e\nmov     rdi, [rbx+258h]                                                ; +0x90, 0x100476880\nmov     esi, r15d                                                      ; +0x97, 0x100476887\ncall    sub_1007FEFE0                                                  ; +0x9a, 0x10047688a\nmov     rdi, rax                                                       ; +0x9f, 0x10047688f\nmov     esi, r14d                                                      ; +0xa2, 0x100476892\ncall    cocos2d__CCSprite__setFlipY                                    ; +0xa5, 0x100476895\ninc     r15d                                                           ; +0xaa, 0x10047689a\nmov     rdi, [rbx+258h]                                                ; +0xad, 0x10047689d\ncall    sub_1007FEF90                                                  ; +0xb4, 0x1004768a4\ncmp     r15d, eax                                                      ; +0xb9, 0x1004768a9\njb      short loc_100476880                                            ; +0xbc, 0x1004768ac\npop     rbx                                                            ; +0xbe, 0x1004768ae\npop     r12                                                            ; +0xbf, 0x1004768af\npop     r14                                                            ; +0xc1, 0x1004768b1\npop     r15                                                            ; +0xc3, 0x1004768b3\npop     rbp                                                            ; +0xc5, 0x1004768b5\nretn                                                                   ; +0xc6, 0x1004768b6", "xrefs": ["<???> @ 0x100b26428", "<???> @ 0x100b46cc0", "<???> @ 0x100ba7220"], "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"}