	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_post_rxds_ringN
_cas_post_rxds_ringN:                   ## @cas_post_rxds_ringN
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	56(%rdi), %rax
	movslq	%esi, %r14
	movq	(%rax,%r14,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	(%rax,%r14,4), %ebx
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	52(%rdi), %ecx
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %r8
	movl	%r14d, %r9d
	callq	_netif_printk
	leal	(%r15,%rbx), %esi
	addl	$-4, %esi
	movl	%r14d, %edi
	callq	_RX_DESC_ENTRY
	cmpl	%eax, %ebx
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movl	%ebx, (%rax,%r14,4)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	andl	$3, %r13d
	leaq	40(%r12), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	44(%r12), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rcx
	movl	$-1, %r15d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	cmpl	$4, %r13d
	movl	$0, %eax
	cmovel	%eax, %r13d
	cmovel	%ebx, %r15d
	incl	%ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_RX_DESC_ENTRY
	movl	%eax, %ebx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	decl	%ecx
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %ebx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rax
	movl	8(%rax), %edi
	callq	_page_count
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_cas_page_dequeue
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	addq	$4, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_list_add
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movl	(%r12), %edi
	callq	_cpu_to_le64
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	32(%rsi), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax,%r14,8)
	movq	%rsi, %r12
	jmp	LBB0_9
LBB0_10:
	movq	(%r12), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	js	LBB0_17
## %bb.11:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.13:
	movq	_N_RX_DESC_RINGS@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_17
## %bb.14:
	movq	_CAS_FLAG_REG_PLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_17
## %bb.15:
	movq	_REG_PLUS_RX_KICK1@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %r14
	callq	_CAS_FLAG_RXD_POST
	orl	%eax, 8(%r12)
	leaq	48(%r12), %r15
	movq	%r15, %rdi
	callq	_timer_pending
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_CAS_LINK_FAST_TIMEOUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_mod_timer
LBB0_7:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rax,%rcx,4)
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmovel	%edx, %esi
	movq	16(%r14), %rax
	movl	%esi, (%rax,%rcx,4)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	movq	_REG_RX_KICK@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	movl	%r15d, %edi
	callq	_writel
LBB0_17:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intr,4,2                       ## @intr
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rxd[%d] interrupt, done: %d\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CAS_LINK_FAST_TIMEOUT,8,3      ## @CAS_LINK_FAST_TIMEOUT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_REG_RX_KICK,8,3                ## @REG_RX_KICK
	.comm	_N_RX_DESC_RINGS,4,2            ## @N_RX_DESC_RINGS
	.comm	_CAS_FLAG_REG_PLUS,4,2          ## @CAS_FLAG_REG_PLUS
	.comm	_REG_PLUS_RX_KICK1,8,3          ## @REG_PLUS_RX_KICK1
	.no_dead_strip	_cas_post_rxds_ringN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_post_rxds_ringN
_cas_post_rxds_ringN:                   ; @cas_post_rxds_ringN
	.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	x28, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x8, [x0, #56]
	ldr	x27, [x8, w1, sxtw #3]
	ldr	x8, [x0]
	ldr	w21, [x8, w1, sxtw #2]
Lloh0:
	adrp	x8, _intr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
	sxtw	x23, w20
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x0, #52]
Lloh6:
	adrp	x4, l_.str@PAGE
Lloh7:
	add	x4, x4, l_.str@PAGEOFF
	mov	x5, x20
	mov	x6, x21
	bl	_netif_printk
	add	w8, w28, w21
	sub	w1, w8, #4
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	mov	x0, x20
	bl	_RX_DESC_ENTRY
	cmp	w21, w0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	x8, [x24]
	str	w21, [x8, x23, lsl #2]
	b	LBB0_18
LBB0_2:
	mov	x25, x0
	str	x23, [sp, #32]                  ; 8-byte Folded Spill
	and	w26, w21, #0x3
	add	x9, x24, #40
	add	x8, x24, #44
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	mov	w23, #-1
	str	w28, [sp, #4]                   ; 4-byte Folded Spill
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w26, #1
	cmp	w8, #4
	csel	w23, w21, w23, eq
	csinc	w26, wzr, w26, eq
	add	w1, w21, #1
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_RX_DESC_ENTRY
	mov	x21, x0
	sub	w28, w28, #1
	cmp	w0, w25
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27, w21, uxtw #3]
	ldr	w0, [x8, #8]
	bl	_page_count
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x27
	mov	x0, x24
	bl	_cas_page_dequeue
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	mov	w19, w21
	mov	x0, x22
	bl	_spin_lock
	lsl	x25, x19, #3
	ldr	x8, [x20, x25]
	add	x0, x8, #4
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_list_add
	mov	x0, x22
	bl	_spin_unlock
	ldr	w0, [x27]
	bl	_cpu_to_le64
	ldr	x8, [x24, #32]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x9, lsl #3]
	str	w0, [x8, x19, lsl #2]
	str	x27, [x20, x25]
	mov	x27, x20
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	b	LBB0_3
LBB0_7:
	ldr	x8, [x24]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	w25, [x8, x9, lsl #2]
	tbnz	w23, #31, LBB0_17
; %bb.8:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cbz	w8, LBB0_15
; %bb.9:
Lloh8:
	adrp	x8, _N_RX_DESC_RINGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _N_RX_DESC_RINGS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.10:
	ldr	w8, [x24, #8]
Lloh11:
	adrp	x9, _CAS_FLAG_REG_PLUS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CAS_FLAG_REG_PLUS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.11:
	ldr	x8, [x24, #24]
Lloh14:
	adrp	x9, _REG_PLUS_RX_KICK1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _REG_PLUS_RX_KICK1@GOTPAGEOFF]
	b	LBB0_16
LBB0_12:
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_CAS_FLAG_RXD_POST
	ldr	w8, [x24, #8]
	orr	w8, w8, w0
	str	w8, [x24, #8]
	add	x22, x24, #48
	mov	x0, x22
	bl	_timer_pending
	cbnz	w0, LBB0_14
; %bb.13:
Lloh16:
	adrp	x8, _jiffies@GOTPAGE
Lloh17:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _CAS_LINK_FAST_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CAS_LINK_FAST_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_mod_timer
LBB0_14:
	ldr	x8, [x24]
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	lsl	x9, x9, #2
	str	w21, [x8, x9]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w8, #0
	csel	w8, wzr, w28, eq
	ldr	x10, [x24, #16]
	str	w8, [x10, x9]
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_15:
	ldr	x8, [x24, #24]
Lloh25:
	adrp	x9, _REG_RX_KICK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _REG_RX_KICK@GOTPAGEOFF]
LBB0_16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel
LBB0_17:
	mov	w0, #0
LBB0_18:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_intr,4,2                       ; @intr
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rxd[%d] interrupt, done: %d\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CAS_LINK_FAST_TIMEOUT,8,3      ; @CAS_LINK_FAST_TIMEOUT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_REG_RX_KICK,8,3                ; @REG_RX_KICK
	.comm	_N_RX_DESC_RINGS,4,2            ; @N_RX_DESC_RINGS
	.comm	_CAS_FLAG_REG_PLUS,4,2          ; @CAS_FLAG_REG_PLUS
	.comm	_REG_PLUS_RX_KICK1,8,3          ; @REG_PLUS_RX_KICK1
	.no_dead_strip	_cas_post_rxds_ringN
.subsections_via_symbols
