	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_encoding_detector_new     ## -- Begin function mbfl_encoding_detector_new
	.p2align	4, 0x90
_mbfl_encoding_detector_new:            ## @mbfl_encoding_detector_new
	.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
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movl	%esi, %r12d
	testl	%esi, %esi
	jle	LBB0_12
## %bb.2:
	movl	%edx, %ebx
	movq	%rdi, %r13
	movl	$16, %edi
	callq	_mbfl_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r15
	movl	%r12d, %edi
	movl	$8, %esi
	callq	_mbfl_calloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	callq	_mbfl_identify_filter_new2
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rcx
	movslq	%r14d, %r14
	movq	%rax, (%rcx,%r14,8)
	incl	%r14d
	jmp	LBB0_5
LBB0_8:
	movl	%r14d, (%r15)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
	jmp	LBB0_12
LBB0_10:
	movq	%r15, %rdi
	callq	_mbfl_free
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %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_new     ; -- Begin function mbfl_encoding_detector_new
	.p2align	2
_mbfl_encoding_detector_new:            ; @mbfl_encoding_detector_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, #0
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x1
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x20, x2
	mov	x21, x0
	mov	w0, #16
	bl	_mbfl_malloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x22
	mov	w1, #8
	bl	_mbfl_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.4:
	mov	w23, #0
	mov	w22, w22
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #8
	subs	x22, x22, #1
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_mbfl_identify_filter_new2
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	str	x0, [x8, w23, sxtw #3]
	add	w23, w23, #1
	b	LBB0_5
LBB0_8:
	stp	w23, w20, [x19]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_mbfl_free
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
