	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function switch_font_render_line
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_switch_font_render_line:               ## @switch_font_render_line
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -104(%rbp)                ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_23
## %bb.1:
	cmpq	$0, (%r13)
	je	LBB0_23
## %bb.2:
	movl	%r9d, %ebx
	movl	%ecx, %r12d
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	12(%r13), %r15d
	movl	16(%r13), %r14d
	movl	%r15d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	%xmm1, %xmm0
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	callq	_roundf
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	-48(%rbp), %xmm1                ## 4-byte Folded Reload
	movl	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	%xmm1, %xmm0
	callq	_roundf
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$128, %ebx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	jne	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movq	%rcx, %rbx
	callq	_switch_font_get_message_width
	movq	%rbx, %rcx
	subl	%eax, %ecx
LBB0_6:
	testl	%r12d, %r12d
	jne	LBB0_7
	jmp	LBB0_23
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_switch_font_get_message_width
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subl	%ecx, %eax
	movq	%rax, %rcx
	testl	%r12d, %r12d
	je	LBB0_23
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	addl	32(%rdx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addl	24(%rdx), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	addl	%edx, %eax
	incl	%eax
	movl	-92(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %eax
	jae	LBB0_23
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
	movq	%rcx, %rbx
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movslq	%eax, %r12
	addq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%r12, -120(%rbp)
	leaq	-120(%rbp), %rdi
	callq	_utf8_walk
	movl	-120(%rbp), %edx
	subl	%r12d, %edx
	subl	$1, %edx
	movl	$0, %ecx
	cmovbl	%ecx, %edx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rcx
	movl	8(%rdx), %edi
	movsbl	%al, %esi
	callq	*(%rcx)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movl	8(%rcx), %edi
	movl	$63, %esi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	12(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movq	%rbx, %rcx
	jle	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	20(%rsi), %r9d
	addl	%r9d, -44(%rbp)                 ## 4-byte Folded Spill
	movslq	16(%rsi), %r8
	movslq	8(%rsi), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%rdi, %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %eax
	addl	4(%rsi), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	%r8, -168(%rbp)                 ## 8-byte Spill
	addq	%r8, %rdi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	%ecx, %eax
	addl	(%rsi), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=2
	incl	%r9d
	cmpl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	jge	LBB0_21
LBB0_13:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%r9d, %r10d
	subl	-48(%rbp), %r10d                ## 4-byte Folded Reload
	addl	-100(%rbp), %r10d               ## 4-byte Folded Reload
	movq	-160(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	imull	%r9d, %esi
	movslq	%esi, %rsi
	movq	-152(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %r8
	movl	-96(%rbp), %r12d                ## 4-byte Reload
	movq	-168(%rbp), %r11                ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=3
	incq	%r11
	incl	%r12d
	cmpq	%rdi, %r11
	jge	LBB0_20
LBB0_15:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	$0, (%r8,%r11,4)
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=3
	cmpl	%r15d, %r12d
	jae	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=3
	cmpl	%r14d, %r10d
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=3
	movq	(%r13), %rsi
	movslq	8(%r13), %rax
	movslq	%r10d, %rcx
	imulq	%rax, %rcx
	shrq	$2, %rcx
	movslq	%r12d, %rax
	addq	%rcx, %rax
	movq	%rbx, %rcx
	movl	-104(%rbp), %edx                ## 4-byte Reload
	movl	%edx, (%rsi,%rax,4)
	jmp	LBB0_19
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rcx
	jmp	LBB0_22
LBB0_23:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_switch_font_render_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switch_font_render_line
_switch_font_render_line:               ; @switch_font_render_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x26, [x0]
	cbz	x26, LBB0_20
; %bb.1:
	ldr	x8, [x26]
	cbz	x8, LBB0_20
; %bb.2:
	mov	x25, x5
	fmov	s9, s2
	mov	x19, x4
	fmov	s8, s0
	mov	x20, x3
	mov	x22, x1
	ldp	w27, w28, [x26, #12]
	ucvtf	s0, w27
	fmul	s0, s0, s1
	bl	_roundf
	mov	x21, x0
	fmov	s0, #1.00000000
	fsub	s0, s0, s9
	ucvtf	s1, w28
	fmul	s0, s0, s1
	bl	_roundf
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	cmp	w25, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w25, #128
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x20
	fmov	s0, s8
	bl	_switch_font_get_message_width
	sub	w21, w21, w0
LBB0_5:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	cbnz	w20, LBB0_7
	b	LBB0_20
LBB0_6:
	mov	x0, x22
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x20
	fmov	s0, s8
	bl	_switch_font_get_message_width
	cmp	w0, #0
	cinc	w8, w0, lt
	sub	w21, w21, w8, asr #1
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	cbz	w20, LBB0_20
LBB0_7:
	mov	w25, #0
	mov	w24, #0
	mov	w23, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x0, #32]
	add	w25, w25, w8
	ldr	w8, [x0, #24]
	add	w24, w24, w8
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w23, w21
	add	w23, w8, #1
	cmp	w23, w20
	b.hs	LBB0_20
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x21, x8, w23, sxtw
	str	x21, [sp, #24]
	add	x0, sp, #24
	bl	_utf8_walk
	ldr	w8, [sp, #24]
	sub	w8, w8, w21
	subs	w8, w8, #1
	csel	w21, wzr, w8, lo
	ldr	x8, [x22, #16]
	ldr	x9, [x8]
	ldr	w8, [x22, #8]
	sxtb	w1, w0
	mov	x0, x8
	blr	x9
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	ldr	w0, [x22, #8]
	mov	w1, #63
	blr	x8
	cbz	x0, LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w10, [x0, #12]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	w9, w8, [x0, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	w10, w8, w10
	ldp	w15, w11, [x0, #4]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	ldr	w16, [x0]
	ldr	x12, [x22]
	add	x13, x9, x11
	ldr	x14, [x12, #8]
	ldr	w17, [sp, #8]                   ; 4-byte Folded Reload
	add	w17, w24, w17
	add	w15, w17, w15
	ldr	w17, [sp, #12]                  ; 4-byte Folded Reload
	add	w17, w17, w25
	add	w16, w17, w16
	mov	x17, x8
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	w17, w17, #1
	cmp	w17, w10
	b.ge	LBB0_8
LBB0_15:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	cmp	w11, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	w2, [x12]
	sub	w1, w17, w8
	add	w1, w15, w1
	mul	w2, w2, w17
	add	x2, x14, w2, sxtw #2
	mov	x3, x16
	mov	x4, x9
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=3
	add	x4, x4, #1
	add	w3, w3, #1
	cmp	x4, x13
	b.ge	LBB0_14
LBB0_18:                                ;   Parent Loop BB0_10 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w5, [x2, x4, lsl #2]
	cmp	w5, #0
	ccmp	w3, w27, #2, ne
	ccmp	w1, w28, #2, lo
	b.hs	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	x5, [x26]
	ldrsw	x6, [x26, #8]
	sxtw	x7, w1
	mul	x6, x6, x7
	lsr	x6, x6, #2
	add	x6, x6, w3, sxtw
	str	w19, [x5, x6, lsl #2]
	b	LBB0_17
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_switch_font_render_line
.subsections_via_symbols
