	.file	"extr_tr_world.c_R_DlightSurface.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	R_DlightSurface, @function
R_DlightSurface:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rdi, QWORD PTR [rdi]
	mov	rdx, QWORD PTR [rdi]
	cmp	rdx, QWORD PTR SF_FACE[rip]
	je	.L12
	cmp	rdx, QWORD PTR SF_GRID[rip]
	je	.L13
	xor	eax, eax
	cmp	rdx, QWORD PTR SF_TRIANGLES[rip]
	je	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	R_DlightFace@PLT
.L3:
	test	eax, eax
	je	.L1
	add	DWORD PTR tr[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	R_DlightGrid@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	call	R_DlightTrisurf@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	R_DlightSurface, .-R_DlightSurface
	.comm	tr,4,4
	.comm	SF_TRIANGLES,8,8
	.comm	SF_GRID,8,8
	.comm	SF_FACE,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_tr_world.c_R_DlightSurface.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	R_DlightSurface, %function
R_DlightSurface:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	ldr	r0, [r0]
	ldr	r2, [r3]
	ldr	r3, [r0]
	push	{r4, lr}
	cmp	r3, r2
	beq	.L12
	ldr	r2, .L15+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L13
	ldr	r2, .L15+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
	mov	r0, #0
	pop	{r4, pc}
.L12:
	bl	R_DlightFace
.L3:
	cmp	r0, #0
	ldrne	r2, .L15+12
	ldrne	r3, [r2]
	addne	r3, r3, #1
	strne	r3, [r2]
	pop	{r4, pc}
.L13:
	bl	R_DlightGrid
	b	.L3
.L14:
	bl	R_DlightTrisurf
	b	.L3
.L16:
	.align	2
.L15:
	.word	SF_FACE
	.word	SF_GRID
	.word	SF_TRIANGLES
	.word	tr
	.size	R_DlightSurface, .-R_DlightSurface
	.comm	tr,4,4
	.comm	SF_TRIANGLES,4,4
	.comm	SF_GRID,4,4
	.comm	SF_FACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
