	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_rx_chain
_show_rx_chain:                         ## @show_rx_chain
	.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	%rdi, %rbx
	movq	32(%rdi), %r13
	movq	16(%r13), %rax
	movq	(%rdi), %r15
	movq	%r13, %rcx
	subq	16(%rdi), %rcx
	shrq	$3, %rcx
	imull	$-1431655765, %ecx, %r14d       ## imm = 0xAAAAAAAB
	movl	(%rax), %r12d
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %r15d
	movl	%r14d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_SPIDER_NET_GDACTDPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_spider_net_read_reg
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_SPIDER_NET_GDACNEXTDA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spider_net_read_reg
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	incl	%r14d
	movq	(%r13), %r13
	cmpq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movq	16(%r13), %r15
	movq	%r13, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	subq	16(%rcx), %rax
	shrq	$3, %rax
	imull	$-1431655765, %eax, %eax        ## imm = 0xAAAAAAAB
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	cmpq	24(%rcx), %r13
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r13), %eax
	cmpl	%eax, -72(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	cmpl	%ebx, %r15d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leal	(%rsi,%rdi), %eax
	subl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%edx, %ecx
	leal	(%rsi,%rdi), %eax
	decl	%eax
	cltd
	idivl	%esi
	movl	%edx, %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dev_info
	xorl	%r12d, %r12d
	movl	%ebx, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	8(%r13), %eax
	cmpl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpq	$0, 8(%r15)
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_info
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str.7(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Total number of descrs=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Chain tail located at descr=%d, status=0x%x\n"

	.comm	_SPIDER_NET_GDACTDPA,4,2        ## @SPIDER_NET_GDACTDPA
	.comm	_SPIDER_NET_GDACNEXTDA,4,2      ## @SPIDER_NET_GDACNEXTDA
L_.str.2:                               ## @.str.2
	.asciz	"Chain head is at %d, head status=0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"HW curr desc (GDACTDPA) is at %d, status=0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"HW next desc (GDACNEXTDA) is at %d, status=0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"chain is cut at %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Have %d (from %d to %d) descrs with stat=0x%08x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Last %d descrs with stat=0x%08x for a total of %d descrs\n"

	.no_dead_strip	_show_rx_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_rx_chain
_show_rx_chain:                         ; @show_rx_chain
	.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	x20, x0
	ldr	x28, [x0, #32]
	ldr	x8, [x28, #16]
	ldr	x19, [x0]
	ldr	x9, [x0, #16]
	sub	x9, x28, x9
	asr	x9, x9, #3
	mov	x10, #-6148914691236517206
	movk	x10, #43691
	mul	x21, x9, x10
	ldr	w24, [x8]
	ldr	w8, [x0, #8]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	stp	x21, x24, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh4:
	adrp	x8, _SPIDER_NET_GDACTDPA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SPIDER_NET_GDACTDPA@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_spider_net_read_reg
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
Lloh7:
	adrp	x8, _SPIDER_NET_GDACNEXTDA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SPIDER_NET_GDACNEXTDA@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_spider_net_read_reg
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	mov	w23, #0
	mov	w26, #0
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	mov	x22, x28
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w26, w26, #1
	add	w23, w23, #1
	ldr	x28, [x28]
	cmp	x28, x22
	b.eq	LBB0_12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x28, #16]
	ldp	x8, x9, [x20, #16]
	sub	x8, x28, x8
	lsr	x8, x8, #3
	mov	w10, #43691
	movk	w10, #43690, lsl #16
	mul	w25, w8, w10
	ldr	w27, [x21]
	cmp	x28, x9
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	x25, x27, [sp]
	mov	x0, x19
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28, #8]
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x27
	mov	x9, x25
	stp	x9, x8, [sp]
	mov	x0, x19
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	ldr	w8, [x28, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w24, w27
	b.eq	LBB0_1
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x27
	mov	x9, x25
	stp	x9, x8, [sp]
	mov	x0, x19
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x25
	str	x8, [sp]
	mov	x0, x19
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
	cmp	w24, w27
	b.eq	LBB0_1
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, #8]
	add	w9, w8, w25
	sub	w10, w9, w26
	sdiv	w11, w10, w8
	msub	w10, w11, w8, w10
	sub	w9, w9, #1
	sdiv	w11, w9, w8
	msub	w8, w11, w8, w9
	stp	x8, x24, [sp, #16]
	stp	x26, x10, [sp]
	mov	x0, x19
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_info
	mov	w26, #0
	mov	x24, x27
	b	LBB0_1
LBB0_12:
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	stp	x24, x23, [sp, #8]
	str	x26, [sp]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	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
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Total number of descrs=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Chain tail located at descr=%d, status=0x%x\n"

	.comm	_SPIDER_NET_GDACTDPA,4,2        ; @SPIDER_NET_GDACTDPA
	.comm	_SPIDER_NET_GDACNEXTDA,4,2      ; @SPIDER_NET_GDACNEXTDA
l_.str.2:                               ; @.str.2
	.asciz	"Chain head is at %d, head status=0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"HW curr desc (GDACTDPA) is at %d, status=0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"HW next desc (GDACNEXTDA) is at %d, status=0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"chain is cut at %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Have %d (from %d to %d) descrs with stat=0x%08x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Last %d descrs with stat=0x%08x for a total of %d descrs\n"

	.no_dead_strip	_show_rx_chain
.subsections_via_symbols
