	.file	"extr_cave_render.c_world_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Build time: %7.2fs\n"
	.text
	.p2align 4
	.globl	world_init
	.type	world_init, @function
world_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	mov	r15d, 12
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, -12
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	SDL_GetPerformanceCounter@PLT
	movss	DWORD PTR 12[rsp], xmm0
.L2:
	lea	r13d, 15[r14]
	mov	ebx, -12
	.p2align 4,,10
	.p2align 3
.L13:
	cmp	r13d, 12
	mov	r12d, r15d
	mov	ebp, r14d
	cmovle	r12d, r13d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	call	update_meshes_from_render_thread@PLT
	mov	edi, 1
	call	SDL_Delay@PLT
.L12:
	mov	esi, ebx
	mov	edi, ebp
	call	request_chunk@PLT
	test	eax, eax
	je	.L9
	add	ebp, 2
	cmp	ebp, r12d
	jle	.L12
	add	ebx, 2
	cmp	ebx, 4
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	r13d, 12
	mov	r12d, r15d
	mov	ebp, r14d
	cmovle	r12d, r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	update_meshes_from_render_thread@PLT
	mov	edi, 1
	call	SDL_Delay@PLT
.L5:
	mov	esi, ebx
	mov	edi, ebp
	call	request_chunk@PLT
	test	eax, eax
	je	.L3
	add	ebp, 2
	cmp	r12d, ebp
	jge	.L5
	add	ebx, 2
	cmp	ebx, 14
	jne	.L14
	add	r14d, 16
	cmp	r14d, 20
	jne	.L2
.L8:
	xor	eax, eax
	call	update_meshes_from_render_thread@PLT
	mov	r8d, DWORD PTR num_mesh_workers[rip]
	test	r8d, r8d
	jle	.L19
	lea	edx, -1[r8]
	mov	rsi, QWORD PTR mesh_data[rip]
	mov	eax, 1
	mov	rcx, QWORD PTR WSTATE_idle[rip]
	add	rdx, 2
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edi, eax
	add	rax, 1
	cmp	rax, rdx
	je	.L15
.L17:
	cmp	QWORD PTR -8[rsi+rax*8], rcx
	je	.L27
.L16:
	mov	edi, 3
	call	SDL_Delay@PLT
	jmp	.L8
.L19:
	xor	edi, edi
.L15:
	cmp	r8d, edi
	jne	.L16
	xor	eax, eax
	call	SDL_GetPerformanceCounter@PLT
	subss	xmm0, DWORD PTR 12[rsp]
	xor	eax, eax
	movss	DWORD PTR 12[rsp], xmm0
	call	SDL_GetPerformanceFrequency@PLT
	pxor	xmm1, xmm1
	movss	xmm0, DWORD PTR 12[rsp]
	lea	rdi, .LC0[rip]
	cvtsi2ss	xmm1, rax
	divss	xmm0, xmm1
	call	ods@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	edi, 32
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	reset_cache_size@PLT
	.cfi_endproc
.LFE0:
	.size	world_init, .-world_init
	.comm	num_mesh_workers,4,4
	.comm	mesh_data,8,8
	.comm	WSTATE_idle,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cave_render.c_world_init.c"
	.text
	.global	__aeabi_fsub
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Build time: %7.2fs\012\000"
	.text
	.align	2
	.global	world_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	world_init, %function
world_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bl	SDL_GetPerformanceCounter
	mvn	r8, #11
	mov	r6, r0
.L2:
	add	r7, r8, #15
	cmp	r7, #12
	movlt	r9, r7
	movge	r9, #12
	mvn	r4, #11
.L13:
	mov	r5, r8
	b	.L12
.L9:
	bl	update_meshes_from_render_thread
	mov	r0, #1
	bl	SDL_Delay
.L12:
	mov	r1, r4
	mov	r0, r5
	bl	request_chunk
	cmp	r0, #0
	beq	.L9
	add	r5, r5, #2
	cmp	r5, r9
	ble	.L12
	add	r4, r4, #2
	cmp	r4, #4
	bne	.L13
	cmp	r7, #12
	movge	r7, #12
.L14:
	mov	r5, r8
	b	.L5
.L3:
	bl	update_meshes_from_render_thread
	mov	r0, #1
	bl	SDL_Delay
.L5:
	mov	r1, r4
	mov	r0, r5
	bl	request_chunk
	cmp	r0, #0
	beq	.L3
	add	r5, r5, #2
	cmp	r7, r5
	bge	.L5
	add	r4, r4, #2
	cmp	r4, #14
	bne	.L14
	add	r8, r8, #16
	cmp	r8, #20
	bne	.L2
	ldr	r4, .L28
	bl	update_meshes_from_render_thread
	ldr	r0, [r4]
	ldr	r7, .L28+4
	cmp	r0, #0
	ldr	r5, .L28+8
	ble	.L15
.L27:
	ldr	r2, [r5]
	mov	r3, #0
	ldr	ip, [r7]
	sub	r2, r2, #4
	b	.L17
.L26:
	cmp	r0, r3
	beq	.L18
.L17:
	ldr	r1, [r2, #4]!
	add	r3, r3, #1
	cmp	r1, ip
	beq	.L26
.L16:
	mov	r0, #3
	bl	SDL_Delay
	bl	update_meshes_from_render_thread
	ldr	r0, [r4]
	cmp	r0, #0
	bgt	.L27
.L15:
	bne	.L16
.L18:
	bl	SDL_GetPerformanceCounter
	mov	r1, r6
	bl	__aeabi_fsub
	mov	r4, r0
	bl	SDL_GetPerformanceFrequency
	bl	__aeabi_i2f
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r1, r0
	ldr	r0, .L28+12
	bl	ods
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, #32
	b	reset_cache_size
.L29:
	.align	2
.L28:
	.word	num_mesh_workers
	.word	WSTATE_idle
	.word	mesh_data
	.word	.LC0
	.size	world_init, .-world_init
	.comm	num_mesh_workers,4,4
	.comm	mesh_data,4,4
	.comm	WSTATE_idle,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
