	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_fl_setup
_iflib_fl_setup:                        ## @iflib_fl_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	(%rax), %r14
	movl	40(%rdi), %edi
	movq	24(%rbx), %rdx
	decq	%rdx
	xorl	%esi, %esi
	callq	_bit_nclear
	movq	%rbx, %rdi
	callq	_iflib_fl_bufs_free
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_MPASS
	movq	(%r14), %rdi
	movq	%rdi, 8(%rbx)
	cmpq	8(%r14), %rdi
	jle	LBB0_2
## %bb.1:
	movq	%rdi, 8(%r14)
LBB0_2:
	callq	_m_gettype
	movl	%eax, 36(%rbx)
	movq	8(%rbx), %rdi
	callq	_m_getzone
	movl	%eax, 32(%rbx)
	movq	24(%rbx), %rsi
	movl	$128, %edi
	callq	_min
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	__iflib_fl_refill
	movq	24(%rbx), %rsi
	movl	$128, %edi
	callq	_min
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_MPASS
	movq	24(%rbx), %rsi
	movl	$128, %edi
	callq	_min
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.4:
	movl	$1, %edi
	callq	_MPASS
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	setne	%dil
	callq	_MPASS
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_BUS_DMASYNC_PREREAD@GOTPCREL(%rip), %rax
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_bus_dmamap_sync
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_BUS_DMASYNC_PREREAD,4,2        ## @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_iflib_fl_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_fl_setup
_iflib_fl_setup:                        ; @iflib_fl_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x20, [x8]
	ldr	w0, [x0, #40]
	ldr	x8, [x19, #24]
	sub	x2, x8, #1
	mov	w1, #0
	bl	_bit_nclear
	mov	x0, x19
	bl	_iflib_fl_bufs_free
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_MPASS
	ldp	x0, x8, [x20]
	str	x0, [x19, #8]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
	str	x0, [x20, #8]
LBB0_2:
	bl	_m_gettype
	str	w0, [x19, #36]
	ldr	x0, [x19, #8]
	bl	_m_getzone
	str	w0, [x19, #32]
	ldr	x1, [x19, #24]
	mov	w0, #128
	bl	_min
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	__iflib_fl_refill
	ldr	x1, [x19, #24]
	mov	w0, #128
	bl	_min
	ldr	x8, [x19]
	cmp	x0, x8
	cset	w0, eq
	bl	_MPASS
	ldr	x1, [x19, #24]
	mov	w0, #128
	bl	_min
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_MPASS
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_MPASS
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _BUS_DMASYNC_PREREAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUS_DMASYNC_PREREAD@GOTPAGEOFF]
	ldp	w1, w0, [x8]
Lloh2:
	ldr	w8, [x9]
Lloh3:
	adrp	x9, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_BUS_DMASYNC_PREREAD,4,2        ; @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_iflib_fl_setup
.subsections_via_symbols
