{"type": "func", "start": 4299270284, "end": 4299270496, "name": "-[EAGLView initWithCoder:]", "pseudocode": "// \n// -[EAGLView initWithCoder:] from 0x10041a88c to 0x10041a960 (212 bytes)\n// \n// 2 xrefs:\n// > -[EAGLView initWithCoder:] @ 0x10041a8b4\n// > <???> @ 0x100849db0\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 initWithCoder:](EAGLView *self, SEL a2, id a3)\n{\n  EAGLView *v3; // x0\n  __int64 v4; // x19\n  void *v5; // x0\n  __int64 v6; // d2\n  __int64 v7; // d3\n  objc_super v9; // [xsp+0h] [xbp-20h] BYREF\n\n  v9.receiver = self;\n  v9.super_class = (Class)&OBJC_CLASS___EAGLView;\n  v3 = -[EAGLView initWithCoder:](&v9, \"initWithCoder:\", a3);\n  v4 = (__int64)v3;\n  if ( !v3 )\n    goto LABEL_3;\n  v5 = -[EAGLView layer](v3, \"layer\");\n  *(_QWORD *)(v4 + 24) = kEAGLColorFormatRGB565;\n  *(_DWORD *)(v4 + 32) = 0;\n  *(_BYTE *)(v4 + 153) = 0;\n  *(_DWORD *)(v4 + 60) = 0;\n  objc_msgSend(v5, \"bounds\");\n  *(_QWORD *)(v4 + 40) = v6;\n  *(_QWORD *)(v4 + 48) = v7;\n  *(_QWORD *)(v4 + 72) = 0;\n  if ( ((unsigned int)objc_msgSend((id)v4, \"setupSurfaceWithSharegroup:\", 0) & 1) == 0 )\n  {\n    objc_release((id)v4);\n    return nullptr;\n  }\n  else\n  {\nLABEL_3:\n    qword_10086EBF0 = v4;\n  }\n  return (EAGLView *)v4;\n}", "assembly": "; \n; -[EAGLView initWithCoder:] from 0x10041a88c to 0x10041a960 (212 bytes)\n; \n; 2 xrefs:\n; > -[EAGLView initWithCoder:] @ 0x10041a8b4\n; > <???> @ 0x100849db0\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, #0x30                                          ; +0x0, 0x10041a88c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10041a890\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10041a894\nADD             X29, SP, #0x20                                         ; +0xc, 0x10041a898\nADRP            X8, #classRef_EAGLView_0@PAGE                          ; +0x10, 0x10041a89c\nLDR             X8, [X8,#classRef_EAGLView_0@PAGEOFF]; _OBJC_CLASS_$_EAGLView ; +0x14, 0x10041a8a0\nSTP             X0, X8, [SP,#0x20+var_20]                              ; +0x18, 0x10041a8a4\nADRP            X8, #selRef_initWithCoder_@PAGE                        ; +0x1c, 0x10041a8a8\nLDR             X1, [X8,#selRef_initWithCoder_@PAGEOFF]; \"initWithCoder:\" ... ; +0x20, 0x10041a8ac\nMOV             X0, SP; objc_super *                                   ; +0x24, 0x10041a8b0\nBL              _objc_msgSendSuper2; -[EAGLView initWithCoder:] ...    ; +0x28, 0x10041a8b4\nMOV             X19, X0                                                ; +0x2c, 0x10041a8b8\nCBZ             X0, loc_10041A934                                      ; +0x30, 0x10041a8bc\nMOV             X0, X19                                                ; +0x34, 0x10041a8c0\nBL              _objc_msgSend$layer; -[EAGLView layer] ...             ; +0x38, 0x10041a8c4\nADRP            X8, #_kEAGLColorFormatRGB565_ptr@PAGE                  ; +0x3c, 0x10041a8c8\nLDR             X8, [X8,#_kEAGLColorFormatRGB565_ptr@PAGEOFF]; _kEAGLColorFormatRGB565 ; +0x40, 0x10041a8cc\nLDR             X8, [X8]                                               ; +0x44, 0x10041a8d0\nADRP            X9, #_OBJC_IVAR_$_EAGLView.pixelformat_@PAGE; NSString *pixelformat_; ; +0x48, 0x10041a8d4\nLDRSW           X9, [X9,#_OBJC_IVAR_$_EAGLView.pixelformat_@PAGEOFF]; NSString *pixelformat_; ; +0x4c, 0x10041a8d8\nSTR             X8, [X19,X9]                                           ; +0x50, 0x10041a8dc\nADRP            X8, #_OBJC_IVAR_$_EAGLView.depthFormat_@PAGE; unsigned int depthFormat_; ; +0x54, 0x10041a8e0\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.depthFormat_@PAGEOFF]; unsigned int depthFormat_; ; +0x58, 0x10041a8e4\nSTR             WZR, [X19,X8]                                          ; +0x5c, 0x10041a8e8\nADRP            X8, #_OBJC_IVAR_$_EAGLView.multiSampling_@PAGE; bool multiSampling_; ; +0x60, 0x10041a8ec\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.multiSampling_@PAGEOFF]; bool multiSampling_; ; +0x64, 0x10041a8f0\nSTRB            WZR, [X19,X8]                                          ; +0x68, 0x10041a8f4\nADRP            X8, #_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGE; unsigned int requestedSamples_; ; +0x6c, 0x10041a8f8\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGEOFF]; unsigned int requestedSamples_; ; +0x70, 0x10041a8fc\nSTR             WZR, [X19,X8]                                          ; +0x74, 0x10041a900\nBL              _objc_msgSend$bounds                                   ; +0x78, 0x10041a904\nADRP            X8, #_OBJC_IVAR_$_EAGLView.size_@PAGE; CGSize size_;   ; +0x7c, 0x10041a908\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.size_@PAGEOFF]; CGSize size_; ; +0x80, 0x10041a90c\nADD             X8, X19, X8                                            ; +0x84, 0x10041a910\nSTP             D2, D3, [X8]                                           ; +0x88, 0x10041a914\nADRP            X8, #_OBJC_IVAR_$_EAGLView.markedText_@PAGE; NSString *markedText_; ; +0x8c, 0x10041a918\nLDRSW           X8, [X8,#_OBJC_IVAR_$_EAGLView.markedText_@PAGEOFF]; NSString *markedText_; ; +0x90, 0x10041a91c\nSTR             XZR, [X19,X8]                                          ; +0x94, 0x10041a920\nMOV             X0, X19                                                ; +0x98, 0x10041a924\nMOV             X2, #0                                                 ; +0x9c, 0x10041a928\nBL              _objc_msgSend$setupSurfaceWithSharegroup_              ; +0xa0, 0x10041a92c\nTBZ             W0, #0, loc_10041A940                                  ; +0xa4, 0x10041a930\nADRP            X8, #qword_10086EBF0@PAGE                              ; +0xa8, 0x10041a934\nSTR             X19, [X8,#qword_10086EBF0@PAGEOFF]                     ; +0xac, 0x10041a938\nB               loc_10041A94C                                          ; +0xb0, 0x10041a93c\nMOV             X0, X19; id                                            ; +0xb4, 0x10041a940\nBL              _objc_release                                          ; +0xb8, 0x10041a944\nMOV             X19, #0                                                ; +0xbc, 0x10041a948\nMOV             X0, X19                                                ; +0xc0, 0x10041a94c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc4, 0x10041a950\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc8, 0x10041a954\nADD             SP, SP, #0x30 ; '0'                                    ; +0xcc, 0x10041a958\nRET                                                                    ; +0xd0, 0x10041a95c", "xrefs": ["-[EAGLView initWithCoder:] @ 0x10041a8b4", "<???> @ 0x100849db0"], "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"}