	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function render_item
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_render_item
	.p2align	4, 0x90
_render_item:                           ## @render_item
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_g@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	16(%rax), %esi
	movl	8(%rax), %ecx
	movl	12(%rax), %edx
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_set_matrix_item
	movl	16(%r14), %edi
	callq	_glUseProgram
	movl	12(%r14), %edi
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_glUniformMatrix4fv
	movl	8(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$5, %ecx
	callq	_glUniform3f
	movl	4(%r14), %edi
	xorl	%esi, %esi
	callq	_glUniform1i
	movl	(%r14), %ebx
	xorl	%eax, %eax
	callq	_time_of_day
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_glUniform1f
	movq	_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ebx
	movl	%ebx, %edi
	callq	_is_plant
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_gen_plant_buffer
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_draw_plant
	jmp	LBB0_3
LBB0_2:
	callq	_gen_cube_buffer
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_draw_cube
LBB0_3:
	movl	%ebx, %edi
	callq	_del_buffer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g,8,3                          ## @g
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_items,8,3                      ## @items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_item                    ; -- Begin function render_item
	.p2align	2
_render_item:                           ; @render_item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _g@GOTPAGE
Lloh4:
	ldr	x21, [x21, _g@GOTPAGEOFF]
	ldr	x8, [x21]
	ldp	w2, w1, [x8, #12]
	ldr	w3, [x8, #8]
	add	x0, sp, #8
	bl	_set_matrix_item
	ldr	w0, [x19, #16]
	bl	_glUseProgram
	ldr	w0, [x19, #12]
Lloh5:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w1, #1
	bl	_glUniformMatrix4fv
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #5
	bl	_glUniform3f
	ldr	w0, [x19, #4]
	mov	w1, #0
	bl	_glUniform1i
	ldr	w20, [x19]
	bl	_time_of_day
	mov	x1, x0
	mov	x0, x20
	bl	_glUniform1f
Lloh8:
	adrp	x8, _items@GOTPAGE
Lloh9:
	ldr	x8, [x8, _items@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_is_plant
	fmov	d0, #0.50000000
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	mov	x3, x20
	bl	_gen_plant_buffer
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_draw_plant
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w2, #0
	mov	x3, x20
	bl	_gen_cube_buffer
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_draw_cube
LBB0_3:
	mov	x0, x20
	bl	_del_buffer
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_g,8,3                          ; @g
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_items,8,3                      ; @items
.subsections_via_symbols
