	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function iflib_rxsd_alloc
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_iflib_rxsd_alloc:                      ## @iflib_rxsd_alloc
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r15
	movq	16(%r15), %rbx
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	setg	%dil
	callq	_MPASS
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rcx,4)
	setg	%dil
	callq	_MPASS
	cmpl	$0, 8(%r12)
	jle	LBB0_20
## %bb.1:
	movq	(%r12), %rcx
	movq	16(%r12), %r13
	movq	8(%r15), %rsi
	xorl	%eax, %eax
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	addq	$48, %r13
	cmpl	8(%r12), %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %r14
	jge	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi,%rcx,4), %eax
	movl	%eax, (%r13)
	callq	_bus_get_dma_tag
	movl	(%r14), %ecx
	movl	8(%rbx), %edx
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	leaq	40(%r13), %r14
	movq	%r14, 56(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rsp)
	movl	%esi, 24(%rsp)
	movl	%edi, 16(%rsp)
	movl	%edx, 8(%rsp)
	movl	$0, 32(%rsp)
	movq	$0, (%rsp)
	movl	%eax, %edi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	callq	_bus_dma_tag_create
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	shll	$3, %edi
	movq	_M_IFLIB@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_M_NOWAIT@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	callq	_malloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r13
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	shll	$2, %edi
	movq	_M_IFLIB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	callq	_malloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	shll	$2, %edi
	movl	(%rbx), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	callq	_malloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	shll	$2, %edi
	movl	(%rbx), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r14), %edx
	callq	_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rsi
	movq	(%r12), %rcx
	cmpl	$0, (%rsi,%rcx,4)
	jle	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_bus_dmamap_create
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rbx
	movq	8(%r15), %rsi
	movq	(%r12), %rcx
	movslq	(%rsi,%rcx,4), %rax
	cmpq	%rax, %rbx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r12, %r14
	movq	%r15, %r12
	leaq	4(%rdx), %r15
	movl	40(%r13), %edi
	addq	8(%r13), %rdx
	xorl	%esi, %esi
	callq	_bus_dmamap_create
	movq	%r15, %rdx
	movq	%r12, %r15
	movq	%r14, %r12
	testl	%eax, %eax
	je	LBB0_16
LBB0_18:
	movl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_4
LBB0_20:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_3:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_22:
	leaq	L_.str.4(%rip), %rsi
LBB0_7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_device_printf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movq	%r15, %rdi
	callq	_iflib_rx_structures_free
LBB0_21:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate RX DMA tag: %d\n"

	.comm	_M_IFLIB,4,2                    ## @M_IFLIB
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.1:                               ## @.str.1
	.asciz	"Unable to allocate RX mbuf map memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate RX cluster map memory\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to allocate RX bus address map memory\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to allocate RX buffer DMA map memory\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to create RX buffer DMA map\n"

	.no_dead_strip	_iflib_rxsd_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_rxsd_alloc
_iflib_rxsd_alloc:                      ; @iflib_rxsd_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x0
	ldr	x24, [x0, #24]
	ldr	w28, [x24]
	ldr	x8, [x24, #16]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x8, [x24, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, gt
	bl	_MPASS
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #0
	cset	w0, gt
	bl	_MPASS
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	w23, #0
	ldr	x25, [x21, #16]
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
Lloh0:
	adrp	x27, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
Lloh2:
	adrp	x26, _M_IFLIB@GOTPAGE
Lloh3:
	ldr	x26, [x26, _M_IFLIB@GOTPAGEOFF]
	str	w28, [sp, #52]                  ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w8, [x8, x9, lsl #2]
	mov	x20, x25
	str	w8, [x20], #40
	mov	x0, x28
	bl	_bus_get_dma_tag
	ldr	w3, [x27]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldp	w8, w7, [x9, #4]
	ldr	w9, [x9]
	stp	xzr, xzr, [sp, #16]
	str	x20, [sp, #32]
	stp	w9, wzr, [sp, #4]
	str	w8, [sp]
	mov	w1, #1
	mov	w2, #0
	mov	x4, x3
	mov	x5, #0
	mov	x6, #0
	bl	_bus_dma_tag_create
	cbnz	w0, LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w0, w8, #3
	ldr	w1, [x26]
Lloh4:
	adrp	x22, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _M_NOWAIT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh6:
	adrp	x28, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x28, [x28, _M_ZERO@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x25, #32]
	cbz	x0, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w0, w8, #2
	ldr	w1, [x26]
	ldr	w8, [x22]
	ldr	w9, [x28]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x25, #24]
	cbz	x0, LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w0, w8, #2
	ldr	w1, [x26]
	ldr	w8, [x22]
	ldr	w9, [x28]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x25, #16]
	cbz	x0, LBB0_22
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	lsl	w0, w8, #2
	mov	x19, x26
	ldr	w1, [x26]
	ldr	w8, [x22]
	ldr	w9, [x28]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x25, #8]
	cbz	x0, LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
	ldr	w10, [x8, x9, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x0
	ldr	w0, [x20]
	mov	w1, #0
	bl	_bus_dmamap_create
	cbnz	w0, LBB0_27
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x27
	ldr	w26, [sp, #52]                  ; 4-byte Folded Reload
	mov	x20, #0
	mov	w10, #4
LBB0_10:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x20, #1
	ldr	x8, [x24, #8]
	ldr	x9, [x21]
	ldrsw	x11, [x8, x9, lsl #2]
	cmp	x20, x11
	b.ge	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x27, x10, #4
	ldr	x8, [x25, #8]
	ldr	w0, [x25, #40]
	add	x2, x8, x10
	mov	w1, #0
	bl	_bus_dmamap_create
	mov	x10, x27
	cbz	w0, LBB0_10
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w28, [sp, #52]                  ; 4-byte Folded Reload
	mov	x26, x19
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x28
	mov	x28, x26
Lloh8:
	adrp	x26, _M_IFLIB@GOTPAGE
Lloh9:
	ldr	x26, [x26, _M_IFLIB@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	add	x25, x25, #48
	ldr	w10, [x21, #8]
	cmp	w23, w10
	b.lt	LBB0_2
LBB0_15:
	mov	w22, #0
	b	LBB0_26
LBB0_16:
	mov	x22, x0
	mov	x0, x26
LBB0_17:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_18:
	bl	_device_printf
	b	LBB0_25
LBB0_19:
	mov	x22, x0
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x28
	b	LBB0_18
LBB0_20:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_21:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_22:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_24:
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	bl	_device_printf
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
LBB0_25:
	mov	x0, x24
	bl	_iflib_rx_structures_free
LBB0_26:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_27:
	mov	x22, x0
	ldr	w0, [sp, #52]                   ; 4-byte Folded Reload
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate RX DMA tag: %d\n"

	.comm	_M_IFLIB,4,2                    ; @M_IFLIB
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.1:                               ; @.str.1
	.asciz	"Unable to allocate RX mbuf map memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate RX cluster map memory\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to allocate RX bus address map memory\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to allocate RX buffer DMA map memory\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to create RX buffer DMA map\n"

	.no_dead_strip	_iflib_rxsd_alloc
.subsections_via_symbols
