	.file	"extr_tr_scene.c_R_AddPolygonSurfaces.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	R_AddPolygonSurfaces
	.type	R_AddPolygonSurfaces, @function
R_AddPolygonSurfaces:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR REFENTITYNUM_WORLD[rip]
	mov	ecx, DWORD PTR QSORT_REFENTITYNUM_SHIFT[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	DWORD PTR tr[rip], eax
	sal	eax, cl
	mov	DWORD PTR tr[rip+4], eax
	mov	eax, DWORD PTR tr[rip+8]
	test	DWORD PTR RDF_NOFOG[rip], eax
	mov	eax, DWORD PTR tr[rip+12]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sete	r12b
	mov	rbx, QWORD PTR tr[rip+16]
	neg	r12d
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR 4[rbx]
	add	ebp, 1
	call	R_GetShaderByHandle@PLT
	mov	edx, DWORD PTR [rbx]
	mov	ecx, DWORD PTR qfalse[rip]
	xor	r9d, r9d
	mov	rdi, rbx
	mov	rsi, rax
	add	rbx, 8
	and	edx, r12d
	mov	r8d, ecx
	call	R_AddDrawSurf@PLT
	cmp	DWORD PTR tr[rip+12], ebp
	jg	.L3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	R_AddPolygonSurfaces, .-R_AddPolygonSurfaces
	.comm	tr,24,16
	.comm	qfalse,4,4
	.comm	REFENTITYNUM_WORLD,4,4
	.comm	RDF_NOFOG,4,4
	.comm	QSORT_REFENTITYNUM_SHIFT,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_scene.c_R_AddPolygonSurfaces.c"
	.text
	.align	2
	.global	R_AddPolygonSurfaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	R_AddPolygonSurfaces, %function
R_AddPolygonSurfaces:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, .L7
	ldr	r6, .L7+4
	ldr	r2, .L7+8
	ldr	r3, .L7+12
	ldr	r0, [r1]
	ldr	ip, [r6, #8]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r6, #12]
	tst	ip, r0
	mvneq	r8, #0
	movne	r8, #0
	lsl	r3, r2, r3
	cmp	r1, #0
	stm	r6, {r2, r3}
	ldr	r7, [r6, #16]
	sub	sp, sp, #8
	ble	.L1
	mov	r4, #0
	mov	r5, r7
	mov	r10, r4
	ldr	r9, .L7+16
.L3:
	ldr	r0, [r5, #4]
	bl	R_GetShaderByHandle
	ldr	r2, [r7, r4, lsl #3]
	ldr	r3, [r9]
	mov	r1, r0
	str	r3, [sp]
	mov	r0, r5
	and	r2, r2, r8
	str	r10, [sp, #4]
	bl	R_AddDrawSurf
	ldr	r3, [r6, #12]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, #8
	bgt	.L3
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	RDF_NOFOG
	.word	tr
	.word	REFENTITYNUM_WORLD
	.word	QSORT_REFENTITYNUM_SHIFT
	.word	qfalse
	.size	R_AddPolygonSurfaces, .-R_AddPolygonSurfaces
	.comm	tr,20,4
	.comm	qfalse,4,4
	.comm	REFENTITYNUM_WORLD,4,4
	.comm	RDF_NOFOG,4,4
	.comm	QSORT_REFENTITYNUM_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
