	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function draw_floor
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_draw_floor:                            ## @draw_floor
	.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	_wireframe@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_glEnable
	movl	(%rbx), %edi
	movq	_floor_tex_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glBindTexture
LBB0_2:
	movq	_draw_floor.floor_list(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	callq	_glCallList
	jmp	LBB0_5
LBB0_3:
	movl	$1, %edi
	callq	_glGenLists
	movq	%rax, _draw_floor.floor_list(%rip)
	movq	_GL_COMPILE_AND_EXECUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_glNewList
	movq	_GL_FRONT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GL_DIFFUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_floor_diffuse@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_glMaterialfv
	movl	(%rbx), %edi
	movq	_GL_SPECULAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_floor_specular@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_glMaterialfv
	movl	(%rbx), %edi
	movq	_GL_SHININESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_floor_shininess@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_glMaterialf
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	callq	_glNormal3f
	movq	_GL_QUADS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glBegin
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm2, %xmm2
	xorps	%xmm3, %xmm3
	movaps	%xmm0, %xmm1
	xorl	%edi, %edi
	callq	_tessellate_floor
	xorps	%xmm0, %xmm0
	xorps	%xmm3, %xmm3
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	callq	_tessellate_floor
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm3
	xorl	%edi, %edi
	callq	_tessellate_floor
	xorps	%xmm1, %xmm1
	xorps	%xmm2, %xmm2
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	callq	_tessellate_floor
	xorl	%eax, %eax
	callq	_glEnd
	xorl	%eax, %eax
	callq	_glEndList
LBB0_5:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_glDisable                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_draw_floor.floor_list,8,3 ## @draw_floor.floor_list
	.comm	_wireframe,4,2                  ## @wireframe
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_floor_tex_id,4,2               ## @floor_tex_id
	.comm	_GL_COMPILE_AND_EXECUTE,4,2     ## @GL_COMPILE_AND_EXECUTE
	.comm	_GL_FRONT,4,2                   ## @GL_FRONT
	.comm	_GL_DIFFUSE,4,2                 ## @GL_DIFFUSE
	.comm	_floor_diffuse,4,2              ## @floor_diffuse
	.comm	_GL_SPECULAR,4,2                ## @GL_SPECULAR
	.comm	_floor_specular,4,2             ## @floor_specular
	.comm	_GL_SHININESS,4,2               ## @GL_SHININESS
	.comm	_floor_shininess,4,2            ## @floor_shininess
	.comm	_GL_QUADS,4,2                   ## @GL_QUADS
	.no_dead_strip	_draw_floor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_floor
_draw_floor:                            ; @draw_floor
	.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
Lloh0:
	adrp	x8, _wireframe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wireframe@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, _GL_TEXTURE_2D@GOTPAGE
Lloh4:
	ldr	x19, [x19, _GL_TEXTURE_2D@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_glEnable
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _floor_tex_id@GOTPAGE
Lloh6:
	ldr	x8, [x8, _floor_tex_id@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_glBindTexture
LBB0_2:
	adrp	x20, _draw_floor.floor_list@PAGE
	ldr	x0, [x20, _draw_floor.floor_list@PAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_glCallList
	b	LBB0_5
LBB0_4:
	mov	w0, #1
	bl	_glGenLists
	str	x0, [x20, _draw_floor.floor_list@PAGEOFF]
Lloh8:
	adrp	x8, _GL_COMPILE_AND_EXECUTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_COMPILE_AND_EXECUTE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_glNewList
Lloh11:
	adrp	x20, _GL_FRONT@GOTPAGE
Lloh12:
	ldr	x20, [x20, _GL_FRONT@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _GL_DIFFUSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_DIFFUSE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _floor_diffuse@GOTPAGE
Lloh17:
	ldr	x8, [x8, _floor_diffuse@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_glMaterialfv
	ldr	w0, [x20]
Lloh19:
	adrp	x8, _GL_SPECULAR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GL_SPECULAR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _floor_specular@GOTPAGE
Lloh23:
	ldr	x8, [x8, _floor_specular@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_glMaterialfv
	ldr	w0, [x20]
Lloh25:
	adrp	x8, _GL_SHININESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GL_SHININESS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _floor_shininess@GOTPAGE
Lloh29:
	ldr	x8, [x8, _floor_shininess@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	bl	_glMaterialf
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	bl	_glNormal3f
Lloh31:
	adrp	x8, _GL_QUADS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GL_QUADS@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_glBegin
	fmov	s0, #-1.00000000
	fmov	s1, #-1.00000000
	movi	d2, #0000000000000000
	movi	d3, #0000000000000000
	mov	w0, #0
	bl	_tessellate_floor
	movi	d0, #0000000000000000
	fmov	s1, #-1.00000000
	fmov	s2, #1.00000000
	movi	d3, #0000000000000000
	mov	w0, #0
	bl	_tessellate_floor
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	fmov	s2, #1.00000000
	fmov	s3, #1.00000000
	mov	w0, #0
	bl	_tessellate_floor
	fmov	s0, #-1.00000000
	movi	d1, #0000000000000000
	movi	d2, #0000000000000000
	fmov	s3, #1.00000000
	mov	w0, #0
	bl	_tessellate_floor
	bl	_glEnd
	bl	_glEndList
LBB0_5:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_glDisable
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_draw_floor.floor_list,8,3 ; @draw_floor.floor_list
	.comm	_wireframe,4,2                  ; @wireframe
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_floor_tex_id,4,2               ; @floor_tex_id
	.comm	_GL_COMPILE_AND_EXECUTE,4,2     ; @GL_COMPILE_AND_EXECUTE
	.comm	_GL_FRONT,4,2                   ; @GL_FRONT
	.comm	_GL_DIFFUSE,4,2                 ; @GL_DIFFUSE
	.comm	_floor_diffuse,4,2              ; @floor_diffuse
	.comm	_GL_SPECULAR,4,2                ; @GL_SPECULAR
	.comm	_floor_specular,4,2             ; @floor_specular
	.comm	_GL_SHININESS,4,2               ; @GL_SHININESS
	.comm	_floor_shininess,4,2            ; @floor_shininess
	.comm	_GL_QUADS,4,2                   ; @GL_QUADS
	.no_dead_strip	_draw_floor
.subsections_via_symbols
