	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxge_hw_ring_rxd_next_completed ## -- Begin function vxge_hw_ring_rxd_next_completed
	.p2align	4, 0x90
_vxge_hw_ring_rxd_next_completed:       ## @vxge_hw_ring_rxd_next_completed
	.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
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	12(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_vxge_hw_channel_dtr_try_complete
	movq	(%r12), %r14
	movq	_VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS@GOTPCREL(%rip), %rdi
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	movl	(%r14), %edi
	movq	_VXGE_HW_RING_RXD_LIST_OWN_ADAPTER@GOTPCREL(%rip), %rax
	movq	%r15, %r13
	movl	(%rax), %r15d
	andl	%edi, %r15d
	callq	_VXGE_HW_RING_RXD_T_CODE_GET
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r13)
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	_VXGE_HW_RING_T_CODE_FRM_DROP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.5:
	movq	$0, (%r12)
	movq	_VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS@GOTPCREL(%rip), %rdi
	jmp	LBB0_6
LBB0_3:
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
	callq	_vxge_assert
	incl	8(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_vxge_hw_channel_dtr_complete
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_VXGE_HW_RING_RXD_T_CODE_UNUSED@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_vxge_assert
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	leaq	1(%rdx), %rcx
	movq	%rcx, (%rax)
	movq	_VXGE_HW_OK@GOTPCREL(%rip), %rdi
	cmpq	%rdx, %rsi
	jg	LBB0_6
## %bb.4:
	movq	%rcx, 8(%rax)
LBB0_6:
	movl	(%rdi), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VXGE_HW_OK,4,2                 ## @VXGE_HW_OK
	.comm	_VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS,4,2 ## @VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS
	.comm	_VXGE_HW_RING_RXD_LIST_OWN_ADAPTER,4,2 ## @VXGE_HW_RING_RXD_LIST_OWN_ADAPTER
	.comm	_VXGE_HW_RING_T_CODE_FRM_DROP,8,3 ## @VXGE_HW_RING_T_CODE_FRM_DROP
	.comm	_VXGE_HW_RING_RXD_T_CODE_UNUSED,8,3 ## @VXGE_HW_RING_RXD_T_CODE_UNUSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vxge_hw_ring_rxd_next_completed ; -- Begin function vxge_hw_ring_rxd_next_completed
	.p2align	2
_vxge_hw_ring_rxd_next_completed:       ; @vxge_hw_ring_rxd_next_completed
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x21, x0, #12
	mov	x0, x21
	bl	_vxge_hw_channel_dtr_try_complete
	ldr	x23, [x22]
	cbz	x23, LBB0_6
; %bb.1:
	ldr	w0, [x23]
Lloh0:
	adrp	x8, _VXGE_HW_RING_RXD_LIST_OWN_ADAPTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VXGE_HW_RING_RXD_LIST_OWN_ADAPTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w24, w8, w0
	bl	_VXGE_HW_RING_RXD_T_CODE_GET
	str	x0, [x20]
Lloh3:
	adrp	x8, _VXGE_HW_RING_T_CODE_FRM_DROP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VXGE_HW_RING_T_CODE_FRM_DROP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w24, #0
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x23, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_vxge_assert
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_vxge_hw_channel_dtr_complete
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _VXGE_HW_RING_RXD_T_CODE_UNUSED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VXGE_HW_RING_RXD_T_CODE_UNUSED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_vxge_assert
	ldr	x8, [x19]
	ldp	x10, x11, [x8]
	add	x9, x10, #1
	str	x9, [x8]
	cmp	x11, x10
	b.gt	LBB0_4
; %bb.3:
	str	x9, [x8, #8]
LBB0_4:
Lloh9:
	adrp	x8, _VXGE_HW_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VXGE_HW_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	str	xzr, [x22]
LBB0_6:
Lloh11:
	adrp	x8, _VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VXGE_HW_OK,4,2                 ; @VXGE_HW_OK
	.comm	_VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS,4,2 ; @VXGE_HW_INF_NO_MORE_COMPLETED_DESCRIPTORS
	.comm	_VXGE_HW_RING_RXD_LIST_OWN_ADAPTER,4,2 ; @VXGE_HW_RING_RXD_LIST_OWN_ADAPTER
	.comm	_VXGE_HW_RING_T_CODE_FRM_DROP,8,3 ; @VXGE_HW_RING_T_CODE_FRM_DROP
	.comm	_VXGE_HW_RING_RXD_T_CODE_UNUSED,8,3 ; @VXGE_HW_RING_RXD_T_CODE_UNUSED
.subsections_via_symbols
