	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_buffers                   ## -- Begin function swap_buffers
	.p2align	4, 0x90
_swap_buffers:                          ## @swap_buffers
	.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
	callq	_glfwSwapBuffers
	movq	_swap_clear@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
LBB0_2:
	movq	_swap_finish@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_glFinish
LBB0_4:
	movq	_swap_occlusion_query@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_occlusion_query@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	testl	%esi, %esi
	jne	LBB0_7
## %bb.6:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_glGenQueries
	movl	(%r14), %esi
LBB0_7:
	movq	_GL_SAMPLES_PASSED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_glBeginQuery
	movq	_GL_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBegin
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_glVertex2f
	xorl	%eax, %eax
	callq	_glEnd
	movl	(%rbx), %edi
	callq	_glEndQuery
	movl	(%r14), %edi
	movq	_GL_QUERY_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_glGetQueryObjectiv
LBB0_8:
	movq	_swap_read_pixels@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_glReadPixels
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_swap_clear,8,3                 ## @swap_clear
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_swap_finish,8,3                ## @swap_finish
	.comm	_swap_occlusion_query,8,3       ## @swap_occlusion_query
	.comm	_occlusion_query,4,2            ## @occlusion_query
	.comm	_GL_SAMPLES_PASSED,4,2          ## @GL_SAMPLES_PASSED
	.comm	_GL_POINTS,4,2                  ## @GL_POINTS
	.comm	_GL_QUERY_RESULT,4,2            ## @GL_QUERY_RESULT
	.comm	_swap_read_pixels,8,3           ## @swap_read_pixels
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swap_buffers                   ; -- Begin function swap_buffers
	.p2align	2
_swap_buffers:                          ; @swap_buffers
	.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
	bl	_glfwSwapBuffers
Lloh0:
	adrp	x8, _swap_clear@GOTPAGE
Lloh1:
	ldr	x8, [x8, _swap_clear@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_glClear
LBB0_2:
Lloh6:
	adrp	x8, _swap_finish@GOTPAGE
Lloh7:
	ldr	x8, [x8, _swap_finish@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_glFinish
LBB0_4:
Lloh9:
	adrp	x8, _swap_occlusion_query@GOTPAGE
Lloh10:
	ldr	x8, [x8, _swap_occlusion_query@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
Lloh12:
	adrp	x19, _occlusion_query@GOTPAGE
Lloh13:
	ldr	x19, [x19, _occlusion_query@GOTPAGEOFF]
	ldr	w1, [x19]
	cbnz	w1, LBB0_7
; %bb.6:
	mov	w0, #1
	mov	x1, x19
	bl	_glGenQueries
	ldr	w1, [x19]
LBB0_7:
Lloh14:
	adrp	x20, _GL_SAMPLES_PASSED@GOTPAGE
Lloh15:
	ldr	x20, [x20, _GL_SAMPLES_PASSED@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_glBeginQuery
Lloh16:
	adrp	x8, _GL_POINTS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_POINTS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_glBegin
	mov	w0, #0
	mov	w1, #0
	bl	_glVertex2f
	bl	_glEnd
	ldr	w0, [x20]
	bl	_glEndQuery
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _GL_QUERY_RESULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_QUERY_RESULT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_glGetQueryObjectiv
LBB0_8:
Lloh22:
	adrp	x8, _swap_read_pixels@GOTPAGE
Lloh23:
	ldr	x8, [x8, _swap_read_pixels@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh25:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
Lloh28:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	w0, #0
	mov	w1, #0
	mov	w2, #1
	mov	w3, #1
	bl	_glReadPixels
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_swap_clear,8,3                 ; @swap_clear
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_swap_finish,8,3                ; @swap_finish
	.comm	_swap_occlusion_query,8,3       ; @swap_occlusion_query
	.comm	_occlusion_query,4,2            ; @occlusion_query
	.comm	_GL_SAMPLES_PASSED,4,2          ; @GL_SAMPLES_PASSED
	.comm	_GL_POINTS,4,2                  ; @GL_POINTS
	.comm	_GL_QUERY_RESULT,4,2            ; @GL_QUERY_RESULT
	.comm	_swap_read_pixels,8,3           ; @swap_read_pixels
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
.subsections_via_symbols
