	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_rx_bufs
_init_rx_bufs:                          ## @init_rx_bufs
	.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	$40, %rsp
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_rx_ring_size@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	addq	$80, %rbx
	xorl	%r15d, %r15d
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movl	(%r14), %edi
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, -64(%rbx)
	movq	%r12, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, -72(%rbx)
	leaq	-80(%rbx), %rsi
	movq	%r12, %rdi
	movq	%r14, %r12
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, -8(%rbx)
	movq	%r13, -16(%rbx)
	movl	(%r13), %eax
	movl	%eax, -24(%rbx)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	_SWAP32
	movq	%rax, -32(%rbx)
	movl	(%r12), %edi
	callq	_SWAP16
	movq	%rax, -40(%rbx)
	incl	%r15d
	movq	_rx_ring_size@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addq	$80, %rbx
	cmpl	%eax, %r15d
	jl	LBB0_2
LBB0_5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	16(%r12), %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, (%rdi)
	cltq
	leaq	(%rax,%rax,4), %rbx
	shlq	$4, %rbx
	movq	%r14, -64(%r14,%rbx)
	movq	%r14, %rsi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, -72(%r14,%rbx)
	movq	(%r12), %rbx
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.6:
	addq	$80, %rbx
	xorl	%r14d, %r14d
	movq	_CMD_FLEX@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	_rx_ring_size@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_I596_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbx)
	movq	%rbx, -64(%rbx)
	leaq	-160(%rbx), %rax
	movq	%rax, -56(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, -72(%rbx)
	movl	(%r13), %edi
	callq	_SWAP16
	movq	%rax, -80(%rbx)
	incl	%r14d
	addq	$80, %rbx
	cmpl	(%r15), %r14d
	jl	LBB0_7
## %bb.8:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rbx
LBB0_9:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, 8(%r13)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, 8(%r12)
	movq	(%r12), %r14
	movq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, 32(%r14)
	movq	(%r12), %r15
	movq	_rx_ring_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rbx
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %rax
	addq	$-80, %rax
	movq	%rax, 24(%r14)
	movq	%r15, -64(%r15,%rbx)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, -72(%r15,%rbx)
	movq	_CMD_EOL@GOTPCREL(%rip), %rax
	movq	_CMD_FLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_SWAP16
	movq	%rax, -80(%r15,%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	$24, %edx
	callq	_DMA_WBACK_INV
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movl	$-1, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_ring_size,4,2               ## @rx_ring_size
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_I596_NULL,8,3                  ## @I596_NULL
	.comm	_CMD_FLEX,4,2                   ## @CMD_FLEX
	.comm	_CMD_EOL,4,2                    ## @CMD_EOL
	.no_dead_strip	_init_rx_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_rx_bufs
_init_rx_bufs:                          ; @init_rx_bufs
	.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	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x25, _rx_ring_size@GOTPAGE
Lloh1:
	ldr	x25, [x25, _rx_ring_size@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w26, #0
	ldr	x8, [x20, #16]
	add	x22, x8, #80
Lloh2:
	adrp	x27, _PKT_BUF_SZ@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh4:
	adrp	x28, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _DMA_FROM_DEVICE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_netdev_alloc_skb_ip_align
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	w2, [x27]
	ldr	w3, [x28]
	bl	_dma_map_single
	mov	x24, x0
	stur	x22, [x22, #-64]
	mov	x0, x21
	mov	x1, x22
	bl	_virt_to_dma
	bl	_SWAP32
	stur	x0, [x22, #-72]
	sub	x1, x22, #80
	mov	x0, x21
	bl	_virt_to_dma
	bl	_SWAP32
	stp	x23, x0, [x22, #-16]
	ldr	w8, [x23]
	stur	w8, [x22, #-24]
	mov	x0, x24
	bl	_SWAP32
	stur	x0, [x22, #-32]
	ldr	w0, [x27]
	bl	_SWAP16
	stur	x0, [x22, #-40]
	add	w26, w26, #1
	ldr	w8, [x25]
	add	x22, x22, #80
	cmp	w26, w8
	b.lt	LBB0_2
LBB0_4:
	ldr	x1, [x20, #16]
	str	x1, [x21]
	mov	w9, #80
	smaddl	x22, w8, w9, x1
	stur	x1, [x22, #-64]
	mov	x0, x21
	bl	_virt_to_dma
	bl	_SWAP32
	stur	x0, [x22, #-72]
	ldr	x1, [x20]
	ldr	w8, [x25]
Lloh6:
	adrp	x23, _CMD_FLEX@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CMD_FLEX@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w24, #0
	add	x22, x1, #80
Lloh8:
	adrp	x26, _I596_NULL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _I596_NULL@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	sub	x8, x22, #160
	stur	x22, [x22, #-64]
	stp	x8, x9, [x22, #-56]
	mov	x0, x21
	mov	x1, x22
	bl	_virt_to_dma
	bl	_SWAP32
	stur	x0, [x22, #-72]
	ldr	w0, [x23]
	bl	_SWAP16
	stur	x0, [x22, #-80]
	add	w24, w24, #1
	ldr	w8, [x25]
	add	x22, x22, #80
	cmp	w24, w8
	b.lt	LBB0_6
; %bb.7:
	ldr	x1, [x20]
LBB0_8:
	str	x1, [x21, #8]
	mov	x0, x21
	bl	_virt_to_dma
	bl	_SWAP32
	str	x0, [x20, #8]
	ldr	x22, [x20]
	ldr	x1, [x21]
	mov	x0, x21
	bl	_virt_to_dma
	bl	_SWAP32
	ldr	x1, [x20]
	ldrsw	x8, [x25]
	mov	w9, #80
	madd	x24, x8, x9, x1
	sub	x8, x24, #80
	stp	x8, x0, [x22, #24]
	stur	x1, [x24, #-64]
	mov	x0, x21
	bl	_virt_to_dma
	bl	_SWAP32
	stur	x0, [x24, #-72]
Lloh10:
	adrp	x8, _CMD_EOL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_EOL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w0, w9, w8
	bl	_SWAP16
	stur	x0, [x24, #-80]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #24
	bl	_DMA_WBACK_INV
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_ring_size,4,2               ; @rx_ring_size
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_I596_NULL,8,3                  ; @I596_NULL
	.comm	_CMD_FLEX,4,2                   ; @CMD_FLEX
	.comm	_CMD_EOL,4,2                    ; @CMD_EOL
	.no_dead_strip	_init_rx_bufs
.subsections_via_symbols
