	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efa_com_wait_and_process_admin_cq_interrupts
_efa_com_wait_and_process_admin_cq_interrupts: ## @efa_com_wait_and_process_admin_cq_interrupts
	.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, %r14
	movq	%rdi, %r15
	leaq	16(%rdi), %rbx
	movl	28(%rsi), %edi
	callq	_usecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	(%r15), %rax
	movq	_EFA_CMD_SUBMITTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_efa_com_handle_admin_completion
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	24(%r14), %rdi
	callq	_atomic64_inc
	movq	(%r15), %rax
	movq	_EFA_CMD_COMPLETED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	20(%r14), %r12d
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	callq	_efa_com_cmd_str
	movl	12(%r15), %ecx
	movq	(%r15), %r8
	movl	16(%r14), %r10d
	movl	4(%r14), %r11d
	movl	12(%r14), %r13d
	subq	$8, %rsp
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movq	%r15, %r9
	pushq	%r11
	pushq	%r13
	pushq	%r10
	callq	_ibdev_err_ratelimited
	addq	$32, %rsp
	movq	_EFA_AQ_STATE_RUNNING_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movl	8(%r15), %edi
	callq	_efa_com_comp_status_to_errno
	movl	%eax, %ebx
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_efa_com_put_comp_ctx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_CMD_SUBMITTED,8,3          ## @EFA_CMD_SUBMITTED
	.comm	_EFA_CMD_COMPLETED,8,3          ## @EFA_CMD_COMPLETED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The device sent a completion but the driver didn't receive any MSI-X interrupt for admin cmd %s(%d) status %d (ctx: 0x%p, sq producer: %d, sq consumer: %d, cq consumer: %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"The device didn't send any completion for admin cmd %s(%d) status %d (ctx 0x%p, sq producer: %d, sq consumer: %d, cq consumer: %d)\n"

	.comm	_EFA_AQ_STATE_RUNNING_BIT,4,2   ## @EFA_AQ_STATE_RUNNING_BIT
	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_efa_com_wait_and_process_admin_cq_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efa_com_wait_and_process_admin_cq_interrupts
_efa_com_wait_and_process_admin_cq_interrupts: ; @efa_com_wait_and_process_admin_cq_interrupts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	add	x21, x0, #16
	ldr	w0, [x1, #28]
	bl	_usecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_wait_for_completion_timeout
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _EFA_CMD_SUBMITTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EFA_CMD_SUBMITTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_efa_com_handle_admin_completion
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	x0, x20, #24
	bl	_atomic64_inc
	ldr	x22, [x19]
Lloh3:
	adrp	x8, _EFA_CMD_COMPLETED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFA_CMD_COMPLETED@GOTPAGEOFF]
Lloh5:
	ldr	x23, [x8]
	ldr	w21, [x20, #20]
	ldr	w0, [x19, #12]
	bl	_efa_com_cmd_str
	mov	x2, x0
	ldr	w3, [x19, #12]
	ldr	x4, [x19]
	ldp	w7, w6, [x20, #12]
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str@PAGE
Lloh9:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x22, x23
	csel	x1, x10, x9, eq
	str	w8, [sp]
	mov	x0, x21
	mov	x5, x19
	bl	_ibdev_err_ratelimited
Lloh10:
	adrp	x8, _EFA_AQ_STATE_RUNNING_BIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFA_AQ_STATE_RUNNING_BIT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
Lloh13:
	adrp	x8, _ETIME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_efa_com_comp_status_to_errno
	mov	x21, x0
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_efa_com_put_comp_ctx
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_CMD_SUBMITTED,8,3          ; @EFA_CMD_SUBMITTED
	.comm	_EFA_CMD_COMPLETED,8,3          ; @EFA_CMD_COMPLETED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The device sent a completion but the driver didn't receive any MSI-X interrupt for admin cmd %s(%d) status %d (ctx: 0x%p, sq producer: %d, sq consumer: %d, cq consumer: %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"The device didn't send any completion for admin cmd %s(%d) status %d (ctx 0x%p, sq producer: %d, sq consumer: %d, cq consumer: %d)\n"

	.comm	_EFA_AQ_STATE_RUNNING_BIT,4,2   ; @EFA_AQ_STATE_RUNNING_BIT
	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_efa_com_wait_and_process_admin_cq_interrupts
.subsections_via_symbols
