{"type": "func", "start": 4299808668, "end": 4299809052, "name": "-[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:]", "pseudocode": "// \n// -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:] from 0x10049df9c to 0x10049e11c (384 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009d3cf8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:06:00 +0000\n// \n\nvoid __cdecl -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:](EAGLView *self, SEL a2, float a3, float a4)\n{\n  float *v7; // x0\n  float v8; // s8\n  double v9; // d0\n  double v10; // d0\n  UIInterfaceOrientation v11; // x20\n  float v12; // s0\n  __int64 v13; // x8\n  CGRect *p_originalRect; // x8\n  double x; // d0\n  double y; // d1\n\n  +[UIView beginAnimations:context:](&OBJC_CLASS___UIView, \"beginAnimations:context:\", 0, 0);\n  +[UIView setAnimationDelegate:](&OBJC_CLASS___UIView, \"setAnimationDelegate:\", self);\n  +[UIView setAnimationDuration:](&OBJC_CLASS___UIView, \"setAnimationDuration:\", a3);\n  +[UIView setAnimationBeginsFromCurrentState:](&OBJC_CLASS___UIView, \"setAnimationBeginsFromCurrentState:\", 1);\n  if ( a4 < 0.0 )\n    a4 = 0.0;\n  v7 = cocos2d::CCEGLView::sharedOpenGLView();\n  v8 = a4 * cocos2d::CCEGLViewProtocol::getScaleY((__int64)v7);\n  -[EAGLView contentScaleFactor](self, \"contentScaleFactor\");\n  if ( v9 != 0.0 )\n  {\n    -[EAGLView contentScaleFactor](self, \"contentScaleFactor\");\n    v8 = v8 / v10;\n  }\n  v11 = -[UIApplication statusBarOrientation](\n          +[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, \"sharedApplication\"),\n          \"statusBarOrientation\");\n  -[NSString floatValue](\n    -[UIDevice systemVersion](+[UIDevice currentDevice](&OBJC_CLASS___UIDevice, \"currentDevice\"), \"systemVersion\"),\n    \"floatValue\");\n  if ( v12 >= 8.0 )\n    v13 = 1;\n  else\n    v13 = v11;\n  if ( v13 > 2 )\n  {\n    if ( v13 == 3 )\n    {\n      p_originalRect = &self->originalRect_;\n      y = self->originalRect_.origin.y;\n      x = self->originalRect_.origin.x + v8;\n      goto LABEL_17;\n    }\n    if ( v13 == 4 )\n    {\n      p_originalRect = &self->originalRect_;\n      y = self->originalRect_.origin.y;\n      x = self->originalRect_.origin.x - v8;\n      goto LABEL_17;\n    }\n  }\n  else\n  {\n    if ( v13 == 1 )\n    {\n      p_originalRect = &self->originalRect_;\n      x = self->originalRect_.origin.x;\n      y = self->originalRect_.origin.y - v8;\n      goto LABEL_17;\n    }\n    if ( v13 == 2 )\n    {\n      p_originalRect = &self->originalRect_;\n      x = self->originalRect_.origin.x;\n      y = self->originalRect_.origin.y + v8;\nLABEL_17:\n      -[EAGLView setFrame:](self, \"setFrame:\", x, y, p_originalRect->size.width, p_originalRect->size.height);\n    }\n  }\n  +[UIView commitAnimations](&OBJC_CLASS___UIView, \"commitAnimations\");\n}", "assembly": "; \n; -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:] from 0x10049df9c to 0x10049e11c (384 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009d3cf8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:06:00 +0000\n; \nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x10049df9c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10049dfa0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10049dfa4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10049dfa8\nADD             X29, SP, #0x30                                         ; +0x10, 0x10049dfac\nFMOV            S8, S1                                                 ; +0x14, 0x10049dfb0\nFMOV            S9, S0                                                 ; +0x18, 0x10049dfb4\nMOV             X19, X0                                                ; +0x1c, 0x10049dfb8\nADRP            X21, #classRef_UIView@PAGE                             ; +0x20, 0x10049dfbc\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x24, 0x10049dfc0\nMOV             X2, #0                                                 ; +0x28, 0x10049dfc4\nMOV             X3, #0                                                 ; +0x2c, 0x10049dfc8\nBL              _objc_msgSend$beginAnimations_context_; +[UIView beginAnimations:context:] ... ; +0x30, 0x10049dfcc\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x34, 0x10049dfd0\nMOV             X2, X19                                                ; +0x38, 0x10049dfd4\nBL              _objc_msgSend$setAnimationDelegate_; +[UIView setAnimationDelegate:] ... ; +0x3c, 0x10049dfd8\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x40, 0x10049dfdc\nFCVT            D0, S9                                                 ; +0x44, 0x10049dfe0\nBL              _objc_msgSend$setAnimationDuration_; +[UIView setAnimationDuration:] ... ; +0x48, 0x10049dfe4\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x4c, 0x10049dfe8\nMOV             W2, #1                                                 ; +0x50, 0x10049dfec\nBL              _objc_msgSend$setAnimationBeginsFromCurrentState_; +[UIView setAnimationBeginsFromCurrentState:] ... ; +0x54, 0x10049dff0\nFCMP            S8, #0.0                                               ; +0x58, 0x10049dff4\nFMOV            S0, WZR                                                ; +0x5c, 0x10049dff8\nFCSEL           S8, S0, S8, MI                                         ; +0x60, 0x10049dffc\nBL              cocos2d__CCEGLView__sharedOpenGLView                   ; +0x64, 0x10049e000\nBL              cocos2d__CCEGLViewProtocol__getScaleY                  ; +0x68, 0x10049e004\nFMUL            S8, S8, S0                                             ; +0x6c, 0x10049e008\nMOV             X0, X19                                                ; +0x70, 0x10049e00c\nBL              _objc_msgSend$contentScaleFactor; -[EAGLView contentScaleFactor] ... ; +0x74, 0x10049e010\nFCMP            D0, #0.0                                               ; +0x78, 0x10049e014\nB.EQ            loc_10049E030                                          ; +0x7c, 0x10049e018\nMOV             X0, X19                                                ; +0x80, 0x10049e01c\nBL              _objc_msgSend$contentScaleFactor; -[EAGLView contentScaleFactor] ... ; +0x84, 0x10049e020\nFCVT            D1, S8                                                 ; +0x88, 0x10049e024\nFDIV            D0, D1, D0                                             ; +0x8c, 0x10049e028\nFCVT            S8, D0                                                 ; +0x90, 0x10049e02c\nADRP            X8, #classRef_UIApplication@PAGE                       ; +0x94, 0x10049e030\nLDR             X0, [X8,#classRef_UIApplication@PAGEOFF]; _OBJC_CLASS_$_UIApplication ; +0x98, 0x10049e034\nBL              _objc_msgSend$sharedApplication; +[UIApplication sharedApplication] ... ; +0x9c, 0x10049e038\nBL              _objc_msgSend$statusBarOrientation; -[UIApplication statusBarOrientation] ... ; +0xa0, 0x10049e03c\nMOV             X20, X0                                                ; +0xa4, 0x10049e040\nADRP            X8, #classRef_UIDevice@PAGE                            ; +0xa8, 0x10049e044\nLDR             X0, [X8,#classRef_UIDevice@PAGEOFF]; _OBJC_CLASS_$_UIDevice ; +0xac, 0x10049e048\nBL              _objc_msgSend$currentDevice; +[UIDevice currentDevice] ... ; +0xb0, 0x10049e04c\nBL              _objc_msgSend$systemVersion; -[UIDevice systemVersion] ... ; +0xb4, 0x10049e050\nBL              _objc_msgSend$floatValue; -[NSString floatValue] ...   ; +0xb8, 0x10049e054\nFMOV            S1, #8.0                                               ; +0xbc, 0x10049e058\nFCMP            S0, S1                                                 ; +0xc0, 0x10049e05c\nCSINC           X8, X20, XZR, LT                                       ; +0xc4, 0x10049e060\nCMP             X8, #2                                                 ; +0xc8, 0x10049e064\nB.GT            loc_10049E098                                          ; +0xcc, 0x10049e068\nCMP             X8, #1                                                 ; +0xd0, 0x10049e06c\nB.EQ            loc_10049E0C4                                          ; +0xd4, 0x10049e070\nCMP             X8, #2                                                 ; +0xd8, 0x10049e074\nB.NE            loc_10049E104                                          ; +0xdc, 0x10049e078\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0xe0, 0x10049e07c\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0xe4, 0x10049e080\nADD             X8, X19, X8                                            ; +0xe8, 0x10049e084\nLDP             D0, D1, [X8]                                           ; +0xec, 0x10049e088\nFCVT            D2, S8                                                 ; +0xf0, 0x10049e08c\nFADD            D1, D1, D2                                             ; +0xf4, 0x10049e090\nB               loc_10049E0F8                                          ; +0xf8, 0x10049e094\nCMP             X8, #3                                                 ; +0xfc, 0x10049e098\nB.EQ            loc_10049E0E0                                          ; +0x100, 0x10049e09c\nCMP             X8, #4                                                 ; +0x104, 0x10049e0a0\nB.NE            loc_10049E104                                          ; +0x108, 0x10049e0a4\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0x10c, 0x10049e0a8\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0x110, 0x10049e0ac\nADD             X8, X19, X8                                            ; +0x114, 0x10049e0b0\nFCVT            D0, S8                                                 ; +0x118, 0x10049e0b4\nLDP             D2, D1, [X8]                                           ; +0x11c, 0x10049e0b8\nFSUB            D0, D2, D0                                             ; +0x120, 0x10049e0bc\nB               loc_10049E0F8                                          ; +0x124, 0x10049e0c0\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0x128, 0x10049e0c4\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0x12c, 0x10049e0c8\nADD             X8, X19, X8                                            ; +0x130, 0x10049e0cc\nLDP             D0, D1, [X8]                                           ; +0x134, 0x10049e0d0\nFCVT            D2, S8                                                 ; +0x138, 0x10049e0d4\nFSUB            D1, D1, D2                                             ; +0x13c, 0x10049e0d8\nB               loc_10049E0F8                                          ; +0x140, 0x10049e0dc\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0x144, 0x10049e0e0\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0x148, 0x10049e0e4\nADD             X8, X19, X8                                            ; +0x14c, 0x10049e0e8\nFCVT            D0, S8                                                 ; +0x150, 0x10049e0ec\nLDP             D2, D1, [X8]                                           ; +0x154, 0x10049e0f0\nFADD            D0, D2, D0                                             ; +0x158, 0x10049e0f4\nLDP             D2, D3, [X8,#0x10]                                     ; +0x15c, 0x10049e0f8\nMOV             X0, X19                                                ; +0x160, 0x10049e0fc\nBL              _objc_msgSend$setFrame_; -[EAGLView setFrame:] ...     ; +0x164, 0x10049e100\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x168, 0x10049e104\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x16c, 0x10049e108\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x170, 0x10049e10c\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x174, 0x10049e110\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x178, 0x10049e114\nB               _objc_msgSend$commitAnimations                         ; +0x17c, 0x10049e118", "xrefs": ["<???> @ 0x1009d3cf8"], "is_objc": true, "is_32_bit": false, "is_64_bit": true, "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"}