	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IJK_GLES2_loadShader           ## -- Begin function IJK_GLES2_loadShader
	.p2align	4, 0x90
_IJK_GLES2_loadShader:                  ## @IJK_GLES2_loadShader
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	%rsi, -32(%rbp)
	movq	%rsi, %rdi
	callq	_assert
	movl	%r14d, %edi
	callq	_glCreateShader
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_IJK_GLES2_checkError
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_assert
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_glShaderSource
	leaq	L_.str.1(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movq	%r14, %rdi
	callq	_glCompileShader
	leaq	L_.str.2(%rip), %rdi
	callq	_IJK_GLES2_checkError_TRACE
	movq	$0, -24(%rbp)
	movq	_GL_COMPILE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_glGetShaderiv
	cmpq	$0, -24(%rbp)
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_IJK_GLES2_printShaderInfo
	movq	%r14, %rdi
	callq	_glDeleteShader
LBB0_3:
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glCreateShader"

L_.str.1:                               ## @.str.1
	.asciz	"glShaderSource"

L_.str.2:                               ## @.str.2
	.asciz	"glCompileShader"

	.comm	_GL_COMPILE_STATUS,4,2          ## @GL_COMPILE_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IJK_GLES2_loadShader           ; -- Begin function IJK_GLES2_loadShader
	.p2align	2
_IJK_GLES2_loadShader:                  ; @IJK_GLES2_loadShader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	x1, [sp, #8]
	mov	x0, x1
	bl	_assert
	mov	x0, x19
	bl	_glCreateShader
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IJK_GLES2_checkError
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_assert
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	x3, #0
	bl	_glShaderSource
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IJK_GLES2_checkError_TRACE
	mov	x0, x19
	bl	_glCompileShader
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IJK_GLES2_checkError_TRACE
	str	xzr, [sp]
Lloh6:
	adrp	x8, _GL_COMPILE_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_COMPILE_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_glGetShaderiv
	ldr	x8, [sp]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_IJK_GLES2_printShaderInfo
	mov	x0, x19
	bl	_glDeleteShader
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glCreateShader"

l_.str.1:                               ; @.str.1
	.asciz	"glShaderSource"

l_.str.2:                               ; @.str.2
	.asciz	"glCompileShader"

	.comm	_GL_COMPILE_STATUS,4,2          ; @GL_COMPILE_STATUS
.subsections_via_symbols
