	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_encoding_detector_feed    ## -- Begin function mbfl_encoding_detector_feed
	.p2align	4, 0x90
_mbfl_encoding_detector_feed:           ## @mbfl_encoding_detector_feed
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movq	(%rsi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.3:
	movq	8(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.4:
	movq	%rdi, %r14
	movl	(%rdi), %r13d
	leal	-1(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax), %edi
	movq	%rbx, %rsi
	callq	*8(%rbx)
	cmpq	$1, (%rbx)
	sbbl	$-1, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	-56(%rbp)                       ## 8-byte Folded Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	decq	%rcx
	jne	LBB0_5
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movl	$1, %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_encoding_detector_feed    ; -- Begin function mbfl_encoding_detector_feed
	.p2align	2
_mbfl_encoding_detector_feed:           ; @mbfl_encoding_detector_feed
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_14
; %bb.1:
	cbz	x1, LBB0_14
; %bb.2:
	ldr	x21, [x1]
	cbz	x21, LBB0_12
; %bb.3:
	ldr	x22, [x1, #8]
	cbz	x22, LBB0_12
; %bb.4:
	mov	w23, #0
	ldr	w24, [x19]
	sub	w25, w24, #1
	lsl	x26, x24, #3
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w24, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x27, x27, #8
	cmp	x26, x27
	b.eq	LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x27]
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x20, #8]
	ldrb	w0, [x21]
	mov	x1, x20
	blr	x8
	ldr	x8, [x20]
	cmp	x8, #0
	cinc	w23, w23, ne
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, w23
	b.le	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	subs	x22, x22, #1
	b.ne	LBB0_5
LBB0_12:
	mov	w0, #0
	b	LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
