	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_SPPostgameMenu_MenuDrawScoreLine
_UI_SPPostgameMenu_MenuDrawScoreLine:   ## @UI_SPPostgameMenu_MenuDrawScoreLine
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_postgameMenuInfo@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	leal	2(%rax), %edx
	xorl	%esi, %esi
	cmpl	%ebx, %ecx
	cmovll	%edx, %esi
	subl	%esi, %ebx
	cmpl	%eax, %ebx
	jge	LBB0_4
## %bb.1:
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movl	%r12d, %esi
	movq	8(%r14), %rax
	movslq	%ebx, %r13
	movl	(%rax,%r13,4), %r12d
	movq	_RANK_TIED_FLAG@GOTPCREL(%rip), %rbx
	testl	%r12d, (%rbx)
	movl	%esi, -116(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.2:
	movq	_SMALLCHAR_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	negl	%ecx
	leal	(%rax,%rcx), %edi
	addl	$640, %edi                      ## imm = 0x280
	movq	_UI_LEFT@GOTPCREL(%rip), %rax
	movq	_UI_SMALLFONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_color_white@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	callq	_UI_DrawString
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r12d
LBB0_3:
	movq	_CS_PLAYERS@GOTPCREL(%rip), %rax
	movq	24(%r14), %rcx
	movq	(%rcx,%r13,8), %rdi
	addq	(%rax), %rdi
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_trap_GetConfigString
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_Info_ValueForKey
	leaq	-112(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$64, %edx
	callq	_Q_strncpyz
	movq	%r15, %rdi
	callq	_Q_CleanStr
	movq	_SMALLCHAR_WIDTH@GOTPCREL(%rip), %rax
	imull	$-25, (%rax), %ebx
	addl	$640, %ebx                      ## imm = 0x280
	incl	%r12d
	movq	16(%r14), %rax
	movl	(%rax,%r13,4), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_va
	movq	_UI_LEFT@GOTPCREL(%rip), %rdx
	movq	_UI_SMALLFONT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_color_white@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%ebx, %edi
	movl	-116(%rbp), %esi                ## 4-byte Reload
	movq	%rax, %rdx
	callq	_UI_DrawString
	movq	-128(%rbp), %r13                ## 8-byte Reload
LBB0_4:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
	.comm	_postgameMenuInfo,32,3          ## @postgameMenuInfo
	.comm	_RANK_TIED_FLAG,4,2             ## @RANK_TIED_FLAG
	.comm	_SMALLCHAR_WIDTH,4,2            ## @SMALLCHAR_WIDTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(tie)"

	.comm	_UI_LEFT,4,2                    ## @UI_LEFT
	.comm	_UI_SMALLFONT,4,2               ## @UI_SMALLFONT
	.comm	_color_white,4,2                ## @color_white
	.comm	_CS_PLAYERS,8,3                 ## @CS_PLAYERS
L_.str.1:                               ## @.str.1
	.asciz	"n"

L_.str.2:                               ## @.str.2
	.asciz	"#%i: %-16s %2i"

	.no_dead_strip	_UI_SPPostgameMenu_MenuDrawScoreLine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SPPostgameMenu_MenuDrawScoreLine
_UI_SPPostgameMenu_MenuDrawScoreLine:   ; @UI_SPPostgameMenu_MenuDrawScoreLine
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _MAX_INFO_STRING@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_INFO_STRING@GOTPAGEOFF]
	ldr	w8, [x12]
	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
Lloh7:
	adrp	x22, _postgameMenuInfo@GOTPAGE
Lloh8:
	ldr	x22, [x22, _postgameMenuInfo@GOTPAGEOFF]
	ldr	w9, [x22]
	add	w8, w9, #1
	add	w10, w9, #2
	cmp	w8, w0
	csel	w8, w10, wzr, lt
	sub	w8, w0, w8
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	ldr	x9, [x22, #8]
	sxtw	x26, w8
	ldr	w28, [x9, w8, sxtw #2]
Lloh9:
	adrp	x24, _RANK_TIED_FLAG@GOTPAGE
Lloh10:
	ldr	x24, [x24, _RANK_TIED_FLAG@GOTPAGEOFF]
Lloh11:
	adrp	x23, _SMALLCHAR_WIDTH@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SMALLCHAR_WIDTH@GOTPAGEOFF]
Lloh13:
	adrp	x10, _UI_LEFT@GOTPAGE
Lloh14:
	ldr	x10, [x10, _UI_LEFT@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh15:
	adrp	x19, _UI_SMALLFONT@GOTPAGE
Lloh16:
	ldr	x19, [x19, _UI_SMALLFONT@GOTPAGEOFF]
Lloh17:
	adrp	x11, _color_white@GOTPAGE
Lloh18:
	ldr	x11, [x11, _color_white@GOTPAGEOFF]
	tst	w8, w28
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x23]
	sub	w8, w8, w8, lsl #5
	add	w0, w8, #640
	ldr	w8, [x10]
	ldr	w9, [x19]
	orr	w3, w9, w8
	ldr	w4, [x11]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x27, x1
	mov	x25, x12
	bl	_UI_DrawString
	mov	x12, x25
Lloh21:
	adrp	x25, _UI_LEFT@GOTPAGE
Lloh22:
	ldr	x25, [x25, _UI_LEFT@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh23:
	adrp	x24, _color_white@GOTPAGE
Lloh24:
	ldr	x24, [x24, _color_white@GOTPAGEOFF]
	bic	w28, w28, w8
	b	LBB0_4
LBB0_3:
	mov	x24, x11
	mov	x25, x10
	mov	x27, x1
LBB0_4:
Lloh25:
	adrp	x8, _CS_PLAYERS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CS_PLAYERS@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x9, [x22, #24]
	ldr	x9, [x9, x26, lsl #3]
	add	x0, x9, x8
	ldr	w2, [x12]
	mov	x1, x20
	bl	_trap_GetConfigString
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_Info_ValueForKey
	mov	x1, x0
	sub	x0, x29, #152
	mov	w2, #64
	bl	_Q_strncpyz
	sub	x0, x29, #152
	bl	_Q_CleanStr
	ldr	w8, [x23]
	mov	w9, #-25
	mul	w8, w8, w9
	add	w20, w8, #640
	add	w1, w28, #1
	ldr	x8, [x22, #16]
	ldr	w3, [x8, x26, lsl #2]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	sub	x2, x29, #152
	bl	_va
	mov	x2, x0
	ldr	w8, [x25]
	ldr	w9, [x19]
	orr	w3, w9, w8
	ldr	w4, [x24]
	mov	x0, x20
	mov	x1, x27
	bl	_UI_DrawString
LBB0_5:
	mov	sp, x21
	ldur	x8, [x29, #-88]
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_7
; %bb.6:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
	.comm	_postgameMenuInfo,32,3          ; @postgameMenuInfo
	.comm	_RANK_TIED_FLAG,4,2             ; @RANK_TIED_FLAG
	.comm	_SMALLCHAR_WIDTH,4,2            ; @SMALLCHAR_WIDTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(tie)"

	.comm	_UI_LEFT,4,2                    ; @UI_LEFT
	.comm	_UI_SMALLFONT,4,2               ; @UI_SMALLFONT
	.comm	_color_white,4,2                ; @color_white
	.comm	_CS_PLAYERS,8,3                 ; @CS_PLAYERS
l_.str.1:                               ; @.str.1
	.asciz	"n"

l_.str.2:                               ; @.str.2
	.asciz	"#%i: %-16s %2i"

	.no_dead_strip	_UI_SPPostgameMenu_MenuDrawScoreLine
.subsections_via_symbols
