	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function UI_DrawString2
LCPI0_0:
	.quad	0x3fb0000000000000              ## double 0.0625
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3d800000                      ## float 0.0625
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_UI_DrawString2:                        ## @UI_DrawString2
	.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
	movl	%r9d, %eax
	negl	%eax
	cmpl	%esi, %eax
	jle	LBB0_1
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r9d, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movl	%edi, %r15d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rcx, %rdi
	callq	_trap_R_SetColor
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.2:
	movq	_uis@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movl	8(%rdx), %ecx
	imull	%ecx, %r13d
	cvtsi2ss	%r13d, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movq	%rdx, %r13
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	imull	%eax, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	imull	%ecx, %r14d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	imull	%eax, %r15d
	addl	4(%r13), %r15d
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rbx, %r14
	incq	%rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-1(%rbx), %rdi
	callq	_Q_IsColorString
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$0, 1(%rbx)
	leaq	2(%rbx), %rbx
	jne	LBB0_4
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsbl	-1(%rbx), %eax
	cmpl	$32, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ecx
	sarl	$4, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	xorps	%xmm5, %xmm5
	cvtsd2ss	%xmm0, %xmm5
	andl	$15, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	%xmm1, %xmm0
	xorps	%xmm4, %xmm4
	cvtsd2ss	%xmm0, %xmm4
	movaps	%xmm4, %xmm6
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm6
	movaps	%xmm5, %xmm7
	addss	%xmm0, %xmm7
	movl	12(%r13), %edi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	callq	_trap_R_DrawStretchPic
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	cmpb	$0, (%rbx)
	jne	LBB0_3
LBB0_12:
	xorl	%edi, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_R_SetColor                ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_UI_DrawString2.cold.1
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function UI_DrawString2.cold.1
_UI_DrawString2.cold.1:                 ## @UI_DrawString2.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_g_color_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movsbl	1(%rdi), %edi
	callq	_ColorIndex
	movl	(%rbx,%rax,4), %esi
	pushq	$8
	popq	%rdx
	callq	_memcpy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_uis,16,2                       ## @uis
	.comm	_g_color_table,8,3              ## @g_color_table
	.no_dead_strip	_UI_DrawString2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_DrawString2
_UI_DrawString2:                        ; @UI_DrawString2
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	neg	w8, w5
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x5
	mov	x21, x4
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _qfalse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x3
	bl	_trap_R_SetColor
	ldrb	w8, [x19]
	cbz	w8, LBB0_11
; %bb.3:
Lloh3:
	adrp	x25, _uis@GOTPAGE
Lloh4:
	ldr	x25, [x25, _uis@GOTPAGEOFF]
	ldp	w10, w8, [x25, #4]
	mul	w9, w8, w23
	scvtf	s8, w9
	ldr	w9, [x25]
	mul	w11, w9, w21
	scvtf	s9, w11
	mul	w8, w8, w20
	scvtf	s10, w8
	madd	w8, w9, w22, w10
	scvtf	s11, w8
	mov	x21, #4589168020290535424
	mov	w22, #1031798784
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x20, x19
	add	x19, x19, #1
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x0, x19, #1
	bl	_Q_IsColorString
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cbz	w24, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w8, [x19, #1]
	add	x19, x19, #2
	cbnz	w8, LBB0_5
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldursb	w8, [x19, #-1]
	cmp	w8, #32
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w9, w8, #4
	scvtf	d0, w9
	fmov	d1, x21
	fmul	d0, d0, d1
	fcvt	s5, d0
	and	w8, w8, #0xf
	scvtf	d0, w8
	fmul	d0, d0, d1
	fcvt	s4, d0
	fmov	s0, w22
	fadd	s6, s4, s0
	fadd	s7, s5, s0
	ldr	w0, [x25, #12]
	fmov	s0, s11
	fmov	s1, s8
	fmov	s2, s9
	fmov	s3, s10
	bl	_trap_R_DrawStretchPic
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	fadd	s11, s11, s9
	ldrb	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_11:
	mov	x0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	b	_trap_R_SetColor
LBB0_12:
	mov	x0, x20
	bl	_UI_DrawString2.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function UI_DrawString2.cold.1
_UI_DrawString2.cold.1:                 ; @UI_DrawString2.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh5:
	adrp	x8, _g_color_table@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_color_table@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	ldrsb	w0, [x0, #1]
	bl	_ColorIndex
	ldr	w1, [x19, x0, lsl #2]
	mov	w2, #8
	bl	_memcpy
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_uis,16,2                       ; @uis
	.comm	_g_color_table,8,3              ; @g_color_table
	.no_dead_strip	_UI_DrawString2
.subsections_via_symbols
