//
// -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:] from 0x10041bfd8 to 0x10041c158 (384 bytes)
//
// 1 xrefs:
// > ??> @ 0x10084a290
//
// 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
//
void __cdecl -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:](EAGLView *self, SEL a2, float a3, float a4)
{
cocos2d::CCEGLView *v7; // x0
float v8; // s8
double v9; // d0
double v10; // d0
UIInterfaceOrientation v11; // x20
float v12; // s0
__int64 v13; // x8
CGRect *p_originalRect; // x8
double x; // d0
double y; // d1
+[UIView beginAnimations:context:](&OBJC_CLASS___UIView, "beginAnimations:context:", 0, 0);
+[UIView setAnimationDelegate:](&OBJC_CLASS___UIView, "setAnimationDelegate:", self);
+[UIView setAnimationDuration:](&OBJC_CLASS___UIView, "setAnimationDuration:", a3);
+[UIView setAnimationBeginsFromCurrentState:](&OBJC_CLASS___UIView, "setAnimationBeginsFromCurrentState:", 1);
if ( a4 < 0.0 )
a4 = 0.0;
v7 = cocos2d::CCEGLView::sharedOpenGLView();
v8 = a4 * cocos2d::CCEGLViewProtocol::getScaleY(v7);
-[EAGLView contentScaleFactor](self, "contentScaleFactor");
if ( v9 != 0.0 )
{
-[EAGLView contentScaleFactor](self, "contentScaleFactor");
v8 = v8 / v10;
}
v11 = -[UIApplication statusBarOrientation](
+[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, "sharedApplication"),
"statusBarOrientation");
-[NSString floatValue](
-[UIDevice systemVersion](+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, "currentDevice"), "systemVersion"),
"floatValue");
if ( v12 >= 8.0 )
v13 = 1;
else
v13 = v11;
if ( v13 > 2 )
{
if ( v13 == 3 )
{
p_originalRect = &self->originalRect_;
y = self->originalRect_.origin.y;
x = self->originalRect_.origin.x + v8;
goto LABEL_17;
}
if ( v13 == 4 )
{
p_originalRect = &self->originalRect_;
y = self->originalRect_.origin.y;
x = self->originalRect_.origin.x - v8;
goto LABEL_17;
}
}
else
{
if ( v13 == 1 )
{
p_originalRect = &self->originalRect_;
x = self->originalRect_.origin.x;
y = self->originalRect_.origin.y - v8;
goto LABEL_17;
}
if ( v13 == 2 )
{
p_originalRect = &self->originalRect_;
x = self->originalRect_.origin.x;
y = self->originalRect_.origin.y + v8;
LABEL_17:
-[EAGLView setFrame:](self, "setFrame:", x, y, p_originalRect->size.width, p_originalRect->size.height);
}
}
+[UIView commitAnimations](&OBJC_CLASS___UIView, "commitAnimations");
}