	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r6040_rx
_r6040_rx:                              ## @r6040_rx
	.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
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	(%rax), %r15
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	addq	$16, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_DSC_OWNER_MAC@GOTPCREL(%rip), %rbx
	movq	_MAX_BUF_SIZE@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	32(%r15), %rsi
	addq	$-4, %rsi
	movq	%r14, %rdi
	callq	_skb_put
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	24(%r15), %edi
	callq	_le32_to_cpu
	movq	_MAX_BUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_pci_unmap_single
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_eth_type_trans
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_netif_receive_skb
	incl	4(%r12)
	movl	32(%r15), %eax
	movl	(%r12), %ecx
	addl	%ecx, %eax
	addl	$-4, %eax
	movl	%eax, (%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movl	8(%rbx), %edi
	movq	_DSC_OWNER_MAC@GOTPCREL(%rip), %rbx
	movl	(%rax), %esi
	movq	_MAX_BUF_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, 24(%r15)
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	incl	%r13d
	movq	8(%r15), %r15
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DSC_RX_ERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DSC_RX_ERR_DRI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	20(%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_DSC_RX_ERR_BUF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_DSC_RX_ERR_LONG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_DSC_RX_ERR_RUNT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	16(%r12)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_DSC_RX_ERR_CRC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock
	incl	12(%r12)
	movq	%rbx, %rdi
	movq	_DSC_OWNER_MAC@GOTPCREL(%rip), %rbx
	callq	_spin_unlock
	jmp	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	8(%r12)
	jmp	LBB0_18
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_20
LBB0_19:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSC_OWNER_MAC,4,2              ## @DSC_OWNER_MAC
	.comm	_DSC_RX_ERR,4,2                 ## @DSC_RX_ERR
	.comm	_DSC_RX_ERR_DRI,4,2             ## @DSC_RX_ERR_DRI
	.comm	_DSC_RX_ERR_BUF,4,2             ## @DSC_RX_ERR_BUF
	.comm	_DSC_RX_ERR_LONG,4,2            ## @DSC_RX_ERR_LONG
	.comm	_DSC_RX_ERR_RUNT,4,2            ## @DSC_RX_ERR_RUNT
	.comm	_DSC_RX_ERR_CRC,4,2             ## @DSC_RX_ERR_CRC
	.comm	_MAX_BUF_SIZE,4,2               ## @MAX_BUF_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_r6040_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r6040_rx
_r6040_rx:                              ; @r6040_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x27, [x0]
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.1:
	mov	w21, #0
	add	x8, x19, #16
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x28, _DSC_OWNER_MAC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DSC_OWNER_MAC@GOTPAGEOFF]
Lloh2:
	adrp	x25, _DSC_RX_ERR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _DSC_RX_ERR@GOTPAGEOFF]
Lloh4:
	adrp	x26, _MAX_BUF_SIZE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MAX_BUF_SIZE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	x25, [x27, #16]
	ldr	w8, [x19, #12]
	str	w8, [x25, #8]
	ldr	x8, [x27, #32]
	sub	x1, x8, #4
	mov	x0, x25
	bl	_skb_put
	mov	x23, x20
	mov	x20, x28
	ldr	w28, [x19, #8]
	ldr	w0, [x27, #24]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	w2, [x26]
Lloh6:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x28
	mov	x28, x20
	mov	x20, x23
	bl	_pci_unmap_single
	ldr	w1, [x19, #12]
	mov	x0, x25
	bl	_eth_type_trans
	str	w0, [x25, #4]
	mov	x0, x25
Lloh9:
	adrp	x25, _DSC_RX_ERR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _DSC_RX_ERR@GOTPAGEOFF]
	bl	_netif_receive_skb
	ldr	w8, [x27, #32]
	sub	w8, w8, #4
	ldr	d0, [x22]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v1, v0
	str	d0, [x22]
	str	x24, [x27, #16]
	ldr	w0, [x19, #8]
	ldr	w1, [x24]
	ldr	w2, [x26]
Lloh11:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_pci_map_single
	bl	_cpu_to_le32
	str	w0, [x27, #24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	str	w8, [x27]
	add	w21, w21, #1
	ldr	x27, [x27, #8]
	cmp	w20, w21
	b.eq	LBB0_19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x9, _DSC_RX_ERR_DRI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DSC_RX_ERR_DRI@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22, #20]
	add	w9, w9, #1
	str	w9, [x22, #20]
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x9, _DSC_RX_ERR_BUF@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DSC_RX_ERR_BUF@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22, #16]
	add	w9, w9, #1
	str	w9, [x22, #16]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh20:
	adrp	x9, _DSC_RX_ERR_LONG@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DSC_RX_ERR_LONG@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22, #16]
	add	w9, w9, #1
	str	w9, [x22, #16]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x9, _DSC_RX_ERR_RUNT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DSC_RX_ERR_RUNT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x22, #16]
	add	w9, w9, #1
	str	w9, [x22, #16]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh26:
	adrp	x9, _DSC_RX_ERR_CRC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DSC_RX_ERR_CRC@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x23
	bl	_spin_lock
	ldr	w8, [x22, #12]
	add	w8, w8, #1
	str	w8, [x22, #12]
	mov	x0, x23
	bl	_spin_unlock
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22, #8]
	add	w8, w8, #1
	str	w8, [x22, #8]
	b	LBB0_4
LBB0_18:
	mov	w21, #0
	b	LBB0_20
LBB0_19:
	mov	x21, x20
LBB0_20:
	str	x27, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DSC_OWNER_MAC,4,2              ; @DSC_OWNER_MAC
	.comm	_DSC_RX_ERR,4,2                 ; @DSC_RX_ERR
	.comm	_DSC_RX_ERR_DRI,4,2             ; @DSC_RX_ERR_DRI
	.comm	_DSC_RX_ERR_BUF,4,2             ; @DSC_RX_ERR_BUF
	.comm	_DSC_RX_ERR_LONG,4,2            ; @DSC_RX_ERR_LONG
	.comm	_DSC_RX_ERR_RUNT,4,2            ; @DSC_RX_ERR_RUNT
	.comm	_DSC_RX_ERR_CRC,4,2             ; @DSC_RX_ERR_CRC
	.comm	_MAX_BUF_SIZE,4,2               ; @MAX_BUF_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_r6040_rx
.subsections_via_symbols
