// // OBB2D::orderCorners from 0x6ae848 to 0x6aea6c (548 bytes) // // 2 xrefs: // > OBB2D::calculateWithCenter @ 0x6aebfc // > @ 0x4b718 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:50:49 +0000 // __int64 __fastcall OBB2D::orderCorners(OBB2D *this) { char *v2; // x25 float *v3; // x19 float *v4; // x22 float *v5; // x20 __int64 v6; // x0 float v7; // s0 __int64 v8; // x0 float v9; // s0 float v11[2]; // [xsp+58h] [xbp+58h] BYREF float v12; // [xsp+60h] [xbp+60h] BYREF float v13; // [xsp+64h] [xbp+64h] float v14[2]; // [xsp+68h] [xbp+68h] BYREF float v15; // [xsp+70h] [xbp+70h] BYREF float v16; // [xsp+74h] [xbp+74h] v2 = (char *)this + 316; v3 = (float *)((char *)this + 316); v4 = (float *)((char *)this + 348); v5 = (float *)((char *)this + 316); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12); cocos2d::CCPoint::operator=(&v12, v2); cocos2d::CCPoint::operator=(v11, v6); do { v7 = v5[1]; if ( v7 > v11[1] ) { cocos2d::CCPoint::operator=(&v12, v11); cocos2d::CCPoint::operator=(v11, v5); } else if ( v7 > v13 || v7 == v13 && *v5 < v12 ) { cocos2d::CCPoint::operator=(&v12, v5); } v5 += 2; } while ( v5 != v4 ); if ( v11[0] <= v12 ) { cocos2d::CCPoint::operator=((char *)this + 348, v11); cocos2d::CCPoint::operator=((char *)this + 356, &v12); } else { cocos2d::CCPoint::operator=((char *)this + 348, &v12); cocos2d::CCPoint::operator=((char *)this + 356, v11); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15); cocos2d::CCPoint::operator=(&v15, v2); cocos2d::CCPoint::operator=(v14, v8); do { v9 = v3[1]; if ( v9 < v14[1] ) { cocos2d::CCPoint::operator=(&v15, v14); cocos2d::CCPoint::operator=(v14, v3); } else if ( v9 < v16 || v9 == v16 && *v3 > v15 ) { cocos2d::CCPoint::operator=(&v15, v3); } v3 += 2; } while ( v3 != v4 ); if ( v14[0] > v15 ) { cocos2d::CCPoint::operator=((char *)this + 364, v14); cocos2d::CCPoint::operator=((char *)this + 372, &v15); } else { cocos2d::CCPoint::operator=((char *)this + 364, &v15); cocos2d::CCPoint::operator=((char *)this + 372, v14); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source