	.file	"extr_g_arenas.c_SpawnModelsOnVictoryPads.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SpawnModelsOnVictoryPads
	.type	SpawnModelsOnVictoryPads, @function
SpawnModelsOnVictoryPads:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	QWORD PTR podium1[rip], 0
	mov	QWORD PTR podium2[rip], 0
	mov	QWORD PTR podium3[rip], 0
	call	SpawnPodium@PLT
	mov	rdx, QWORD PTR level[rip+16]
	mov	rsi, QWORD PTR PERS_RANK[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR level[rip]
	mov	ecx, DWORD PTR RANK_TIED_FLAG[rip]
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	not	ecx
	mov	rdx, QWORD PTR [rdx+rax*8]
	and	ecx, DWORD PTR [rdx+rsi*4]
	mov	rdx, QWORD PTR g_entities[rip]
	mov	esi, DWORD PTR offsetFirst[rip]
	lea	rdx, [rdx+rax*4]
	call	SpawnModelOnVictoryPad@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR level[rip+24]
	lea	rdx, 2000[rdi]
	mov	QWORD PTR 8[rax], rdx
	mov	edx, DWORD PTR CelebrateStart[rip]
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR podium1[rip], rax
.L2:
	mov	rax, QWORD PTR level[rip]
	mov	rdx, QWORD PTR level[rip+16]
	mov	rdi, rbp
	mov	rsi, QWORD PTR PERS_RANK[rip]
	mov	ecx, DWORD PTR RANK_TIED_FLAG[rip]
	mov	rax, QWORD PTR 8[rax]
	not	ecx
	mov	rdx, QWORD PTR [rdx+rax*8]
	and	ecx, DWORD PTR [rdx+rsi*4]
	mov	rdx, QWORD PTR g_entities[rip]
	mov	esi, DWORD PTR offsetSecond[rip]
	lea	rdx, [rdx+rax*4]
	call	SpawnModelOnVictoryPad@PLT
	test	rax, rax
	je	.L3
	mov	QWORD PTR podium2[rip], rax
.L3:
	cmp	DWORD PTR level[rip+8], 2
	jg	.L18
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR level[rip]
	mov	rdx, QWORD PTR level[rip+16]
	mov	rdi, rbp
	mov	rsi, QWORD PTR PERS_RANK[rip]
	mov	ecx, DWORD PTR RANK_TIED_FLAG[rip]
	mov	rax, QWORD PTR 16[rax]
	not	ecx
	mov	rdx, QWORD PTR [rdx+rax*8]
	and	ecx, DWORD PTR [rdx+rsi*4]
	mov	rdx, QWORD PTR g_entities[rip]
	mov	esi, DWORD PTR offsetThird[rip]
	lea	rdx, [rdx+rax*4]
	call	SpawnModelOnVictoryPad@PLT
	test	rax, rax
	je	.L1
	mov	QWORD PTR podium3[rip], rax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	SpawnModelsOnVictoryPads, .-SpawnModelsOnVictoryPads
	.comm	podium3,8,8
	.comm	podium2,8,8
	.comm	podium1,8,8
	.comm	offsetThird,4,4
	.comm	offsetSecond,4,4
	.comm	offsetFirst,4,4
	.comm	level,32,32
	.comm	g_entities,8,8
	.comm	RANK_TIED_FLAG,4,4
	.comm	PERS_RANK,8,8
	.comm	CelebrateStart,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_g_arenas.c_SpawnModelsOnVictoryPads.c"
	.text
	.align	2
	.global	SpawnModelsOnVictoryPads
	.syntax unified
	.arm
	.fpu softvfp
	.type	SpawnModelsOnVictoryPads, %function
SpawnModelsOnVictoryPads:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r3, #0
	ldr	r10, .L18
	ldr	r9, .L18+4
	ldr	fp, .L18+8
	str	r3, [r10]
	str	r3, [r9]
	str	r3, [fp]
	bl	SpawnPodium
	ldr	r4, .L18+12
	ldr	r8, .L18+16
	ldr	r2, [r4]
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	ldr	r1, [r8]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r7, .L18+20
	ldr	r3, [r3, r1, lsl #2]
	ldr	r6, .L18+24
	ldr	r1, [r7]
	ldr	ip, [r6]
	bic	r3, r3, r1
	ldr	r1, .L18+28
	add	r2, ip, r2, lsl #2
	ldr	r1, [r1]
	mov	r5, r0
	bl	SpawnModelOnVictoryPad
	cmp	r0, #0
	beq	.L2
	ldr	r2, .L18+32
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	add	r3, r3, #2000
	stm	r0, {r2, r3}
	str	r0, [r10]
.L2:
	ldr	r2, [r4]
	ldr	r3, [r4, #8]
	ldr	r2, [r2, #4]
	ldr	r1, [r8]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r0, [r6]
	ldr	r3, [r3, r1, lsl #2]
	ldr	ip, [r7]
	ldr	r1, .L18+36
	bic	r3, r3, ip
	add	r2, r0, r2, lsl #2
	ldr	r1, [r1]
	mov	r0, r5
	bl	SpawnModelOnVictoryPad
	ldr	r3, [r4, #4]
	cmp	r0, #0
	strne	r0, [r9]
	cmp	r3, #2
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r2, [r4]
	ldr	r3, [r4, #8]
	ldr	r2, [r2, #8]
	ldr	r1, [r8]
	ldr	r3, [r3, r2, lsl #2]
	ldr	lr, [r7]
	ldr	r3, [r3, r1, lsl #2]
	ldr	ip, [r6]
	ldr	r1, .L18+40
	mov	r0, r5
	ldr	r1, [r1]
	bic	r3, r3, lr
	add	r2, ip, r2, lsl #2
	bl	SpawnModelOnVictoryPad
	cmp	r0, #0
	strne	r0, [fp]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	podium1
	.word	podium2
	.word	podium3
	.word	level
	.word	PERS_RANK
	.word	RANK_TIED_FLAG
	.word	g_entities
	.word	offsetFirst
	.word	CelebrateStart
	.word	offsetSecond
	.word	offsetThird
	.size	SpawnModelsOnVictoryPads, .-SpawnModelsOnVictoryPads
	.comm	podium3,4,4
	.comm	podium2,4,4
	.comm	podium1,4,4
	.comm	offsetThird,4,4
	.comm	offsetSecond,4,4
	.comm	offsetFirst,4,4
	.comm	level,16,4
	.comm	g_entities,4,4
	.comm	RANK_TIED_FLAG,4,4
	.comm	PERS_RANK,4,4
	.comm	CelebrateStart,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
