	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54p_check_rx_ring
_p54p_check_rx_ring:                    ## @p54p_check_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rsi, %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%rax), %rax
	movq	(%rsi), %r12
	movq	(%rax), %rax
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movq	%rax, %r9
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r13)
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r9, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	%rdx, %rcx
	jmp	LBB0_3
LBB0_1:
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %ecx
LBB0_3:
	movq	%r12, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	%rdx, %r13
	cmpq	%rcx, %r13
	jne	LBB0_7
	jmp	LBB0_21
LBB0_4:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %r13d
	cmpq	%rcx, %r13
	je	LBB0_21
LBB0_7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rbx
	movq	%rdx, %r13
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r13
	je	LBB0_20
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r13,8), %edi
	callq	_le16_to_cpu
	movq	(%r14,%r13,8), %r12
	testq	%r12, %r12
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r15
	xorl	%edi, %edi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	cmpq	(%rbx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %r15
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r13,8), %edi
	callq	_le32_to_cpu
	movq	(%rbx), %rdx
	movq	8(%rbx), %rdi
	addq	$32, %rdx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_pci_dma_sync_single_for_cpu
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_skb_put
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_p54_rx
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rdx
	movq	8(%rbx), %rdi
	addq	$32, %rdx
	movl	(%r14), %ecx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_pci_unmap_single
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	$0, (%r14,%r13,8)
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%r13,8)
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_skb_trim
	movq	(%rbx), %rdx
	movq	8(%rbx), %rdi
	addq	$32, %rdx
	movl	(%r14), %ecx
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_pci_dma_sync_single_for_device
	movq	(%rbx), %rdi
	addq	$32, %rdi
	callq	_cpu_to_le16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,8)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	%r13, %rax
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	orq	%rbx, %rax
	shrq	$32, %rax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %r13d
	jmp	LBB0_19
LBB0_20:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
LBB0_21:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_p54p_refill_rx_ring            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx'd frame size exceeds length threshold.\n"

	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_p54p_check_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_check_rx_ring
_p54p_check_rx_ring:                    ; @p54p_check_rx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x26, x1
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x25, [x0]
	ldr	x8, [x25, #16]
	ldr	x22, [x1]
	ldr	x8, [x8]
	ldr	w0, [x8, w2, sxtw #2]
	bl	_le32_to_cpu
	mov	x5, x0
	str	x0, [x26]
	udiv	x8, x0, x20
	msub	x9, x8, x20, x0
	udiv	x8, x22, x20
	msub	x24, x8, x20, x22
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	cmp	x24, x9
	b.eq	LBB0_12
; %bb.1:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #0
	bl	_skb_trim
	ldp	x8, x0, [x25]
	add	x2, x8, #32
	ldr	w3, [x19]
	mov	x1, x27
	bl	_pci_dma_sync_single_for_device
	ldr	x8, [x25]
	add	x0, x8, #32
	bl	_cpu_to_le16
	str	w0, [x23]
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x24, #1
	udiv	x9, x8, x20
	msub	x24, x9, x20, x8
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x22, x24, #3
	add	x23, x21, x22
	ldr	w0, [x23]
	bl	_le16_to_cpu
	ldr	x26, [x19, x22]
	cbz	x26, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	ldr	x8, [x25]
	cmp	x0, x8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_net_ratelimit
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x25]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x21, x24, lsl #3
	ldr	w0, [x22, #4]!
	bl	_le32_to_cpu
	mov	x27, x0
	ldp	x8, x0, [x25]
	add	x2, x8, #32
Lloh2:
	adrp	x19, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	ldr	w3, [x19]
	mov	x1, x27
	bl	_pci_dma_sync_single_for_cpu
	mov	x0, x26
	mov	x1, x28
	bl	_skb_put
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x26
	bl	_p54_rx
	cbz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x0, [x25]
	add	x2, x8, #32
	ldr	w3, [x19]
	mov	x1, x27
	bl	_pci_unmap_single
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	str	xzr, [x19, x24, lsl #3]
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x22]
	b	LBB0_3
LBB0_11:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x5, [x8]
	ldr	w23, [sp, #20]                  ; 4-byte Folded Reload
LBB0_12:
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_p54p_refill_rx_ring
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx'd frame size exceeds length threshold.\n"

	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_p54p_check_rx_ring
.subsections_via_symbols
