	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_cdesc_rx_pkt_get
_ena_com_cdesc_rx_pkt_get:              ## @ena_com_cdesc_rx_pkt_get
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	movq	_ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK@GOTPCREL(%rip), %r13
	movq	_ENA_ETH_IO_RX_CDESC_BASE_LAST_SHIFT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_ena_com_get_next_rx_cdesc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ena_com_cq_inc_head
	incl	%r12d
	movl	(%rbx), %edi
	callq	_READ_ONCE
	andl	(%r13), %eax
	movzbl	(%r14), %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%r15), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addl	4(%r15), %r12d
	movl	12(%r15), %eax
	decl	%eax
	andl	8(%r15), %eax
	movl	16(%r15), %esi
	movl	$0, 4(%r15)
	movl	%eax, (%r15)
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %ecx
	callq	_pr_debug
	jmp	LBB0_5
LBB0_4:
	addl	%r12d, 4(%r15)
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK,4,2 ## @ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_LAST_SHIFT,4,2 ## @ENA_ETH_IO_RX_CDESC_BASE_LAST_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ena q_id: %d packets were completed. first desc idx %u descs# %d\n"

	.no_dead_strip	_ena_com_cdesc_rx_pkt_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_cdesc_rx_pkt_get
_ena_com_cdesc_rx_pkt_get:              ; @ena_com_cdesc_rx_pkt_get
	.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, x1
	mov	x19, x0
	mov	w22, #0
Lloh0:
	adrp	x23, _ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ENA_ETH_IO_RX_CDESC_BASE_LAST_SHIFT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ENA_ETH_IO_RX_CDESC_BASE_LAST_SHIFT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ena_com_get_next_rx_cdesc
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ena_com_cq_inc_head
	add	w22, w22, #1
	ldr	w0, [x21]
	bl	_READ_ONCE
	ldr	w8, [x23]
	and	w8, w8, w0
	ldr	w9, [x24]
	asr	w8, w8, w9
	cbz	w8, LBB0_1
; %bb.3:
	ldr	w8, [x19]
	str	w8, [x20]
	ldp	w8, w9, [x19, #4]
	add	w21, w8, w22
	ldp	w8, w1, [x19, #12]
	sub	w8, w8, #1
	and	w8, w8, w9
	stp	w8, wzr, [x19]
	ldr	w2, [x20]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_pr_debug
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #4]
	add	w8, w8, w22
	str	w8, [x19, #4]
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK,4,2 ; @ENA_ETH_IO_RX_CDESC_BASE_LAST_MASK
	.comm	_ENA_ETH_IO_RX_CDESC_BASE_LAST_SHIFT,4,2 ; @ENA_ETH_IO_RX_CDESC_BASE_LAST_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ena q_id: %d packets were completed. first desc idx %u descs# %d\n"

	.no_dead_strip	_ena_com_cdesc_rx_pkt_get
.subsections_via_symbols
