	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_SwapBuffers                 ## -- Begin function RB_SwapBuffers
	.p2align	4, 0x90
_RB_SwapBuffers:                        ## @RB_SwapBuffers
	.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
	movq	%rdi, %r14
	movq	_tess@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_RB_EndSurface
LBB0_2:
	movq	_r_showImages@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_RB_ShowImages
LBB0_4:
	movq	_r_measureOverdraw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.5:
	movq	_ri@GOTPCREL(%rip), %r15
	movq	_glConfig@GOTPCREL(%rip), %r13
	movl	4(%r13), %edi
	imull	(%r13), %edi
	callq	*(%r15)
	movq	%rax, %r12
	movl	(%r13), %edx
	movl	4(%r13), %ecx
	movq	_GL_STENCIL_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_qglReadPixels
	movl	4(%r13), %ecx
	imull	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.6:
	movl	%ecx, %eax
	cmpl	$4, %ecx
	jae	LBB0_8
## %bb.7:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_8:
	movl	%eax, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.10:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	pmovzxbq	(%r12,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm0, %xmm2
	pmovzxbq	2(%r12,%rsi), %xmm3             ## xmm3 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm1, %xmm3
	pmovzxbq	4(%r12,%rsi), %xmm0             ## xmm0 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	pmovzxbq	6(%r12,%rsi), %xmm1             ## xmm1 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_11
## %bb.12:
	testb	$1, %dl
	je	LBB0_14
LBB0_13:
	pmovzxbq	(%r12,%rsi), %xmm2              ## xmm2 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm2, %xmm0
	pmovzxbq	2(%r12,%rsi), %xmm2             ## xmm2 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
	paddq	%xmm2, %xmm1
LBB0_14:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rbx
	cmpq	%rax, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rcx), %edx
	addq	%rdx, %rbx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_15
LBB0_16:
	movq	_backEnd@GOTPCREL(%rip), %rax
	addq	%rbx, 8(%rax)
	movq	%r12, %rdi
	callq	*8(%r15)
LBB0_17:
	movq	_r_finish@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_20
## %bb.18:
	movq	_glState@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_qglFinish
LBB0_20:
	leaq	L_.str(%rip), %rdi
	callq	_GLimp_LogComment
	xorl	%eax, %eax
	callq	_GLimp_EndFrame
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_backEnd@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$4, %r14
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %dl
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,8,3                       ## @tess
	.comm	_r_showImages,8,3               ## @r_showImages
	.comm	_r_measureOverdraw,8,3          ## @r_measureOverdraw
	.comm	_ri,16,3                        ## @ri
	.comm	_glConfig,8,2                   ## @glConfig
	.comm	_GL_STENCIL_INDEX,4,2           ## @GL_STENCIL_INDEX
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.comm	_backEnd,16,3                   ## @backEnd
	.comm	_r_finish,8,3                   ## @r_finish
	.comm	_glState,4,2                    ## @glState
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"***************** RB_SwapBuffers *****************\n\n\n"

	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_SwapBuffers                 ; -- Begin function RB_SwapBuffers
	.p2align	2
_RB_SwapBuffers:                        ; @RB_SwapBuffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _tess@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tess@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_RB_EndSurface
LBB0_2:
Lloh3:
	adrp	x8, _r_showImages@GOTPAGE
