	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_test_quad
_draw_test_quad:                        ## @draw_test_quad
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r13
	testq	%rsi, %rsi
	leaq	_draw_test_quad.default_geometry(%rip), %rbx
	cmovneq	%rsi, %rbx
	movq	72(%r13), %rax
	movq	_ARB_VERTEX_BUFFER_OBJECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_3
## %bb.1:
	movq	_ARB_VERTEX_SHADER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_3
## %bb.2:
	movq	_ARB_FRAGMENT_SHADER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_3
## %bb.5:
	movq	%rdi, %r14
	movl	8(%rdi), %esi
	testl	%esi, %esi
	jne	LBB0_7
## %bb.6:
	leaq	8(%r14), %r12
	movl	$1, %edi
	movq	%r12, %rsi
	callq	_glGenBuffers
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	(%r12), %esi
LBB0_7:
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_glBindBuffer
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	(%r12), %edi
	movq	_GL_STREAM_DRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$64, %esi
	movq	%rbx, %rdx
	callq	_glBufferData
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	_GL_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$3, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_glVertexAttribPointer
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	12(%r15), %esi
	movl	8(%r15), %edx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movl	$1, %edi
	callq	_glVertexAttrib4f
	movl	%eax, %edi
	callq	_GL_EXTCALL
	xorl	%edi, %edi
	callq	_glEnableVertexAttribArray
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	$1, %edi
	callq	_glDisableVertexAttribArray
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_11
## %bb.8:
	movq	(%r13), %r15
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$50, %esi
	callq	_MAKEDWORD_VERSION
	movq	%rax, %rbx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_glCreateProgram
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, (%r14)
	movq	_GL_VERTEX_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glCreateShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	cmpq	%rbx, %r15
	leaq	_draw_test_quad.vs_legacy_header(%rip), %rcx
	leaq	_draw_test_quad.vs_core_header(%rip), %rdx
	cmovlq	%rcx, %rdx
	movq	%rax, %r15
	movq	%rdx, -64(%rbp)
	leaq	_draw_test_quad.vs_body(%rip), %rax
	movq	%rax, -56(%rbp)
	leaq	_draw_test_quad.fs_legacy(%rip), %rax
	leaq	_draw_test_quad.fs_core(%rip), %r12
	cmovlq	%rax, %r12
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movl	$2, %esi
	xorl	%ecx, %ecx
	callq	_glShaderSource
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_glAttachShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%r15, %rdi
	callq	_glDeleteShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	_GL_FRAGMENT_SHADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glCreateShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rax, %rbx
	movq	%r12, -64(%rbp)
	movq	%rax, %rdi
	movl	$1, %esi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_glShaderSource
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_glAttachShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	%rbx, %rdi
	callq	_glDeleteShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_glBindAttribLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	callq	_glBindAttribLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	jl	LBB0_10
## %bb.9:
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rdx
	xorl	%esi, %esi
	callq	_glBindFragDataLocation
	movl	%eax, %edi
	callq	_GL_EXTCALL
