	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_get_next_rx_cdesc
_ena_com_get_next_rx_cdesc:             ## @ena_com_get_next_rx_cdesc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %rax
	movslq	4(%rdi), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movl	8(%rdi), %r15d
	movq	16(%rdi), %r14
	movslq	12(%rdi), %rbx
	imulq	%rcx, %rbx
	movl	(%r14,%rbx), %edi
	callq	_READ_ONCE
	movq	_ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ENA_ETH_IO_RX_CDESC_BASE_PHASE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	%r15d, %eax
	jne	LBB0_1
## %bb.2:
	addq	%rbx, %r14
	xorl	%eax, %eax
	callq	_dma_rmb
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK,4,2 ## @ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_PHASE_SHIFT,4,2 ## @ENA_ETH_IO_RX_CDESC_BASE_PHASE_SHIFT
	.no_dead_strip	_ena_com_get_next_rx_cdesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_get_next_rx_cdesc
_ena_com_get_next_rx_cdesc:             ; @ena_com_get_next_rx_cdesc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldpsw	x8, x9, [x0]
	sub	x9, x9, #1
	and	x8, x9, x8
	ldr	x9, [x0, #16]
	ldp	w20, w10, [x0, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	madd	x19, x10, x8, x9
	ldr	w0, [x19]
	bl	_READ_ONCE
Lloh0:
	adrp	x8, _ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _ENA_ETH_IO_RX_CDESC_BASE_PHASE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENA_ETH_IO_RX_CDESC_BASE_PHASE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	bl	_dma_rmb
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK,4,2 ; @ENA_ETH_IO_RX_CDESC_BASE_PHASE_MASK
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_PHASE_SHIFT,4,2 ; @ENA_ETH_IO_RX_CDESC_BASE_PHASE_SHIFT
	.no_dead_strip	_ena_com_get_next_rx_cdesc
.subsections_via_symbols
