	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_DrawProportionalString_AutoWrapped ## -- Begin function UI_DrawProportionalString_AutoWrapped
	.p2align	4, 0x90
_UI_DrawProportionalString_AutoWrapped: ## @UI_DrawProportionalString_AutoWrapped
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%r8, %r8
	je	LBB0_12
## %bb.1:
	movq	%r8, %rbx
	cmpb	$0, (%r8)
	je	LBB0_12
## %bb.2:
	movl	%r9d, %r14d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	%ecx, -1088(%rbp)               ## 4-byte Spill
	movl	%edi, -1076(%rbp)               ## 4-byte Spill
	leaq	-1072(%rbp), %r15
	movl	%r9d, %edi
	callq	_UI_ProportionalSizeScale
	movss	%xmm0, -1092(%rbp)              ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_Q_strncpyz
	movl	%r14d, -1080(%rbp)              ## 4-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r13d, -1084(%rbp)              ## 4-byte Spill
	movq	%r15, %r13
	movq	%r15, %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%r14), %ebx
	incq	%r14
	testb	$-33, %bl
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movb	$0, (%r14)
	movq	%r15, %rdi
	callq	_UI_ProportionalStringWidth
	mulss	-1092(%rbp), %xmm0              ## 4-byte Folded Reload
	cvttss2si	%xmm0, %eax
	movb	%bl, (%r14)
	cmpl	%r12d, %eax
	jg	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r14, %r13
	testb	%bl, %bl
	jne	LBB0_4
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r13), %rcx
	cmpq	%r13, %r15
	cmoveq	%r14, %r13
	leaq	1(%r14), %rax
	movb	$0, (%r13)
	cmoveq	%rax, %rcx
	movq	%rcx, -1104(%rbp)               ## 8-byte Spill
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movl	-1084(%rbp), %r13d              ## 4-byte Reload
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	-1080(%rbp), %r14d              ## 4-byte Reload
	movl	%r14d, %ecx
	movl	16(%rbp), %r8d
	callq	_UI_DrawProportionalString
	movq	-1104(%rbp), %rdx               ## 8-byte Reload
	addl	-1088(%rbp), %r13d              ## 4-byte Folded Reload
	movq	%rdx, %r15
	testb	%bl, %bl
	jne	LBB0_3
## %bb.7:
	cmpb	$0, (%rdx)
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	je	LBB0_12
## %bb.8:
	movl	%r13d, %esi
	movl	%r14d, %ecx
	jmp	LBB0_11
LBB0_10:
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movl	-1084(%rbp), %esi               ## 4-byte Reload
	movq	%r15, %rdx
	movl	-1080(%rbp), %ecx               ## 4-byte Reload
LBB0_11:
	movl	16(%rbp), %r8d
	callq	_UI_DrawProportionalString
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_DrawProportionalString_AutoWrapped ; -- Begin function UI_DrawProportionalString_AutoWrapped
	.p2align	2
_UI_DrawProportionalString_AutoWrapped: ; @UI_DrawProportionalString_AutoWrapped
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [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 w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #1056
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	cbz	x4, LBB0_12
; %bb.1:
	mov	x26, x4
	ldrb	w8, [x4]
	cbz	w8, LBB0_12
; %bb.2:
	mov	x19, x6
	mov	x20, x5
	mov	x23, x2
	mov	x25, x1
	mov	x21, x0
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	add	x22, sp, #16
	mov	x0, x5
	bl	_UI_ProportionalSizeScale
	fmov	s8, s0
	add	x0, sp, #16
	mov	x1, x26
	mov	w2, #1024
	bl	_Q_strncpyz
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x24, x22
	mov	x28, x22
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w27, [x28, #1]!
	orr	w8, w27, #0x20
	cmp	w8, #32
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	strb	wzr, [x28]
	mov	x0, x22
	bl	_UI_ProportionalStringWidth
	fmul	s0, s8, s0
	fcvtzs	w8, s0
	strb	w27, [x28]
	cmp	w8, w23
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x24, x28
	cbnz	w27, LBB0_4
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x22, x24
	csel	x8, x28, x24, eq
	strb	wzr, [x8]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w26, w25, w8
	add	x8, x28, #1
	csinc	x24, x8, x24, eq
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_UI_DrawProportionalString
	mov	x22, x24
	mov	x25, x26
	cbnz	w27, LBB0_3
; %bb.8:
	ldrb	w8, [x22]
	cbz	w8, LBB0_12
; %bb.9:
	mov	x0, x21
	mov	x1, x26
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	mov	x1, x25
LBB0_11:
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_UI_DrawProportionalString
LBB0_12:
	ldur	x8, [x29, #-112]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1056
	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	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
