	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function StartServer_LevelshotDraw
_StartServer_LevelshotDraw:             ## @StartServer_LevelshotDraw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_NAMELENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	40(%r15), %r8
	testq	%r8, %r8
	jne	LBB0_6
## %bb.2:
	callq	_trap_R_RegisterShaderNoMip
	movq	%rax, %r8
	movq	%rax, 40(%r15)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	56(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	callq	_trap_R_RegisterShaderNoMip
	movq	%rax, %r8
	movq	%rax, 40(%r15)
	jmp	LBB0_6
LBB0_4:
	xorl	%r8d, %r8d
LBB0_6:
	movq	48(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	cmpq	$0, 8(%r15)
	jne	LBB0_9
## %bb.8:
	callq	_trap_R_RegisterShaderNoMip
	movq	%rax, 8(%r15)
	movq	40(%r15), %r8
LBB0_9:
	testq	%r8, %r8
	je	LBB0_11
## %bb.10:
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	movl	20(%r15), %esi
	movl	16(%r15), %edi
	callq	_UI_DrawHandlePic
LBB0_11:
	movl	16(%r15), %r12d
	movl	20(%r15), %r13d
	movl	(%r15), %edx
	movl	4(%r15), %r14d
	leal	(%r14,%r13), %esi
	movq	_colorBlack@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %edi
	movl	$28, %ecx
	callq	_UI_FillRect
	movl	(%r15), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movq	_s_startserver@GOTPCREL(%rip), %rax
	movq	_MAX_MAPSPERPAGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	addl	24(%r15), %ecx
	addl	%r12d, %ebx
	movq	_ID_PICTURES@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	leal	(%r14,%r13), %r12d
	addl	$4, %r12d
	movq	8(%rax), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_UI_GetArenaInfoByNumber
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_Info_ValueForKey
	movq	_MAX_NAMELENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_Q_strncpyz
	movq	%r14, %rdi
	callq	_Q_strupr
	movq	_UI_CENTER@GOTPCREL(%rip), %rax
	movq	_UI_SMALLFONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_color_blue@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_UI_DrawString
	movq	_QMF_HIGHLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%r15)
	je	LBB0_13
## %bb.12:
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	addl	$28, %ecx
	movl	20(%r15), %esi
	movl	16(%r15), %edi
	movq	8(%r15), %r8
	callq	_UI_DrawHandlePic
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NAMELENGTH,4,2             ## @MAX_NAMELENGTH
	.comm	_colorBlack,4,2                 ## @colorBlack
	.comm	_s_startserver,16,3             ## @s_startserver
	.comm	_MAX_MAPSPERPAGE,4,2            ## @MAX_MAPSPERPAGE
	.comm	_ID_PICTURES,4,2                ## @ID_PICTURES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map"

	.comm	_UI_CENTER,4,2                  ## @UI_CENTER
	.comm	_UI_SMALLFONT,4,2               ## @UI_SMALLFONT
	.comm	_color_blue,4,2                 ## @color_blue
	.comm	_QMF_HIGHLIGHT,4,2              ## @QMF_HIGHLIGHT
	.no_dead_strip	_StartServer_LevelshotDraw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function StartServer_LevelshotDraw
_StartServer_LevelshotDraw:             ; @StartServer_LevelshotDraw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _MAX_NAMELENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_NAMELENGTH@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x4, [x19, #40]
	cbnz	x4, LBB0_5
; %bb.2:
	bl	_trap_R_RegisterShaderNoMip
	mov	x4, x0
	str	x0, [x19, #40]
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_14
; %bb.4:
	bl	_trap_R_RegisterShaderNoMip
	mov	x4, x0
	str	x0, [x19, #40]
LBB0_5:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_8
LBB0_6:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
; %bb.7:
	bl	_trap_R_RegisterShaderNoMip
	str	x0, [x19, #8]
	ldr	x4, [x19, #40]
LBB0_8:
	cbz	x4, LBB0_10
; %bb.9:
	ldp	w2, w3, [x19]
	ldp	w0, w1, [x19, #16]
	bl	_UI_DrawHandlePic
LBB0_10:
	ldp	w21, w8, [x19, #16]
	ldp	w2, w9, [x19]
	add	w22, w9, w8
Lloh7:
	adrp	x8, _colorBlack@GOTPAGE
Lloh8:
	ldr	x8, [x8, _colorBlack@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #28
	bl	_UI_FillRect
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w21, w21, w8, asr #1
Lloh10:
	adrp	x8, _s_startserver@GOTPAGE
Lloh11:
	ldr	x8, [x8, _s_startserver@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MAX_MAPSPERPAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX_MAPSPERPAGE@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh14:
	ldr	w9, [x9]
	ldr	w11, [x19, #24]
	madd	w9, w9, w10, w11
Lloh15:
	adrp	x10, _ID_PICTURES@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ID_PICTURES@GOTPAGEOFF]
	add	w22, w22, #4
Lloh17:
	ldr	w10, [x10]
	sub	w9, w9, w10
	ldr	x8, [x8, #8]
	ldr	w0, [x8, w9, sxtw #2]
	bl	_UI_GetArenaInfoByNumber
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Info_ValueForKey
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x20
	bl	_Q_strncpyz
	mov	x0, x20
	bl	_Q_strupr
Lloh20:
	adrp	x8, _UI_CENTER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UI_CENTER@GOTPAGEOFF]
Lloh22:
	adrp	x9, _UI_SMALLFONT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _UI_SMALLFONT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh26:
	adrp	x8, _color_blue@GOTPAGE
Lloh27:
	ldr	x8, [x8, _color_blue@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_UI_DrawString
	ldr	w8, [x19, #28]
Lloh29:
	adrp	x9, _QMF_HIGHLIGHT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _QMF_HIGHLIGHT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldp	w2, w8, [x19]
	add	w3, w8, #28
	ldp	w0, w1, [x19, #16]
	ldr	x4, [x19, #8]
	bl	_UI_DrawHandlePic
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x4, #0
	ldr	x0, [x19, #48]
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NAMELENGTH,4,2             ; @MAX_NAMELENGTH
	.comm	_colorBlack,4,2                 ; @colorBlack
	.comm	_s_startserver,16,3             ; @s_startserver
	.comm	_MAX_MAPSPERPAGE,4,2            ; @MAX_MAPSPERPAGE
	.comm	_ID_PICTURES,4,2                ; @ID_PICTURES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map"

	.comm	_UI_CENTER,4,2                  ; @UI_CENTER
	.comm	_UI_SMALLFONT,4,2               ; @UI_SMALLFONT
	.comm	_color_blue,4,2                 ; @color_blue
	.comm	_QMF_HIGHLIGHT,4,2              ; @QMF_HIGHLIGHT
	.no_dead_strip	_StartServer_LevelshotDraw
.subsections_via_symbols
