{"type": "func", "start": 5369020928, "end": 5369021151, "name": "CCSpritePlus::setFlipY", "pseudocode": "// \n// CCSpritePlus::setFlipY from 0x14004c200 to 0x14004c2df (223 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x14070a290\n// > <???> @ 0x14070a6e8\n// > <???> @ 0x140738990\n// > <???> @ 0x1408860c8\n// > <???> @ 0x1408860d8\n// > <???> @ 0x14090ffb0\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 11:25:33 +0000\n// \n\nvoid __fastcall CCSpritePlus::setFlipY(__int64 a1, bool a2)\n{\n  unsigned int v4; // edi\n  cocos2d::CCArray *v5; // rcx\n  unsigned int v6; // esi\n  cocos2d::CCSprite *v7; // rax\n  cocos2d::CCSprite *v8; // rax\n\n  cocos2d::CCSprite::setFlipY((cocos2d::CCSprite *)a1, a2);\n  v4 = 0;\n  if ( *(_BYTE *)(a1 + 618) )\n  {\n    v5 = *(cocos2d::CCArray **)(a1 + 208);\n    if ( v5 )\n    {\n      v6 = 0;\n      if ( cocos2d::CCArray::count(v5) )\n      {\n        do\n        {\n          v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 208), v6);\n          cocos2d::CCSprite::setFlipY(v7, a2);\n          ++v6;\n        }\n        while ( v6 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 208)) );\n      }\n    }\n  }\n  if ( *(_BYTE *)(a1 + 616) && cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)) )\n  {\n    do\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 600), v4);\n      cocos2d::CCSprite::setFlipY(v8, a2);\n      ++v4;\n    }\n    while ( v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 600)) );\n  }\n}", "assembly": "; \n; CCSpritePlus::setFlipY from 0x14004c200 to 0x14004c2df (223 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x14070a290\n; > <???> @ 0x14070a6e8\n; > <???> @ 0x140738990\n; > <???> @ 0x1408860c8\n; > <???> @ 0x1408860d8\n; > <???> @ 0x14090ffb0\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 11:25:33 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14004c200\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14004c205\npush    rdi                                                            ; +0xa, 0x14004c20a\nsub     rsp, 20h                                                       ; +0xb, 0x14004c20b\nmovzx   ebp, dl                                                        ; +0xf, 0x14004c20f\nmov     rbx, rcx                                                       ; +0x12, 0x14004c212\ncall    cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0x15, 0x14004c215\nxor     edi, edi                                                       ; +0x1b, 0x14004c21b\ncmp     [rbx+26Ah], dil                                                ; +0x1d, 0x14004c21d\njz      short loc_14004C284                                            ; +0x24, 0x14004c224\nmov     rcx, [rbx+0D0h]                                                ; +0x26, 0x14004c226\ntest    rcx, rcx                                                       ; +0x2d, 0x14004c22d\njz      short loc_14004C284                                            ; +0x30, 0x14004c230\nmov     [rsp+28h+arg_0], rsi                                           ; +0x32, 0x14004c232\nmov     esi, edi                                                       ; +0x37, 0x14004c237\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x39, 0x14004c239\ntest    eax, eax                                                       ; +0x3f, 0x14004c23f\njz      short loc_14004C27F                                            ; +0x41, 0x14004c241\nnop     dword ptr [rax+00h]                                            ; +0x43, 0x14004c243\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x14004c247\nmov     rcx, [rbx+0D0h]                                                ; +0x50, 0x14004c250\nmov     edx, esi                                                       ; +0x57, 0x14004c257\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x14004c259\nmov     rcx, rax                                                       ; +0x5f, 0x14004c25f\nmovzx   edx, bpl                                                       ; +0x62, 0x14004c262\ncall    cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0x66, 0x14004c266\nmov     rcx, [rbx+0D0h]                                                ; +0x6c, 0x14004c26c\ninc     esi                                                            ; +0x73, 0x14004c273\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x75, 0x14004c275\ncmp     esi, eax                                                       ; +0x7b, 0x14004c27b\njb      short loc_14004C250                                            ; +0x7d, 0x14004c27d\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x7f, 0x14004c27f\ncmp     [rbx+268h], dil                                                ; +0x84, 0x14004c284\njz      short loc_14004C2CF                                            ; +0x8b, 0x14004c28b\nmov     rcx, [rbx+258h]                                                ; +0x8d, 0x14004c28d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x94, 0x14004c294\ntest    eax, eax                                                       ; +0x9a, 0x14004c29a\njz      short loc_14004C2CF                                            ; +0x9c, 0x14004c29c\nxchg    ax, ax                                                         ; +0x9e, 0x14004c29e\nmov     rcx, [rbx+258h]                                                ; +0xa0, 0x14004c2a0\nmov     edx, edi                                                       ; +0xa7, 0x14004c2a7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa9, 0x14004c2a9\nmov     rcx, rax                                                       ; +0xaf, 0x14004c2af\nmovzx   edx, bpl                                                       ; +0xb2, 0x14004c2b2\ncall    cs:?setFlipY@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipY(bool) ; +0xb6, 0x14004c2b6\nmov     rcx, [rbx+258h]                                                ; +0xbc, 0x14004c2bc\ninc     edi                                                            ; +0xc3, 0x14004c2c3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xc5, 0x14004c2c5\ncmp     edi, eax                                                       ; +0xcb, 0x14004c2cb\njb      short loc_14004C2A0                                            ; +0xcd, 0x14004c2cd\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xcf, 0x14004c2cf\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xd4, 0x14004c2d4\nadd     rsp, 20h                                                       ; +0xd9, 0x14004c2d9\npop     rdi                                                            ; +0xdd, 0x14004c2dd\nretn                                                                   ; +0xde, 0x14004c2de", "xrefs": ["<???> @ 0x14070a290", "<???> @ 0x14070a6e8", "<???> @ 0x140738990", "<???> @ 0x1408860c8", "<???> @ 0x1408860d8", "<???> @ 0x14090ffb0"], "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"}