; ; -[CCES2Renderer initWithDepthFormat:withPixelFormat:withSharegroup:withMultiSampling:withNumberOfSamples:] from 0x1003fcecc to 0x1003fd040 (372 bytes) ; ; 1 xrefs: ; > @ 0x100848928 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; SUB SP, SP, #0x80 ; +0x0, 0x1003fcecc STP X26, X25, [SP,#0x70+var_40] ; +0x4, 0x1003fced0 STP X24, X23, [SP,#0x70+var_30] ; +0x8, 0x1003fced4 STP X22, X21, [SP,#0x70+var_20] ; +0xc, 0x1003fced8 STP X20, X19, [SP,#0x70+var_10] ; +0x10, 0x1003fcedc STP X29, X30, [SP,#0x70+var_s0] ; +0x14, 0x1003fcee0 ADD X29, SP, #0x70 ; +0x18, 0x1003fcee4 MOV X20, X6 ; +0x1c, 0x1003fcee8 MOV X21, X5 ; +0x20, 0x1003fceec MOV X24, X4 ; +0x24, 0x1003fcef0 MOV X22, X3 ; +0x28, 0x1003fcef4 MOV X23, X2 ; +0x2c, 0x1003fcef8 ADRP X8, #classRef_CCES2Renderer_0@PAGE ; +0x30, 0x1003fcefc LDR X8, [X8,#classRef_CCES2Renderer_0@PAGEOFF]; _OBJC_CLASS_$_CCES2Renderer ; +0x34, 0x1003fcf00 STP X0, X8, [SP,#0x70+var_50] ; +0x38, 0x1003fcf04 ADRP X8, #selRef_init@PAGE ; +0x3c, 0x1003fcf08 LDR X1, [X8,#selRef_init@PAGEOFF]; "init" ... ; +0x40, 0x1003fcf0c ADD X0, SP, #0x70+var_50; objc_super * ; +0x44, 0x1003fcf10 BL _objc_msgSendSuper2; -[CCES2Renderer init] ... ; +0x48, 0x1003fcf14 MOV X19, X0 ; +0x4c, 0x1003fcf18 CBZ X0, loc_1003FD020 ; +0x50, 0x1003fcf1c ADRP X25, #classRef_EAGLContext@PAGE ; +0x54, 0x1003fcf20 LDR X0, [X25,#classRef_EAGLContext@PAGEOFF]; _OBJC_CLASS_$_EAGLContext ; Class ; +0x58, 0x1003fcf24 BL _objc_alloc ; +0x5c, 0x1003fcf28 MOV W2, #2 ; +0x60, 0x1003fcf2c CBZ X24, loc_1003FCF40 ; +0x64, 0x1003fcf30 MOV X3, X24 ; +0x68, 0x1003fcf34 BL _objc_msgSend$initWithAPI_sharegroup_ ; +0x6c, 0x1003fcf38 B loc_1003FCF44 ; +0x70, 0x1003fcf3c BL _objc_msgSend$initWithAPI_ ; +0x74, 0x1003fcf40 MOV X2, X0 ; +0x78, 0x1003fcf44 STR X0, [X19,#0x38] ; +0x7c, 0x1003fcf48 CBZ X0, loc_1003FD014 ; +0x80, 0x1003fcf4c LDR X0, [X25,#classRef_EAGLContext@PAGEOFF]; _OBJC_CLASS_$_EAGLContext ; +0x84, 0x1003fcf50 BL _objc_msgSend$setCurrentContext_; +[EAGLContext setCurrentContext:] ... ; +0x88, 0x1003fcf54 TBZ W0, #0, loc_1003FD014 ; +0x8c, 0x1003fcf58 STP W23, W22, [X19,#0x18] ; +0x90, 0x1003fcf5c STRB W21, [X19,#0x14] ; +0x94, 0x1003fcf60 ADD X1, X19, #0x20 ; ' '; framebuffers ; +0x98, 0x1003fcf64 MOV W0, #1; n ; +0x9c, 0x1003fcf68 BL _glGenFramebuffers ; +0xa0, 0x1003fcf6c ADD X1, X19, #0x24 ; '$'; renderbuffers ; +0xa4, 0x1003fcf70 MOV W0, #1; n ; +0xa8, 0x1003fcf74 BL _glGenRenderbuffers ; +0xac, 0x1003fcf78 LDR W1, [X19,#0x20]; framebuffer ; +0xb0, 0x1003fcf7c MOV W0, #0x8D40; target ; +0xb4, 0x1003fcf80 BL _glBindFramebuffer ; +0xb8, 0x1003fcf84 LDR W1, [X19,#0x24]; renderbuffer ; +0xbc, 0x1003fcf88 MOV W0, #0x8D41; target ; +0xc0, 0x1003fcf8c BL _glBindRenderbuffer ; +0xc4, 0x1003fcf90 LDR W3, [X19,#0x24]; renderbuffer ; +0xc8, 0x1003fcf94 MOV W0, #0x8D40; target ; +0xcc, 0x1003fcf98 MOV W1, #0x8CE0; attachment ; +0xd0, 0x1003fcf9c MOV W2, #0x8D41; renderbuffertarget ; +0xd4, 0x1003fcfa0 BL _glFramebufferRenderbuffer ; +0xd8, 0x1003fcfa4 LDRB W8, [X19,#0x14] ; +0xdc, 0x1003fcfa8 CMP W8, #1 ; +0xe0, 0x1003fcfac B.NE loc_1003FCFE8 ; +0xe4, 0x1003fcfb0 ADD X1, SP, #0x70+params; params ; +0xe8, 0x1003fcfb4 MOV W0, #0x8D57; pname ; +0xec, 0x1003fcfb8 BL _glGetIntegerv ; +0xf0, 0x1003fcfbc LDR W8, [SP,#0x70+params] ; +0xf4, 0x1003fcfc0 CMP W8, W20 ; +0xf8, 0x1003fcfc4 CSEL W8, W8, W20, CC ; +0xfc, 0x1003fcfc8 STR W8, [X19,#0x10] ; +0x100, 0x1003fcfcc ADD X1, X19, #0x2C ; ','; framebuffers ; +0x104, 0x1003fcfd0 MOV W0, #1; n ; +0x108, 0x1003fcfd4 BL _glGenFramebuffers ; +0x10c, 0x1003fcfd8 LDR W1, [X19,#0x2C]; framebuffer ; +0x110, 0x1003fcfdc MOV W0, #0x8D40; target ; +0x114, 0x1003fcfe0 BL _glBindFramebuffer ; +0x118, 0x1003fcfe4 BL _glGetError ; +0x11c, 0x1003fcfe8 CBZ W0, loc_1003FD020 ; +0x120, 0x1003fcfec MOV W8, #0x5A ; 'Z' ; +0x124, 0x1003fcff0 ADRL X9, aCces2rendererI; "-[CCES2Renderer initWithDepthFormat:wit"... ; +0x128, 0x1003fcff4 STP X9, X8, [SP,#0x70+var_68] ; +0x130, 0x1003fcffc STR X0, [SP,#0x70+var_70] ; +0x134, 0x1003fd000 ADRL X0, aOpenglError0x0; "OpenGL error 0x%04X in %s %d\n" ; +0x138, 0x1003fd004 BL _printf ; +0x140, 0x1003fd00c B loc_1003FD020 ; +0x144, 0x1003fd010 MOV X0, X19; id ; +0x148, 0x1003fd014 BL _objc_release ; +0x14c, 0x1003fd018 MOV X19, #0 ; +0x150, 0x1003fd01c MOV X0, X19 ; +0x154, 0x1003fd020 LDP X29, X30, [SP,#0x70+var_s0] ; +0x158, 0x1003fd024 LDP X20, X19, [SP,#0x70+var_10] ; +0x15c, 0x1003fd028 LDP X22, X21, [SP,#0x70+var_20] ; +0x160, 0x1003fd02c LDP X24, X23, [SP,#0x70+var_30] ; +0x164, 0x1003fd030 LDP X26, X25, [SP,#0x70+var_40] ; +0x168, 0x1003fd034 ADD SP, SP, #0x80 ; +0x16c, 0x1003fd038 RET ; +0x170, 0x1003fd03c