	.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_ClearWindow
LCPI0_0:
	.quad	0x3fe999999999999a              ## double 0.80000000000000004
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_Draw_ClearWindow
	.p2align	4, 0x90
_Draw_ClearWindow:                      ## @Draw_ClearWindow
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_drawflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	cmpb	$0, _Draw_ClearWindow.init(%rip)
	jne	LBB0_3
## %bb.2:
	movb	$1, _Draw_ClearWindow.init(%rip)
	xorl	%eax, %eax
	callq	_InitWindow
LBB0_3:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	$1, %edi
	movaps	%xmm0, %xmm1
	xorl	%esi, %esi
	callq	_glClearColor
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
	movq	_draw_maxs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_draw_mins@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rdx
	movq	8(%rcx), %rcx
	movl	(%rax), %esi
	movl	8(%rax), %ebx
	subl	%edx, %esi
	subl	%ecx, %ebx
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movslq	%eax, %r14
	addq	%rdx, %r14
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movslq	%eax, %r12
	addq	%rcx, %r12
	cmpl	%ebx, %esi
	cmovgl	%esi, %ebx
	xorl	%eax, %eax
	callq	_glLoadIdentity
	movl	$90, %edi
	movl	$1, %esi
	movl	$2, %edx
	movl	$16384, %ecx                    ## imm = 0x4000
	callq	_gluPerspective
	movq	(%r15), %rax
	movq	16(%rax), %r9
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movslq	%eax, %rdx
	addq	%r9, %rdx
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r14, %rcx
	movq	%r12, %r8
	pushq	$0
	pushq	$1
	pushq	$0
	callq	_gluLookAt
	addq	$32, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_glColor3f
	movq	_GL_FRONT_AND_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_FILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glPolygonMode
	movq	_GL_DEPTH_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glDisable
	movq	_GL_BLEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movq	_GL_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glBlendFunc
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glFlush                        ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_Draw_ClearWindow.init,1,2 ## @Draw_ClearWindow.init
	.comm	_drawflag,4,2                   ## @drawflag
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_draw_maxs,8,3                  ## @draw_maxs
	.comm	_draw_mins,8,3                  ## @draw_mins
	.comm	_GL_FRONT_AND_BACK,4,2          ## @GL_FRONT_AND_BACK
	.comm	_GL_FILL,4,2                    ## @GL_FILL
	.comm	_GL_DEPTH_TEST,4,2              ## @GL_DEPTH_TEST
	.comm	_GL_BLEND,4,2                   ## @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ## @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ## @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_POLYGON,4,2                 ## @GL_POLYGON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Draw_ClearWindow               ; -- Begin function Draw_ClearWindow
	.p2align	2
_Draw_ClearWindow:                      ; @Draw_ClearWindow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _drawflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _drawflag@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	adrp	x8, _Draw_ClearWindow.init@PAGE
	ldrb	w9, [x8, _Draw_ClearWindow.init@PAGEOFF]
	tbnz	w9, #0, LBB0_3
; %bb.2:
	mov	w9, #1
	strb	w9, [x8, _Draw_ClearWindow.init@PAGEOFF]
	bl	_InitWindow
LBB0_3:
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16361, lsl #48
	fmov	d0, x8
	mov	w0, #1
	fmov	d1, d0
	mov	w1, #0
	bl	_glClearColor
Lloh3:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_glClear
Lloh6:
	adrp	x21, _draw_maxs@GOTPAGE
Lloh7:
	ldr	x21, [x21, _draw_maxs@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w9, [x8]
Lloh8:
	adrp	x10, _draw_mins@GOTPAGE
Lloh9:
	ldr	x10, [x10, _draw_mins@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldp	x11, x10, [x10]
	sub	w9, w9, w11
	ldr	w8, [x8, #8]
	cmp	w9, #0
	cinc	w12, w9, lt
	asr	w12, w12, #1
	add	x19, x11, w12, sxtw
	sub	w8, w8, w10
	cmp	w8, #0
	cinc	w11, w8, lt
	asr	w11, w11, #1
	add	x20, x10, w11, sxtw
	cmp	w9, w8
	csel	w22, w9, w8, gt
	bl	_glLoadIdentity
	mov	w0, #90
	mov	w1, #1
	mov	w2, #2
	mov	w3, #16384
	bl	_gluPerspective
	ldr	x8, [x21]
	ldr	x5, [x8, #16]
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w8, w8, #1
	add	x2, x5, w8, sxtw
	str	wzr, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x19
	mov	x4, x20
	mov	w6, #0
	mov	w7, #1
	bl	_gluLookAt
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_glColor3f
Lloh11:
	adrp	x8, _GL_FRONT_AND_BACK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_FRONT_AND_BACK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _GL_FILL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_FILL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_glPolygonMode
Lloh17:
	adrp	x8, _GL_DEPTH_TEST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_DEPTH_TEST@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_glDisable
Lloh20:
	adrp	x8, _GL_BLEND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_BLEND@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_glEnable
Lloh23:
	adrp	x8, _GL_SRC_ALPHA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GL_SRC_ALPHA@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_glBlendFunc
	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
	add	sp, sp, #64
	b	_glFlush
LBB0_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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_Draw_ClearWindow.init,1,2 ; @Draw_ClearWindow.init
	.comm	_drawflag,4,2                   ; @drawflag
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_draw_maxs,8,3                  ; @draw_maxs
	.comm	_draw_mins,8,3                  ; @draw_mins
	.comm	_GL_FRONT_AND_BACK,4,2          ; @GL_FRONT_AND_BACK
	.comm	_GL_FILL,4,2                    ; @GL_FILL
	.comm	_GL_DEPTH_TEST,4,2              ; @GL_DEPTH_TEST
	.comm	_GL_BLEND,4,2                   ; @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ; @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ; @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_POLYGON,4,2                 ; @GL_POLYGON
.subsections_via_symbols