Lloh4:
	ldr	x8, [x8, _r_showImages@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_RB_ShowImages
LBB0_4:
Lloh6:
	adrp	x8, _r_measureOverdraw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _r_measureOverdraw@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x21, _backEnd@GOTPAGE
Lloh10:
	ldr	x21, [x21, _backEnd@GOTPAGEOFF]
	cbz	x8, LBB0_21
; %bb.5:
Lloh11:
	adrp	x22, _ri@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ri@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh13:
	adrp	x23, _glConfig@GOTPAGE
Lloh14:
	ldr	x23, [x23, _glConfig@GOTPAGEOFF]
	ldp	w9, w10, [x23]
	mul	w0, w10, w9
	blr	x8
	mov	x20, x0
	ldp	w2, w3, [x23]
Lloh15:
	adrp	x8, _GL_STENCIL_INDEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GL_STENCIL_INDEX@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
	mov	w0, #0
	mov	w1, #0
	mov	x6, x20
	bl	_qglReadPixels
	ldp	w8, w9, [x23]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	cmp	w8, #8
	b.hs	LBB0_9
; %bb.7:
	mov	x9, #0
	mov	x10, #0
	b	LBB0_18
LBB0_8:
	mov	x10, #0
	b	LBB0_20
LBB0_9:
	cmp	w8, #16
	b.hs	LBB0_11
; %bb.10:
	mov	x10, #0
	mov	x9, #0
	b	LBB0_15
LBB0_11:
	movi.2d	v0, #0000000000000000
	and	x9, x8, #0xfffffff0
	movi.2d	v1, #0000000000000000
	mov	x10, x9
	mov	x11, x20
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v5, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	q16, [x11], #16
	ushll.8h	v17, v16, #0
	ushll.4s	v18, v17, #0
	ushll2.8h	v16, v16, #0
	ushll2.4s	v19, v16, #0
	ushll2.4s	v17, v17, #0
	ushll.4s	v16, v16, #0
	uaddw2.2d	v2, v2, v17
	uaddw2.2d	v4, v4, v16
	uaddw.2d	v6, v6, v16
	uaddw.2d	v3, v3, v17
	uaddw2.2d	v1, v1, v18
	uaddw.2d	v7, v7, v19
	uaddw.2d	v0, v0, v18
	uaddw2.2d	v5, v5, v19
	subs	x10, x10, #16
	b.ne	LBB0_12
; %bb.13:
	add.2d	v0, v0, v6
	add.2d	v3, v3, v7
	add.2d	v0, v0, v3
	add.2d	v1, v1, v4
	add.2d	v2, v2, v5
	add.2d	v1, v1, v2
	add.2d	v0, v0, v1
	addp.2d	d0, v0
	fmov	x10, d0
	cmp	x9, x8
	b.eq	LBB0_20
; %bb.14:
	tbz	w8, #3, LBB0_18
LBB0_15:
	mov	x11, x9
	and	x9, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.d	v1[0], x10
	add	x10, x20, x11
	sub	x11, x11, x9
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	d4, [x10], #8
	ushll.8h	v4, v4, #0
	ushll.4s	v5, v4, #0
	ushll2.4s	v4, v4, #0
	uaddw2.2d	v3, v3, v4
	uaddw.2d	v2, v2, v4
	uaddw2.2d	v0, v0, v5
	uaddw.2d	v1, v1, v5
	adds	x11, x11, #8
	b.ne	LBB0_16
; %bb.17:
	add.2d	v1, v1, v2
	add.2d	v0, v0, v3
	add.2d	v0, v1, v0
	addp.2d	d0, v0
	fmov	x10, d0
	cmp	x9, x8
	b.eq	LBB0_20
LBB0_18:
	add	x11, x20, x9
	sub	x8, x8, x9
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x11], #1
	add	x10, x10, x9
	subs	x8, x8, #1
	b.ne	LBB0_19
LBB0_20:
	ldr	x8, [x21, #8]
	add	x8, x8, x10
	str	x8, [x21, #8]
	ldr	x8, [x22, #8]
	mov	x0, x20
	blr	x8
LBB0_21:
Lloh21:
	adrp	x8, _r_finish@GOTPAGE
Lloh22:
	ldr	x8, [x8, _r_finish@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _glState@GOTPAGE
Lloh25:
	ldr	x9, [x9, _glState@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, #1
	ccmp	w9, #0, #0, eq
	b.ne	LBB0_23
; %bb.22:
	bl	_qglFinish
LBB0_23:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GLimp_LogComment
	bl	_GLimp_EndFrame
Lloh29:
	adrp	x8, _qfalse@GOTPAGE
Lloh30:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x21]
	add	x0, x19, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,8,3                       ; @tess
	.comm	_r_showImages,8,3               ; @r_showImages
	.comm	_r_measureOverdraw,8,3          ; @r_measureOverdraw
	.comm	_ri,16,3                        ; @ri
	.comm	_glConfig,8,2                   ; @glConfig
	.comm	_GL_STENCIL_INDEX,4,2           ; @GL_STENCIL_INDEX
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.comm	_backEnd,16,3                   ; @backEnd
	.comm	_r_finish,8,3                   ; @r_finish
	.comm	_glState,4,2                    ; @glState
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"***************** RB_SwapBuffers *****************\n\n\n"

	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
