	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_shader                    ## -- Begin function make_shader
	.p2align	4, 0x90
_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, -40(%rbp)
	callq	_glCreateShader
	movl	%eax, %ebx
	leaq	-40(%rbp), %rdx
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_glShaderSource
	movl	%ebx, %edi
	callq	_glCompileShader
	movq	_GL_COMPILE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	callq	_glGetShaderiv
	movq	-32(%rbp), %rax
	movq	_GL_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_GL_INFO_LOG_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movl	%ebx, %edi
	callq	_glGetShaderiv
	movq	-24(%rbp), %rdi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r14
	movq	-24(%rbp), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_glGetShaderInfoLog
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movq	%r14, %rdi
	callq	_free
LBB0_2:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_COMPILE_STATUS,4,2          ## @GL_COMPILE_STATUS
	.comm	_GL_FALSE,8,3                   ## @GL_FALSE
	.comm	_GL_INFO_LOG_LENGTH,4,2         ## @GL_INFO_LOG_LENGTH
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glCompileShader failed:\n%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_shader                    ; -- Begin function make_shader
	.p2align	2
_make_shader:                           ; @make_shader
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	x1, [sp, #24]
	bl	_glCreateShader
	mov	x19, x0
	add	x2, sp, #24
	mov	w1, #1
	mov	x3, #0
	bl	_glShaderSource
	mov	x0, x19
	bl	_glCompileShader
Lloh0:
	adrp	x8, _GL_COMPILE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_COMPILE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	bl	_glGetShaderiv
	ldr	x8, [sp, #16]
Lloh3:
	adrp	x9, _GL_FALSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GL_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _GL_INFO_LOG_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_INFO_LOG_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_glGetShaderiv
	ldr	x0, [sp, #8]
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, #0
	mov	x3, x20
	bl	_glGetShaderInfoLog
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
	mov	x0, x20
	bl	_free
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_COMPILE_STATUS,4,2          ; @GL_COMPILE_STATUS
	.comm	_GL_FALSE,8,3                   ; @GL_FALSE
	.comm	_GL_INFO_LOG_LENGTH,4,2         ; @GL_INFO_LOG_LENGTH
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glCompileShader failed:\n%s\n"

.subsections_via_symbols
