	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocate_rx_buffers
_allocate_rx_buffers:                   ## @allocate_rx_buffers
	.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, %rbx
	movq	(%rax), %rax
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r12
	movq	_RXOWN@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rcx)
	movl	16(%rbx), %edx
	movl	20(%rbx), %edi
	movl	(%rax), %esi
	movl	(%r12), %ecx
	callq	_pci_map_single
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	(%r13), %eax
	movl	%eax, (%rcx)
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	cmpq	(%r15), %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rcx), %rcx
	cmpq	$0, 8(%rcx)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 8(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,8,3               ## @RX_RING_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_RXOWN,4,2                      ## @RXOWN
	.no_dead_strip	_allocate_rx_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocate_rx_buffers
_allocate_rx_buffers:                   ; @allocate_rx_buffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RX_RING_SIZE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x0
Lloh2:
	adrp	x22, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh4:
	adrp	x23, _RXOWN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RXOWN@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x8, #8]
	ldr	w1, [x0]
	ldp	w2, w0, [x20, #16]
	ldr	w3, [x22]
	bl	_pci_map_single
	ldr	w8, [x23]
	ldp	x10, x9, [x20]
	stp	w8, w0, [x9]
	add	x8, x10, #1
	str	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8, #16]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x20, #8]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,8,3               ; @RX_RING_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_RXOWN,4,2                      ; @RXOWN
	.no_dead_strip	_allocate_rx_buffers
.subsections_via_symbols
