{"type": "func", "start": 4299802100, "end": 4299802432, "name": "-[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:]", "pseudocode": "// \n// -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:] from 0x10049c5f4 to 0x10049c740 (332 bytes)\n// \n// 3 xrefs:\n// > -[EAGLView initWithFrame:] @ 0x10049c5d8\n// > -[EAGLView initWithFrame:pixelFormat:] @ 0x10049c5f0\n// > <???> @ 0x1009d37e8\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:05:59 +0000\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_1009F7B40 = 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 ( (objc_opt_respondsToSelector(qword_1009F7B40, \"setContentScaleFactor:\") & 1) != 0 )\n      {\n        -[UIScreen scale](+[UIScreen mainScreen](&OBJC_CLASS___UIScreen, \"mainScreen\"), \"scale\");\n        objc_msgSend((id)qword_1009F7B40, \"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 0x10049c5f4 to 0x10049c740 (332 bytes)\n; \n; 3 xrefs:\n; > -[EAGLView initWithFrame:] @ 0x10049c5d8\n; > -[EAGLView initWithFrame:pixelFormat:] @ 0x10049c5f0\n; > <???> @ 0x1009d37e8\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:05:59 +0000\n; \nSUB             SP, SP, #0x60                                          ; +0x0, 0x10049c5f4\nSTP             X26, X25, [SP,#0x50+var_40]                            ; +0x4, 0x10049c5f8\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x10049c5fc\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x10049c600\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x10049c604\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x10049c608\nADD             X29, SP, #0x50                                         ; +0x18, 0x10049c60c\nMOV             X22, X7                                                ; +0x1c, 0x10049c610\nMOV             X23, X6                                                ; +0x20, 0x10049c614\nMOV             X20, X5                                                ; +0x24, 0x10049c618\nMOV             X21, X4                                                ; +0x28, 0x10049c61c\nMOV             X24, X3                                                ; +0x2c, 0x10049c620\nMOV             X25, X2                                                ; +0x30, 0x10049c624\nADRP            X8, #classRef_EAGLView_0@PAGE                          ; +0x34, 0x10049c628\nLDR             X8, [X8,#classRef_EAGLView_0@PAGEOFF]; _OBJC_CLASS_$_EAGLView ; +0x38, 0x10049c62c\nSTP             X0, X8, [SP,#0x50+var_50]                              ; +0x3c, 0x10049c630\nADRP            X8, #selRef_initWithFrame_@PAGE                        ; +0x40, 0x10049c634\nLDR             X1, [X8,#selRef_initWithFrame_@PAGEOFF]; \"initWithFrame:\" ... ; +0x44, 0x10049c638\nMOV             X0, SP; objc_super *                                   ; +0x48, 0x10049c63c\nBL              _objc_msgSendSuper2; -[EAGLView initWithFrame:] ...    ; +0x4c, 0x10049c640\nMOV             X19, X0                                                ; +0x50, 0x10049c644\nCBZ             X0, loc_10049C720                                      ; +0x54, 0x10049c648\nADRP            X8, #_OBJC_IVAR_$_EAGLView.isUseUITextField@PAGE; bool isUseUITextField; ; +0x58, 0x10049c64c\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.isUseUITextField@PAGEOFF]; bool isUseUITextField; ; +0x5c, 0x10049c650\nMOV             W9, #1                                                 ; +0x60, 0x10049c654\nSTRB            W9, [X19,X8]                                           ; +0x64, 0x10049c658\nADRP            X8, #_OBJC_IVAR_$_EAGLView.pixelformat_@PAGE; NSString *pixelformat_; ; +0x68, 0x10049c65c\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.pixelformat_@PAGEOFF]; NSString *pixelformat_; ; +0x6c, 0x10049c660\nSTR             X25, [X19,X8]                                          ; +0x70, 0x10049c664\nADRP            X8, #_OBJC_IVAR_$_EAGLView.depthFormat_@PAGE; unsigned int depthFormat_; ; +0x74, 0x10049c668\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.depthFormat_@PAGEOFF]; unsigned int depthFormat_; ; +0x78, 0x10049c66c\nSTR             W24, [X19,X8]                                          ; +0x7c, 0x10049c670\nADRP            X8, #_OBJC_IVAR_$_EAGLView.multiSampling_@PAGE; bool multiSampling_; ; +0x80, 0x10049c674\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.multiSampling_@PAGEOFF]; bool multiSampling_; ; +0x84, 0x10049c678\nSTRB            W23, [X19,X8]                                          ; +0x88, 0x10049c67c\nADRP            X8, #_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGE; unsigned int requestedSamples_; ; +0x8c, 0x10049c680\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGEOFF]; unsigned int requestedSamples_; ; +0x90, 0x10049c684\nSTR             W22, [X19,X8]                                          ; +0x94, 0x10049c688\nADRP            X8, #_OBJC_IVAR_$_EAGLView.preserveBackbuffer_@PAGE; bool preserveBackbuffer_; ; +0x98, 0x10049c68c\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.preserveBackbuffer_@PAGEOFF]; bool preserveBackbuffer_; ; +0x9c, 0x10049c690\nSTRB            W21, [X19,X8]                                          ; +0xa0, 0x10049c694\nADRP            X8, #_OBJC_IVAR_$_EAGLView.markedText_@PAGE; NSString *markedText_; ; +0xa4, 0x10049c698\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.markedText_@PAGEOFF]; NSString *markedText_; ; +0xa8, 0x10049c69c\nSTR             XZR, [X19,X8]                                          ; +0xac, 0x10049c6a0\nMOV             X0, X19                                                ; +0xb0, 0x10049c6a4\nMOV             X2, X20                                                ; +0xb4, 0x10049c6a8\nBL              _objc_msgSend$setupSurfaceWithSharegroup_; -[EAGLView setupSurfaceWithSharegroup:] ... ; +0xb8, 0x10049c6ac\nTBZ             W0, #0, loc_10049C714                                  ; +0xbc, 0x10049c6b0\nADRP            X20, #qword_1009F7B40@PAGE                             ; +0xc0, 0x10049c6b4\nSTR             X19, [X20,#qword_1009F7B40@PAGEOFF]                    ; +0xc4, 0x10049c6b8\nMOV             X0, X19                                                ; +0xc8, 0x10049c6bc\nBL              _objc_msgSend$frame                                    ; +0xcc, 0x10049c6c0\nADRP            X8, #_OBJC_IVAR_$_EAGLView.originalRect_@PAGE; CGRect originalRect_; ; +0xd0, 0x10049c6c4\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.originalRect_@PAGEOFF]; CGRect originalRect_; ; +0xd4, 0x10049c6c8\nADD             X8, X19, X8                                            ; +0xd8, 0x10049c6cc\nSTP             D0, D1, [X8]                                           ; +0xdc, 0x10049c6d0\nSTP             D2, D3, [X8,#0x10]                                     ; +0xe0, 0x10049c6d4\nMOV             X0, X19                                                ; +0xe4, 0x10049c6d8\nMOV             X2, #0                                                 ; +0xe8, 0x10049c6dc\nBL              _objc_msgSend$setKeyboardShowNotification_             ; +0xec, 0x10049c6e0\nLDR             X0, [X20,#qword_1009F7B40@PAGEOFF]                     ; +0xf0, 0x10049c6e4\nADRP            X8, #selRef_setContentScaleFactor_@PAGE                ; +0xf4, 0x10049c6e8\nLDR             X1, [X8,#selRef_setContentScaleFactor_@PAGEOFF]; \"setContentScaleFactor:\" ... ; +0xf8, 0x10049c6ec\nBL              _objc_opt_respondsToSelector                           ; +0xfc, 0x10049c6f0\nTBZ             W0, #0, loc_10049C720                                  ; +0x100, 0x10049c6f4\nADRP            X8, #classRef_UIScreen@PAGE                            ; +0x104, 0x10049c6f8\nLDR             X0, [X8,#classRef_UIScreen@PAGEOFF]; _OBJC_CLASS_$_UIScreen ; +0x108, 0x10049c6fc\nBL              _objc_msgSend$mainScreen; +[UIScreen mainScreen] ...   ; +0x10c, 0x10049c700\nBL              _objc_msgSend$scale; -[UIScreen scale] ...             ; +0x110, 0x10049c704\nLDR             X0, [X20,#qword_1009F7B40@PAGEOFF]                     ; +0x114, 0x10049c708\nBL              _objc_msgSend$setContentScaleFactor_                   ; +0x118, 0x10049c70c\nB               loc_10049C720                                          ; +0x11c, 0x10049c710\nMOV             X0, X19; id                                            ; +0x120, 0x10049c714\nBL              _objc_release                                          ; +0x124, 0x10049c718\nMOV             X19, #0                                                ; +0x128, 0x10049c71c\nMOV             X0, X19                                                ; +0x12c, 0x10049c720\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x130, 0x10049c724\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x134, 0x10049c728\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x138, 0x10049c72c\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x13c, 0x10049c730\nLDP             X26, X25, [SP,#0x50+var_40]                            ; +0x140, 0x10049c734\nADD             SP, SP, #0x60 ; '`'                                    ; +0x144, 0x10049c738\nRET                                                                    ; +0x148, 0x10049c73c", "xrefs": ["-[EAGLView initWithFrame:] @ 0x10049c5d8", "-[EAGLView initWithFrame:pixelFormat:] @ 0x10049c5f0", "<???> @ 0x1009d37e8"], "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"}