	.file	"extr_tr_world.c_R_AddWorldSurfaces.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	R_AddWorldSurfaces
	.type	R_AddWorldSurfaces, @function
R_AddWorldSurfaces:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR r_drawworld[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR tr[rip+8]
	test	DWORD PTR RDF_NOWORLDMODEL[rip], eax
	je	.L9
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	ecx, DWORD PTR QSORT_ENTITYNUM_SHIFT[rip]
	mov	eax, DWORD PTR ENTITYNUM_WORLD[rip]
	mov	DWORD PTR tr[rip], eax
	sal	eax, cl
	mov	DWORD PTR tr[rip+4], eax
	xor	eax, eax
	call	R_MarkLeaves@PLT
	mov	rax, QWORD PTR tr[rip+24]
	mov	esi, DWORD PTR 4[rax]
	mov	edi, DWORD PTR [rax]
	call	ClearBounds@PLT
	mov	ecx, DWORD PTR tr[rip+12]
	cmp	ecx, 32
	jg	.L3
	mov	edx, 1
	sal	edx, cl
	sub	edx, 1
.L4:
	mov	rax, QWORD PTR tr[rip+16]
	mov	esi, 15
	mov	edi, DWORD PTR [rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	R_RecursiveWorldNode@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	DWORD PTR tr[rip+12], 32
	mov	edx, -1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	R_AddWorldSurfaces, .-R_AddWorldSurfaces
	.comm	tr,32,32
	.comm	r_drawworld,8,8
	.comm	RDF_NOWORLDMODEL,4,4
	.comm	QSORT_ENTITYNUM_SHIFT,4,4
	.comm	ENTITYNUM_WORLD,4,4
	.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_tr_world.c_R_AddWorldSurfaces.c"
	.text
	.align	2
	.global	R_AddWorldSurfaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	R_AddWorldSurfaces, %function
R_AddWorldSurfaces:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, lr}
	ldr	r3, .L13+4
	ldr	r4, .L13+8
	ldr	r3, [r3]
	ldr	r2, [r4, #8]
	tst	r2, r3
	popne	{r4, pc}
	ldr	r3, .L13+12
	ldr	r2, .L13+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [r4]
	lsl	r3, r3, r2
	str	r3, [r4, #4]
	bl	R_MarkLeaves
	ldr	r3, [r4, #20]
	ldm	r3, {r0, r1}
	bl	ClearBounds
	ldr	r3, [r4, #12]
	mov	r1, #15
	cmp	r3, #32
	movgt	r3, #32
	mvnle	r2, #0
	strgt	r3, [r4, #12]
	mvnle	r2, r2, lsl r3
	ldr	r3, [r4, #16]
	mvngt	r2, #0
	pop	{r4, lr}
	ldr	r0, [r3]
	b	R_RecursiveWorldNode
.L14:
	.align	2
.L13:
	.word	r_drawworld
	.word	RDF_NOWORLDMODEL
	.word	tr
	.word	ENTITYNUM_WORLD
	.word	QSORT_ENTITYNUM_SHIFT
	.size	R_AddWorldSurfaces, .-R_AddWorldSurfaces
	.comm	tr,24,4
	.comm	r_drawworld,4,4
	.comm	RDF_NOWORLDMODEL,4,4
	.comm	QSORT_ENTITYNUM_SHIFT,4,4
	.comm	ENTITYNUM_WORLD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
