	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_handle_admin_completion
_ena_com_handle_admin_completion:       ## @ena_com_handle_admin_completion
	.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	%rdi, %r14
	movslq	16(%rdi), %rax
	movslq	(%rdi), %r12
	decq	%r12
	andq	%rax, %r12
	movl	20(%rdi), %r15d
	movq	24(%rdi), %rbx
	movl	(%rbx,%r12,4), %edi
	callq	_READ_ONCE
	movq	_ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	xorl	%r13d, %r13d
	cmpl	%r15d, %eax
	jne	LBB0_5
## %bb.1:
	leaq	(%rbx,%r12,4), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rax
	leaq	(%rax,%r12,4), %rbx
	movl	(%rax,%r12,4), %edi
	callq	_READ_ONCE
	movq	_ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	incl	%r13d
	cmpl	%r15d, %eax
	jne	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ena_com_handle_single_admin_completion
	incq	%r12
	movslq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
	callq	_unlikely
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	sete	%dl
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	%dl, %cl
	xorl	%r12d, %r12d
	movl	%ecx, %r15d
	jmp	LBB0_4
LBB0_5:
	addl	%r13d, 16(%r14)
	movl	%r15d, 20(%r14)
	addl	%r13d, 8(%r14)
	addl	%r13d, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK,4,2 ## @ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK
	.no_dead_strip	_ena_com_handle_admin_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_handle_admin_completion
_ena_com_handle_admin_completion:       ; @ena_com_handle_admin_completion
	.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	x19, x0
	ldrsw	x8, [x0]
	sub	x8, x8, #1
	ldp	w9, w21, [x0, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	and	x22, x8, x9
	ldr	x8, [x0, #24]
	add	x20, x8, x22, lsl #2
	ldr	w0, [x20]
	bl	_READ_ONCE
Lloh0:
	adrp	x24, _ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w8, w8, w0
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.1:
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_dma_rmb
	mov	x0, x19
	mov	x1, x20
	bl	_ena_com_handle_single_admin_completion
	add	x8, x22, #1
	ldrsw	x9, [x19]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cmp	w21, #0
	cset	w8, eq
	cmp	x0, #0
	csinc	x22, xzr, x22, ne
	csel	w21, w21, w8, eq
	ldr	x8, [x19, #24]
	add	x20, x8, x22, lsl #2
	ldr	w0, [x20]
	bl	_READ_ONCE
	ldr	w8, [x24]
	and	w8, w8, w0
	add	w23, w23, #1
	cmp	w8, w21
	b.eq	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w23, #0
LBB0_4:
	ldr	w8, [x19, #16]
	add	w8, w8, w23
	stp	w8, w21, [x19, #16]
	ldur	d0, [x19, #4]
	dup.2s	v1, w23
	add.2s	v0, v0, v1
	stur	d0, [x19, #4]
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK,4,2 ; @ENA_ADMIN_ACQ_COMMON_DESC_PHASE_MASK
	.no_dead_strip	_ena_com_handle_admin_completion
.subsections_via_symbols
