	.file	"extr_ui_main.c_UI_DrawMapPreview.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"0"
.LC1:
	.string	"ui_currentNetMap"
.LC2:
	.string	"ui_currentMap"
.LC3:
	.string	"menu/art/unknownmap"
	.text
	.p2align 4
	.type	UI_DrawMapPreview, @function
UI_DrawMapPreview:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	test	rdx, rdx
	je	.L2
	mov	eax, DWORD PTR ui_currentNetMap[rip]
	test	eax, eax
	js	.L3
	cmp	eax, DWORD PTR uiInfo[rip]
	jle	.L10
.L3:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	xor	ebp, ebp
	mov	DWORD PTR ui_currentNetMap[rip], 0
	call	trap_Cvar_Set@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR ui_currentMap[rip]
	test	eax, eax
	js	.L5
	cmp	eax, DWORD PTR uiInfo[rip]
	jle	.L10
.L5:
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	xor	ebp, ebp
	mov	DWORD PTR ui_currentMap[rip], 0
	call	trap_Cvar_Set@PLT
.L7:
	mov	r12, QWORD PTR uiInfo[rip+8]
	add	r12, rbp
	mov	r8d, DWORD PTR [r12]
	cmp	r8d, -1
	je	.L16
.L8:
	test	r8d, r8d
	jg	.L14
	lea	rdi, .LC3[rip]
	call	trap_R_RegisterShaderNoMip@PLT
	mov	r8d, eax
.L14:
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	ecx, DWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	UI_DrawHandlePic@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movsx	rbp, eax
	sal	rbp, 4
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, QWORD PTR 8[r12]
	call	trap_R_RegisterShaderNoMip@PLT
	mov	DWORD PTR [r12], eax
	mov	rax, QWORD PTR uiInfo[rip+8]
	mov	r8d, DWORD PTR [rax+rbp]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	UI_DrawMapPreview, .-UI_DrawMapPreview
	.comm	ui_currentNetMap,4,4
	.comm	ui_currentMap,4,4
	.comm	uiInfo,16,16
	.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_ui_main.c_UI_DrawMapPreview.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0\000"
	.align	2
.LC1:
	.ascii	"ui_currentNetMap\000"
	.align	2
.LC2:
	.ascii	"ui_currentMap\000"
	.align	2
.LC3:
	.ascii	"menu/art/unknownmap\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UI_DrawMapPreview, %function
UI_DrawMapPreview:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	cmp	r3, #0
	mov	r5, r0
	sub	sp, sp, #12
	beq	.L2
	ldr	r3, .L19
	ldr	r7, .L19+4
	ldr	r4, [r3]
	cmp	r4, #0
	blt	.L3
	ldr	r2, [r7]
	cmp	r4, r2
	ble	.L11
.L3:
	mov	r4, #0
	ldr	r1, .L19+8
	str	r4, [r3]
	ldr	r0, .L19+12
	bl	trap_Cvar_Set
	b	.L7
.L2:
	ldr	r3, .L19+16
	ldr	r7, .L19+4
	ldr	r4, [r3]
	cmp	r4, #0
	blt	.L5
	ldr	r2, [r7]
	cmp	r4, r2
	ble	.L11
.L5:
	mov	r4, #0
	ldr	r1, .L19+8
	ldr	r0, .L19+20
	str	r4, [r3]
	bl	trap_Cvar_Set
.L7:
	ldr	r6, [r7, #4]
	ldr	r0, [r6, r4]
	add	r3, r6, r4
	cmn	r0, #1
	beq	.L18
.L8:
	cmp	r0, #0
	ldr	r4, [r5, #12]
	ldr	r6, [r5, #8]
	ldm	r5, {r5, r7}
	ble	.L9
	str	r0, [sp]
	mov	r3, r5
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	UI_DrawHandlePic
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	lsl	r4, r4, #3
	b	.L7
.L9:
	ldr	r0, .L19+24
	bl	trap_R_RegisterShaderNoMip
	mov	r3, r5
	str	r0, [sp]
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	UI_DrawHandlePic
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	ldr	r0, [r3, #4]
	bl	trap_R_RegisterShaderNoMip
	ldr	r3, [r7, #4]
	str	r0, [r6, r4]
	ldr	r0, [r3, r4]
	b	.L8
.L20:
	.align	2
.L19:
	.word	ui_currentNetMap
	.word	uiInfo
	.word	.LC0
	.word	.LC1
	.word	ui_currentMap
	.word	.LC2
	.word	.LC3
	.size	UI_DrawMapPreview, .-UI_DrawMapPreview
	.comm	ui_currentNetMap,4,4
	.comm	ui_currentMap,4,4
	.comm	uiInfo,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
