	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rebuild_rx_bufs
_rebuild_rx_bufs:                       ## @rebuild_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r13
	movq	_rx_ring_size@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	8(%r13), %rcx
	xorl	%ebx, %ebx
	movq	_I596_NULL@GOTPCREL(%rip), %r14
	movq	_CMD_FLEX@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	%rax, (%rcx,%rbx)
	movl	(%r15), %edi
	callq	_SWAP16
	movq	8(%r13), %rcx
	movq	%rax, 8(%rcx,%rbx)
	incq	%r12
	movq	_rx_ring_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_3:
	movq	_CMD_EOL@GOTPCREL(%rip), %rax
	movq	_CMD_FLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_SWAP16
	movq	8(%r13), %rsi
	movq	_rx_ring_size@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	%rax, -8(%rcx,%rsi)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rsi, 8(%rbx)
	movq	%rbx, %rdi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	%rax, 16(%r13)
	movq	(%r13), %rsi
	movq	%rsi, (%rbx)
	movq	%rbx, %rdi
	callq	_virt_to_dma
	movl	%eax, %edi
	callq	_SWAP32
	movq	8(%r13), %rcx
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	$24, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DMA_WBACK_INV                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rx_ring_size,4,2               ## @rx_ring_size
	.comm	_I596_NULL,8,3                  ## @I596_NULL
	.comm	_CMD_FLEX,4,2                   ## @CMD_FLEX
	.comm	_CMD_EOL,4,2                    ## @CMD_EOL
	.no_dead_strip	_rebuild_rx_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rebuild_rx_bufs
_rebuild_rx_bufs:                       ; @rebuild_rx_bufs
	.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	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x22, _rx_ring_size@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rx_ring_size@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _CMD_FLEX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CMD_FLEX@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x26, _I596_NULL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _I596_NULL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	str	x9, [x8, x24]
	ldr	w0, [x23]
	bl	_SWAP16
	ldr	x8, [x20, #8]
	add	x9, x8, x24
	str	x0, [x9, #8]
	add	x25, x25, #1
	ldrsw	x9, [x22]
	add	x24, x24, #16
	cmp	x25, x9
	b.lt	LBB0_2
LBB0_3:
Lloh6:
	adrp	x8, _CMD_EOL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_EOL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w0, w9, w8
	bl	_SWAP16
	ldr	x1, [x20, #8]
	ldrsw	x8, [x22]
	add	x8, x1, x8, lsl #4
	stur	x0, [x8, #-8]
	str	x1, [x21, #8]
	mov	x0, x21
	bl	_virt_to_dma
	bl	_SWAP32
	str	x0, [x20, #16]
	ldr	x1, [x20]
	str	x1, [x21]
	mov	x0, x21
	bl	_virt_to_dma
	bl	_SWAP32
	ldr	x8, [x20, #8]
	str	x0, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #24
	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
	b	_DMA_WBACK_INV
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rx_ring_size,4,2               ; @rx_ring_size
	.comm	_I596_NULL,8,3                  ; @I596_NULL
	.comm	_CMD_FLEX,4,2                   ; @CMD_FLEX
	.comm	_CMD_EOL,4,2                    ; @CMD_EOL
	.no_dead_strip	_rebuild_rx_bufs
.subsections_via_symbols
