	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_rx
_typhoon_rx:                            ## @typhoon_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, %r15
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movq	%rax, -80(%rbp)
	xorl	%r13d, %r13d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %rax
	je	LBB0_19
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.2:
	xorl	%r13d, %r13d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rbx
	movq	(%rbx,%r14), %r15
	movq	24(%r12), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	(%rax,%rcx), %r13d
	leaq	-80(%rbp), %rdi
	movl	$1, %esi
	callq	_typhoon_inc_rx_index
	movq	_TYPHOON_RX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx,%r14)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_typhoon_recycle_rx_skb
	movq	-80(%rbp), %r14
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movl	20(%r14,%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	_rx_copybreak@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	addl	$2, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	20(%r14), %edi
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_pci_dma_sync_single_for_cpu
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_skb_copy_to_linear_data
	movl	20(%r14), %edi
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	movq	%r14, %r15
	movq	-112(%rbp), %r14                ## 8-byte Reload
	callq	_pci_dma_sync_single_for_device
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_typhoon_recycle_rx_skb
	movq	%rbx, %r13
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	20(%r15), %edi
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_pci_unmap_single
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %r13
	callq	_typhoon_alloc_rx_skb
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %r12
	movl	16(%r15), %esi
	movq	%r13, %rdi
	callq	_eth_type_trans
	movl	%eax, 4(%r13)
	movq	_TYPHOON_RX_IP_CHK_GOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TYPHOON_RX_UDP_CHK_GOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%edx, %esi
	movq	_TYPHOON_RX_TCP_CHK_GOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %ecx
	orl	%eax, %ecx
	andl	12(%r14,%rbx), %ecx
	orl	%edx, %eax
	movq	%r12, %rdx
	cmpl	%esi, %ecx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rdx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %ecx
	cmoveq	%r12, %rdx
	movl	(%rdx), %eax
	movl	%eax, (%r13)
	movq	%r15, %rdi
	callq	_spin_lock
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_TYPHOON_RX_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r14,%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r14,%rbx), %edi
	callq	_ntohl
	movzwl	%ax, %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_vlan_hwaccel_receive_skb
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_netif_receive_skb
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	incl	%r13d
	movq	-80(%rbp), %r14
	cmpq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r12), %eax
	cmpl	$1, %r12d
	movl	%eax, %r12d
	jg	LBB0_3
	jmp	LBB0_19
LBB0_6:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_19:
	movq	%r14, %rdi
	callq	_cpu_to_le32
	movl	%eax, (%r15)
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPHOON_RX_ERROR,4,2           ## @TYPHOON_RX_ERROR
	.comm	_rx_copybreak,4,2               ## @rx_copybreak
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_TYPHOON_RX_IP_CHK_GOOD,4,2     ## @TYPHOON_RX_IP_CHK_GOOD
	.comm	_TYPHOON_RX_UDP_CHK_GOOD,4,2    ## @TYPHOON_RX_UDP_CHK_GOOD
	.comm	_TYPHOON_RX_TCP_CHK_GOOD,4,2    ## @TYPHOON_RX_TCP_CHK_GOOD
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_TYPHOON_RX_VLAN,4,2            ## @TYPHOON_RX_VLAN
	.no_dead_strip	_typhoon_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_rx
