	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb_strchr
_mb_strchr:                             ## @mb_strchr
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_pg_mblen
	cmpb	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movslq	%eax, %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r13, %rdi
	callq	_pg_mblen
	cmpl	%r15d, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rdx
	subq	$1, %rcx
	jb	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movzbl	-1(%r13,%rdx), %ebx
	cmpb	-1(%r14,%rdx), %bl
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	movb	$1, %dl
	testb	%dl, %dl
	jne	LBB0_12
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdx, %rdx
	setne	%dl
	testb	%dl, %dl
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cltq
	cmpb	$0, (%r13,%rax)
	leaq	(%r13,%rax), %r13
	jne	LBB0_3
	jmp	LBB0_13
LBB0_1:
	xorl	%ecx, %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mb_strchr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mb_strchr
_mb_strchr:                             ; @mb_strchr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_pg_mblen
	ldrb	w8, [x19]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x20, x0
	sxtw	x22, w20
	sub	x21, x21, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x19
	bl	_pg_mblen
	cmp	w0, w20
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x19, #1
	mov	x10, x22
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x9, x10
	cbz	x10, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	sub	x10, x9, #1
	ldrb	w11, [x8, x9]
	ldrb	w12, [x21, x9]
	cmp	w11, w12
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
	mov	w9, #1
	cbnz	w9, LBB0_10
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, #0
	cset	w9, ne
	cbz	w9, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, w0, sxtw
	ldrb	w9, [x19]
	cbnz	w9, LBB0_2
LBB0_11:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mb_strchr
.subsections_via_symbols
