{"type": "func", "start": 4299269952, "end": 4299270284, "name": "-[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:]", "pseudocode": "// \n// -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:] from 0x10041a740 to 0x10041a88c (332 bytes)\n// \n// 3 xrefs:\n// > -[EAGLView initWithFrame:] @ 0x10041a724\n// > -[EAGLView initWithFrame:pixelFormat:] @ 0x10041a73c\n// > <???> @ 0x100849d98\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\nEAGLView *__cdecl -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:](\n        EAGLView *self,\n        SEL a2,\n        CGRect a3,\n        id a4,\n        unsigned int a5,\n        bool a6,\n        id a7,\n        bool a8,\n        unsigned int a9)\n{\n  EAGLView *v15; // x0\n  __int64 v16; // x19\n  __int64 v17; // d0\n  __int64 v18; // d1\n  __int64 v19; // d2\n  __int64 v20; // d3\n  objc_super v22; // [xsp+0h] [xbp-50h] BYREF\n\n  v22.receiver = self;\n  v22.super_class = (Class)&OBJC_CLASS___EAGLView;\n  v15 = -[EAGLView initWithFrame:](&v22, \"initWithFrame:\", a3.origin.x, a3.origin.y, a3.size.width, a3.size.height);\n  v16 = (__int64)v15;\n  if ( v15 )\n  {\n    v15->isUseUITextField = 1;\n    v15->pixelformat_ = (NSString *)a4;\n    v15->depthFormat_ = a5;\n    v15->multiSampling_ = a8;\n    v15->requestedSamples_ = a9;\n    v15->preserveBackbuffer_ = a6;\n    v15->markedText_ = nullptr;\n    if ( -[EAGLView setupSurfaceWithSharegroup:](v15, \"setupSurfaceWithSharegroup:\", a7) )\n    {\n      qword_10086EBF0 = v16;\n      objc_msgSend((id)v16, \"frame\");\n      *(_QWORD *)(v16 + 112) = v17;\n      *(_QWORD *)(v16 + 120) = v18;\n      *(_QWORD *)(v16 + 128) = v19;\n      *(_QWORD *)(v16 + 136) = v20;\n      objc_msgSend((id)v16, \"setKeyboardShowNotification:\", 0);\n      if ( (unsigned int)objc_msgSend((id)qword_10086EBF0, \"respondsToSelector:\", \"setContentScaleFactor:\") )\n      {\n        -[UIScreen scale](+[UIScreen mainScreen](&OBJC_CLASS___UIScreen, \"mainScreen\"), \"scale\");\n        objc_msgSend((id)qword_10086EBF0, \"setContentScaleFactor:\");\n      }\n    }\n    else\n    {\n      objc_release((id)v16);\n      return nullptr;\n    }\n  }\n  return (EAGLView *)v16;\n}", "assembly": "; \n; -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:] from 0x10041a740 to 0x10041a88c (332 bytes)\n; \n; 3 xrefs:\n; > -[EAGLView initWithFrame:] @ 0x10041a724\n; > -[EAGLView initWithFrame:pixelFormat:] @ 0x10041a73c\n; > <???> @ 0x100849d98\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x10041a740\nSTP             X26, X25, [SP,#0x50+var_40]                            ; +0x4, 0x10041a744\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x10041a748\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x10041a74c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x10041a750\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x10041a754\nADD             X29, SP, #0x50                                         ; +0x18, 0x10041a758\nMOV             X22, X7                                                ; +0x1c, 0x10041a75c\nMOV             X23, X6                                                ; +0x20, 0x10041a760\nMOV             X20, X5                                                ; +0x24, 0x10041a764\nMOV             X21, X4                                                ; +0x28, 0x10041a768\nMOV             X24, X3                                                ; +0x2c, 0x10041a76c\nMOV             X25, X2                                                ; +0x30, 0x10041a770\nADRP            X8, #classRef_EAGLView_0@PAGE                          ; +0x34, 0x10041a774\nLDR             X8, [X8,#classRef_EAGLView_0@PAGEOFF]; _OBJC_CLASS_$_EAGLView ; +0x38, 0x10041a778\nSTP             X0, X8, [SP,#0x50+var_50]                              ; +0x3c, 0x10041a77c\nADRP            X8, #selRef_initWithFrame_@PAGE                        ; +0x40, 0x10041a780\nLDR             X1, [X8,#selRef_initWithFrame_@PAGEOFF]; \"initWithFrame:\" ... ; +0x44, 0x10041a784\nMOV             X0, SP; objc_super *                                   ; +0x48, 0x10041a788\nBL              _objc_msgSendSuper2; -[EAGLView initWithFrame:] ...    ; +0x4c, 0x10041a78c\nMOV             X19, X0                                                ; +0x50, 0x10041a790\nCBZ             X0, loc_10041A86C                                      ; +0x54, 0x10041a794\nADRP            X8, #_OBJC_IVAR_$_EAGLView.isUseUITextField@PAGE; bool isUseUITextField; ; +0x58, 0x10041a798\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.isUseUITextField@PAGEOFF]; bool isUseUITextField; ; +0x5c, 0x10041a79c\nMOV             W9, #1                                                 ; +0x60, 0x10041a7a0\nSTRB            W9, [X19,X8]                                           ; +0x64, 0x10041a7a4\nADRP            X8, #_OBJC_IVAR_$_EAGLView.pixelformat_@PAGE; NSString *pixelformat_; ; +0x68, 0x10041a7a8\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.pixelformat_@PAGEOFF]; NSString *pixelformat_; ; +0x6c, 0x10041a7ac\nSTR             X25, [X19,X8]                                          ; +0x70, 0x10041a7b0\nADRP            X8, #_OBJC_IVAR_$_EAGLView.depthFormat_@PAGE; unsigned int depthFormat_; ; +0x74, 0x10041a7b4\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.depthFormat_@PAGEOFF]; unsigned int depthFormat_; ; +0x78, 0x10041a7b8\nSTR             W24, [X19,X8]                                          ; +0x7c, 0x10041a7bc\nADRP            X8, #_OBJC_IVAR_$_EAGLView.multiSampling_@PAGE; bool multiSampling_; ; +0x80, 0x10041a7c0\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.multiSampling_@PAGEOFF]; bool multiSampling_; ; +0x84, 0x10041a7c4\nSTRB            W23, [X19,X8]                                          ; +0x88, 0x10041a7c8\nADRP            X8, #_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGE; unsigned int requestedSamples_; ; +0x8c, 0x10041a7cc\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGEOFF]; unsigned int requestedSamples_; ; +0x90, 0x10041a7d0\nSTR             W22, [X19,X8]                                          ; +0x94, 0x10041a7d4\nADRP            X8, #_OBJC_IVAR_$_EAGLView.preserveBackbuffer_@PAGE; bool preserveBackbuffer_; ; +0x98, 0x10041a7d8\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.preserveBackbuffer_@PAGEOFF]; bool preserveBackbuffer_; ; +0x9c, 0x10041a7dc\nSTRB            W21, [X19,X8]                                          ; +0xa0, 0x10041a7e0\nADRP            X8, #_OBJC_IVAR_$_EAGLView.markedText_@PAGE; NSString *markedText_; ; +0xa4, 0x10041a7e4\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.markedText_@PAGEOFF]; NSString *markedText_; ; +0xa8, 0x10041a7e8\nSTR             XZR, [X19,X8]                                          ; +0xac, 0x10041a7ec\nMOV             X0, X19                                                ; +0xb0, 0x10041a7f0\nMOV             X2, X20                                                ; +0xb4, 0x10041a7f4\nBL              _objc_msgSend$setupSurfaceWithSharegroup_; -[EAGLView setupSurfaceWithSharegroup:] ... ; +0xb8, 0x10041a7f8\nTBZ             W0, #0, loc_10041A860                                  ; +0xbc, 0x10041a7fc\nADRP            X20, #qword_10086EBF0@PAGE                             ; +0xc0, 0x10041a800\nSTR             X19, [X20,#qword_10086EBF0@PAGEOFF]                    ; +0xc4, 0x10041a804\nMOV             X0, X19                                                ; +0xc8, 0x10041a808\nBL              _objc_msgSend$frame                                    ; +0xcc, 0x10041a80c\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0xd0, 0x10041a810\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0xd4, 0x10041a814\nADD             X8, X19, X8                                            ; +0xd8, 0x10041a818\nSTP             D0, D1, [X8]                                           ; +0xdc, 0x10041a81c\nSTP             D2, D3, [X8,#0x10]                                     ; +0xe0, 0x10041a820\nMOV             X0, X19                                                ; +0xe4, 0x10041a824\nMOV             X2, #0                                                 ; +0xe8, 0x10041a828\nBL              _objc_msgSend$setKeyboardShowNotification_             ; +0xec, 0x10041a82c\nLDR             X0, [X20,#qword_10086EBF0@PAGEOFF]                     ; +0xf0, 0x10041a830\nADRP            X8, #selRef_setContentScaleFactor_@PAGE                ; +0xf4, 0x10041a834\nLDR             X2, [X8,#selRef_setContentScaleFactor_@PAGEOFF]; \"setContentScaleFactor:\" ... ; +0xf8, 0x10041a838\nBL              _objc_msgSend$respondsToSelector_                      ; +0xfc, 0x10041a83c\nCBZ             W0, loc_10041A86C                                      ; +0x100, 0x10041a840\nADRP            X8, #classRef_UIScreen@PAGE                            ; +0x104, 0x10041a844\nLDR             X0, [X8,#classRef_UIScreen@PAGEOFF]; _OBJC_CLASS_$_UIScreen ; +0x108, 0x10041a848\nBL              _objc_msgSend$mainScreen; +[UIScreen mainScreen] ...   ; +0x10c, 0x10041a84c\nBL              _objc_msgSend$scale; -[UIScreen scale] ...             ; +0x110, 0x10041a850\nLDR             X0, [X20,#qword_10086EBF0@PAGEOFF]                     ; +0x114, 0x10041a854\nBL              _objc_msgSend$setContentScaleFactor_                   ; +0x118, 0x10041a858\nB               loc_10041A86C                                          ; +0x11c, 0x10041a85c\nMOV             X0, X19; id                                            ; +0x120, 0x10041a860\nBL              _objc_release                                          ; +0x124, 0x10041a864\nMOV             X19, #0                                                ; +0x128, 0x10041a868\nMOV             X0, X19                                                ; +0x12c, 0x10041a86c\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x130, 0x10041a870\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x134, 0x10041a874\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x138, 0x10041a878\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x13c, 0x10041a87c\nLDP             X26, X25, [SP,#0x50+var_40]                            ; +0x140, 0x10041a880\nADD             SP, SP, #0x60 ; '`'                                    ; +0x144, 0x10041a884\nRET                                                                    ; +0x148, 0x10041a888", "xrefs": ["-[EAGLView initWithFrame:] @ 0x10041a724", "-[EAGLView initWithFrame:pixelFormat:] @ 0x10041a73c", "<???> @ 0x100849d98"], "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"}