	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_shader
_make_shader:                           ## @make_shader
	.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
	movl	$8232, %eax                     ## imm = 0x2028
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%rsi, -8240(%rbp)
	callq	_glCreateShader
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	-8240(%rbp), %rdx
	movq	%rax, %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_glShaderSource
	movq	%rbx, %rdi
	callq	_glCompileShader
	movq	_GL_COMPILE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8232(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_glGetShaderiv
	movq	-8232(%rbp), %rax
	movq	_GL_TRUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GL_FRAGMENT_SHADER@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	leaq	-8244(%rbp), %rdx
	leaq	-8224(%rbp), %r14
	movq	%rbx, %rdi
	movl	$8192, %esi                     ## imm = 0x2000
	movq	%r14, %rcx
	callq	_glGetShaderInfoLog
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_glDeleteShader
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rax
	addq	$8232, %rsp                     ## imm = 0x2028
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_COMPILE_STATUS,4,2          ## @GL_COMPILE_STATUS
	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Failed to compile %s shader\n"

	.comm	_GL_FRAGMENT_SHADER,8,3         ## @GL_FRAGMENT_SHADER
L_.str.1:                               ## @.str.1
	.asciz	"fragment"

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

L_.str.3:                               ## @.str.3
	.asciz	"ERROR: \n%s\n\n"

	.no_dead_strip	_make_shader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_shader
_make_shader:                           ; @make_shader
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	w9, #8224
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #32
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	x1, [sp, #16]
	bl	_glCreateShader
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #1
	mov	x3, #0
	bl	_glShaderSource
	mov	x0, x19
	bl	_glCompileShader
Lloh5:
	adrp	x8, _GL_COMPILE_STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_COMPILE_STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_glGetShaderiv
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, _GL_TRUE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GL_TRUE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x21, _stderr@GOTPAGE
Lloh12:
	ldr	x21, [x21, _stderr@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh13:
	adrp	x8, _GL_FRAGMENT_SHADER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh18:
	adrp	x10, l_.str.1@PAGE
Lloh19:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, x20
	csel	x2, x10, x9, eq
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	add	x2, sp, #4
	add	x3, sp, #24
	mov	x0, x19
	mov	w1, #8192
	bl	_glGetShaderInfoLog
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #24
	bl	_fprintf
	mov	x0, x19
	bl	_glDeleteShader
	mov	x19, #0
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_COMPILE_STATUS,4,2          ; @GL_COMPILE_STATUS
	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Failed to compile %s shader\n"

	.comm	_GL_FRAGMENT_SHADER,8,3         ; @GL_FRAGMENT_SHADER
l_.str.1:                               ; @.str.1
	.asciz	"fragment"

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

l_.str.3:                               ; @.str.3
	.asciz	"ERROR: \n%s\n\n"

	.no_dead_strip	_make_shader
.subsections_via_symbols
