	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function draw_triangles
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x3fe999999999999a              ## double 0.80000000000000004
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_draw_triangles:                        ## @draw_triangles
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %r13d
	movl	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glBindFramebuffer
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movq	_GL_DEPTH_BUFFER_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_glClear
	xorl	%eax, %eax
	callq	_check
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	36(%rbx), %esi
	callq	_glBindBuffer
	xorl	%eax, %eax
	callq	_check
	movl	32(%rbx), %edi
	callq	_glUseProgram
	xorl	%eax, %eax
	callq	_check
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%rbx), %esi
	callq	_glBindTexture
	xorl	%eax, %eax
	callq	_check
	movl	24(%rbx), %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm3            ## xmm3 = mem[0],zero
	movaps	%xmm0, %xmm1
	callq	_glUniform4f
	movl	20(%rbx), %edi
	movl	%r14d, %esi
	movl	%r14d, %edx
	callq	_glUniform2f
	movl	16(%rbx), %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_glUniform2f
	movl	12(%rbx), %edi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_glUniform2f
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_glUniform1i
	xorl	%eax, %eax
	callq	_check
	movq	_GL_TRIANGLE_FAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_glDrawArrays
	xorl	%eax, %eax
	callq	_check
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glBindBuffer
	xorl	%eax, %eax
	callq	_glFlush
	xorl	%eax, %eax
	callq	_glFinish
	xorl	%eax, %eax
	callq	_check
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_eglSwapBuffers
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_FRAMEBUFFER,4,2             ## @GL_FRAMEBUFFER
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_GL_DEPTH_BUFFER_BIT,4,2        ## @GL_DEPTH_BUFFER_BIT
	.comm	_GL_ARRAY_BUFFER,4,2            ## @GL_ARRAY_BUFFER
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_TRIANGLE_FAN,4,2            ## @GL_TRIANGLE_FAN
	.no_dead_strip	_draw_triangles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_triangles
_draw_triangles:                        ; @draw_triangles
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GL_FRAMEBUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_FRAMEBUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_glBindFramebuffer
Lloh3:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GL_DEPTH_BUFFER_BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_DEPTH_BUFFER_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_glClear
	bl	_check
Lloh9:
	adrp	x25, _GL_ARRAY_BUFFER@GOTPAGE
Lloh10:
	ldr	x25, [x25, _GL_ARRAY_BUFFER@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x19, #36]
	bl	_glBindBuffer
	bl	_check
	ldr	w0, [x19, #32]
	bl	_glUseProgram
	bl	_check
Lloh11:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x19, #28]
	bl	_glBindTexture
	bl	_check
	ldr	w0, [x19, #24]
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16361, lsl #48
	fmov	d2, x8
	fmov	d0, #0.50000000
	fmov	d1, #0.50000000
	fmov	d3, #1.00000000
	bl	_glUniform4f
	ldr	w0, [x19, #20]
	mov	x1, x24
	mov	x2, x24
	bl	_glUniform2f
	ldr	w0, [x19, #16]
	mov	x1, x23
	mov	x2, x22
	bl	_glUniform2f
	ldr	w0, [x19, #12]
	mov	x1, x21
	mov	x2, x20
	bl	_glUniform2f
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_glUniform1i
	bl	_check
Lloh14:
	adrp	x8, _GL_TRIANGLE_FAN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_TRIANGLE_FAN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #4
	bl	_glDrawArrays
	bl	_check
	ldr	w0, [x25]
	mov	w1, #0
	bl	_glBindBuffer
	bl	_glFlush
	bl	_glFinish
	bl	_check
	ldp	w1, w0, [x19]
	bl	_eglSwapBuffers
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_check
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_FRAMEBUFFER,4,2             ; @GL_FRAMEBUFFER
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_GL_DEPTH_BUFFER_BIT,4,2        ; @GL_DEPTH_BUFFER_BIT
	.comm	_GL_ARRAY_BUFFER,4,2            ; @GL_ARRAY_BUFFER
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_TRIANGLE_FAN,4,2            ; @GL_TRIANGLE_FAN
	.no_dead_strip	_draw_triangles
.subsections_via_symbols
