	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_Clear                       ## -- Begin function gl_Clear
	.p2align	4, 0x90
_gl_Clear:                              ## @gl_Clear
	.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	%esi, %r14d
	movq	%rdi, %rbx
	callq	_INSIDE_BEGIN_END
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movq	_GL_RENDER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.2:
	cmpq	$0, 64(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_gl_update_state
LBB0_4:
	movq	40(%rbx), %rax
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	testl	%r14d, %ecx
	je	LBB0_11
## %bb.6:
	movq	_GL_DEPTH_BUFFER_BIT@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_10
## %bb.7:
	movq	56(%rbx), %rcx
	movq	(%rcx), %r15
	movq	8(%rcx), %r14
	movq	16(%rcx), %r13
	movq	24(%rcx), %r12
	subq	%r13, %r12
	incq	%r12
	subq	%r15, %r14
	incq	%r14
	xorl	%esi, %esi
	cmpl	$0, 48(%rbx)
	sete	%sil
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%r12, %r9
	callq	*%rax
	movq	_FRONT_AND_BACK_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_16
## %bb.8:
	movq	_GL_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*32(%rbx)
	xorl	%esi, %esi
	cmpl	$0, 48(%rbx)
	sete	%sil
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	movq	%r12, %r9
	callq	*40(%rbx)
	movq	32(%rbx), %rax
	movq	_GL_FRONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_9:
	testl	%r14d, %ecx
	je	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_clear_color_buffers
LBB0_11:
	movq	_GL_DEPTH_BUFFER_BIT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	*24(%rbx)
LBB0_13:
	movq	_GL_ACCUM_BUFFER_BIT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_gl_clear_accum_buffer
LBB0_15:
	movq	_GL_STENCIL_BUFFER_BIT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_16
## %bb.18:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_clear_stencil_buffer        ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glClear"

	.comm	_GL_RENDER,8,3                  ## @GL_RENDER
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_GL_DEPTH_BUFFER_BIT,4,2        ## @GL_DEPTH_BUFFER_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
	.comm	_GL_ACCUM_BUFFER_BIT,4,2        ## @GL_ACCUM_BUFFER_BIT
	.comm	_GL_STENCIL_BUFFER_BIT,4,2      ## @GL_STENCIL_BUFFER_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_Clear                       ; -- Begin function gl_Clear
	.p2align	2
_gl_Clear:                              ; @gl_Clear
	.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	x20, x1
	mov	x19, x0
	bl	_INSIDE_BEGIN_END
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_gl_error
LBB0_2:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _GL_RENDER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GL_RENDER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.3:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_gl_update_state
LBB0_5:
	ldr	x8, [x19, #40]
Lloh8:
	adrp	x9, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w9, w9, w20
Lloh11:
	adrp	x21, _GL_DEPTH_BUFFER_BIT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GL_DEPTH_BUFFER_BIT@GOTPAGEOFF]
	cbz	x8, LBB0_10
; %bb.6:
	cbz	w9, LBB0_12
; %bb.7:
	ldr	w9, [x21]
	tst	w9, w20
	b.eq	LBB0_11
; %bb.8:
	ldr	x9, [x19, #56]
	ldp	x20, x10, [x9, #16]
	sub	x10, x10, x20
	add	x21, x10, #1
	ldp	x22, x9, [x9]
	sub	x9, x9, x22
	add	x23, x9, #1
	ldr	w9, [x19, #48]
	cmp	w9, #0
	cset	w1, eq
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x23
	mov	x5, x21
	blr	x8
	ldr	w8, [x19, #8]
Lloh13:
	adrp	x9, _FRONT_AND_BACK_BIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FRONT_AND_BACK_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.9:
	ldr	x8, [x19, #32]
Lloh16:
	adrp	x9, _GL_BACK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _GL_BACK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #40]
	ldr	w9, [x19, #48]
	cmp	w9, #0
	cset	w1, eq
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x23
	mov	x5, x21
	blr	x8
	ldr	x2, [x19, #32]
Lloh19:
	adrp	x8, _GL_FRONT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_FRONT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	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
	br	x2
LBB0_10:
	cbz	w9, LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_clear_color_buffers
LBB0_12:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
LBB0_14:
Lloh22:
	adrp	x8, _GL_ACCUM_BUFFER_BIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_ACCUM_BUFFER_BIT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_gl_clear_accum_buffer
LBB0_16:
Lloh25:
	adrp	x8, _GL_STENCIL_BUFFER_BIT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GL_STENCIL_BUFFER_BIT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	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
	b	_gl_clear_stencil_buffer
LBB0_18:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glClear"

	.comm	_GL_RENDER,8,3                  ; @GL_RENDER
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_GL_DEPTH_BUFFER_BIT,4,2        ; @GL_DEPTH_BUFFER_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
	.comm	_GL_ACCUM_BUFFER_BIT,4,2        ; @GL_ACCUM_BUFFER_BIT
	.comm	_GL_STENCIL_BUFFER_BIT,4,2      ; @GL_STENCIL_BUFFER_BIT
.subsections_via_symbols
