	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_DrawMapPreview
_UI_DrawMapPreview:                     ## @UI_DrawMapPreview
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	testq	%rdx, %rdx
	jne	LBB0_1
## %bb.2:
	movq	_ui_currentMap@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ui_currentNetMap@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_uiInfo@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	cmpl	(%r14), %eax
	jle	LBB0_6
LBB0_5:
	testq	%rdx, %rdx
	movq	_ui_currentNetMap@GOTPCREL(%rip), %rax
	cmoveq	_ui_currentMap@GOTPCREL(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str(%rip), %rdi
	cmoveq	%rcx, %rdi
	movl	$0, (%rax)
	leaq	L_.str.1(%rip), %rsi
	callq	_trap_Cvar_Set
	xorl	%eax, %eax
LBB0_6:
	movq	8(%r14), %rcx
	movl	%eax, %ebx
	shlq	$4, %rbx
	movl	(%rcx,%rbx), %r8d
	cmpl	$-1, %r8d
	jne	LBB0_8
## %bb.7:
	movq	8(%rcx,%rbx), %rdi
	callq	_trap_R_RegisterShaderNoMip
	movl	%eax, %r8d
	movq	8(%r14), %rax
	movl	%r8d, (%rax,%rbx)
LBB0_8:
	movl	12(%r13), %r15d
	movl	8(%r13), %r12d
	movl	(%r13), %r14d
	movl	4(%r13), %ebx
	testl	%r8d, %r8d
	jg	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_trap_R_RegisterShaderNoMip
	movl	%eax, %r8d
LBB0_10:
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_DrawHandlePic               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ui_currentNetMap,4,2           ## @ui_currentNetMap
	.comm	_ui_currentMap,4,2              ## @ui_currentMap
	.comm	_uiInfo,16,3                    ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_currentNetMap"

L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.asciz	"ui_currentMap"

L_.str.3:                               ## @.str.3
	.asciz	"menu/art/unknownmap"

	.no_dead_strip	_UI_DrawMapPreview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_DrawMapPreview
_UI_DrawMapPreview:                     ; @UI_DrawMapPreview
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _ui_currentNetMap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ui_currentNetMap@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ui_currentMap@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ui_currentMap@GOTPAGEOFF]
	cmp	x2, #0
	csel	x10, x9, x8, eq
	ldr	w10, [x10]
Lloh4:
	adrp	x20, _uiInfo@GOTPAGE
Lloh5:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	tbnz	w10, #31, LBB0_2
; %bb.1:
	ldr	w11, [x20]
	cmp	w10, w11
	b.le	LBB0_3
LBB0_2:
	cmp	x2, #0
	csel	x8, x9, x8, eq
Lloh6:
	adrp	x9, l_.str@PAGE
Lloh7:
	add	x9, x9, l_.str@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	csel	x0, x10, x9, eq
	str	wzr, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_trap_Cvar_Set
	mov	w10, #0
LBB0_3:
	ldr	x8, [x20, #8]
	mov	w9, w10
	lsl	x21, x9, #4
	ldr	w4, [x8, x21]
	cmn	w4, #1
	b.ne	LBB0_5
; %bb.4:
	add	x8, x8, x21
	ldr	x0, [x8, #8]
	bl	_trap_R_RegisterShaderNoMip
	mov	x4, x0
	ldr	x8, [x20, #8]
	str	w0, [x8, x21]
LBB0_5:
	ldp	w21, w20, [x19, #8]
	ldp	w19, w22, [x19]
	cmp	w4, #0
	b.gt	LBB0_7
; %bb.6:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_trap_R_RegisterShaderNoMip
	mov	x4, x0
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_UI_DrawHandlePic
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ui_currentNetMap,4,2           ; @ui_currentNetMap
	.comm	_ui_currentMap,4,2              ; @ui_currentMap
	.comm	_uiInfo,16,3                    ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_currentNetMap"

l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.asciz	"ui_currentMap"

l_.str.3:                               ; @.str.3
	.asciz	"menu/art/unknownmap"

	.no_dead_strip	_UI_DrawMapPreview
.subsections_via_symbols
