; ; -[EAGLView setupSurfaceWithSharegroup:] from 0x10049c948 to 0x10049caa0 (344 bytes) ; ; 2 xrefs: ; > -[EAGLView initWithFrame:pixelFormat:depthFormat:preserveBackbuffer:sharegroup:multiSampling:numberOfSamples:] @ 0x10049c6ac ; > @ 0x1009d3860 ; ; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:05:59 +0000 ; SUB SP, SP, #0x60 ; +0x0, 0x10049c948 STP X24, X23, [SP,#0x50+var_30] ; +0x4, 0x10049c94c STP X22, X21, [SP,#0x50+var_20] ; +0x8, 0x10049c950 STP X20, X19, [SP,#0x50+var_10] ; +0xc, 0x10049c954 STP X29, X30, [SP,#0x50+var_s0] ; +0x10, 0x10049c958 ADD X29, SP, #0x50 ; +0x14, 0x10049c95c MOV X20, X2 ; +0x18, 0x10049c960 MOV X19, X0 ; +0x1c, 0x10049c964 BL _objc_msgSend$layer; -[EAGLView layer] ... ; +0x20, 0x10049c968 MOV X21, X0 ; +0x24, 0x10049c96c MOV W2, #1 ; +0x28, 0x10049c970 BL _objc_msgSend$setOpaque_ ; +0x2c, 0x10049c974 ADRP X8, #classRef_NSDictionary@PAGE ; +0x30, 0x10049c978 LDR X22, [X8,#classRef_NSDictionary@PAGEOFF]; _OBJC_CLASS_$_NSDictionary ; +0x34, 0x10049c97c ADRP X8, #classRef_NSNumber@PAGE ; +0x38, 0x10049c980 LDR X0, [X8,#classRef_NSNumber@PAGEOFF]; _OBJC_CLASS_$_NSNumber ; +0x3c, 0x10049c984 ADRP X8, #_OBJC_IVAR_$_EAGLView.preserveBackbuffer_@PAGE; bool preserveBackbuffer_; ; +0x40, 0x10049c988 LDRSW X8, [X8,#_OBJC_IVAR_$_EAGLView.preserveBackbuffer_@PAGEOFF]; bool preserveBackbuffer_; ; +0x44, 0x10049c98c LDRB W2, [X19,X8] ; +0x48, 0x10049c990 BL _objc_msgSend$numberWithBool_; +[NSNumber numberWithBool:] ... ; +0x4c, 0x10049c994 MOV X2, X0 ; +0x50, 0x10049c998 ADRP X8, #_kEAGLDrawablePropertyRetainedBacking_ptr@PAGE ; +0x54, 0x10049c99c LDR X8, [X8,#_kEAGLDrawablePropertyRetainedBacking_ptr@PAGEOFF]; _kEAGLDrawablePropertyRetainedBacking ; +0x58, 0x10049c9a0 LDR X8, [X8] ; +0x5c, 0x10049c9a4 ADRP X9, #_OBJC_IVAR_$_EAGLView.pixelformat_@PAGE; NSString *pixelformat_; ; +0x60, 0x10049c9a8 LDRSW X23, [X9,#_OBJC_IVAR_$_EAGLView.pixelformat_@PAGEOFF]; NSString *pixelformat_; ; +0x64, 0x10049c9ac LDR X9, [X19,X23] ; +0x68, 0x10049c9b0 ADRP X10, #_kEAGLDrawablePropertyColorFormat_ptr@PAGE ; +0x6c, 0x10049c9b4 LDR X10, [X10,#_kEAGLDrawablePropertyColorFormat_ptr@PAGEOFF]; _kEAGLDrawablePropertyColorFormat ; +0x70, 0x10049c9b8 LDR X10, [X10] ; +0x74, 0x10049c9bc STP X10, XZR, [SP,#0x50+var_40] ; +0x78, 0x10049c9c0 STP X8, X9, [SP,#0x50+var_50] ; +0x7c, 0x10049c9c4 MOV X0, X22 ; +0x80, 0x10049c9c8 BL _objc_msgSend$dictionaryWithObjectsAndKeys_; +[NSDictionary dictionaryWithObjectsAndKeys:] ... ; +0x84, 0x10049c9cc MOV X2, X0 ; +0x88, 0x10049c9d0 MOV X0, X21 ; +0x8c, 0x10049c9d4 BL _objc_msgSend$setDrawableProperties_ ; +0x90, 0x10049c9d8 ADRP X8, #classRef_CCES2Renderer@PAGE ; +0x94, 0x10049c9dc LDR X0, [X8,#classRef_CCES2Renderer@PAGEOFF]; _OBJC_CLASS_$_CCES2Renderer ; Class ; +0x98, 0x10049c9e0 BL _objc_alloc ; +0x9c, 0x10049c9e4 MOV X21, X0 ; +0xa0, 0x10049c9e8 ADRP X8, #_OBJC_IVAR_$_EAGLView.depthFormat_@PAGE; unsigned int depthFormat_; ; +0xa4, 0x10049c9ec LDRSW X8, [X8,#_OBJC_IVAR_$_EAGLView.depthFormat_@PAGEOFF]; unsigned int depthFormat_; ; +0xa8, 0x10049c9f0 LDR W22, [X19,X8] ; +0xac, 0x10049c9f4 LDR X2, [X19,X23] ; +0xb0, 0x10049c9f8 MOV X0, X19 ; +0xb4, 0x10049c9fc BL _objc_msgSend$convertPixelFormat_; -[EAGLView convertPixelFormat:] ... ; +0xb8, 0x10049ca00 MOV X3, X0 ; +0xbc, 0x10049ca04 ADRP X8, #_OBJC_IVAR_$_EAGLView.multiSampling_@PAGE; bool multiSampling_; ; +0xc0, 0x10049ca08 LDRSW X8, [X8,#_OBJC_IVAR_$_EAGLView.multiSampling_@PAGEOFF]; bool multiSampling_; ; +0xc4, 0x10049ca0c LDRB W5, [X19,X8] ; +0xc8, 0x10049ca10 ADRP X8, #_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGE; unsigned int requestedSamples_; ; +0xcc, 0x10049ca14 LDRSW X8, [X8,#_OBJC_IVAR_$_EAGLView.requestedSamples_@PAGEOFF]; unsigned int requestedSamples_; ; +0xd0, 0x10049ca18 LDR W6, [X19,X8] ; +0xd4, 0x10049ca1c MOV X0, X21 ; +0xd8, 0x10049ca20 MOV X2, X22 ; +0xdc, 0x10049ca24 MOV X4, X20 ; +0xe0, 0x10049ca28 BL _objc_msgSend$initWithDepthFormat_withPixelFormat_withSharegroup_withMultiSampling_withNumberOfSamples_; -[CCES2Renderer initWithDepthFormat:withPixelFormat:withSharegroup:withMultiSampling:withNumberOfSamples:] ... ; +0xe4, 0x10049ca2c MOV X20, X0 ; +0xe8, 0x10049ca30 ADRP X8, #_OBJC_IVAR_$_EAGLView.renderer_@PAGE; CCESRenderer *renderer_; ; +0xec, 0x10049ca34 LDRSW X8, [X8,#_OBJC_IVAR_$_EAGLView.renderer_@PAGEOFF]; CCESRenderer *renderer_; ; +0xf0, 0x10049ca38 STR X0, [X19,X8] ; +0xf4, 0x10049ca3c CBZ X0, loc_10049CA80 ; +0xf8, 0x10049ca40 MOV X0, X20 ; +0xfc, 0x10049ca44 BL _objc_msgSend$context; -[CCES2Renderer context] ... ; +0x100, 0x10049ca48 ADRP X8, #_OBJC_IVAR_$_EAGLView.context_@PAGE; EAGLContext *context_; ; +0x104, 0x10049ca4c LDRSW X8, [X8,#_OBJC_IVAR_$_EAGLView.context_@PAGEOFF]; EAGLContext *context_; ; +0x108, 0x10049ca50 STR X0, [X19,X8] ; +0x10c, 0x10049ca54 BL _glGetError ; +0x110, 0x10049ca58 CBZ W0, loc_10049CA80 ; +0x114, 0x10049ca5c MOV W8, #0xF6 ; +0x118, 0x10049ca60 ADRL X9, aEaglviewSetups; "-[EAGLView setupSurfaceWithSharegroup:]" ; +0x11c, 0x10049ca64 STP X9, X8, [SP,#0x50+var_48] ; +0x124, 0x10049ca6c STR X0, [SP,#0x50+var_50] ; +0x128, 0x10049ca70 ADRL X0, aOpenglError0x0; "OpenGL error 0x%04X in %s %d\n" ; +0x12c, 0x10049ca74 BL _printf ; +0x134, 0x10049ca7c CMP X20, #0 ; +0x138, 0x10049ca80 CSET W0, NE ; +0x13c, 0x10049ca84 LDP X29, X30, [SP,#0x50+var_s0] ; +0x140, 0x10049ca88 LDP X20, X19, [SP,#0x50+var_10] ; +0x144, 0x10049ca8c LDP X22, X21, [SP,#0x50+var_20] ; +0x148, 0x10049ca90 LDP X24, X23, [SP,#0x50+var_30] ; +0x14c, 0x10049ca94 ADD SP, SP, #0x60 ; '`' ; +0x150, 0x10049ca98 RET ; +0x154, 0x10049ca9c