{"type": "func", "start": 7397740, "end": 7398028, "name": "EditorUI::flipObjectsX", "pseudocode": "// \n// EditorUI::flipObjectsX from 0x70e16c to 0x70e28c (288 bytes)\n// \n// 2 xrefs:\n// > EditorUI::createSmartObjectsFromTemplate @ 0x48818a\n// > EditorUI::transformObjectCall @ 0x70e560\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::flipObjectsX(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  int 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::getMaxX((cocos2d::CCRect *)v22));\n    v12 = COERCE_FLOAT(cocos2d::CCRect::getMinX((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, 37, 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);\n    v19 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)v17 + 96))(v17);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v6 - (float)(v18 - v5), *(float *)(v19 + 4));\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::flipObjectsX from 0x70e16c to 0x70e28c (288 bytes)\n; \n; 2 xrefs:\n; > EditorUI::createSmartObjectsFromTemplate @ 0x48818a\n; > EditorUI::transformObjectCall @ 0x70e560\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, 0x70e16c\nMOV             R8, R0                                                 ; +0x4, 0x70e170\nVPUSH           {D8-D10}                                               ; +0x6, 0x70e172\nMOV             R7, R1                                                 ; +0xa, 0x70e176\nLDR             R3, =(__stack_chk_guard_ptr - 0x70E184)                ; +0xc, 0x70e178\nMOVS            R4, #0                                                 ; +0xe, 0x70e17a\nVLDR            S16, =-9999.0                                          ; +0x10, 0x70e17c\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x14, 0x70e180\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x16, 0x70e182\nSUB             SP, SP, #0x20                                          ; +0x18, 0x70e184\nLDR             R2, [R3]                                               ; +0x1a, 0x70e186\nADD             R5, SP, #0x20+var_14                                   ; +0x1c, 0x70e188\nMOV             R6, R3                                                 ; +0x1e, 0x70e18a\nVMOV.F32        S18, S16                                               ; +0x20, 0x70e18c\nSTR             R2, [SP,#0x20+var_4]                                   ; +0x24, 0x70e190\nVMOV.F32        S20, S16                                               ; +0x26, 0x70e192\nMOV             R0, R7; this                                           ; +0x2a, 0x70e196\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2c, 0x70e198\nCMP             R4, R0                                                 ; +0x30, 0x70e19c\nBCS             loc_70E210                                             ; +0x32, 0x70e19e\nMOV             R1, R4; unsigned int                                   ; +0x34, 0x70e1a0\nMOV             R0, R7; this                                           ; +0x36, 0x70e1a2\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x70e1a4\nMOV             R9, R0                                                 ; +0x3c, 0x70e1a8\nBL              _ZN10GameObject14updateStartPosEv; GameObject::updateStartPos(void) ; +0x3e, 0x70e1aa\nLDR.W           R3, [R9]                                               ; +0x42, 0x70e1ae\nMOV.W           R2, #0x3F800000                                        ; +0x46, 0x70e1b2\nMOV             R1, R9                                                 ; +0x4a, 0x70e1b6\nMOV             R0, R5                                                 ; +0x4c, 0x70e1b8\nLDR.W           R12, [R3,#0x29C]                                       ; +0x4e, 0x70e1ba\nMOV             R3, R2                                                 ; +0x52, 0x70e1be\nBLX             R12                                                    ; +0x54, 0x70e1c0\nMOV             R0, R5; this                                           ; +0x56, 0x70e1c2\nBL              _ZNK7cocos2d6CCRect7getMaxXEv; cocos2d::CCRect::getMaxX(void) ; +0x58, 0x70e1c4\nVMOV            S19, R0                                                ; +0x5c, 0x70e1c8\nMOV             R0, R5; this                                           ; +0x60, 0x70e1cc\nBL              _ZNK7cocos2d6CCRect7getMinXEv; cocos2d::CCRect::getMinX(void) ; +0x62, 0x70e1ce\nVCMP.F32        S19, S18                                               ; +0x66, 0x70e1d2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x6a, 0x70e1d6\nIT GT                                                                  ; +0x6e, 0x70e1da\nVMOVGT.F32      S18, S19                                               ; +0x70, 0x70e1dc\nVMOV            S17, R0                                                ; +0x74, 0x70e1e0\nVCMPE.F32       S17, S16                                               ; +0x78, 0x70e1e4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x7c, 0x70e1e8\nBMI             loc_70E1FC                                             ; +0x80, 0x70e1ec\nVCMP.F32        S16, S20                                               ; +0x82, 0x70e1ee\nVMRS            APSR_nzcv, FPSCR                                       ; +0x86, 0x70e1f2\nIT NE                                                                  ; +0x8a, 0x70e1f6\nVMOVNE.F32      S17, S16                                               ; +0x8c, 0x70e1f8\nMOV             R0, R8                                                 ; +0x90, 0x70e1fc\nMOV             R1, R9                                                 ; +0x92, 0x70e1fe\nMOVS            R2, #0x25 ; '%'                                        ; +0x94, 0x70e200\nMOVS            R3, #1                                                 ; +0x96, 0x70e202\nBL              _ZN8EditorUI15transformObjectEP10GameObject11EditCommandb; EditorUI::transformObject(GameObject *,EditCommand,bool) ; +0x98, 0x70e204\nADDS            R4, #1                                                 ; +0x9c, 0x70e208\nVMOV.F32        S16, S17                                               ; +0x9e, 0x70e20a\nB               loc_70E196                                             ; +0xa2, 0x70e20e\nADD.W           R9, SP, #0x20+var_1C                                   ; +0xa4, 0x70e210\nADD.W           R10, SP, #0x20+var_14                                  ; +0xa8, 0x70e214\nMOVS            R5, #0                                                 ; +0xac, 0x70e218\nMOV             R0, R7; this                                           ; +0xae, 0x70e21a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xb0, 0x70e21c\nCMP             R5, R0                                                 ; +0xb4, 0x70e220\nBCS             loc_70E276                                             ; +0xb6, 0x70e222\nMOV             R1, R5; unsigned int                                   ; +0xb8, 0x70e224\nMOV             R0, R7; this                                           ; +0xba, 0x70e226\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xbc, 0x70e228\nADDS            R5, #1                                                 ; +0xc0, 0x70e22c\nLDR             R3, [R0]                                               ; +0xc2, 0x70e22e\nMOV             R4, R0                                                 ; +0xc4, 0x70e230\nLDR             R3, [R3,#0x60]                                         ; +0xc6, 0x70e232\nBLX             R3                                                     ; +0xc8, 0x70e234\nLDR             R3, [R4]                                               ; +0xca, 0x70e236\nLDR             R3, [R3,#0x60]                                         ; +0xcc, 0x70e238\nVLDR            S17, [R0]                                              ; +0xce, 0x70e23a\nMOV             R0, R4                                                 ; +0xd2, 0x70e23e\nBLX             R3                                                     ; +0xd4, 0x70e240\nVSUB.F32        S17, S17, S16                                          ; +0xd6, 0x70e242\nVSUB.F32        S17, S18, S17                                          ; +0xda, 0x70e246\nVMOV            R1, S17; float                                         ; +0xde, 0x70e24a\nMOV             R3, R0                                                 ; +0xe2, 0x70e24e\nMOV             R0, R9; this                                           ; +0xe4, 0x70e250\nLDR             R2, [R3,#4]; float                                     ; +0xe6, 0x70e252\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xe8, 0x70e254\nLDR             R3, [R4]                                               ; +0xec, 0x70e258\nMOV             R0, R4                                                 ; +0xee, 0x70e25a\nLDR             R3, [R3,#0x60]                                         ; +0xf0, 0x70e25c\nBLX             R3                                                     ; +0xf2, 0x70e25e\nMOV             R1, R9                                                 ; +0xf4, 0x70e260\nMOV             R2, R0                                                 ; +0xf6, 0x70e262\nMOV             R0, R10                                                ; +0xf8, 0x70e264\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0xfa, 0x70e266\nMOV             R0, R8                                                 ; +0xfe, 0x70e26a\nMOV             R1, R4                                                 ; +0x100, 0x70e26c\nMOV             R2, R10                                                ; +0x102, 0x70e26e\nBL              _ZN8EditorUI10moveObjectEP10GameObjectN7cocos2d7CCPointE; EditorUI::moveObject(GameObject *,cocos2d::CCPoint) ; +0x104, 0x70e270\nB               loc_70E21A                                             ; +0x108, 0x70e274\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x10a, 0x70e276\nLDR             R3, [R6]                                               ; +0x10c, 0x70e278\nCMP             R2, R3                                                 ; +0x10e, 0x70e27a\nBEQ             loc_70E282                                             ; +0x110, 0x70e27c\nBLX             __stack_chk_fail                                       ; +0x112, 0x70e27e\nADD             SP, SP, #0x20 ; ' '                                    ; +0x116, 0x70e282\nVPOP            {D8-D10}                                               ; +0x118, 0x70e284\nPOP.W           {R4-R10,PC}                                            ; +0x11c, 0x70e288", "xrefs": ["EditorUI::createSmartObjectsFromTemplate @ 0x48818a", "EditorUI::transformObjectCall @ 0x70e560"], "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"}