	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_color_buffers
_clear_color_buffers:                   ## @clear_color_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_clear_color_buffer_with_masking
	jmp	LBB0_4
LBB0_2:
	movq	32(%rbx), %rax
	movq	16(%rax), %rcx
	movq	24(%rax), %r9
	subq	%rcx, %r9
	incq	%r9
	movq	(%rax), %rdx
	movq	8(%rax), %r8
	subq	%rdx, %r8
	incq	%r8
	xorl	%esi, %esi
	cmpl	$0, 24(%rbx)
	sete	%sil
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	_ALPHABUF_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_gl_clear_alpha_buffers
LBB0_4:
	movq	_FRONT_AND_BACK_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.5:
	movq	_GL_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	cmpq	$0, 40(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_clear_color_buffer_with_masking
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	32(%rbx), %rax
	movq	16(%rax), %rcx
	movq	24(%rax), %r9
	subq	%rcx, %r9
	incq	%r9
	movq	(%rax), %rdx
	movq	8(%rax), %r8
	subq	%rdx, %r8
	incq	%r8
	xorl	%esi, %esi
	cmpl	$0, 24(%rbx)
	sete	%sil
	movq	%rbx, %rdi
	callq	*16(%rbx)
LBB0_8:
	movq	8(%rbx), %rax
	movq	_GL_FRONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ALPHABUF_BIT,4,2               ## @ALPHABUF_BIT
	.comm	_FRONT_AND_BACK_BIT,4,2         ## @FRONT_AND_BACK_BIT
	.comm	_GL_BACK,4,2                    ## @GL_BACK
	.comm	_GL_FRONT,4,2                   ## @GL_FRONT
	.no_dead_strip	_clear_color_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_color_buffers
_clear_color_buffers:                   ; @clear_color_buffers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_clear_color_buffer_with_masking
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #32]
	ldp	x3, x9, [x8, #16]
	sub	x9, x9, x3
	add	x5, x9, #1
	ldp	x2, x8, [x8]
	sub	x8, x8, x2
	add	x4, x8, #1
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #24]
	cmp	w9, #0
	cset	w1, eq
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _ALPHABUF_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ALPHABUF_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_gl_clear_alpha_buffers
LBB0_4:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _FRONT_AND_BACK_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FRONT_AND_BACK_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _GL_BACK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_BACK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_clear_color_buffer_with_masking
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x19, #32]
	ldp	x3, x9, [x8, #16]
	sub	x9, x9, x3
	add	x5, x9, #1
	ldp	x2, x8, [x8]
	sub	x8, x8, x2
	add	x4, x8, #1
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #24]
	cmp	w9, #0
	cset	w1, eq
	mov	x0, x19
	blr	x8
LBB0_9:
	ldr	x2, [x19, #8]
Lloh9:
	adrp	x8, _GL_FRONT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_FRONT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ALPHABUF_BIT,4,2               ; @ALPHABUF_BIT
	.comm	_FRONT_AND_BACK_BIT,4,2         ; @FRONT_AND_BACK_BIT
	.comm	_GL_BACK,4,2                    ; @GL_BACK
	.comm	_GL_FRONT,4,2                   ; @GL_FRONT
	.no_dead_strip	_clear_color_buffers
.subsections_via_symbols
