	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IJK_GLES2_Renderer_create_base ## -- Begin function IJK_GLES2_Renderer_create_base
	.p2align	4, 0x90
_IJK_GLES2_Renderer_create_base:        ## @IJK_GLES2_Renderer_create_base
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_assert
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_GL_VERTEX_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_IJK_GLES2_getVertexShader_default
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_IJK_GLES2_loadShader
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_GL_FRAGMENT_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_IJK_GLES2_loadShader
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_glCreateProgram
	movq	%rax, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_IJK_GLES2_checkError
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	40(%rbx), %rsi
	callq	_glAttachShader
	leaq	L_.str.1(%rip), %rdi
	callq	_IJK_GLES2_checkError
	movq	(%rbx), %rdi
	movq	32(%rbx), %rsi
	callq	_glAttachShader
	leaq	L_.str.2(%rip), %rdi
	callq	_IJK_GLES2_checkError
	movq	(%rbx), %rdi
	callq	_glLinkProgram
	leaq	L_.str.3(%rip), %rdi
	callq	_IJK_GLES2_checkError
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	(%rbx), %rdi
	movq	_GL_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_glGetProgramiv
	cmpl	$0, -28(%rbp)
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_glGetAttribLocation
	movq	%rax, 24(%rbx)
	leaq	L_.str.5(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movq	(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_glGetAttribLocation
	movq	%rax, 16(%rbx)
	leaq	L_.str.7(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movq	(%rbx), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_glGetUniformLocation
	movl	%eax, 8(%rbx)
	leaq	L_.str.9(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	jmp	LBB0_9
LBB0_6:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_IJK_GLES2_printProgramInfo
LBB0_8:
	movq	%rbx, %rdi
	callq	_IJK_GLES2_Renderer_free
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_VERTEX_SHADER,4,2           ## @GL_VERTEX_SHADER
	.comm	_GL_FRAGMENT_SHADER,4,2         ## @GL_FRAGMENT_SHADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glCreateProgram"

L_.str.1:                               ## @.str.1
	.asciz	"glAttachShader(vertex)"

L_.str.2:                               ## @.str.2
	.asciz	"glAttachShader(fragment)"

L_.str.3:                               ## @.str.3
	.asciz	"glLinkProgram"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GL_LINK_STATUS,4,2             ## @GL_LINK_STATUS
L_.str.4:                               ## @.str.4
	.asciz	"av4_Position"

L_.str.5:                               ## @.str.5
	.asciz	"glGetAttribLocation(av4_Position)"

L_.str.6:                               ## @.str.6
	.asciz	"av2_Texcoord"

L_.str.7:                               ## @.str.7
	.asciz	"glGetAttribLocation(av2_Texcoord)"

L_.str.8:                               ## @.str.8
	.asciz	"um4_ModelViewProjection"

L_.str.9:                               ## @.str.9
	.asciz	"glGetUniformLocation(um4_ModelViewProjection)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IJK_GLES2_Renderer_create_base ; -- Begin function IJK_GLES2_Renderer_create_base
	.p2align	2
_IJK_GLES2_Renderer_create_base:        ; @IJK_GLES2_Renderer_create_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	bl	_assert
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GL_VERTEX_SHADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_VERTEX_SHADER@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_IJK_GLES2_getVertexShader_default
	mov	x1, x0
	mov	x0, x21
	bl	_IJK_GLES2_loadShader
	str	x0, [x19, #40]
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _GL_FRAGMENT_SHADER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_IJK_GLES2_loadShader
	str	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_glCreateProgram
	str	x0, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IJK_GLES2_checkError
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x1, [x19, #40]
	bl	_glAttachShader
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IJK_GLES2_checkError
	ldr	x0, [x19]
	ldr	x1, [x19, #32]
	bl	_glAttachShader
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IJK_GLES2_checkError
	ldr	x0, [x19]
	bl	_glLinkProgram
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IJK_GLES2_checkError
Lloh14:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	x0, [x19]
Lloh17:
	adrp	x8, _GL_LINK_STATUS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_LINK_STATUS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_glGetProgramiv
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x0, [x19]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_glGetAttribLocation
	str	x0, [x19, #24]
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_IJK_GLES2_checkError_TRACE
	ldr	x0, [x19]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_glGetAttribLocation
	str	x0, [x19, #16]
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_IJK_GLES2_checkError_TRACE
	ldr	x0, [x19]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_glGetUniformLocation
	str	w0, [x19, #8]
Lloh30:
	adrp	x0, l_.str.9@PAGE
Lloh31:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_IJK_GLES2_checkError_TRACE
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_IJK_GLES2_printProgramInfo
LBB0_8:
	mov	x0, x19
	bl	_IJK_GLES2_Renderer_free
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_VERTEX_SHADER,4,2           ; @GL_VERTEX_SHADER
	.comm	_GL_FRAGMENT_SHADER,4,2         ; @GL_FRAGMENT_SHADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glCreateProgram"

l_.str.1:                               ; @.str.1
	.asciz	"glAttachShader(vertex)"

l_.str.2:                               ; @.str.2
	.asciz	"glAttachShader(fragment)"

l_.str.3:                               ; @.str.3
	.asciz	"glLinkProgram"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GL_LINK_STATUS,4,2             ; @GL_LINK_STATUS
l_.str.4:                               ; @.str.4
	.asciz	"av4_Position"

l_.str.5:                               ; @.str.5
	.asciz	"glGetAttribLocation(av4_Position)"

l_.str.6:                               ; @.str.6
	.asciz	"av2_Texcoord"

l_.str.7:                               ; @.str.7
	.asciz	"glGetAttribLocation(av2_Texcoord)"

l_.str.8:                               ; @.str.8
	.asciz	"um4_ModelViewProjection"

l_.str.9:                               ; @.str.9
	.asciz	"glGetUniformLocation(um4_ModelViewProjection)"

.subsections_via_symbols
