	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_handle_single_admin_completion
_ena_com_handle_single_admin_completion: ## @ena_com_handle_single_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ENA_ADMIN_ACQ_COMMON_DESC_COMMAND_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r15), %esi
	xorl	%edx, %edx
	callq	_get_comp_ctxt
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	$0, (%r14)
	jmp	LBB0_5
LBB0_2:
	movq	_ENA_CMD_COMPLETED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edx
	movq	%r15, %rsi
	callq	_memcpy
LBB0_4:
	cmpl	$0, 4(%r14)
	je	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ADMIN_ACQ_COMMON_DESC_COMMAND_ID_MASK,4,2 ## @ENA_ADMIN_ACQ_COMMON_DESC_COMMAND_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"comp_ctx is NULL. Changing the admin queue running state\n"

	.comm	_ENA_CMD_COMPLETED,4,2          ## @ENA_CMD_COMPLETED
	.no_dead_strip	_ena_com_handle_single_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_single_admin_completion
_ena_com_handle_single_admin_completion: ; @ena_com_handle_single_admin_completion
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ENA_ADMIN_ACQ_COMMON_DESC_COMMAND_ID_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENA_ADMIN_ACQ_COMMON_DESC_COMMAND_ID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	w2, #0
	bl	_get_comp_ctxt
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	str	wzr, [x19]
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _ENA_CMD_COMPLETED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENA_CMD_COMPLETED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	stp	w9, w8, [x21, #16]
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w2, [x21, #4]
	mov	x1, x20
	bl	_memcpy
LBB0_4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ADMIN_ACQ_COMMON_DESC_COMMAND_ID_MASK,4,2 ; @ENA_ADMIN_ACQ_COMMON_DESC_COMMAND_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"comp_ctx is NULL. Changing the admin queue running state\n"

	.comm	_ENA_CMD_COMPLETED,4,2          ; @ENA_CMD_COMPLETED
	.no_dead_strip	_ena_com_handle_single_admin_completion
.subsections_via_symbols
