{"type": "func", "start": 5370806016, "end": 5370806504, "name": "EditorUI::flipObjectsX", "pseudocode": "// \n// EditorUI::flipObjectsX from 0x1401fff00 to 0x1402000e8 (488 bytes)\n// \n// 5 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6eb6\n// > EditorUI::transformObjectCall_1 @ 0x1401ff673\n// > <???> @ 0x1408a3b78\n// > <???> @ 0x1408a3bac\n// > <???> @ 0x14091ad2c\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::flipObjectsX(__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 MaxX; // xmm6_4\n  float MinX; // xmm0_4\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v12; // rdi\n  float v13; // xmm6_4\n  __int64 v14; // rbx\n  __int64 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    MaxX = cocos2d::CCRect::getMaxX((cocos2d::CCRect *)v17);\n    MinX = cocos2d::CCRect::getMinX((cocos2d::CCRect *)v17);\n    v6 = fmaxf(MaxX, v6);\n    if ( i > MinX || i == -9999.0 )\n      i = MinX;\n    EditorUI::transformObject(a1, (__int64)v8, 37, 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) - i);\n      v14 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 200LL))(v12);\n      v15 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v12 + 200LL))(v12);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, v13, *(float *)(v15 + 4));\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::flipObjectsX from 0x1401fff00 to 0x1402000e8 (488 bytes)\n; \n; 5 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x1401b6eb6\n; > EditorUI::transformObjectCall_1 @ 0x1401ff673\n; > <???> @ 0x1408a3b78\n; > <???> @ 0x1408a3bac\n; > <???> @ 0x14091ad2c\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, 0x1401fff00\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1401fff05\npush    rsi                                                            ; +0xa, 0x1401fff0a\npush    rdi                                                            ; +0xb, 0x1401fff0b\npush    r14                                                            ; +0xc, 0x1401fff0c\nsub     rsp, 80h                                                       ; +0xe, 0x1401fff0e\nmovaps  [rsp+98h+var_28], xmm6                                         ; +0x15, 0x1401fff15\nmov     rbp, rcx                                                       ; +0x1a, 0x1401fff1a\nmovaps  [rsp+98h+var_38], xmm7                                         ; +0x1d, 0x1401fff1d\nxor     r14d, r14d                                                     ; +0x22, 0x1401fff22\nmovaps  [rsp+98h+var_68], xmm10                                        ; +0x25, 0x1401fff25\nmov     rcx, rdx                                                       ; +0x2b, 0x1401fff2b\nmovaps  [rsp+98h+var_48], xmm8                                         ; +0x2e, 0x1401fff2e\nmov     rsi, rdx                                                       ; +0x34, 0x1401fff34\nmovss   xmm8, cs:dword_1408360BC                                       ; +0x37, 0x1401fff37\nmov     ebx, r14d                                                      ; +0x40, 0x1401fff40\nmovaps  xmm10, xmm8                                                    ; +0x43, 0x1401fff43\nmovaps  xmm7, xmm8                                                     ; +0x47, 0x1401fff47\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x1401fff4b\ntest    eax, eax                                                       ; +0x51, 0x1401fff51\njz      loc_140200002                                                  ; +0x53, 0x1401fff53\nmovaps  [rsp+98h+var_58], xmm9                                         ; +0x59, 0x1401fff59\nmovss   xmm9, cs:flt_140835080                                         ; +0x5f, 0x1401fff5f\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x1401fff68\nmov     edx, ebx                                                       ; +0x70, 0x1401fff70\nmov     rcx, rsi                                                       ; +0x72, 0x1401fff72\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x1401fff75\nmov     rcx, rax                                                       ; +0x7b, 0x1401fff7b\nmov     rdi, rax                                                       ; +0x7e, 0x1401fff7e\ncall    GameObject__updateStartPos                                     ; +0x81, 0x1401fff81\nmov     rcx, [rdi]                                                     ; +0x86, 0x1401fff86\nlea     rdx, [rsp+98h+var_78]                                          ; +0x89, 0x1401fff89\nmovaps  xmm3, xmm9                                                     ; +0x8e, 0x1401fff8e\nmovaps  xmm2, xmm9                                                     ; +0x92, 0x1401fff92\nmov     r8, [rcx+498h]                                                 ; +0x96, 0x1401fff96\nmov     rcx, rdi                                                       ; +0x9d, 0x1401fff9d\ncall    r8                                                             ; +0xa0, 0x1401fffa0\nlea     rcx, [rsp+98h+var_78]                                          ; +0xa3, 0x1401fffa3\ncall    cs:?getMaxX@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMaxX(void) ; +0xa8, 0x1401fffa8\nlea     rcx, [rsp+98h+var_78]                                          ; +0xae, 0x1401fffae\nmovaps  xmm6, xmm0                                                     ; +0xb3, 0x1401fffb3\ncall    cs:?getMinX@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMinX(void) ; +0xb6, 0x1401fffb6\ncomiss  xmm7, xmm0                                                     ; +0xbc, 0x1401fffbc\nmaxss   xmm6, xmm10                                                    ; +0xbf, 0x1401fffbf\nmovaps  xmm10, xmm6                                                    ; +0xc4, 0x1401fffc4\nja      short loc_1401FFFD2                                            ; +0xc8, 0x1401fffc8\nucomiss xmm7, xmm8                                                     ; +0xca, 0x1401fffca\njp      short loc_1401FFFD5                                            ; +0xce, 0x1401fffce\njnz     short loc_1401FFFD5                                            ; +0xd0, 0x1401fffd0\nmovaps  xmm7, xmm0                                                     ; +0xd2, 0x1401fffd2\nmov     r9b, 1                                                         ; +0xd5, 0x1401fffd5\nmov     r8d, 25h ; '%'                                                 ; +0xd8, 0x1401fffd8\nmov     rdx, rdi                                                       ; +0xde, 0x1401fffde\nmov     rcx, rbp                                                       ; +0xe1, 0x1401fffe1\ncall    EditorUI__transformObject                                      ; +0xe4, 0x1401fffe4\nmov     rcx, rsi                                                       ; +0xe9, 0x1401fffe9\ninc     ebx                                                            ; +0xec, 0x1401fffec\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xee, 0x1401fffee\ncmp     ebx, eax                                                       ; +0xf4, 0x1401ffff4\njb      loc_1401FFF70                                                  ; +0xf6, 0x1401ffff6\nmovaps  xmm9, [rsp+98h+var_58]                                         ; +0xfc, 0x1401ffffc\nmov     rcx, rsi                                                       ; +0x102, 0x140200002\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x105, 0x140200005\nmovaps  xmm8, [rsp+98h+var_48]                                         ; +0x10b, 0x14020000b\ntest    eax, eax                                                       ; +0x111, 0x140200011\njz      loc_1402000C1                                                  ; +0x113, 0x140200013\nnop     dword ptr [rax+00000000h]                                      ; +0x119, 0x140200019\nmov     edx, r14d                                                      ; +0x120, 0x140200020\nmov     rcx, rsi                                                       ; +0x123, 0x140200023\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x126, 0x140200026\nmov     rdi, rax                                                       ; +0x12c, 0x14020002c\nmov     rcx, [rax]                                                     ; +0x12f, 0x14020002f\nmov     rdx, [rcx+0C8h]                                                ; +0x132, 0x140200032\nmov     rcx, rax                                                       ; +0x139, 0x140200039\ncall    rdx                                                            ; +0x13c, 0x14020003c\nmov     rcx, [rdi]                                                     ; +0x13e, 0x14020003e\nmovaps  xmm6, xmm10                                                    ; +0x141, 0x140200041\nmovss   xmm0, dword ptr [rax]                                          ; +0x145, 0x140200045\nmov     rdx, [rcx+0C8h]                                                ; +0x149, 0x140200049\nsubss   xmm0, xmm7                                                     ; +0x150, 0x140200050\nmov     rcx, rdi                                                       ; +0x154, 0x140200054\nsubss   xmm6, xmm0                                                     ; +0x157, 0x140200057\ncall    rdx                                                            ; +0x15b, 0x14020005b\nmov     rcx, [rdi]                                                     ; +0x15d, 0x14020005d\nmov     rbx, rax                                                       ; +0x160, 0x140200060\nmov     rdx, [rcx+0C8h]                                                ; +0x163, 0x140200063\nmov     rcx, rdi                                                       ; +0x16a, 0x14020006a\ncall    rdx                                                            ; +0x16d, 0x14020006d\nmovaps  xmm1, xmm6                                                     ; +0x16f, 0x14020006f\nlea     rcx, [rsp+98h+arg_18]                                          ; +0x172, 0x140200072\nmovss   xmm2, dword ptr [rax+4]                                        ; +0x17a, 0x14020007a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x17f, 0x14020007f\nmov     r8, rbx                                                        ; +0x185, 0x140200085\nlea     rdx, [rsp+98h+arg_10]                                          ; +0x188, 0x140200088\nmov     rcx, rax                                                       ; +0x190, 0x140200090\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x193, 0x140200093\nlea     r8, [rsp+98h+arg_10]                                           ; +0x199, 0x140200099\nmov     rdx, rdi                                                       ; +0x1a1, 0x1402000a1\nmov     rcx, rbp                                                       ; +0x1a4, 0x1402000a4\ncall    EditorUI__moveObject                                           ; +0x1a7, 0x1402000a7\nmov     rcx, rsi                                                       ; +0x1ac, 0x1402000ac\ninc     r14d                                                           ; +0x1af, 0x1402000af\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1b2, 0x1402000b2\ncmp     r14d, eax                                                      ; +0x1b8, 0x1402000b8\njb      loc_140200020                                                  ; +0x1bb, 0x1402000bb\nmovaps  xmm6, [rsp+98h+var_28]                                         ; +0x1c1, 0x1402000c1\nlea     r11, [rsp+98h+var_18]                                          ; +0x1c6, 0x1402000c6\nmov     rbx, [r11+20h]                                                 ; +0x1ce, 0x1402000ce\nmov     rbp, [r11+28h]                                                 ; +0x1d2, 0x1402000d2\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1d6, 0x1402000d6\nmovaps  xmm7, [rsp+98h+var_38]                                         ; +0x1db, 0x1402000db\nmov     rsp, r11                                                       ; +0x1e0, 0x1402000e0\npop     r14                                                            ; +0x1e3, 0x1402000e3\npop     rdi                                                            ; +0x1e5, 0x1402000e5\npop     rsi                                                            ; +0x1e6, 0x1402000e6\nretn                                                                   ; +0x1e7, 0x1402000e7", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x1401b6eb6", "EditorUI::transformObjectCall_1 @ 0x1401ff673", "<???> @ 0x1408a3b78", "<???> @ 0x1408a3bac", "<???> @ 0x14091ad2c"], "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"}