{"type": "func", "start": 4299276248, "end": 4299276632, "name": "-[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:]", "pseudocode": "// \n// -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:] from 0x10041bfd8 to 0x10041c158 (384 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10084a290\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __cdecl -[EAGLView doAnimationWhenKeyboardMoveWithDuration:distance:](EAGLView *self, SEL a2, float a3, float a4)\n{\n  cocos2d::CCEGLView *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(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 0x10041bfd8 to 0x10041c158 (384 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10084a290\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             D9, D8, [SP,#-0x10+var_30]!                            ; +0x0, 0x10041bfd8\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10041bfdc\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10041bfe0\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10041bfe4\nADD             X29, SP, #0x30                                         ; +0x10, 0x10041bfe8\nFMOV            S8, S1                                                 ; +0x14, 0x10041bfec\nFMOV            S9, S0                                                 ; +0x18, 0x10041bff0\nMOV             X19, X0                                                ; +0x1c, 0x10041bff4\nADRP            X21, #classRef_UIView@PAGE                             ; +0x20, 0x10041bff8\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x24, 0x10041bffc\nMOV             X2, #0                                                 ; +0x28, 0x10041c000\nMOV             X3, #0                                                 ; +0x2c, 0x10041c004\nBL              _objc_msgSend$beginAnimations_context_; +[UIView beginAnimations:context:] ... ; +0x30, 0x10041c008\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x34, 0x10041c00c\nMOV             X2, X19                                                ; +0x38, 0x10041c010\nBL              _objc_msgSend$setAnimationDelegate_; +[UIView setAnimationDelegate:] ... ; +0x3c, 0x10041c014\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x40, 0x10041c018\nFCVT            D0, S9                                                 ; +0x44, 0x10041c01c\nBL              _objc_msgSend$setAnimationDuration_; +[UIView setAnimationDuration:] ... ; +0x48, 0x10041c020\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x4c, 0x10041c024\nMOV             W2, #1                                                 ; +0x50, 0x10041c028\nBL              _objc_msgSend$setAnimationBeginsFromCurrentState_; +[UIView setAnimationBeginsFromCurrentState:] ... ; +0x54, 0x10041c02c\nFCMP            S8, #0.0                                               ; +0x58, 0x10041c030\nFMOV            S0, WZR                                                ; +0x5c, 0x10041c034\nFCSEL           S8, S0, S8, MI                                         ; +0x60, 0x10041c038\nBL              cocos2d__CCEGLView__sharedOpenGLView                   ; +0x64, 0x10041c03c\nBL              cocos2d__CCEGLViewProtocol__getScaleY                  ; +0x68, 0x10041c040\nFMUL            S8, S8, S0                                             ; +0x6c, 0x10041c044\nMOV             X0, X19                                                ; +0x70, 0x10041c048\nBL              _objc_msgSend$contentScaleFactor; -[EAGLView contentScaleFactor] ... ; +0x74, 0x10041c04c\nFCMP            D0, #0.0                                               ; +0x78, 0x10041c050\nB.EQ            loc_10041C06C                                          ; +0x7c, 0x10041c054\nMOV             X0, X19                                                ; +0x80, 0x10041c058\nBL              _objc_msgSend$contentScaleFactor; -[EAGLView contentScaleFactor] ... ; +0x84, 0x10041c05c\nFCVT            D1, S8                                                 ; +0x88, 0x10041c060\nFDIV            D0, D1, D0                                             ; +0x8c, 0x10041c064\nFCVT            S8, D0                                                 ; +0x90, 0x10041c068\nADRP            X8, #classRef_UIApplication@PAGE                       ; +0x94, 0x10041c06c\nLDR             X0, [X8,#classRef_UIApplication@PAGEOFF]; _OBJC_CLASS_$_UIApplication ; +0x98, 0x10041c070\nBL              _objc_msgSend$sharedApplication; +[UIApplication sharedApplication] ... ; +0x9c, 0x10041c074\nBL              _objc_msgSend$statusBarOrientation; -[UIApplication statusBarOrientation] ... ; +0xa0, 0x10041c078\nMOV             X20, X0                                                ; +0xa4, 0x10041c07c\nADRP            X8, #classRef_UIDevice@PAGE                            ; +0xa8, 0x10041c080\nLDR             X0, [X8,#classRef_UIDevice@PAGEOFF]; _OBJC_CLASS_$_UIDevice ; +0xac, 0x10041c084\nBL              _objc_msgSend$currentDevice; +[UIDevice currentDevice] ... ; +0xb0, 0x10041c088\nBL              _objc_msgSend$systemVersion; -[UIDevice systemVersion] ... ; +0xb4, 0x10041c08c\nBL              _objc_msgSend$floatValue; -[NSString floatValue] ...   ; +0xb8, 0x10041c090\nFMOV            S1, #8.0                                               ; +0xbc, 0x10041c094\nFCMP            S0, S1                                                 ; +0xc0, 0x10041c098\nCSINC           X8, X20, XZR, LT                                       ; +0xc4, 0x10041c09c\nCMP             X8, #2                                                 ; +0xc8, 0x10041c0a0\nB.GT            loc_10041C0D4                                          ; +0xcc, 0x10041c0a4\nCMP             X8, #1                                                 ; +0xd0, 0x10041c0a8\nB.EQ            loc_10041C100                                          ; +0xd4, 0x10041c0ac\nCMP             X8, #2                                                 ; +0xd8, 0x10041c0b0\nB.NE            loc_10041C140                                          ; +0xdc, 0x10041c0b4\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0xe0, 0x10041c0b8\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0xe4, 0x10041c0bc\nADD             X8, X19, X8                                            ; +0xe8, 0x10041c0c0\nLDP             D0, D1, [X8]                                           ; +0xec, 0x10041c0c4\nFCVT            D2, S8                                                 ; +0xf0, 0x10041c0c8\nFADD            D1, D1, D2                                             ; +0xf4, 0x10041c0cc\nB               loc_10041C134                                          ; +0xf8, 0x10041c0d0\nCMP             X8, #3                                                 ; +0xfc, 0x10041c0d4\nB.EQ            loc_10041C11C                                          ; +0x100, 0x10041c0d8\nCMP             X8, #4                                                 ; +0x104, 0x10041c0dc\nB.NE            loc_10041C140                                          ; +0x108, 0x10041c0e0\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0x10c, 0x10041c0e4\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0x110, 0x10041c0e8\nADD             X8, X19, X8                                            ; +0x114, 0x10041c0ec\nFCVT            D0, S8                                                 ; +0x118, 0x10041c0f0\nLDP             D2, D1, [X8]                                           ; +0x11c, 0x10041c0f4\nFSUB            D0, D2, D0                                             ; +0x120, 0x10041c0f8\nB               loc_10041C134                                          ; +0x124, 0x10041c0fc\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0x128, 0x10041c100\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0x12c, 0x10041c104\nADD             X8, X19, X8                                            ; +0x130, 0x10041c108\nLDP             D0, D1, [X8]                                           ; +0x134, 0x10041c10c\nFCVT            D2, S8                                                 ; +0x138, 0x10041c110\nFSUB            D1, D1, D2                                             ; +0x13c, 0x10041c114\nB               loc_10041C134                                          ; +0x140, 0x10041c118\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0x144, 0x10041c11c\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0x148, 0x10041c120\nADD             X8, X19, X8                                            ; +0x14c, 0x10041c124\nFCVT            D0, S8                                                 ; +0x150, 0x10041c128\nLDP             D2, D1, [X8]                                           ; +0x154, 0x10041c12c\nFADD            D0, D2, D0                                             ; +0x158, 0x10041c130\nLDP             D2, D3, [X8,#0x10]                                     ; +0x15c, 0x10041c134\nMOV             X0, X19                                                ; +0x160, 0x10041c138\nBL              _objc_msgSend$setFrame_; -[EAGLView setFrame:] ...     ; +0x164, 0x10041c13c\nLDR             X0, [X21,#classRef_UIView@PAGEOFF]; _OBJC_CLASS_$_UIView ; +0x168, 0x10041c140\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x16c, 0x10041c144\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x170, 0x10041c148\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x174, 0x10041c14c\nLDP             D9, D8, [SP+0x30+var_30],#0x40                         ; +0x178, 0x10041c150\nB               _objc_msgSend$commitAnimations                         ; +0x17c, 0x10041c154", "xrefs": ["<???> @ 0x10084a290"], "is_objc": true, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}