	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function utf8_width_print
_utf8_width_print:                      ## @utf8_width_print
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r9
	movl	%esi, %eax
	negl	%eax
	cmovsl	%esi, %eax
	cmpl	$333, %eax                      ## imm = 0x14D
	movl	$333, %ecx                      ## imm = 0x14D
	cmovbl	%eax, %ecx
	movb	(%rdx), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%r9,%rdx), %eax
	incq	%rdx
	testb	%al, %al
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	andb	$-64, %al
	cmpb	$-128, %al
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r8d
	cmpl	%ecx, %r8d
	jne	LBB0_9
## %bb.5:
	movl	%edx, %eax
	leaq	(%r9,%rax), %rsi
	incq	%rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%rax), %ecx
	andb	$-64, %cl
	incq	%rax
	cmpb	$-128, %cl
	je	LBB0_6
## %bb.7:
	addl	%eax, %edx
	jmp	LBB0_8
LBB0_1:
	xorl	%r8d, %r8d
	xorl	%edx, %edx
LBB0_10:
	subl	%r8d, %ecx
	jle	LBB0_8
## %bb.11:
	testl	%esi, %esi
	js	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str.2(%rip), %r8
	movq	%r9, %rdx
	xorl	%eax, %eax
	popq	%rbp
	jmp	_utf8_printf                    ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r9, %rcx
	xorl	%eax, %eax
	popq	%rbp
	jmp	_utf8_printf                    ## TAILCALL
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %r8
	movl	%ecx, %edx
	movq	%r8, %rcx
	movq	%r9, %r8
	xorl	%eax, %eax
	popq	%rbp
	jmp	_utf8_printf                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.*s"

L_.str.1:                               ## @.str.1
	.asciz	"%*s%s"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"%s%*s"

	.no_dead_strip	_utf8_width_print
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function utf8_width_print
_utf8_width_print:                      ; @utf8_width_print
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #0
	cneg	w8, w1, mi
	mov	w9, #333
	cmp	w8, #333
	csel	w9, w8, w9, lo
	ldrb	w13, [x2]
	cbz	w13, LBB0_8
; %bb.1:
	mov	x8, #0
	mov	w10, #0
	add	x11, x2, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x8, #1
	ldrb	w13, [x11, x8]
	mov	x8, x12
	cbz	w13, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	w12, w13, #0xc0
	cmp	w12, #128
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w10, #1
	cmp	w10, w9
	b.ne	LBB0_2
; %bb.5:
	mov	x9, #0
	add	x10, x2, w8, uxtw
	add	x10, x10, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x10, x9]
	and	w11, w11, #0xc0
	add	x9, x9, #1
	cmp	w11, #128
	b.eq	LBB0_6
; %bb.7:
	add	w12, w8, w9
	b	LBB0_12
LBB0_8:
	mov	w10, #0
	mov	w12, #0
LBB0_9:
	subs	w8, w9, w10
	b.le	LBB0_12
; %bb.10:
	tbnz	w1, #31, LBB0_13
; %bb.11:
Lloh0:
	adrp	x9, l_.str.2@PAGE
Lloh1:
	add	x9, x9, l_.str.2@PAGEOFF
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp, #8]
	str	x2, [sp]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_12:
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
	stp	x12, x2, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x9, x2, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	bl	_utf8_printf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.*s"

l_.str.1:                               ; @.str.1
	.asciz	"%*s%s"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"%s%*s"

	.no_dead_strip	_utf8_width_print
.subsections_via_symbols
