	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_utf8
_verify_utf8:                           ## @verify_utf8
	.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	%rdi, %r12
	movq	(%rdi), %rdi
	movq	8(%r12), %rsi
	callq	_find_invalid_utf8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r14d
	leaq	(%rbx,%r14), %r13
	movq	(%r12), %rax
	movzbl	(%rax,%r13), %r15d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_strbuf_remove
	movl	%r15d, %eax
	shrb	$6, %al
	orb	$-64, %al
	movb	%al, -42(%rbp)
	andb	$63, %r15b
	orb	$-128, %r15b
	movb	%r15b, -41(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	leaq	-42(%rbp), %rdx
	movl	$2, %ecx
	callq	_strbuf_insert
	addq	%r14, %rbx
	addq	$2, %rbx
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	8(%r12), %rsi
	subq	%rbx, %rsi
	callq	_find_invalid_utf8
	testl	%eax, %eax
	jns	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$1, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_verify_utf8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_utf8
_verify_utf8:                           ; @verify_utf8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x1, [x19, #8]
	bl	_find_invalid_utf8
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x20, w0, uxtw
	ldr	x8, [x19]
	ldrb	w21, [x8, x20]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_strbuf_remove
	lsr	w8, w21, #6
	orr	w8, w8, #0xc0
	strb	w8, [sp, #14]
	mov	w8, #128
	bfxil	w8, w21, #0, #6
	strb	w8, [sp, #15]
	add	x2, sp, #14
	mov	x0, x19
	mov	x1, x20
	mov	w3, #2
	bl	_strbuf_insert
	add	x20, x20, #2
	ldp	x8, x9, [x19]
	add	x0, x8, x20
	sub	x1, x9, x20
	bl	_find_invalid_utf8
	tbz	w0, #31, LBB0_2
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_verify_utf8
.subsections_via_symbols
