// // cocos2d::extension::CCControlUtils::CCRectUnion from 0xaa05a0 to 0xaa0774 (468 bytes) // // 4 xrefs: // > cocos2d::extension::CCControlButton::needsLayout @ 0xa9b828 // > cocos2d::extension::CCControlSlider::initWithSprites @ 0xa9e6d0 // > cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite @ 0xaa4858 // > @ 0x4fbd8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCRect cocos2d::extension::CCControlUtils::CCRectUnion(const cocos2d::CCRect *a1, const cocos2d::CCRect *a2) { cocos2d::CCRect *v2; // x8 cocos2d::CCRect *v5; // x22 float v6; // s0 float v7; // s8 float v8; // s0 float v9; // s0 float v10; // s8 float v11; // s0 float v12; // s9 float v13; // s0 float v14; // s0 float v15; // s10 float v16; // s0 float v17; // s9 float v18; // s0 float v19; // s0 float v20; // s9 float v21; // s0 float v22; // s11 float v23; // s0 float v24; // s0 float v25; // s11 float v26; // s0 float v27; // s1 float v32; // s0 float v33; // s0 float v34; // s9 float v35; // s0 float v36; // s0 float v37; // s0 float v38; // s9 float v39; // s0 float v40; // s0 float v41; // s0 float v42; // s11 float v43; // s0 float v44; // s0 cocos2d::CCPoint v45; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCRect result; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 v5 = v2; cocos2d::CCRect::CCRect(v2); cocos2d::CCRect::getMinX((cocos2d::CCRect *)a1); v7 = v6; cocos2d::CCRect::getMinX((cocos2d::CCRect *)a2); if ( v7 <= v8 ) { cocos2d::CCRect::getMinX((cocos2d::CCRect *)a1); v10 = v32; cocos2d::CCRect::getMinY((cocos2d::CCRect *)a1); v34 = v33; cocos2d::CCRect::getMinY((cocos2d::CCRect *)a2); if ( v34 > v35 ) { LABEL_3: cocos2d::CCRect::getMinY((cocos2d::CCRect *)a2); v15 = v14; cocos2d::CCRect::getMaxX((cocos2d::CCRect *)a1); v17 = v16; cocos2d::CCRect::getMaxX((cocos2d::CCRect *)a2); if ( v17 < v18 ) goto LABEL_4; LABEL_9: cocos2d::CCRect::getMaxX((cocos2d::CCRect *)a1); v20 = v40; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)a1); v42 = v41; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)a2); if ( v42 >= v43 ) goto LABEL_5; LABEL_10: cocos2d::CCRect::getMaxY((cocos2d::CCRect *)a2); v25 = v44; goto LABEL_6; } } else { cocos2d::CCRect::getMinX((cocos2d::CCRect *)a2); v10 = v9; cocos2d::CCRect::getMinY((cocos2d::CCRect *)a1); v12 = v11; cocos2d::CCRect::getMinY((cocos2d::CCRect *)a2); if ( v12 > v13 ) goto LABEL_3; } cocos2d::CCRect::getMinY((cocos2d::CCRect *)a1); v15 = v36; cocos2d::CCRect::getMaxX((cocos2d::CCRect *)a1); v38 = v37; cocos2d::CCRect::getMaxX((cocos2d::CCRect *)a2); if ( v38 >= v39 ) goto LABEL_9; LABEL_4: cocos2d::CCRect::getMaxX((cocos2d::CCRect *)a2); v20 = v19; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)a1); v22 = v21; cocos2d::CCRect::getMaxY((cocos2d::CCRect *)a2); if ( v22 < v23 ) goto LABEL_10; LABEL_5: cocos2d::CCRect::getMaxY((cocos2d::CCRect *)a1); v25 = v24; LABEL_6: cocos2d::CCPoint::CCPoint(&v45, v10, v20); cocos2d::CCPoint::operator=(v5, v26, v27); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v45, v20 - v10, v25 - v15); LODWORD(result.origin.x) = cocos2d::CCSize::operator=(&v5->size, &v45).n128_u32[0]; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source