_typhoon_rx:                            ; @typhoon_rx
	.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	x20, x4
	mov	x19, x3
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x2]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w0, [x19]
	bl	_le32_to_cpu
	str	x0, [sp, #24]
	cmp	x0, x24
	ccmp	w20, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w28, #0
	b	LBB0_16
LBB0_2:
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
	mov	w28, #0
Lloh0:
	adrp	x21, _TYPHOON_RX_ERROR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TYPHOON_RX_ERROR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x20, x8, x0
	ldr	x26, [x20]
	ldr	x8, [x23, #24]
	add	x8, x8, x26, lsl #4
	ldr	x25, [x8, #8]
	ldr	w27, [x8]
	add	x0, sp, #24
	mov	w1, #1
	bl	_typhoon_inc_rx_index
	ldr	w8, [x20, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_typhoon_recycle_rx_skb
	ldr	x0, [sp, #24]
	cmp	x0, x24
	b.ne	LBB0_3
	b	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w28, [sp, #4]                   ; 4-byte Folded Spill
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	ldr	w0, [x20, #20]
	bl	_le16_to_cpu
	mov	x28, x0
Lloh2:
	adrp	x8, _rx_copybreak@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rx_copybreak@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w0, w28, #2
	bl	_dev_alloc_skb
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x19, x0
	mov	w1, #2
	bl	_skb_reserve
	ldr	w0, [x23, #20]
Lloh5:
	adrp	x8, _PKT_BUF_SZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x27
	bl	_pci_dma_sync_single_for_cpu
	ldr	w1, [x25, #8]
	mov	x0, x19
	mov	x2, x28
	bl	_skb_copy_to_linear_data
	ldr	w0, [x23, #20]
Lloh11:
	adrp	x8, _PKT_BUF_SZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x1, x27
	bl	_pci_dma_sync_single_for_device
	mov	x0, x19
	mov	x1, x28
	bl	_skb_put
	mov	x0, x23
	mov	x1, x26
	bl	_typhoon_recycle_rx_skb
	mov	x25, x19
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x28
	bl	_skb_put
	ldr	w0, [x23, #20]
Lloh17:
	adrp	x8, _PKT_BUF_SZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x1, x27
	bl	_pci_unmap_single
	mov	x0, x23
	mov	x1, x26
	bl	_typhoon_alloc_rx_skb
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w28, [sp, #4]                   ; 4-byte Folded Reload
	ldr	w1, [x23, #16]
	mov	x0, x25
	bl	_eth_type_trans
	str	w0, [x25, #4]
	ldr	w8, [x20, #12]
Lloh23:
	adrp	x9, _TYPHOON_RX_IP_CHK_GOOD@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TYPHOON_RX_IP_CHK_GOOD@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _TYPHOON_RX_UDP_CHK_GOOD@GOTPAGE
Lloh27:
	ldr	x10, [x10, _TYPHOON_RX_UDP_CHK_GOOD@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w10, w10, w9
Lloh29:
	adrp	x11, _TYPHOON_RX_TCP_CHK_GOOD@GOTPAGE
Lloh30:
	ldr	x11, [x11, _TYPHOON_RX_TCP_CHK_GOOD@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	orr	w12, w10, w11
	and	w8, w12, w8
	orr	w9, w11, w9
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
Lloh32:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh34:
	adrp	x9, _CHECKSUM_NONE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _CHECKSUM_NONE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x25]
	mov	x0, x23
	bl	_spin_lock
	ldr	x19, [x23, #8]
	cbz	x19, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #12]
Lloh36:
	adrp	x9, _TYPHOON_RX_VLAN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _TYPHOON_RX_VLAN@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #16]
	bl	_ntohl
	and	w2, w0, #0xffff
	mov	x0, x25
	mov	x1, x19
	bl	_vlan_hwaccel_receive_skb
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_netif_receive_skb
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x23
	bl	_spin_unlock
	add	w28, w28, #1
	ldr	x0, [sp, #24]
	cmp	x0, x24
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	sub	w8, w9, #1
	cmp	w9, #1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	b.gt	LBB0_3
	b	LBB0_16
LBB0_15:
	mov	x0, x24
LBB0_16:
	bl	_cpu_to_le32
	str	w0, [x19]
	mov	x0, x28
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPHOON_RX_ERROR,4,2           ; @TYPHOON_RX_ERROR
	.comm	_rx_copybreak,4,2               ; @rx_copybreak
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_TYPHOON_RX_IP_CHK_GOOD,4,2     ; @TYPHOON_RX_IP_CHK_GOOD
	.comm	_TYPHOON_RX_UDP_CHK_GOOD,4,2    ; @TYPHOON_RX_UDP_CHK_GOOD
	.comm	_TYPHOON_RX_TCP_CHK_GOOD,4,2    ; @TYPHOON_RX_TCP_CHK_GOOD
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_TYPHOON_RX_VLAN,4,2            ; @TYPHOON_RX_VLAN
	.no_dead_strip	_typhoon_rx
.subsections_via_symbols
