	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_DrawProportionalString      ## -- Begin function UI_DrawProportionalString
	.p2align	4, 0x90
_UI_DrawProportionalString:             ## @UI_DrawProportionalString
	.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	%r8, %r14
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movl	%esi, %r15d
	movl	%edi, %r13d
	movl	%ecx, %edi
	callq	_UI_ProportionalSizeScale
	movaps	%xmm0, %xmm2
	movq	_UI_FORMATMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$130, %ebx
	jne	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	callq	_UI_ProportionalStringWidth
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r13d
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	callq	_UI_ProportionalStringWidth
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movaps	%xmm2, %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	subl	%eax, %r13d
LBB0_4:
	movq	_uis@GOTPCREL(%rip), %rax
	movl	4(%rax), %r8d
	movl	%r13d, %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movaps	%xmm2, %xmm0
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_DrawProportionalString2     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UI_FORMATMASK,4,2              ## @UI_FORMATMASK
	.comm	_UI_DROPSHADOW,4,2              ## @UI_DROPSHADOW
	.comm	_uis,12,2                       ## @uis
	.comm	_UI_INVERSE,4,2                 ## @UI_INVERSE
	.comm	_UI_PULSE,4,2                   ## @UI_PULSE
	.comm	_PULSE_DIVISOR,4,2              ## @PULSE_DIVISOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_DrawProportionalString      ; -- Begin function UI_DrawProportionalString
	.p2align	2
_UI_DrawProportionalString:             ; @UI_DrawProportionalString
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	bl	_UI_ProportionalSizeScale
	fmov	s8, s0
Lloh0:
	adrp	x8, _UI_FORMATMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UI_FORMATMASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w23
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_UI_ProportionalStringWidth
	fmul	s0, s8, s0
	fcvtzs	w8, s0
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w22, w22, w8, asr #1
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_UI_ProportionalStringWidth
	fmul	s0, s8, s0
	fcvtzs	w8, s0
	sub	w22, w22, w8
LBB0_4:
Lloh3:
	adrp	x8, _uis@GOTPAGE
Lloh4:
	ldr	x8, [x8, _uis@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8, #4]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	fmov	s0, s8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_UI_DrawProportionalString2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_UI_FORMATMASK,4,2              ; @UI_FORMATMASK
	.comm	_UI_DROPSHADOW,4,2              ; @UI_DROPSHADOW
	.comm	_uis,12,2                       ; @uis
	.comm	_UI_INVERSE,4,2                 ; @UI_INVERSE
	.comm	_UI_PULSE,4,2                   ; @UI_PULSE
	.comm	_PULSE_DIVISOR,4,2              ; @PULSE_DIVISOR
.subsections_via_symbols
