	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_cqp_poll_registers
_i40iw_cqp_poll_registers:              ## @i40iw_cqp_poll_registers
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	jle	LBB0_10
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-56(%rbp), %r13
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_i40iw_get_cqp_reg_info
	cmpq	$0, -48(%rbp)
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, -56(%rbp)
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_I40IW_SLEEP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	decq	%rbx
	jne	LBB0_2
LBB0_10:
	movq	_I40IW_ERR_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	(%r14), %rax
	cmpq	$0, 16(%rax)
	movl	8(%rax), %edi
	jne	LBB0_4
## %bb.5:
	movq	_I40E_VFPE_CQPERRCODES1@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movl	8(%r14), %edi
	callq	_I40IW_RING_MOVE_TAIL
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_OP_COMPLETED_COMMANDS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	movq	_I40E_PFPE_CQPERRCODES@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	callq	_i40iw_rd32
	movq	_I40IW_ERR_CQP_COMPL_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_PFPE_CQPERRCODES,4,2      ## @I40E_PFPE_CQPERRCODES
	.comm	_I40E_VFPE_CQPERRCODES1,4,2     ## @I40E_VFPE_CQPERRCODES1
	.comm	_I40IW_ERR_CQP_COMPL_ERROR,4,2  ## @I40IW_ERR_CQP_COMPL_ERROR
	.comm	_OP_COMPLETED_COMMANDS,8,3      ## @OP_COMPLETED_COMMANDS
	.comm	_I40IW_SLEEP_COUNT,4,2          ## @I40IW_SLEEP_COUNT
	.comm	_I40IW_ERR_TIMEOUT,4,2          ## @I40IW_ERR_TIMEOUT
	.no_dead_strip	_i40iw_cqp_poll_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_cqp_poll_registers
_i40iw_cqp_poll_registers:              ; @i40iw_cqp_poll_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	cmp	x2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _I40IW_SLEEP_COUNT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _I40IW_SLEEP_COUNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x19
	bl	_i40iw_get_cqp_reg_info
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #24]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_udelay
	subs	x20, x20, #1
	b.ne	LBB0_2
LBB0_5:
Lloh2:
	adrp	x8, _I40IW_ERR_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40IW_ERR_TIMEOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
Lloh4:
	adrp	x10, _I40E_VFPE_CQPERRCODES1@GOTPAGE
Lloh5:
	ldr	x10, [x10, _I40E_VFPE_CQPERRCODES1@GOTPAGEOFF]
	ldr	w0, [x8, #8]
Lloh6:
	adrp	x8, _I40E_PFPE_CQPERRCODES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_PFPE_CQPERRCODES@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	bl	_i40iw_rd32
Lloh8:
	adrp	x8, _I40IW_ERR_CQP_COMPL_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40IW_ERR_CQP_COMPL_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_I40IW_RING_MOVE_TAIL
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _OP_COMPLETED_COMMANDS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OP_COMPLETED_COMMANDS@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_PFPE_CQPERRCODES,4,2      ; @I40E_PFPE_CQPERRCODES
	.comm	_I40E_VFPE_CQPERRCODES1,4,2     ; @I40E_VFPE_CQPERRCODES1
	.comm	_I40IW_ERR_CQP_COMPL_ERROR,4,2  ; @I40IW_ERR_CQP_COMPL_ERROR
	.comm	_OP_COMPLETED_COMMANDS,8,3      ; @OP_COMPLETED_COMMANDS
	.comm	_I40IW_SLEEP_COUNT,4,2          ; @I40IW_SLEEP_COUNT
	.comm	_I40IW_ERR_TIMEOUT,4,2          ; @I40IW_ERR_TIMEOUT
	.no_dead_strip	_i40iw_cqp_poll_registers
.subsections_via_symbols
