	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgiseeq_rx
_sgiseeq_rx:                            ## @sgiseeq_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rsi), %rdi
	callq	_PREV_RX
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r15
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r13
	shlq	$4, %r15
	leaq	(%r15,%r13), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_dma_sync_desc_cpu
	movl	(%r13,%r15), %eax
	movq	_HPCDMA_OWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_17:
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	shlq	$4, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	callq	_dma_sync_desc_cpu
	movq	_HPCDMA_EOR@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	movq	8(%r13), %rcx
	leaq	(%rcx,%r14), %rsi
	andl	%eax, (%rcx,%r14)
	movq	%r12, %rdi
	callq	_dma_sync_desc_dev
	movq	(%r13), %rdi
	movq	8(%r13), %r14
	callq	_PREV_RX
	shlq	$4, %rax
	addq	%rax, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_dma_sync_desc_cpu
	movl	(%r15), %r14d
	movq	(%r13), %rdi
	movq	8(%r13), %r15
	callq	_PREV_RX
	shlq	$4, %rax
	orl	%r14d, (%r15,%rax)
	movq	(%r13), %rdi
	movq	8(%r13), %r14
	callq	_PREV_RX
	shlq	$4, %rax
	addq	%rax, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_dma_sync_desc_dev
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rx_maybe_restart               ## TAILCALL
LBB0_1:
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rbx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %esi
	movq	%r12, %rdi
	callq	_record_rx_errors
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r13
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, 8(%r14)
	movl	(%r12), %edi
	movq	(%r13), %rsi
	addq	$-2, %rsi
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rbx
	movl	(%r15), %ecx
	callq	_dma_map_single
	movl	%eax, 4(%r14)
	movq	_RCNTINFO_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_NEXT_RX
	movq	%rax, (%r15)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_dma_sync_desc_dev
	movq	%r12, %r13
	movq	%rbx, %r12
	movq	(%r15), %rbx
	movq	8(%r15), %r15
	shlq	$4, %rbx
	leaq	(%r15,%rbx), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_dma_sync_desc_cpu
	movl	(%r15,%rbx), %eax
	movq	%r12, %r15
	movq	%r13, %r12
	movq	_PKT_BUF_SZ@GOTPCREL(%rip), %rbx
	movq	_HPCDMA_OWN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	_HPCDMA_BCNT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %r13
	movl	(%r12), %edi
	movl	4(%r14), %esi
	movl	(%r15), %ecx
	callq	_dma_unmap_single
	movq	8(%r14), %rax
	movq	(%rax), %rdi
	movzbl	-3(%rdi,%r13), %eax
	movq	_SEEQ_RSTAT_FIG@GOTPCREL(%rip), %rcx
	testb	%al, (%rcx)
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$6, %rdi
	movl	16(%r12), %esi
	callq	_ether_addr_equal
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$-3, %r13
	movq	_rx_copybreak@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_skb_copy_to_linear_data
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r13
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_put
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_eth_type_trans
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_netif_rx
	incl	12(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, 4(%r12)
	jmp	LBB0_16
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%r12)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_HPCDMA_OWN,4,2                 ## @HPCDMA_OWN
	.comm	_PKT_BUF_SZ,4,2                 ## @PKT_BUF_SZ
	.comm	_HPCDMA_BCNT,4,2                ## @HPCDMA_BCNT
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_SEEQ_RSTAT_FIG,1,0             ## @SEEQ_RSTAT_FIG
	.comm	_rx_copybreak,4,2               ## @rx_copybreak
	.comm	_RCNTINFO_INIT,4,2              ## @RCNTINFO_INIT
	.comm	_HPCDMA_EOR,4,2                 ## @HPCDMA_EOR
	.no_dead_strip	_sgiseeq_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgiseeq_rx
_sgiseeq_rx:                            ; @sgiseeq_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
	stp	x2, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x1]
	bl	_PREV_RX
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldp	x9, x8, [x21]
	add	x24, x8, x9, lsl #4
	mov	x0, x22
	mov	x1, x24
	bl	_dma_sync_desc_cpu
	ldr	w8, [x24]
Lloh0:
	adrp	x28, _HPCDMA_OWN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _HPCDMA_OWN@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ubfiz	x19, x9, #4, #32
	add	x1, x8, x19
	mov	x0, x22
	bl	_dma_sync_desc_cpu
