{"type": "func", "start": 7398036, "end": 7398324, "name": "EditorUI::flipObjectsY", "pseudocode": "// \n// EditorUI::flipObjectsY from 0x70e294 to 0x70e3b4 (288 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x488180\n// > EditorUI::transformObjectCall @ 0x70e56c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:42 +0000\n// \n\nunsigned int __fastcall EditorUI::flipObjectsY(EditorUI *this, cocos2d::CCArray *a2)\n{\n  unsigned int v4; // r4\n  float v5; // s16\n  float v6; // s18\n  GameObject *v7; // r9\n  float v8; // r1\n  float v9; // r2\n  int v10; // r3\n  float v11; // s19\n  float v12; // r0\n  float v13; // s17\n  unsigned int v14; // r5\n  unsigned int result; // r0\n  GameObject *v16; // r0\n  GameObject *v17; // r4\n  float v18; // s17\n  float *v19; // r0\n  int v20; // r0\n  _BYTE v21[8]; // [sp+4h] [bp-1Ch] BYREF\n  _BYTE v22[16]; // [sp+Ch] [bp-14h] BYREF\n\n  v4 = 0;\n  v5 = -9999.0;\n  v6 = -9999.0;\n  while ( v4 < cocos2d::CCArray::count(a2) )\n  {\n    v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v4);\n    GameObject::updateStartPos(v7, v8, v9, v10);\n    (*(void (__fastcall **)(_BYTE *, GameObject *, int, int))(*(_DWORD *)v7 + 668))(v22, v7, 1065353216, 1065353216);\n    v11 = COERCE_FLOAT(cocos2d::CCRect::getMaxY((cocos2d::CCRect *)v22));\n    v12 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)v22));\n    if ( v11 > v6 )\n      v6 = v11;\n    v13 = v12;\n    if ( v12 >= v5 && v5 != -9999.0 )\n      v13 = v5;\n    EditorUI::transformObject((int)this, (int *)v7, 38, 1);\n    ++v4;\n    v5 = v13;\n  }\n  v14 = 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(a2);\n    if ( v14 >= result )\n      break;\n    v16 = (GameObject *)cocos2d::CCArray::objectAtIndex(a2, v14++);\n    v17 = v16;\n    v18 = *(float *)((*(int (__fastcall **)(GameObject *))(*(_DWORD *)v16 + 96))(v16) + 4);\n    v19 = (float *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)v17 + 96))(v17);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, *v19, v6 - (float)(v18 - v5));\n    v20 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v17 + 96))(v17);\n    cocos2d::CCPoint::operator-(v22, v21, v20);\n    EditorUI::moveObject((int)this, v17, (int)v22);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::flipObjectsY from 0x70e294 to 0x70e3b4 (288 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x488180\n; > EditorUI::transformObjectCall @ 0x70e56c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:57:42 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x70e294\nMOV             R8, R0                                                 ; +0x4, 0x70e298\nVPUSH           {D8-D10}                                               ; +0x6, 0x70e29a\nMOV             R7, R1                                                 ; +0xa, 0x70e29e\nLDR             R3, =(__stack_chk_guard_ptr - 0x70E2AC)                ; +0xc, 0x70e2a0\nMOVS            R4, #0                                                 ; +0xe, 0x70e2a2\nVLDR            S16, =-9999.0                                          ; +0x10, 0x70e2a4\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x14, 0x70e2a8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x16, 0x70e2aa\nSUB             SP, SP, #0x20                                          ; +0x18, 0x70e2ac\nLDR             R2, [R3]                                               ; +0x1a, 0x70e2ae\nADD             R5, SP, #0x20+var_14                                   ; +0x1c, 0x70e2b0\nMOV             R6, R3                                                 ; +0x1e, 0x70e2b2\nVMOV.F32        S18, S16                                               ; +0x20, 0x70e2b4\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x24, 0x70e2b8\nVMOV.F32        S20, S16                                               ; +0x26, 0x70e2ba\nMOV             R0, R7; this                                           ; +0x2a, 0x70e2be\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2c, 0x70e2c0\nCMP             R4, R0                                                 ; +0x30, 0x70e2c4\nBCS             loc_70E338                                             ; +0x32, 0x70e2c6\nMOV             R1, R4; unsigned int                                   ; +0x34, 0x70e2c8\nMOV             R0, R7; this                                           ; +0x36, 0x70e2ca\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x70e2cc\nMOV             R9, R0                                                 ; +0x3c, 0x70e2d0\nBL              _ZN10GameObject14updateStartPosEv; GameObject::updateStartPos(void) ; +0x3e, 0x70e2d2\nLDR.W           R3, [R9]                                               ; +0x42, 0x70e2d6\nMOV.W           R2, #0x3F800000                                        ; +0x46, 0x70e2da\nMOV             R1, R9                                                 ; +0x4a, 0x70e2de\nMOV             R0, R5                                                 ; +0x4c, 0x70e2e0\nLDR.W           R12, [R3,#0x29C]                                       ; +0x4e, 0x70e2e2\nMOV             R3, R2                                                 ; +0x52, 0x70e2e6\nBLX             R12                                                    ; +0x54, 0x70e2e8\nMOV             R0, R5; this                                           ; +0x56, 0x70e2ea\nBL              _ZNK7cocos2d6CCRect7getMaxYEv; cocos2d::CCRect::getMaxY(void) ; +0x58, 0x70e2ec\nVMOV            S19, R0                                                ; +0x5c, 0x70e2f0\nMOV             R0, R5; this                                           ; +0x60, 0x70e2f4\nBL              _ZNK7cocos2d6CCRect7getMinYEv; cocos2d::CCRect::getMinY(void) ; +0x62, 0x70e2f6\nVCMP.F32        S19, S18                                               ; +0x66, 0x70e2fa\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6a, 0x70e2fe\nIT GT                                                                  ; +0x6e, 0x70e302\nVMOVGT.F32      S18, S19                                               ; +0x70, 0x70e304\nVMOV            S17, R0                                                ; +0x74, 0x70e308\nVCMPE.F32       S17, S16                                               ; +0x78, 0x70e30c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7c, 0x70e310\nBMI             loc_70E324                                             ; +0x80, 0x70e314\nVCMP.F32        S16, S20                                               ; +0x82, 0x70e316\nVMRS            APSR_nzcv, FPSCR                                       ; +0x86, 0x70e31a\nIT NE                                                                  ; +0x8a, 0x70e31e\nVMOVNE.F32      S17, S16                                               ; +0x8c, 0x70e320\nMOV             R0, R8                                                 ; +0x90, 0x70e324\nMOV             R1, R9                                                 ; +0x92, 0x70e326\nMOVS            R2, #0x26 ; '&'                                        ; +0x94, 0x70e328\nMOVS            R3, #1                                                 ; +0x96, 0x70e32a\nBL              _ZN8EditorUI15transformObjectEP10GameObject11EditCommandb; EditorUI::transformObject(GameObject *,EditCommand,bool) ; +0x98, 0x70e32c\nADDS            R4, #1                                                 ; +0x9c, 0x70e330\nVMOV.F32        S16, S17                                               ; +0x9e, 0x70e332\nB               loc_70E2BE                                             ; +0xa2, 0x70e336\nADD.W           R9, SP, #0x20+var_1C                                   ; +0xa4, 0x70e338\nADD.W           R10, SP, #0x20+var_14                                  ; +0xa8, 0x70e33c\nMOVS            R5, #0                                                 ; +0xac, 0x70e340\nMOV             R0, R7; this                                           ; +0xae, 0x70e342\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xb0, 0x70e344\nCMP             R5, R0                                                 ; +0xb4, 0x70e348\nBCS             loc_70E39E                                             ; +0xb6, 0x70e34a\nMOV             R1, R5; unsigned int                                   ; +0xb8, 0x70e34c\nMOV             R0, R7; this                                           ; +0xba, 0x70e34e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xbc, 0x70e350\nADDS            R5, #1                                                 ; +0xc0, 0x70e354\nLDR             R3, [R0]                                               ; +0xc2, 0x70e356\nMOV             R4, R0                                                 ; +0xc4, 0x70e358\nLDR             R3, [R3,#0x60]                                         ; +0xc6, 0x70e35a\nBLX             R3                                                     ; +0xc8, 0x70e35c\nLDR             R3, [R4]                                               ; +0xca, 0x70e35e\nLDR             R3, [R3,#0x60]                                         ; +0xcc, 0x70e360\nVLDR            S17, [R0,#4]                                           ; +0xce, 0x70e362\nMOV             R0, R4                                                 ; +0xd2, 0x70e366\nBLX             R3                                                     ; +0xd4, 0x70e368\nVSUB.F32        S17, S17, S16                                          ; +0xd6, 0x70e36a\nVSUB.F32        S17, S18, S17                                          ; +0xda, 0x70e36e\nVMOV            R2, S17; float                                         ; +0xde, 0x70e372\nMOV             R3, R0                                                 ; +0xe2, 0x70e376\nMOV             R0, R9; this                                           ; +0xe4, 0x70e378\nLDR             R1, [R3]; float                                        ; +0xe6, 0x70e37a\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xe8, 0x70e37c\nLDR             R3, [R4]                                               ; +0xec, 0x70e380\nMOV             R0, R4                                                 ; +0xee, 0x70e382\nLDR             R3, [R3,#0x60]                                         ; +0xf0, 0x70e384\nBLX             R3                                                     ; +0xf2, 0x70e386\nMOV             R1, R9                                                 ; +0xf4, 0x70e388\nMOV             R2, R0                                                 ; +0xf6, 0x70e38a\nMOV             R0, R10                                                ; +0xf8, 0x70e38c\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0xfa, 0x70e38e\nMOV             R0, R8                                                 ; +0xfe, 0x70e392\nMOV             R1, R4                                                 ; +0x100, 0x70e394\nMOV             R2, R10                                                ; +0x102, 0x70e396\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x104, 0x70e398\nB               loc_70E342                                             ; +0x108, 0x70e39c\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x10a, 0x70e39e\nLDR             R3, [R6]                                               ; +0x10c, 0x70e3a0\nCMP             R2, R3                                                 ; +0x10e, 0x70e3a2\nBEQ             loc_70E3AA                                             ; +0x110, 0x70e3a4\nBLX             __stack_chk_fail                                       ; +0x112, 0x70e3a6\nADD             SP, SP, #0x20 ; ' '                                    ; +0x116, 0x70e3aa\nVPOP            {D8-D10}                                               ; +0x118, 0x70e3ac\nPOP.W           {R4-R10,PC}                                            ; +0x11c, 0x70e3b0", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x488180", "EditorUI::transformObjectCall @ 0x70e56c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}