	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_rx_buffer
_allocate_rx_buffer:                    ## @allocate_rx_buffer
	.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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	8(%r15), %rbx
	movq	_RX_DESC_CNT@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jge	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_RX_ALLOC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 24(%rbx)
	movl	16(%r15), %r12d
	movq	%rax, %rdi
	callq	_skb_tail_pointer
	movq	_RX_ALLOC_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_pci_map_single
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movl	$-2147483648, %edi              ## imm = 0x80000000
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rbx
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	cmpq	(%r13), %rax
	jl	LBB0_2
LBB0_4:
	movq	%rbx, 8(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DESC_CNT,8,3                ## @RX_DESC_CNT
	.comm	_RX_ALLOC_SIZE,4,2              ## @RX_ALLOC_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_allocate_rx_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_rx_buffer
_allocate_rx_buffer:                    ; @allocate_rx_buffer
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldp	x8, x22, [x0]
Lloh0:
	adrp	x23, _RX_DESC_CNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_DESC_CNT@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
Lloh2:
	adrp	x24, _RX_ALLOC_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RX_ALLOC_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [x22, #24]
	ldr	w21, [x19, #16]
	bl	_skb_tail_pointer
	mov	x1, x0
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x21
	bl	_pci_map_single
	bl	_cpu_to_le32
	str	x0, [x22, #16]
	bl	_wmb
	mov	w0, #-2147483648
	bl	_cpu_to_le32
	str	x0, [x22, #8]
	ldr	x22, [x22]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.lt	LBB0_2
LBB0_4:
	str	x22, [x19, #8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DESC_CNT,8,3                ; @RX_DESC_CNT
	.comm	_RX_ALLOC_SIZE,4,2              ; @RX_ALLOC_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_allocate_rx_buffer
.subsections_via_symbols
