	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54p_refill_rx_ring
_p54p_refill_rx_ring:                   ## @p54p_refill_rx_ring
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	16(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movslq	%esi, %r14
	movq	(%rax,%r14,8), %rdi
	callq	_le32_to_cpu
	movq	%rbx, %rsi
	movq	%rax, %rbx
	addq	%rsi, %r15
	movq	%r15, %r13
	subq	%rax, %r13
	cmpq	$2, %r13
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jb	LBB0_1
## %bb.2:
	decq	%r15
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	decq	%r13
	incq	%rbx
	incq	%r15
	cmpq	$1, %r13
	jbe	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rdx, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r14
	shlq	$5, %r14
	cmpq	$0, 24(%rdi,%r14)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	addq	$32, %rdi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %r15
	movq	8(%r12), %r12
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_skb_tail_pointer
	movq	(%r15), %rdx
	addq	$32, %rdx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pci_map_single
	movq	%rax, %r12
	movq	8(%r15), %rdi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%r14), %rax
	addq	$24, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_cpu_to_le32
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	$0, 16(%r15,%r14)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	addq	$32, %rdi
	callq	_cpu_to_le16
	movq	%r15, %rdi
	movl	%eax, 8(%r15,%r14)
	movq	$0, (%r15,%r14)
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	movq	%rbx, %r15
	jmp	LBB0_13
LBB0_12:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
LBB0_13:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	xorl	%eax, %eax
	callq	_wmb
	movq	%r15, %rdi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb_any
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX DMA Mapping error\n"

	.no_dead_strip	_p54p_refill_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54p_refill_rx_ring
_p54p_refill_rx_ring:                   ; @p54p_refill_rx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x27, [x0]
	ldr	x23, [x27, #16]
	ldr	x8, [x23]
	sxtw	x24, w1
	ldr	x0, [x8, w1, sxtw #3]
	bl	_le32_to_cpu
	add	x8, x22, x20
	sub	x28, x8, x0
	cmp	x28, #2
	b.lo	LBB0_7
; %bb.1:
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	sub	x8, x8, #1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x28, x28, #1
	add	x0, x26, #1
	add	x22, x22, #1
	cmp	x28, #1
	b.ls	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	udiv	x8, x0, x20
	msub	x26, x8, x20, x0
	add	x25, x21, x26, lsl #5
	ldr	x8, [x25, #24]!
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	add	x0, x8, #32
	bl	_dev_alloc_skb
	cbz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	x24, [x27, #8]
	bl	_skb_tail_pointer
	mov	x1, x0
	ldr	x8, [x27]
	add	x2, x8, #32
Lloh0:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x24
	bl	_pci_map_single
	mov	x24, x0
	ldr	x0, [x27, #8]
	mov	x1, x24
	bl	_pci_dma_mapping_error
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x25]
	add	x24, x21, x26, lsl #5
	str	xzr, [x24, #16]
	ldr	x8, [x27]
	add	x0, x8, #32
	bl	_cpu_to_le16
	str	w0, [x24, #8]
	str	xzr, [x24]
	str	x23, [x19, x26, lsl #3]
	b	LBB0_2
LBB0_7:
	mov	x22, x0
	b	LBB0_11
LBB0_8:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_10
LBB0_9:
	mov	x0, x23
	bl	_dev_kfree_skb_any
	ldr	x0, [x27, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_10:
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
LBB0_11:
	bl	_wmb
	mov	x0, x22
	bl	_cpu_to_le32
	ldr	x8, [x23]
	str	x0, [x8, x24, lsl #3]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX DMA Mapping error\n"

	.no_dead_strip	_p54p_refill_rx_ring
.subsections_via_symbols
