{"type": "func", "start": 5370806512, "end": 5370807000, "name": "EditorUI::flipObjectsY", "pseudocode": "// \n// EditorUI::flipObjectsY from 0x1402000f0 to 0x1402002d8 (488 bytes)\n// \n// 5 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6ea2\n// > EditorUI::transformObjectCall_1 @ 0x1401ff5fc\n// > <???> @ 0x1408a3bc0\n// > <???> @ 0x1408a3bf4\n// > <???> @ 0x14091ad68\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:28:13 +0000\n// \n\nunsigned int __fastcall EditorUI::flipObjectsY(__int64 a1, cocos2d::CCArray *a2)\n{\n  unsigned int v3; // r14d\n  unsigned int v5; // ebx\n  float v6; // xmm10_4\n  float i; // xmm7_4\n  struct cocos2d::CCObject *v8; // rdi\n  float MaxY; // xmm6_4\n  float MinY; // xmm0_4\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v12; // rdi\n  float v13; // xmm6_4\n  __int64 v14; // rbx\n  float *v15; // rax\n  __int64 v16; // rax\n  _BYTE v17[16]; // [rsp+20h] [rbp-78h] BYREF\n  char v18; // [rsp+B0h] [rbp+18h] BYREF\n  char v19; // [rsp+B8h] [rbp+20h] BYREF\n\n  v3 = 0;\n  v5 = 0;\n  v6 = -9999.0;\n  for ( i = -9999.0; v5 < cocos2d::CCArray::count(a2); ++v5 )\n  {\n    v8 = cocos2d::CCArray::objectAtIndex(a2, v5);\n    GameObject::updateStartPos(v8);\n    (*(void (__fastcall **)(struct cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v8 + 1176LL))(v8, v17);\n    MaxY = cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v17);\n    MinY = cocos2d::CCRect::getMinY((cocos2d::CCRect *)v17);\n    v6 = fmaxf(MaxY, v6);\n    if ( i > MinY || i == -9999.0 )\n      i = MinY;\n    EditorUI::transformObject(a1, (__int64)v8, 38, 1);\n  }\n  result = cocos2d::CCArray::count(a2);\n  if ( result )\n  {\n    do\n    {\n      v12 = cocos2d::CCArray::objectAtIndex(a2, v3);\n      v13 = v6\n          - (float)(*(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 200LL))(v12) + 4)\n                  - i);\n      v14 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 200LL))(v12);\n      v15 = (float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 200LL))(v12);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, *v15, v13);\n      cocos2d::CCPoint::operator-(v16, &v18, v14);\n      EditorUI::moveObject(a1, (__int64)v12, (__int64)&v18);\n      ++v3;\n      result = cocos2d::CCArray::count(a2);\n    }\n    while ( v3 < result );\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::flipObjectsY from 0x1402000f0 to 0x1402002d8 (488 bytes)\n; \n; 5 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6ea2\n; > EditorUI::transformObjectCall_1 @ 0x1401ff5fc\n; > <???> @ 0x1408a3bc0\n; > <???> @ 0x1408a3bf4\n; > <???> @ 0x14091ad68\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:28:13 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402000f0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1402000f5\npush    rsi                                                            ; +0xa, 0x1402000fa\npush    rdi                                                            ; +0xb, 0x1402000fb\npush    r14                                                            ; +0xc, 0x1402000fc\nsub     rsp, 80h                                                       ; +0xe, 0x1402000fe\nmovaps  [rsp+98h+var_28], xmm6                                         ; +0x15, 0x140200105\nmov     rbp, rcx                                                       ; +0x1a, 0x14020010a\nmovaps  [rsp+98h+var_38], xmm7                                         ; +0x1d, 0x14020010d\nxor     r14d, r14d                                                     ; +0x22, 0x140200112\nmovaps  [rsp+98h+var_68], xmm10                                        ; +0x25, 0x140200115\nmov     rcx, rdx                                                       ; +0x2b, 0x14020011b\nmovaps  [rsp+98h+var_48], xmm8                                         ; +0x2e, 0x14020011e\nmov     rsi, rdx                                                       ; +0x34, 0x140200124\nmovss   xmm8, cs:dword_1408360BC                                       ; +0x37, 0x140200127\nmov     ebx, r14d                                                      ; +0x40, 0x140200130\nmovaps  xmm10, xmm8                                                    ; +0x43, 0x140200133\nmovaps  xmm7, xmm8                                                     ; +0x47, 0x140200137\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x14020013b\ntest    eax, eax                                                       ; +0x51, 0x140200141\njz      loc_1402001F2                                                  ; +0x53, 0x140200143\nmovaps  [rsp+98h+var_58], xmm9                                         ; +0x59, 0x140200149\nmovss   xmm9, cs:flt_140835080                                         ; +0x5f, 0x14020014f\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x140200158\nmov     edx, ebx                                                       ; +0x70, 0x140200160\nmov     rcx, rsi                                                       ; +0x72, 0x140200162\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x140200165\nmov     rcx, rax                                                       ; +0x7b, 0x14020016b\nmov     rdi, rax                                                       ; +0x7e, 0x14020016e\ncall    GameObject__updateStartPos                                     ; +0x81, 0x140200171\nmov     rcx, [rdi]                                                     ; +0x86, 0x140200176\nlea     rdx, [rsp+98h+var_78]                                          ; +0x89, 0x140200179\nmovaps  xmm3, xmm9                                                     ; +0x8e, 0x14020017e\nmovaps  xmm2, xmm9                                                     ; +0x92, 0x140200182\nmov     r8, [rcx+498h]                                                 ; +0x96, 0x140200186\nmov     rcx, rdi                                                       ; +0x9d, 0x14020018d\ncall    r8                                                             ; +0xa0, 0x140200190\nlea     rcx, [rsp+98h+var_78]                                          ; +0xa3, 0x140200193\ncall    cs:?getMaxY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMaxY(void) ; +0xa8, 0x140200198\nlea     rcx, [rsp+98h+var_78]                                          ; +0xae, 0x14020019e\nmovaps  xmm6, xmm0                                                     ; +0xb3, 0x1402001a3\ncall    cs:?getMinY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMinY(void) ; +0xb6, 0x1402001a6\ncomiss  xmm7, xmm0                                                     ; +0xbc, 0x1402001ac\nmaxss   xmm6, xmm10                                                    ; +0xbf, 0x1402001af\nmovaps  xmm10, xmm6                                                    ; +0xc4, 0x1402001b4\nja      short loc_1402001C2                                            ; +0xc8, 0x1402001b8\nucomiss xmm7, xmm8                                                     ; +0xca, 0x1402001ba\njp      short loc_1402001C5                                            ; +0xce, 0x1402001be\njnz     short loc_1402001C5                                            ; +0xd0, 0x1402001c0\nmovaps  xmm7, xmm0                                                     ; +0xd2, 0x1402001c2\nmov     r9b, 1                                                         ; +0xd5, 0x1402001c5\nmov     r8d, 26h ; '&'                                                 ; +0xd8, 0x1402001c8\nmov     rdx, rdi                                                       ; +0xde, 0x1402001ce\nmov     rcx, rbp                                                       ; +0xe1, 0x1402001d1\ncall    EditorUI__transformObject                                      ; +0xe4, 0x1402001d4\nmov     rcx, rsi                                                       ; +0xe9, 0x1402001d9\ninc     ebx                                                            ; +0xec, 0x1402001dc\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xee, 0x1402001de\ncmp     ebx, eax                                                       ; +0xf4, 0x1402001e4\njb      loc_140200160                                                  ; +0xf6, 0x1402001e6\nmovaps  xmm9, [rsp+98h+var_58]                                         ; +0xfc, 0x1402001ec\nmov     rcx, rsi                                                       ; +0x102, 0x1402001f2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x105, 0x1402001f5\nmovaps  xmm8, [rsp+98h+var_48]                                         ; +0x10b, 0x1402001fb\ntest    eax, eax                                                       ; +0x111, 0x140200201\njz      loc_1402002B1                                                  ; +0x113, 0x140200203\nnop     dword ptr [rax+00000000h]                                      ; +0x119, 0x140200209\nmov     edx, r14d                                                      ; +0x120, 0x140200210\nmov     rcx, rsi                                                       ; +0x123, 0x140200213\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x126, 0x140200216\nmov     rdi, rax                                                       ; +0x12c, 0x14020021c\nmov     rcx, [rax]                                                     ; +0x12f, 0x14020021f\nmov     rdx, [rcx+0C8h]                                                ; +0x132, 0x140200222\nmov     rcx, rax                                                       ; +0x139, 0x140200229\ncall    rdx                                                            ; +0x13c, 0x14020022c\nmov     rcx, [rdi]                                                     ; +0x13e, 0x14020022e\nmovaps  xmm6, xmm10                                                    ; +0x141, 0x140200231\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x145, 0x140200235\nmov     rdx, [rcx+0C8h]                                                ; +0x14a, 0x14020023a\nsubss   xmm0, xmm7                                                     ; +0x151, 0x140200241\nmov     rcx, rdi                                                       ; +0x155, 0x140200245\nsubss   xmm6, xmm0                                                     ; +0x158, 0x140200248\ncall    rdx                                                            ; +0x15c, 0x14020024c\nmov     rcx, [rdi]                                                     ; +0x15e, 0x14020024e\nmov     rbx, rax                                                       ; +0x161, 0x140200251\nmov     rdx, [rcx+0C8h]                                                ; +0x164, 0x140200254\nmov     rcx, rdi                                                       ; +0x16b, 0x14020025b\ncall    rdx                                                            ; +0x16e, 0x14020025e\nmovaps  xmm2, xmm6                                                     ; +0x170, 0x140200260\nlea     rcx, [rsp+98h+arg_18]                                          ; +0x173, 0x140200263\nmovss   xmm1, dword ptr [rax]                                          ; +0x17b, 0x14020026b\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x17f, 0x14020026f\nmov     r8, rbx                                                        ; +0x185, 0x140200275\nlea     rdx, [rsp+98h+arg_10]                                          ; +0x188, 0x140200278\nmov     rcx, rax                                                       ; +0x190, 0x140200280\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x193, 0x140200283\nlea     r8, [rsp+98h+arg_10]                                           ; +0x199, 0x140200289\nmov     rdx, rdi                                                       ; +0x1a1, 0x140200291\nmov     rcx, rbp                                                       ; +0x1a4, 0x140200294\ncall    EditorUI__moveObject                                           ; +0x1a7, 0x140200297\nmov     rcx, rsi                                                       ; +0x1ac, 0x14020029c\ninc     r14d                                                           ; +0x1af, 0x14020029f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b2, 0x1402002a2\ncmp     r14d, eax                                                      ; +0x1b8, 0x1402002a8\njb      loc_140200210                                                  ; +0x1bb, 0x1402002ab\nmovaps  xmm6, [rsp+98h+var_28]                                         ; +0x1c1, 0x1402002b1\nlea     r11, [rsp+98h+var_18]                                          ; +0x1c6, 0x1402002b6\nmov     rbx, [r11+20h]                                                 ; +0x1ce, 0x1402002be\nmov     rbp, [r11+28h]                                                 ; +0x1d2, 0x1402002c2\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1d6, 0x1402002c6\nmovaps  xmm7, [rsp+98h+var_38]                                         ; +0x1db, 0x1402002cb\nmov     rsp, r11                                                       ; +0x1e0, 0x1402002d0\npop     r14                                                            ; +0x1e3, 0x1402002d3\npop     rdi                                                            ; +0x1e5, 0x1402002d5\npop     rsi                                                            ; +0x1e6, 0x1402002d6\nretn                                                                   ; +0x1e7, 0x1402002d7", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x1401b6ea2", "EditorUI::transformObjectCall_1 @ 0x1401ff5fc", "<???> @ 0x1408a3bc0", "<???> @ 0x1408a3bf4", "<???> @ 0x14091ad68"], "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"}