	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_buffer_converter_feed2    ## -- Begin function mbfl_buffer_converter_feed2
	.p2align	4, 0x90
_mbfl_buffer_converter_feed2:           ## @mbfl_buffer_converter_feed2
	.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
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%rdi, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %rdi
	movslq	(%r15), %rax
	movq	8(%r12), %rsi
	addq	%rax, %rsi
	leal	3(%rax), %edx
	testq	%rax, %rax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	callq	_mbfl_memory_device_realloc
	movq	8(%r15), %r13
	movq	(%r12), %r12
	testq	%r12, %r12
	je	LBB0_9
## %bb.3:
	movslq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.4:
	movq	(%r12), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %edi
	movq	%r12, %rsi
	callq	*%r14
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	decq	%rbx
	jne	LBB0_6
LBB0_9:
	xorl	%eax, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	jne	LBB0_10
	jmp	LBB0_11
LBB0_7:
	movl	$-1, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:
	incq	%r13
LBB0_10:
	subq	8(%r15), %r13
	movq	%r13, (%rcx)
LBB0_11:
	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_buffer_converter_feed2    ; -- Begin function mbfl_buffer_converter_feed2
	.p2align	2
_mbfl_buffer_converter_feed2:           ; @mbfl_buffer_converter_feed2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	mov	w0, #-1
	cbz	x21, LBB0_12
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_12
; %bb.2:
	mov	x19, x2
	mov	x0, x21
	ldr	x8, [x0, #8]!
	ldrsw	x9, [x20]
	add	x1, x8, x9
	add	w8, w9, #3
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w2, w8, #2
	bl	_mbfl_memory_device_realloc
	ldr	x23, [x20, #8]
	ldr	x21, [x21]
	cbz	x21, LBB0_7
; %bb.3:
	ldrsw	x24, [x20]
	cbz	w24, LBB0_7
; %bb.4:
	ldr	x25, [x21]
	mov	x22, x23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x22], #1
	mov	x1, x21
	blr	x25
	tbnz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x22
	subs	x24, x24, #1
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	mov	x22, x23
LBB0_8:
	mov	w0, #0
	cbnz	x19, LBB0_11
	b	LBB0_12
LBB0_9:
	mov	w0, #-1
	cbz	x19, LBB0_12
; %bb.10:
	add	x22, x23, #1
LBB0_11:
	ldr	x8, [x20, #8]
	sub	x8, x22, x8
	str	x8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
