{"type": "func", "start": 5369892432, "end": 5369892911, "name": "EditorUI::flipObjectsY", "pseudocode": "// \n// EditorUI::flipObjectsY from 0x140120e50 to 0x14012102f (479 bytes)\n// \n// 5 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x140117467\n// > EditorUI::transformObjectCall_1 @ 0x1401204fb\n// > <???> @ 0x14067018c\n// > <???> @ 0x1406701c0\n// > <???> @ 0x1406c96fc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::flipObjectsY(EditorUI *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  GameObject *v8; // rdi\n  float MaxY; // xmm6_4\n  float MinY; // xmm0_4\n  GameObject *v11; // rdi\n  float v12; // xmm6_4\n  __int64 v13; // rbx\n  float *v14; // rax\n  __int64 v15; // rax\n  cocos2d::CCRect v16; // [rsp+20h] [rbp-78h] BYREF\n  char v17; // [rsp+B0h] [rbp+18h] BYREF\n  cocos2d::CCPoint v18; // [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 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v5);\n    GameObject::updateStartPos(v8);\n    ((void (__fastcall *)(GameObject *, cocos2d::CCRect *))v8->getObjectRect)(v8, &v16);\n    MaxY = cocos2d::CCRect::getMaxY(&v16);\n    MinY = cocos2d::CCRect::getMinY(&v16);\n    v6 = fmaxf(MaxY, v6);\n    if ( i > MinY || i == -9999.0 )\n      i = MinY;\n    EditorUI::transformObject(a1, v8, FlipY, 1);\n  }\n  if ( cocos2d::CCArray::count(a2) )\n  {\n    do\n    {\n      v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v3);\n      v12 = v6 - (float)(v11->getPosition_0(v11)->y - i);\n      v13 = (__int64)v11->getPosition_0(v11);\n      v14 = (float *)v11->getPosition_0(v11);\n      cocos2d::CCPoint::CCPoint(&v18, *v14, v12);\n      cocos2d::CCPoint::operator-(v15, &v17, v13);\n      EditorUI::moveObject(a1, v11, (cocos2d::CCPoint)&v17);\n      ++v3;\n    }\n    while ( v3 < cocos2d::CCArray::count(a2) );\n  }\n}", "assembly": "; \n; EditorUI::flipObjectsY from 0x140120e50 to 0x14012102f (479 bytes)\n; \n; 5 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x140117467\n; > EditorUI::transformObjectCall_1 @ 0x1401204fb\n; > <???> @ 0x14067018c\n; > <???> @ 0x1406701c0\n; > <???> @ 0x1406c96fc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140120e50\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140120e55\npush    rsi                                                            ; +0xa, 0x140120e5a\npush    rdi                                                            ; +0xb, 0x140120e5b\npush    r14                                                            ; +0xc, 0x140120e5c\nsub     rsp, 80h                                                       ; +0xe, 0x140120e5e\nmovaps  [rsp+98h+var_28], xmm6                                         ; +0x15, 0x140120e65\nmov     rbp, rcx                                                       ; +0x1a, 0x140120e6a\nmovaps  [rsp+98h+var_38], xmm7                                         ; +0x1d, 0x140120e6d\nxor     r14d, r14d                                                     ; +0x22, 0x140120e72\nmovaps  [rsp+98h+var_68], xmm10                                        ; +0x25, 0x140120e75\nmov     rcx, rdx                                                       ; +0x2b, 0x140120e7b\nmovaps  [rsp+98h+var_48], xmm8                                         ; +0x2e, 0x140120e7e\nmov     rsi, rdx                                                       ; +0x34, 0x140120e84\nmovss   xmm8, cs:dword_140623AEC                                       ; +0x37, 0x140120e87\nmov     ebx, r14d                                                      ; +0x40, 0x140120e90\nmovaps  xmm10, xmm8                                                    ; +0x43, 0x140120e93\nmovaps  xmm7, xmm8                                                     ; +0x47, 0x140120e97\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4b, 0x140120e9b\ntest    eax, eax                                                       ; +0x51, 0x140120ea1\njz      loc_140120F4F                                                  ; +0x53, 0x140120ea3\nmovaps  [rsp+98h+var_58], xmm9                                         ; +0x59, 0x140120ea9\nmovss   xmm9, cs:flt_140622C24                                         ; +0x5f, 0x140120eaf\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x68, 0x140120eb8\nmov     edx, ebx                                                       ; +0x70, 0x140120ec0\nmov     rcx, rsi                                                       ; +0x72, 0x140120ec2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x75, 0x140120ec5\nmov     rcx, rax                                                       ; +0x7b, 0x140120ecb\nmov     rdi, rax                                                       ; +0x7e, 0x140120ece\ncall    GameObject__updateStartPos                                     ; +0x81, 0x140120ed1\nmov     r8, [rdi]                                                      ; +0x86, 0x140120ed6\nlea     rdx, [rsp+98h+var_78]                                          ; +0x89, 0x140120ed9\nmovaps  xmm3, xmm9                                                     ; +0x8e, 0x140120ede\nmovaps  xmm2, xmm9                                                     ; +0x92, 0x140120ee2\nmov     rcx, rdi                                                       ; +0x96, 0x140120ee6\ncall    qword ptr [r8+488h]                                            ; +0x99, 0x140120ee9\nlea     rcx, [rsp+98h+var_78]                                          ; +0xa0, 0x140120ef0\ncall    cs:?getMaxY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMaxY(void) ; +0xa5, 0x140120ef5\nlea     rcx, [rsp+98h+var_78]                                          ; +0xab, 0x140120efb\nmovaps  xmm6, xmm0                                                     ; +0xb0, 0x140120f00\ncall    cs:?getMinY@CCRect@cocos2d@@QEBAMXZ; cocos2d::CCRect::getMinY(void) ; +0xb3, 0x140120f03\ncomiss  xmm7, xmm0                                                     ; +0xb9, 0x140120f09\nmaxss   xmm6, xmm10                                                    ; +0xbc, 0x140120f0c\nmovaps  xmm10, xmm6                                                    ; +0xc1, 0x140120f11\nja      short loc_140120F1F                                            ; +0xc5, 0x140120f15\nucomiss xmm7, xmm8                                                     ; +0xc7, 0x140120f17\njp      short loc_140120F22                                            ; +0xcb, 0x140120f1b\njnz     short loc_140120F22                                            ; +0xcd, 0x140120f1d\nmovaps  xmm7, xmm0                                                     ; +0xcf, 0x140120f1f\nmov     r9b, 1                                                         ; +0xd2, 0x140120f22\nmov     r8d, 16h                                                       ; +0xd5, 0x140120f25\nmov     rdx, rdi                                                       ; +0xdb, 0x140120f2b\nmov     rcx, rbp                                                       ; +0xde, 0x140120f2e\ncall    EditorUI__transformObject                                      ; +0xe1, 0x140120f31\nmov     rcx, rsi                                                       ; +0xe6, 0x140120f36\ninc     ebx                                                            ; +0xe9, 0x140120f39\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xeb, 0x140120f3b\ncmp     ebx, eax                                                       ; +0xf1, 0x140120f41\njb      loc_140120EC0                                                  ; +0xf3, 0x140120f43\nmovaps  xmm9, [rsp+98h+var_58]                                         ; +0xf9, 0x140120f49\nmov     rcx, rsi                                                       ; +0xff, 0x140120f4f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x102, 0x140120f52\nmovaps  xmm8, [rsp+98h+var_48]                                         ; +0x108, 0x140120f58\ntest    eax, eax                                                       ; +0x10e, 0x140120f5e\njz      loc_140121008                                                  ; +0x110, 0x140120f60\nnop     word ptr [rax+rax+00000000h]                                   ; +0x116, 0x140120f66\nmov     edx, r14d                                                      ; +0x120, 0x140120f70\nmov     rcx, rsi                                                       ; +0x123, 0x140120f73\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x126, 0x140120f76\nmov     rcx, rax                                                       ; +0x12c, 0x140120f7c\nmov     rdi, rax                                                       ; +0x12f, 0x140120f7f\nmov     rdx, [rax]                                                     ; +0x132, 0x140120f82\ncall    qword ptr [rdx+0C8h]                                           ; +0x135, 0x140120f85\nmov     rdx, [rdi]                                                     ; +0x13b, 0x140120f8b\nmovaps  xmm6, xmm10                                                    ; +0x13e, 0x140120f8e\nmov     rcx, rdi                                                       ; +0x142, 0x140120f92\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x145, 0x140120f95\nsubss   xmm0, xmm7                                                     ; +0x14a, 0x140120f9a\nsubss   xmm6, xmm0                                                     ; +0x14e, 0x140120f9e\ncall    qword ptr [rdx+0C8h]                                           ; +0x152, 0x140120fa2\nmov     rdx, [rdi]                                                     ; +0x158, 0x140120fa8\nmov     rcx, rdi                                                       ; +0x15b, 0x140120fab\nmov     rbx, rax                                                       ; +0x15e, 0x140120fae\ncall    qword ptr [rdx+0C8h]                                           ; +0x161, 0x140120fb1\nmovaps  xmm2, xmm6                                                     ; +0x167, 0x140120fb7\nlea     rcx, [rsp+98h+arg_18]                                          ; +0x16a, 0x140120fba\nmovss   xmm1, dword ptr [rax]                                          ; +0x172, 0x140120fc2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x176, 0x140120fc6\nmov     r8, rbx                                                        ; +0x17c, 0x140120fcc\nlea     rdx, [rsp+98h+arg_10]                                          ; +0x17f, 0x140120fcf\nmov     rcx, rax                                                       ; +0x187, 0x140120fd7\ncall    cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x18a, 0x140120fda\nlea     r8, [rsp+98h+arg_10]                                           ; +0x190, 0x140120fe0\nmov     rdx, rdi                                                       ; +0x198, 0x140120fe8\nmov     rcx, rbp                                                       ; +0x19b, 0x140120feb\ncall    EditorUI__moveObject                                           ; +0x19e, 0x140120fee\nmov     rcx, rsi                                                       ; +0x1a3, 0x140120ff3\ninc     r14d                                                           ; +0x1a6, 0x140120ff6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1a9, 0x140120ff9\ncmp     r14d, eax                                                      ; +0x1af, 0x140120fff\njb      loc_140120F70                                                  ; +0x1b2, 0x140121002\nmovaps  xmm6, [rsp+98h+var_28]                                         ; +0x1b8, 0x140121008\nlea     r11, [rsp+98h+var_18]                                          ; +0x1bd, 0x14012100d\nmov     rbx, [r11+20h]                                                 ; +0x1c5, 0x140121015\nmov     rbp, [r11+28h]                                                 ; +0x1c9, 0x140121019\nmovaps  xmm10, xmmword ptr [r11-50h]                                   ; +0x1cd, 0x14012101d\nmovaps  xmm7, [rsp+98h+var_38]                                         ; +0x1d2, 0x140121022\nmov     rsp, r11                                                       ; +0x1d7, 0x140121027\npop     r14                                                            ; +0x1da, 0x14012102a\npop     rdi                                                            ; +0x1dc, 0x14012102c\npop     rsi                                                            ; +0x1dd, 0x14012102d\nretn                                                                   ; +0x1de, 0x14012102e", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x140117467", "EditorUI::transformObjectCall_1 @ 0x1401204fb", "<???> @ 0x14067018c", "<???> @ 0x1406701c0", "<???> @ 0x1406c96fc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}