	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_rx_alloc_skbs
_bdx_rx_alloc_skbs:                     ## @bdx_rx_alloc_skbs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_bdx_rxdb_available
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	incl	%ebx
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r13
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	cmpl	$2, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %r13
	jbe	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movl	(%r13), %esi
	addl	(%r15), %esi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	%r15, %r13
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_bdx_rxdb_alloc_elem
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bdx_rxdb_addr_elem
	movq	%rax, %r15
	movl	(%r12), %edi
	movl	(%r14), %esi
	movl	(%r13), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, (%r15)
	movq	%r14, 8(%r15)
	movslq	4(%r13), %rbx
	movslq	8(%r13), %r12
	leaq	(%r12,%rbx), %r14
	movl	$65539, %edi                    ## imm = 0x10003
	callq	_CPU_CHIP_SWAP32
	movq	%rax, 32(%r12,%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12,%rbx)
	movl	(%r15), %edi
	callq	_L32_64
	movl	%eax, %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, 24(%r12,%rbx)
	movl	(%r15), %edi
	movq	%r13, %r15
	callq	_H32_64
	movl	%eax, %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, 16(%r12,%rbx)
	movl	(%r13), %edi
	callq	_CPU_CHIP_SWAP32
	movq	%rax, 8(%r12,%rbx)
	movq	%r14, %rdi
	callq	_print_rxfd
	movl	8(%r13), %ebx
	addl	$40, %ebx
	movl	%ebx, 8(%r13)
	subl	12(%r13), %ebx
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, 8(%r15)
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edi
	movl	12(%r15), %esi
	addl	%edi, %esi
	movl	%ebx, %edx
	callq	_memcpy
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	jmp	LBB0_6
LBB0_7:
	movl	16(%r15), %esi
	movq	_TXF_WPTR_WR_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	8(%r15), %edx
	movq	%r12, %rdi
	callq	_WRITE_REG
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RET                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTER,4,2                      ## @ENTER
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrapped descriptor\n"

	.comm	_TXF_WPTR_WR_PTR,4,2            ## @TXF_WPTR_WR_PTR
	.no_dead_strip	_bdx_rx_alloc_skbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_rx_alloc_skbs
_bdx_rx_alloc_skbs:                     ; @bdx_rx_alloc_skbs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_bdx_rxdb_available
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.1:
	add	w26, w0, #1
Lloh0:
	adrp	x27, _NET_IP_ALIGN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh2:
	adrp	x28, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w26, w26, #1
	cmp	w26, #2
	b.ls	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	w8, [x20]
	ldr	w9, [x27]
	add	w1, w9, w8
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	w1, [x27]
	bl	_skb_reserve
	mov	x0, x21
	bl	_bdx_rxdb_alloc_elem
	mov	x24, x0
	mov	x0, x21
	mov	x1, x24
	bl	_bdx_rxdb_addr_elem
	mov	x25, x0
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	w2, [x20]
	ldr	w3, [x28]
	bl	_pci_map_single
	str	w0, [x25]
	str	x23, [x25, #8]
	ldpsw	x8, x9, [x20, #4]
	add	x23, x9, x8
	mov	w0, #3
	movk	w0, #1, lsl #16
	bl	_CPU_CHIP_SWAP32
	str	x0, [x23, #32]
	str	w24, [x23]
	ldr	w0, [x25]
	bl	_L32_64
	bl	_CPU_CHIP_SWAP32
	str	x0, [x23, #24]
	ldr	w0, [x25]
	bl	_H32_64
	bl	_CPU_CHIP_SWAP32
	str	x0, [x23, #16]
	ldr	w0, [x20]
	bl	_CPU_CHIP_SWAP32
	str	x0, [x23, #8]
	mov	x0, x23
	bl	_print_rxfd
	ldp	w8, w9, [x20, #8]
	add	w8, w8, #40
	str	w8, [x20, #8]
	sub	w23, w8, w9
	mvn	w8, w23
	lsr	w0, w8, #31
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w23, [x20, #8]
	cmp	w23, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #4]
	ldr	w8, [x20, #12]
	add	w1, w8, w0
	mov	x2, x23
	bl	_memcpy
	mov	x0, x22
	bl	_DBG
	b	LBB0_2
LBB0_7:
	ldr	w1, [x20, #16]
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _TXF_WPTR_WR_PTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TXF_WPTR_WR_PTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w2, w9, w8
	mov	x0, x19
	bl	_WRITE_REG
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_RET
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTER,4,2                      ; @ENTER
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrapped descriptor\n"

	.comm	_TXF_WPTR_WR_PTR,4,2            ; @TXF_WPTR_WR_PTR
	.no_dead_strip	_bdx_rx_alloc_skbs
.subsections_via_symbols
