	.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_polling
_efa_com_wait_and_process_admin_cq_polling: ## @efa_com_wait_and_process_admin_cq_polling
	.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, %r12
	movq	%rdi, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	20(%rsi), %edi
	callq	_usecs_to_jiffies
	movq	%rax, %r15
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_efa_com_handle_admin_completion
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r14), %rax
	movq	_EFA_CMD_SUBMITTED@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.1:
	addq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_time_is_before_jiffies
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_efa_com_handle_admin_completion
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_2
LBB0_5:
	movl	8(%r14), %edi
	callq	_efa_com_comp_status_to_errno
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	12(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ibdev_err_ratelimited
	leaq	8(%r12), %rdi
	callq	_atomic64_inc
	movq	_EFA_AQ_STATE_RUNNING_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %rsi
	callq	_clear_bit
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %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	_jiffies,8,3                    ## @jiffies
	.comm	_EFA_CMD_SUBMITTED,8,3          ## @EFA_CMD_SUBMITTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wait for completion (polling) timeout\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_polling
.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_polling
_efa_com_wait_and_process_admin_cq_polling: ; @efa_com_wait_and_process_admin_cq_polling
	.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
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldr	w0, [x1, #20]
	bl	_usecs_to_jiffies
	mov	x22, x0
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_efa_com_handle_admin_completion
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
Lloh3:
	adrp	x23, _EFA_CMD_SUBMITTED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EFA_CMD_SUBMITTED@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	add	x22, x22, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_time_is_before_jiffies
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20]
	bl	_msleep
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_efa_com_handle_admin_completion
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_efa_com_comp_status_to_errno
	mov	x21, x0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20, #12]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ibdev_err_ratelimited
	add	x0, x20, #8
	bl	_atomic64_inc
Lloh7:
	adrp	x8, _EFA_AQ_STATE_RUNNING_BIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFA_AQ_STATE_RUNNING_BIT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_clear_bit
Lloh10:
	adrp	x8, _ETIME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_efa_com_put_comp_ctx
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EFA_CMD_SUBMITTED,8,3          ; @EFA_CMD_SUBMITTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wait for completion (polling) timeout\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_polling
.subsections_via_symbols
