	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_decode_one_descr
_spider_net_decode_one_descr:           ## @spider_net_decode_one_descr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %r14
	movq	24(%rdi), %r15
	movq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_spider_net_get_descr_status
	movl	%eax, %ebx
	movq	_SPIDER_NET_DESCR_CARDOWNED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %ebx
	je	LBB0_21
## %bb.1:
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_21
## %bb.2:
	movq	8(%r14), %rax
	movq	%rax, 16(%r13)
	movl	(%r12), %esi
	movl	$-1, (%r12)
	movl	32(%r13), %edi
	movq	_SPIDER_NET_MAX_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_pci_unmap_single
	movq	_SPIDER_NET_DESCR_RESPONSE_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.3:
	movq	_SPIDER_NET_DESCR_PROTECTION_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.4:
	movq	_SPIDER_NET_DESCR_FORCE_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.8:
	movq	_SPIDER_NET_DESCR_COMPLETE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_13
## %bb.9:
	movq	_SPIDER_NET_DESCR_FRAME_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	24(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	incl	4(%r13)
	jmp	LBB0_18
LBB0_5:
	movq	%r13, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	incl	4(%r15)
LBB0_18:
	movq	%r13, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%r13, %rdi
	callq	_show_rx_chain
LBB0_20:
	movq	(%r14), %rdi
	callq	_dev_kfree_skb_irq
	movq	$0, (%r14)
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	xorl	%eax, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_SPIDER_NET_DESTROY_RX_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_16
## %bb.14:
	movq	%r13, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movq	24(%r13), %rdi
	movl	4(%r12), %ecx
	movl	8(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_16:
	movl	12(%r12), %edx
	movq	_SPIDER_NET_DESCR_BAD_STATUS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_22
## %bb.17:
	movq	24(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	leaq	L_.str.4(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_pr_err
	movl	16(%r12), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_err
	movl	20(%r12), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_err
	movl	24(%r12), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_pr_err
	movl	28(%r12), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_pr_err
	movl	8(%r12), %esi
	leaq	L_.str.9(%rip), %rdi
	callq	_pr_err
	movl	4(%r12), %esi
	leaq	L_.str.10(%rip), %rdi
	callq	_pr_err
	movq	%r14, %rax
	subq	8(%r13), %rax
	shrq	$3, %rax
	imull	$-1431655765, %eax, %esi        ## imm = 0xAAAAAAAB
	leaq	L_.str.11(%rip), %rdi
	callq	_pr_err
	incl	(%r13)
	jmp	LBB0_18
LBB0_22:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_spider_net_pass_skb_up
	movq	$0, (%r14)
	movq	_SPIDER_NET_DESCR_NOT_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movl	$1, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SPIDER_NET_DESCR_CARDOWNED,4,2 ## @SPIDER_NET_DESCR_CARDOWNED
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ## @SPIDER_NET_DESCR_NOT_IN_USE
	.comm	_SPIDER_NET_MAX_FRAME,4,2       ## @SPIDER_NET_MAX_FRAME
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_SPIDER_NET_DESCR_RESPONSE_ERROR,4,2 ## @SPIDER_NET_DESCR_RESPONSE_ERROR
	.comm	_SPIDER_NET_DESCR_PROTECTION_ERROR,4,2 ## @SPIDER_NET_DESCR_PROTECTION_ERROR
	.comm	_SPIDER_NET_DESCR_FORCE_END,4,2 ## @SPIDER_NET_DESCR_FORCE_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dropping RX descriptor with state %d\n"

	.comm	_SPIDER_NET_DESCR_COMPLETE,4,2  ## @SPIDER_NET_DESCR_COMPLETE
	.comm	_SPIDER_NET_DESCR_FRAME_END,4,2 ## @SPIDER_NET_DESCR_FRAME_END
L_.str.1:                               ## @.str.1
	.asciz	"RX descriptor with unknown state %d\n"

	.comm	_SPIDER_NET_DESTROY_RX_FLAGS,4,2 ## @SPIDER_NET_DESTROY_RX_FLAGS
L_.str.2:                               ## @.str.2
	.asciz	"error in received descriptor found, data_status=x%08x, data_error=x%08x\n"

	.comm	_SPIDER_NET_DESCR_BAD_STATUS,4,2 ## @SPIDER_NET_DESCR_BAD_STATUS
L_.str.3:                               ## @.str.3
	.asciz	"bad status, cmd_status=x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"buf_addr=x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"buf_size=x%08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"next_descr_addr=x%08x\n"

L_.str.7:                               ## @.str.7
	.asciz	"result_size=x%08x\n"

L_.str.8:                               ## @.str.8
	.asciz	"valid_size=x%08x\n"

L_.str.9:                               ## @.str.9
	.asciz	"data_status=x%08x\n"

L_.str.10:                              ## @.str.10
	.asciz	"data_error=x%08x\n"

L_.str.11:                              ## @.str.11
	.asciz	"which=%ld\n"

	.no_dead_strip	_spider_net_decode_one_descr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_decode_one_descr
_spider_net_decode_one_descr:           ; @spider_net_decode_one_descr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x0
	ldp	x20, x23, [x0, #16]
	ldr	x19, [x20, #16]
	mov	x0, x19
	bl	_spider_net_get_descr_status
Lloh0:
	adrp	x8, _SPIDER_NET_DESCR_CARDOWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPIDER_NET_DESCR_CARDOWNED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SPIDER_NET_DESCR_NOT_IN_USE@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_16
LBB0_2:
	mov	x22, x0
	ldr	x8, [x20, #8]
	str	x8, [x21, #16]
	ldr	w24, [x19]
	mov	w8, #-1
	str	w8, [x19]
	ldr	w0, [x21, #32]
Lloh5:
	adrp	x8, _SPIDER_NET_MAX_FRAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPIDER_NET_MAX_FRAME@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, x24
	bl	_pci_unmap_single
Lloh11:
	adrp	x8, _SPIDER_NET_DESCR_RESPONSE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPIDER_NET_DESCR_RESPONSE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_10
; %bb.3:
Lloh14:
	adrp	x8, _SPIDER_NET_DESCR_PROTECTION_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPIDER_NET_DESCR_PROTECTION_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_10
; %bb.4:
Lloh17:
	adrp	x8, _SPIDER_NET_DESCR_FORCE_END@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPIDER_NET_DESCR_FORCE_END@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_10
; %bb.5:
Lloh20:
	adrp	x8, _SPIDER_NET_DESCR_COMPLETE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SPIDER_NET_DESCR_COMPLETE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_17
; %bb.6:
Lloh23:
	adrp	x8, _SPIDER_NET_DESCR_FRAME_END@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SPIDER_NET_DESCR_FRAME_END@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_17
; %bb.7:
	mov	x0, x21
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x21, #24]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_err
LBB0_9:
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
	b	LBB0_13
LBB0_10:
	mov	x0, x21
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_12
; %bb.11:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	bl	_dev_err
LBB0_12:
	ldr	w8, [x23, #4]
	add	w8, w8, #1
	str	w8, [x23, #4]
LBB0_13:
	mov	x0, x21
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x21
	bl	_show_rx_chain
LBB0_15:
	ldr	x0, [x20]
	bl	_dev_kfree_skb_irq
	mov	w0, #0
	str	xzr, [x20]
	ldr	w8, [x25]
	str	w8, [x19, #12]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	ldr	w8, [x19, #4]
Lloh30:
	adrp	x9, _SPIDER_NET_DESTROY_RX_FLAGS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SPIDER_NET_DESTROY_RX_FLAGS@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:
	mov	x0, x21
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_13
; %bb.19:
	ldr	x0, [x21, #24]
	ldp	w8, w2, [x19, #4]
	str	x8, [sp]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_13
LBB0_20:
	ldr	w2, [x19, #12]
Lloh35:
	adrp	x8, _SPIDER_NET_DESCR_BAD_STATUS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SPIDER_NET_DESCR_BAD_STATUS@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_22
; %bb.21:
	ldr	x0, [x21, #24]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x24
	bl	_pr_err
	ldr	w1, [x19, #16]
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_err
	ldr	w1, [x19, #20]
Lloh44:
	adrp	x0, l_.str.6@PAGE
Lloh45:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_err
	ldr	w1, [x19, #24]
Lloh46:
	adrp	x0, l_.str.7@PAGE
Lloh47:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_err
	ldr	w1, [x19, #28]
Lloh48:
	adrp	x0, l_.str.8@PAGE
Lloh49:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_err
	ldr	w1, [x19, #8]
Lloh50:
	adrp	x0, l_.str.9@PAGE
Lloh51:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_err
	ldr	w1, [x19, #4]
Lloh52:
	adrp	x0, l_.str.10@PAGE
Lloh53:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_err
	ldr	x8, [x21, #8]
	sub	x8, x20, x8
	lsr	x8, x8, #3
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w1, w8, w9
Lloh54:
	adrp	x0, l_.str.11@PAGE
Lloh55:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pr_err
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	b	LBB0_13
LBB0_22:
	mov	x0, x20
	mov	x1, x21
	bl	_spider_net_pass_skb_up
	str	xzr, [x20]
	ldr	w8, [x25]
	str	w8, [x19, #12]
	mov	w0, #1
	b	LBB0_16
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SPIDER_NET_DESCR_CARDOWNED,4,2 ; @SPIDER_NET_DESCR_CARDOWNED
	.comm	_SPIDER_NET_DESCR_NOT_IN_USE,4,2 ; @SPIDER_NET_DESCR_NOT_IN_USE
	.comm	_SPIDER_NET_MAX_FRAME,4,2       ; @SPIDER_NET_MAX_FRAME
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_SPIDER_NET_DESCR_RESPONSE_ERROR,4,2 ; @SPIDER_NET_DESCR_RESPONSE_ERROR
	.comm	_SPIDER_NET_DESCR_PROTECTION_ERROR,4,2 ; @SPIDER_NET_DESCR_PROTECTION_ERROR
	.comm	_SPIDER_NET_DESCR_FORCE_END,4,2 ; @SPIDER_NET_DESCR_FORCE_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dropping RX descriptor with state %d\n"

	.comm	_SPIDER_NET_DESCR_COMPLETE,4,2  ; @SPIDER_NET_DESCR_COMPLETE
	.comm	_SPIDER_NET_DESCR_FRAME_END,4,2 ; @SPIDER_NET_DESCR_FRAME_END
l_.str.1:                               ; @.str.1
	.asciz	"RX descriptor with unknown state %d\n"

	.comm	_SPIDER_NET_DESTROY_RX_FLAGS,4,2 ; @SPIDER_NET_DESTROY_RX_FLAGS
l_.str.2:                               ; @.str.2
	.asciz	"error in received descriptor found, data_status=x%08x, data_error=x%08x\n"

	.comm	_SPIDER_NET_DESCR_BAD_STATUS,4,2 ; @SPIDER_NET_DESCR_BAD_STATUS
l_.str.3:                               ; @.str.3
	.asciz	"bad status, cmd_status=x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"buf_addr=x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"buf_size=x%08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"next_descr_addr=x%08x\n"

l_.str.7:                               ; @.str.7
	.asciz	"result_size=x%08x\n"

l_.str.8:                               ; @.str.8
	.asciz	"valid_size=x%08x\n"

l_.str.9:                               ; @.str.9
	.asciz	"data_status=x%08x\n"

l_.str.10:                              ; @.str.10
	.asciz	"data_error=x%08x\n"

l_.str.11:                              ; @.str.11
	.asciz	"which=%ld\n"

	.no_dead_strip	_spider_net_decode_one_descr
.subsections_via_symbols
