	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_strlen                    ## -- Begin function mbfl_strlen
	.p2align	4, 0x90
_mbfl_strlen:                           ## @mbfl_strlen
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	$0, -40(%rbp)
	movl	(%rdi), %eax
	movq	_MBFL_ENCTYPE_SBCS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	jmp	LBB0_18
LBB0_2:
	movq	_MBFL_ENCTYPE_WCS2BE@GOTPCREL(%rip), %rcx
	movq	_MBFL_ENCTYPE_WCS2LE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	shrq	%rax
	jmp	LBB0_18
LBB0_4:
	movq	_MBFL_ENCTYPE_WCS4BE@GOTPCREL(%rip), %rcx
	movq	_MBFL_ENCTYPE_WCS4LE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	shrq	$2, %rax
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.7:
	movq	8(%rbx), %rdx
	xorl	%eax, %eax
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.8:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.9:
	xorl	%eax, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx), %ebx
	movzbl	(%rcx,%rbx), %ebx
	addq	%rbx, %rdi
	addq	%rbx, %rdx
	incq	%rax
	cmpq	%rsi, %rdi
	jb	LBB0_10
	jmp	LBB0_18
LBB0_11:
	movq	_filter_count_output@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mbfl_encoding_wchar@GOTPCREL(%rip), %rsi
	leaq	-40(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_mbfl_convert_filter_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r14
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.14:
	movq	(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rbx), %edi
	movq	%r14, %rsi
	callq	*(%r14)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	callq	_mbfl_convert_filter_delete
	movq	-40(%rbp), %rax
	jmp	LBB0_18
LBB0_12:
	movq	$-1, %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MBFL_ENCTYPE_SBCS,4,2          ## @MBFL_ENCTYPE_SBCS
	.comm	_MBFL_ENCTYPE_WCS2BE,4,2        ## @MBFL_ENCTYPE_WCS2BE
	.comm	_MBFL_ENCTYPE_WCS2LE,4,2        ## @MBFL_ENCTYPE_WCS2LE
	.comm	_MBFL_ENCTYPE_WCS4BE,4,2        ## @MBFL_ENCTYPE_WCS4BE
	.comm	_MBFL_ENCTYPE_WCS4LE,4,2        ## @MBFL_ENCTYPE_WCS4LE
	.comm	_mbfl_encoding_wchar,4,2        ## @mbfl_encoding_wchar
	.comm	_filter_count_output,4,2        ## @filter_count_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_strlen                    ; -- Begin function mbfl_strlen
	.p2align	2
_mbfl_strlen:                           ; @mbfl_strlen
	.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, #16]
	str	xzr, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MBFL_ENCTYPE_SBCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBFL_ENCTYPE_SBCS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x9, _MBFL_ENCTYPE_WCS2BE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBFL_ENCTYPE_WCS2BE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MBFL_ENCTYPE_WCS2LE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MBFL_ENCTYPE_WCS2LE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	lsr	x0, x8, #1
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x9, _MBFL_ENCTYPE_WCS4BE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MBFL_ENCTYPE_WCS4BE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _MBFL_ENCTYPE_WCS4LE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MBFL_ENCTYPE_WCS4LE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	lsr	x0, x8, #2
LBB0_6:
	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
LBB0_7:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_12
; %bb.8:
	mov	x0, #0
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_6
; %bb.9:
	ldr	x10, [x19]
	cbz	x10, LBB0_6
; %bb.10:
	mov	x0, #0
	mov	x11, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x9]
	ldrb	w12, [x8, x12]
	add	x9, x9, x12
	add	x0, x0, #1
	add	x11, x11, x12
	cmp	x11, x10
	b.lo	LBB0_11
	b	LBB0_6
LBB0_12:
Lloh15:
	adrp	x8, _filter_count_output@GOTPAGE
Lloh16:
	ldr	x8, [x8, _filter_count_output@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, _mbfl_encoding_wchar@GOTPAGE
Lloh19:
	ldr	x1, [x1, _mbfl_encoding_wchar@GOTPAGEOFF]
	add	x4, sp, #8
	mov	w3, #0
	bl	_mbfl_convert_filter_new
	cbz	x0, LBB0_17
; %bb.13:
	mov	x20, x0
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_16
; %bb.14:
	ldr	x19, [x19]
	cbz	x19, LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldrb	w0, [x21], #1
	mov	x1, x20
	blr	x8
	subs	x19, x19, #1
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x20
	bl	_mbfl_convert_filter_delete
	ldr	x0, [sp, #8]
	b	LBB0_6
LBB0_17:
	mov	x0, #-1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MBFL_ENCTYPE_SBCS,4,2          ; @MBFL_ENCTYPE_SBCS
	.comm	_MBFL_ENCTYPE_WCS2BE,4,2        ; @MBFL_ENCTYPE_WCS2BE
	.comm	_MBFL_ENCTYPE_WCS2LE,4,2        ; @MBFL_ENCTYPE_WCS2LE
	.comm	_MBFL_ENCTYPE_WCS4BE,4,2        ; @MBFL_ENCTYPE_WCS4BE
	.comm	_MBFL_ENCTYPE_WCS4LE,4,2        ; @MBFL_ENCTYPE_WCS4LE
	.comm	_mbfl_encoding_wchar,4,2        ; @mbfl_encoding_wchar
	.comm	_filter_count_output,4,2        ; @filter_count_output
.subsections_via_symbols
