	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_memory_device_output      ## -- Begin function mbfl_memory_device_output
	.p2align	4, 0x90
_mbfl_memory_device_output:             ## @mbfl_memory_device_output
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	(%rsi), %rcx
	movq	8(%rsi), %rax
	cmpq	%rax, %rcx
	jge	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	16(%rbx), %r15
	subq	%r15, %rcx
	movl	$-1, %r12d
	cmpq	%rcx, %rax
	ja	LBB0_6
## %bb.3:
	addq	%rax, %r15
	movq	24(%rbx), %rdi
	movq	%r15, %rsi
	callq	_mbfl_realloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r15, 8(%rbx)
	movq	%rax, 24(%rbx)
	movq	(%rbx), %rcx
LBB0_5:
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rbx)
	movb	%r14b, (%rax,%rcx)
	movl	%r14d, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbfl_memory_device_output      ; -- Begin function mbfl_memory_device_output
	.p2align	2
_mbfl_memory_device_output:             ; @mbfl_memory_device_output
	.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	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x1]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x20, #24]
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x8, [x20, #16]
	sub	x10, x10, x8
	cmp	x9, x10
	b.hi	LBB0_6
; %bb.3:
	add	x21, x8, x9
	ldr	x0, [x20, #24]
	mov	x1, x21
	bl	_mbfl_realloc
	cbz	x0, LBB0_6
; %bb.4:
	str	x21, [x20, #8]
	str	x0, [x20, #24]
	ldr	x8, [x20]
LBB0_5:
	add	x9, x8, #1
	str	x9, [x20]
	strb	w19, [x0, x8]
	b	LBB0_7
LBB0_6:
	mov	w19, #-1
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
.subsections_via_symbols