Lloh2:
	adrp	x20, _HPCDMA_EOR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _HPCDMA_EOR@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	x9, [x21, #8]
	add	x1, x9, x19
	ldr	w9, [x1]
	bic	w8, w9, w8
	str	w8, [x1]
	mov	x0, x22
	bl	_dma_sync_desc_dev
	ldp	x0, x19, [x21]
	bl	_PREV_RX
	add	x1, x19, x0, lsl #4
	mov	x0, x22
	bl	_dma_sync_desc_cpu
	ldr	w19, [x20]
	ldp	x0, x20, [x21]
	bl	_PREV_RX
	lsl	x8, x0, #4
	ldr	w9, [x20, x8]
	orr	w9, w9, w19
	str	w9, [x20, x8]
	ldp	x0, x19, [x21]
	bl	_PREV_RX
	add	x1, x19, x0, lsl #4
	mov	x0, x22
	bl	_dma_sync_desc_dev
	mov	x0, x21
	ldp	x1, x2, [sp, #16]               ; 16-byte Folded Reload
	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
	b	_rx_maybe_restart
LBB0_2:
Lloh4:
	adrp	x19, _PKT_BUF_SZ@GOTPAGE
Lloh5:
	ldr	x19, [x19, _PKT_BUF_SZ@GOTPAGEOFF]
Lloh6:
	adrp	x27, _HPCDMA_BCNT@GOTPAGE
Lloh7:
	ldr	x27, [x27, _HPCDMA_BCNT@GOTPAGEOFF]
Lloh8:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh10:
	adrp	x20, _RCNTINFO_INIT@GOTPAGE
Lloh11:
	ldr	x20, [x20, _RCNTINFO_INIT@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_record_rx_errors
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [x24, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x26, [x24, #8]
	ldr	w0, [x22]
	ldr	x8, [x26]
	sub	x1, x8, #2
	ldr	w2, [x19]
	ldr	w3, [x23]
	bl	_dma_map_single
	ldr	w8, [x20]
	stp	w8, w0, [x24]
	ldr	x0, [x21]
	bl	_NEXT_RX
	str	x0, [x21]
	mov	x0, x22
	mov	x1, x24
	bl	_dma_sync_desc_dev
	ldp	x9, x8, [x21]
	add	x24, x8, x9, lsl #4
	mov	x0, x22
	mov	x1, x24
	bl	_dma_sync_desc_cpu
	ldr	w8, [x24]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x19]
	ldr	w9, [x27]
	and	w8, w9, w8
	sub	w8, w2, w8
	sxtw	x8, w8
	sub	x25, x8, #3
	ldr	w0, [x22]
	ldr	w1, [x24, #4]
	ldr	w3, [x23]
	bl	_dma_unmap_single
	ldr	x8, [x24, #8]
	ldr	x8, [x8]
	ldrb	w1, [x8, x25]
Lloh12:
	adrp	x9, _SEEQ_RSTAT_FIG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SEEQ_RSTAT_FIG@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x8, #6
	ldr	w1, [x22, #16]
	bl	_ether_addr_equal
	cbnz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh14:
	adrp	x8, _rx_copybreak@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rx_copybreak@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w25, w8
	b.le	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x27, [x24, #8]
	ldr	w1, [x19]
	mov	x0, x22
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x0
	mov	w1, #2
	bl	_skb_reserve
	cbnz	x27, LBB0_14
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_netdev_alloc_skb_ip_align
	mov	x27, x0
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24, #8]
	ldr	x1, [x8]
	mov	x0, x27
	mov	x2, x25
	bl	_skb_copy_to_linear_data
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [x24, #8]
	cbz	x27, LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x25
	bl	_skb_put
	mov	x0, x27
	mov	x1, x22
	bl	_eth_type_trans
	str	w0, [x27, #8]
	mov	x0, x27
	bl	_netif_rx
	ldr	w8, [x22, #12]
	add	w8, w8, #1
	str	w8, [x22, #12]
	ldr	w8, [x22, #4]
	add	w8, w8, w25
	str	w8, [x22, #4]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x27
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #8]
	add	w8, w8, #1
	str	w8, [x22, #8]
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh17:
	adrp	x27, _HPCDMA_BCNT@GOTPAGE
Lloh18:
	ldr	x27, [x27, _HPCDMA_BCNT@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HPCDMA_OWN,4,2                 ; @HPCDMA_OWN
	.comm	_PKT_BUF_SZ,4,2                 ; @PKT_BUF_SZ
	.comm	_HPCDMA_BCNT,4,2                ; @HPCDMA_BCNT
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_SEEQ_RSTAT_FIG,1,0             ; @SEEQ_RSTAT_FIG
	.comm	_rx_copybreak,4,2               ; @rx_copybreak
	.comm	_RCNTINFO_INIT,4,2              ; @RCNTINFO_INIT
	.comm	_HPCDMA_EOR,4,2                 ; @HPCDMA_EOR
	.no_dead_strip	_sgiseeq_rx
.subsections_via_symbols
