	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_post_page
_cas_post_page:                         ## @cas_post_page
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r13
	movslq	(%rax,%r13,4), %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %esi
	callq	_cas_page_swap
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	24(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	shlq	$4, %r14
	movq	%rax, 8(%rcx,%r14)
	movq	_RX_INDEX_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_CAS_BASE
	movl	%eax, %ebx
	movq	_RX_INDEX_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_CAS_BASE
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movq	24(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %esi
	movl	%r13d, %edi
	callq	_RX_DESC_ENTRY
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	testb	$3, %al
	je	LBB0_1
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.3:
	movq	_N_RX_DESC_RINGS@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_7
## %bb.4:
	movq	_CAS_FLAG_REG_PLUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r15)
	je	LBB0_7
## %bb.5:
	movq	_REG_PLUS_RX_KICK1@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	_REG_RX_KICK@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rcx), %rsi
	addq	16(%r15), %rsi
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_INDEX_NUM,4,2               ## @RX_INDEX_NUM
	.comm	_RX_INDEX_RING,4,2              ## @RX_INDEX_RING
	.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_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_post_page
_cas_post_page:                         ; @cas_post_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	sbfiz	x22, x20, #2, #32
	ldrsw	x23, [x8, x22]
	bl	_cas_page_swap
	ldr	w0, [x0]
	bl	_cpu_to_le64
	ldr	x8, [x19, #24]
	sbfiz	x24, x20, #3, #32
	ldr	x8, [x8, x24]
	lsl	x25, x23, #4
	add	x8, x8, x25
	str	x0, [x8, #8]
Lloh0:
	adrp	x8, _RX_INDEX_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_INDEX_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_CAS_BASE
	mov	x21, x0
Lloh3:
	adrp	x8, _RX_INDEX_RING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_INDEX_RING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_CAS_BASE
	orr	w0, w0, w21
	bl	_cpu_to_le64
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24]
	str	x0, [x8, x25]
	add	w1, w23, #1
	mov	x0, x20
	bl	_RX_DESC_ENTRY
	ldr	x8, [x19]
	str	w0, [x8, x22]
	tst	w0, #0x3
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	cbz	w20, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _N_RX_DESC_RINGS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _N_RX_DESC_RINGS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_1
; %bb.4:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _CAS_FLAG_REG_PLUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAS_FLAG_REG_PLUS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:
Lloh12:
	adrp	x8, _REG_PLUS_RX_KICK1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_PLUS_RX_KICK1@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _REG_RX_KICK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_RX_KICK@GOTPAGEOFF]
LBB0_7:
	ldr	x9, [x19, #16]
	ldr	x8, [x8]
	add	x1, x8, x9
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_INDEX_NUM,4,2               ; @RX_INDEX_NUM
	.comm	_RX_INDEX_RING,4,2              ; @RX_INDEX_RING
	.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_page
.subsections_via_symbols