LBB0_10:
	movq	%r15, %rdi
	callq	_glCompileShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_print_glsl_info_log
	movq	%rbx, %rdi
	callq	_glCompileShader
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	(%r12), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_print_glsl_info_log
	movq	(%r14), %rdi
	callq	_glLinkProgram
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_shader_glsl_validate_link
	movq	(%r14), %rdi
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %r12
LBB0_11:
	callq	_glUseProgram
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	*8(%r13)
	xorl	%edi, %edi
	callq	_glUseProgram
	movl	%eax, %edi
	callq	_GL_EXTCALL
	xorl	%edi, %edi
	callq	_glDisableVertexAttribArray
	movl	%eax, %edi
	callq	_GL_EXTCALL
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_glBindBuffer
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GL_LIGHTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*64(%r13)
	movq	_GL_MODELVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*56(%r13)
	xorl	%eax, %eax
	callq	*48(%r13)
	movq	_GL_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*56(%r13)
	xorl	%eax, %eax
	callq	*48(%r13)
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*40(%r13)
	movl	12(%r15), %edi
	movl	8(%r15), %esi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	callq	*32(%r13)
	leaq	12(%rbx), %rdi
	callq	*24(%r13)
	leaq	28(%rbx), %rdi
	callq	*24(%r13)
	leaq	44(%rbx), %rdi
	callq	*24(%r13)
	addq	$60, %rbx
	movq	%rbx, %rdi
	callq	*24(%r13)
	xorl	%eax, %eax
	callq	*16(%r13)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.4:
	leaq	L_.str(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @draw_test_quad.default_geometry
_draw_test_quad.default_geometry:
	.long	0xbf800000                      ## float -1
	.long	0xbf800000                      ## float -1
	.long	0x00000000                      ## float 0
	.long	0                               ## 0x0
	.long	0x3f800000                      ## float 1
	.long	0xbf800000                      ## float -1
	.long	0x00000000                      ## float 0
	.long	0                               ## 0x0
	.long	0xbf800000                      ## float -1
	.long	0x3f800000                      ## float 1
	.long	0x00000000                      ## float 0
	.long	0                               ## 0x0
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x00000000                      ## float 0
	.long	0                               ## 0x0

	.p2align	4                               ## @draw_test_quad.vs_core_header
_draw_test_quad.vs_core_header:
	.asciz	"#version 150\nin vec4 pos;\nin vec4 color;\nout vec4 out_color;\n\n"

	.p2align	4                               ## @draw_test_quad.vs_legacy_header
_draw_test_quad.vs_legacy_header:
	.asciz	"#version 120\nattribute vec4 pos;\nattribute vec4 color;\nvarying vec4 out_color;\n\n"

	.p2align	4                               ## @draw_test_quad.vs_body
_draw_test_quad.vs_body:
	.asciz	"void main()\n{\n    gl_Position = pos;\n    out_color = color;\n}\n"

	.p2align	4                               ## @draw_test_quad.fs_core
_draw_test_quad.fs_core:
	.asciz	"#version 150\nin vec4 out_color;\nout vec4 fragment_color;\n\nvoid main()\n{\n    fragment_color = out_color;\n}\n"

	.p2align	4                               ## @draw_test_quad.fs_legacy
_draw_test_quad.fs_legacy:
	.asciz	"#version 120\nvarying vec4 out_color;\n\nvoid main()\n{\n    gl_FragData[0] = out_color;\n}\n"

	.comm	_ARB_VERTEX_BUFFER_OBJECT,8,3   ## @ARB_VERTEX_BUFFER_OBJECT
	.comm	_ARB_VERTEX_SHADER,8,3          ## @ARB_VERTEX_SHADER
	.comm	_ARB_FRAGMENT_SHADER,8,3        ## @ARB_FRAGMENT_SHADER
	.comm	_GL_LIGHTING,4,2                ## @GL_LIGHTING
	.comm	_GL_MODELVIEW,4,2               ## @GL_MODELVIEW
	.comm	_GL_PROJECTION,4,2              ## @GL_PROJECTION
	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"draw quad"

	.comm	_GL_ARRAY_BUFFER,4,2            ## @GL_ARRAY_BUFFER
	.comm	_GL_STREAM_DRAW,4,2             ## @GL_STREAM_DRAW
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GL_VERTEX_SHADER,4,2           ## @GL_VERTEX_SHADER
	.comm	_GL_FRAGMENT_SHADER,4,2         ## @GL_FRAGMENT_SHADER
L_.str.1:                               ## @.str.1
	.asciz	"pos"

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

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

	.no_dead_strip	_draw_test_quad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_test_quad
_draw_test_quad:                        ; @draw_test_quad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x19, [x0, #16]
Lloh3:
	adrp	x8, _draw_test_quad.default_geometry@PAGE
Lloh4:
	add	x8, x8, _draw_test_quad.default_geometry@PAGEOFF
	cmp	x1, #0
	csel	x22, x8, x1, eq
	ldr	x8, [x19, #72]
Lloh5:
	adrp	x9, _ARB_VERTEX_BUFFER_OBJECT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ARB_VERTEX_BUFFER_OBJECT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_11
; %bb.1:
Lloh8:
	adrp	x9, _ARB_VERTEX_SHADER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ARB_VERTEX_SHADER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_11
; %bb.2:
Lloh11:
	adrp	x9, _ARB_FRAGMENT_SHADER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ARB_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_11
; %bb.3:
	mov	x20, x0
	mov	x23, x0
	ldr	w1, [x23, #8]!
	cbnz	w1, LBB0_5
; %bb.4:
	mov	w0, #1
	mov	x1, x23
	bl	_glGenBuffers
	bl	_GL_EXTCALL
	ldr	w1, [x23]
LBB0_5:
Lloh14:
	adrp	x24, _GL_ARRAY_BUFFER@GOTPAGE
Lloh15:
	ldr	x24, [x24, _GL_ARRAY_BUFFER@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_glBindBuffer
	bl	_GL_EXTCALL
	ldr	w0, [x24]
Lloh16:
	adrp	x8, _GL_STREAM_DRAW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_STREAM_DRAW@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	w1, #64
	mov	x2, x22
	bl	_glBufferData
	bl	_GL_EXTCALL
Lloh19:
	adrp	x8, _GL_FLOAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_FLOAT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x25, _FALSE@GOTPAGE
Lloh23:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	w0, #0
	mov	w1, #3
	mov	w4, #0
	mov	x5, #0
	bl	_glVertexAttribPointer
	bl	_GL_EXTCALL
	ldp	w2, w1, [x21, #8]
	ldp	w4, w3, [x21]
	mov	w0, #1
	bl	_glVertexAttrib4f
	bl	_GL_EXTCALL
	mov	w0, #0
	bl	_glEnableVertexAttribArray
	bl	_GL_EXTCALL
	mov	w0, #1
	bl	_glDisableVertexAttribArray
	bl	_GL_EXTCALL
	ldr	x0, [x20]
	cbnz	x0, LBB0_9
; %bb.6:
	ldr	x26, [x19]
	mov	w0, #1
	mov	w1, #50
	bl	_MAKEDWORD_VERSION
	mov	x22, x0
	bl	_glCreateProgram
	bl	_GL_EXTCALL
	str	x0, [x20]
Lloh24:
	adrp	x8, _GL_VERTEX_SHADER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GL_VERTEX_SHADER@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_glCreateShader
	bl	_GL_EXTCALL
	mov	x21, x0
Lloh27:
	adrp	x8, _draw_test_quad.vs_core_header@PAGE
Lloh28:
	add	x8, x8, _draw_test_quad.vs_core_header@PAGEOFF
Lloh29:
	adrp	x9, _draw_test_quad.vs_legacy_header@PAGE
Lloh30:
	add	x9, x9, _draw_test_quad.vs_legacy_header@PAGEOFF
	cmp	x26, x22
	csel	x8, x9, x8, lt
Lloh31:
	adrp	x9, _draw_test_quad.vs_body@PAGE
Lloh32:
	add	x9, x9, _draw_test_quad.vs_body@PAGEOFF
	stp	x8, x9, [sp, #8]
Lloh33:
	adrp	x8, _draw_test_quad.fs_core@PAGE
Lloh34:
	add	x8, x8, _draw_test_quad.fs_core@PAGEOFF
Lloh35:
	adrp	x9, _draw_test_quad.fs_legacy@PAGE
Lloh36:
	add	x9, x9, _draw_test_quad.fs_legacy@PAGEOFF
	csel	x27, x9, x8, lt
	add	x2, sp, #8
	mov	w1, #2
	mov	x3, #0
	bl	_glShaderSource
	bl	_GL_EXTCALL
	ldr	x0, [x20]
	mov	x1, x21
	bl	_glAttachShader
	bl	_GL_EXTCALL
	mov	x0, x21
	bl	_glDeleteShader
	bl	_GL_EXTCALL
Lloh37:
	adrp	x8, _GL_FRAGMENT_SHADER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GL_FRAGMENT_SHADER@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_glCreateShader
	bl	_GL_EXTCALL
	mov	x23, x0
	str	x27, [sp, #8]
	add	x2, sp, #8
	mov	w1, #1
	mov	x3, #0
	bl	_glShaderSource
	bl	_GL_EXTCALL
	ldr	x0, [x20]
	mov	x1, x23
	bl	_glAttachShader
	bl	_GL_EXTCALL
	mov	x0, x23
	bl	_glDeleteShader
	bl	_GL_EXTCALL
	ldr	x0, [x20]
Lloh40:
	adrp	x2, l_.str.1@PAGE
Lloh41:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_glBindAttribLocation
	bl	_GL_EXTCALL
	ldr	x0, [x20]
Lloh42:
	adrp	x2, l_.str.2@PAGE
Lloh43:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_glBindAttribLocation
	bl	_GL_EXTCALL
	cmp	x26, x22
	b.lt	LBB0_8
; %bb.7:
	ldr	x0, [x20]
Lloh44:
	adrp	x2, l_.str.3@PAGE
Lloh45:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #0
	bl	_glBindFragDataLocation
	bl	_GL_EXTCALL
LBB0_8:
	mov	x0, x21
	bl	_glCompileShader
	bl	_GL_EXTCALL
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x21
	bl	_print_glsl_info_log
	mov	x0, x23
	bl	_glCompileShader
	bl	_GL_EXTCALL
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x23
	bl	_print_glsl_info_log
	ldr	x0, [x20]
	bl	_glLinkProgram
	bl	_GL_EXTCALL
	ldr	x1, [x20]
	mov	x0, x19
	bl	_shader_glsl_validate_link
	ldr	x0, [x20]
LBB0_9:
	bl	_glUseProgram
	bl	_GL_EXTCALL
	ldr	x8, [x19, #8]
Lloh46:
	adrp	x9, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh47:
	ldr	x9, [x9, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x9]
	mov	w1, #0
	mov	w2, #4
	blr	x8
	mov	x0, #0
	bl	_glUseProgram
	bl	_GL_EXTCALL
	mov	w0, #0
	bl	_glDisableVertexAttribArray
	bl	_GL_EXTCALL
	ldr	w0, [x24]
	mov	w1, #0
	bl	_glBindBuffer
	bl	_GL_EXTCALL
Lloh49:
	adrp	x0, l_.str@PAGE
Lloh50:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [sp, #24]
Lloh51:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	ldr	x8, [x19, #64]
Lloh54:
	adrp	x9, _GL_LIGHTING@GOTPAGE
Lloh55:
	ldr	x9, [x9, _GL_LIGHTING@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19, #56]
Lloh57:
	adrp	x9, _GL_MODELVIEW@GOTPAGE
Lloh58:
	ldr	x9, [x9, _GL_MODELVIEW@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19, #48]
	blr	x8
	ldr	x8, [x19, #56]
Lloh60:
	adrp	x9, _GL_PROJECTION@GOTPAGE
Lloh61:
	ldr	x9, [x9, _GL_PROJECTION@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19, #48]
	blr	x8
	ldr	x8, [x19, #40]
Lloh63:
	adrp	x9, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh64:
	ldr	x9, [x9, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19, #32]
	ldp	w1, w0, [x21, #8]
	ldp	w3, w2, [x21]
	blr	x8
	ldr	x8, [x19, #24]
	add	x0, x22, #12
	blr	x8
	ldr	x8, [x19, #24]
	add	x0, x22, #28
	blr	x8
	ldr	x8, [x19, #24]
	add	x0, x22, #44
	blr	x8
	ldr	x8, [x19, #24]
	add	x0, x22, #60
	blr	x8
	ldr	x8, [x19, #16]
	blr	x8
	ldr	x8, [sp, #24]
Lloh66:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh67:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
Lloh69:
	adrp	x0, l_.str@PAGE
Lloh70:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_checkGLcall
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @draw_test_quad.default_geometry
_draw_test_quad.default_geometry:
	.long	0xbf800000                      ; float -1
	.long	0xbf800000                      ; float -1
	.long	0x00000000                      ; float 0
	.long	0                               ; 0x0
	.long	0x3f800000                      ; float 1
	.long	0xbf800000                      ; float -1
	.long	0x00000000                      ; float 0
	.long	0                               ; 0x0
	.long	0xbf800000                      ; float -1
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.long	0                               ; 0x0
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.long	0                               ; 0x0

_draw_test_quad.vs_core_header:         ; @draw_test_quad.vs_core_header
	.asciz	"#version 150\nin vec4 pos;\nin vec4 color;\nout vec4 out_color;\n\n"

_draw_test_quad.vs_legacy_header:       ; @draw_test_quad.vs_legacy_header
	.asciz	"#version 120\nattribute vec4 pos;\nattribute vec4 color;\nvarying vec4 out_color;\n\n"

_draw_test_quad.vs_body:                ; @draw_test_quad.vs_body
	.asciz	"void main()\n{\n    gl_Position = pos;\n    out_color = color;\n}\n"

_draw_test_quad.fs_core:                ; @draw_test_quad.fs_core
	.asciz	"#version 150\nin vec4 out_color;\nout vec4 fragment_color;\n\nvoid main()\n{\n    fragment_color = out_color;\n}\n"

_draw_test_quad.fs_legacy:              ; @draw_test_quad.fs_legacy
	.asciz	"#version 120\nvarying vec4 out_color;\n\nvoid main()\n{\n    gl_FragData[0] = out_color;\n}\n"

	.comm	_ARB_VERTEX_BUFFER_OBJECT,8,3   ; @ARB_VERTEX_BUFFER_OBJECT
	.comm	_ARB_VERTEX_SHADER,8,3          ; @ARB_VERTEX_SHADER
	.comm	_ARB_FRAGMENT_SHADER,8,3        ; @ARB_FRAGMENT_SHADER
	.comm	_GL_LIGHTING,4,2                ; @GL_LIGHTING
	.comm	_GL_MODELVIEW,4,2               ; @GL_MODELVIEW
	.comm	_GL_PROJECTION,4,2              ; @GL_PROJECTION
	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"draw quad"

	.comm	_GL_ARRAY_BUFFER,4,2            ; @GL_ARRAY_BUFFER
	.comm	_GL_STREAM_DRAW,4,2             ; @GL_STREAM_DRAW
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GL_VERTEX_SHADER,4,2           ; @GL_VERTEX_SHADER
	.comm	_GL_FRAGMENT_SHADER,4,2         ; @GL_FRAGMENT_SHADER
l_.str.1:                               ; @.str.1
	.asciz	"pos"

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

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

	.no_dead_strip	_draw_test_quad
.subsections_via_symbols
