	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_sc_cqp_destroy
_i40iw_sc_cqp_destroy:                  ## @i40iw_sc_cqp_destroy
	.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
	movq	8(%rdi), %rax
	cmpq	$0, 8(%rax)
	movl	(%rax), %edi
	movq	_I40E_PFPE_CCQPHIGH@GOTPCREL(%rip), %rax
	cmoveq	_I40E_VFPE_CCQPHIGH1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I40E_PFPE_CCQPLOW@GOTPCREL(%rip), %rbx
	cmoveq	_I40E_VFPE_CCQPLOW1@GOTPCREL(%rip), %rbx
	movq	_I40E_PFPE_CCQPSTATUS@GOTPCREL(%rip), %r15
	cmoveq	_I40E_VFPE_CCQPSTATUS1@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	callq	_i40iw_wr32
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_i40iw_wr32
	movl	(%r15), %r15d
	movq	$-1, %rbx
	movq	_I40IW_DONE_COUNT@GOTPCREL(%rip), %r12
	movq	_I40IW_SLEEP_COUNT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rbx
	cmpq	%rbx, (%r12)
	jl	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	callq	_udelay
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_i40iw_rd32
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_I40IW_ERR_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_i40iw_free_dma_mem
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_PFPE_CCQPHIGH,4,2         ## @I40E_PFPE_CCQPHIGH
	.comm	_I40E_PFPE_CCQPLOW,4,2          ## @I40E_PFPE_CCQPLOW
	.comm	_I40E_PFPE_CCQPSTATUS,4,2       ## @I40E_PFPE_CCQPSTATUS
	.comm	_I40E_VFPE_CCQPHIGH1,4,2        ## @I40E_VFPE_CCQPHIGH1
	.comm	_I40E_VFPE_CCQPLOW1,4,2         ## @I40E_VFPE_CCQPLOW1
	.comm	_I40E_VFPE_CCQPSTATUS1,4,2      ## @I40E_VFPE_CCQPSTATUS1
	.comm	_I40IW_DONE_COUNT,8,3           ## @I40IW_DONE_COUNT
	.comm	_I40IW_ERR_TIMEOUT,4,2          ## @I40IW_ERR_TIMEOUT
	.comm	_I40IW_SLEEP_COUNT,4,2          ## @I40IW_SLEEP_COUNT
	.no_dead_strip	_i40iw_sc_cqp_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_sc_cqp_destroy
_i40iw_sc_cqp_destroy:                  ; @i40iw_sc_cqp_destroy
	.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
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _I40E_VFPE_CCQPHIGH1@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I40E_VFPE_CCQPHIGH1@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _I40E_PFPE_CCQPHIGH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I40E_PFPE_CCQPHIGH@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _I40E_VFPE_CCQPLOW1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I40E_VFPE_CCQPLOW1@GOTPAGEOFF]
Lloh6:
	adrp	x9, _I40E_PFPE_CCQPLOW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_PFPE_CCQPLOW@GOTPAGEOFF]
	csel	x20, x8, x9, eq
Lloh8:
	adrp	x8, _I40E_VFPE_CCQPSTATUS1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40E_VFPE_CCQPSTATUS1@GOTPAGEOFF]
Lloh10:
	adrp	x9, _I40E_PFPE_CCQPSTATUS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I40E_PFPE_CCQPSTATUS@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	mov	w2, #0
	bl	_i40iw_wr32
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x20]
	mov	w2, #0
	bl	_i40iw_wr32
	ldr	w20, [x21]
	mov	x21, #-1
Lloh12:
	adrp	x22, _I40IW_DONE_COUNT@GOTPAGE
Lloh13:
	ldr	x22, [x22, _I40IW_DONE_COUNT@GOTPAGEOFF]
Lloh14:
	adrp	x23, _I40IW_SLEEP_COUNT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _I40IW_SLEEP_COUNT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x21, x21, #1
	cmp	x8, x21
	b.lt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23]
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_i40iw_rd32
	cbnz	w0, LBB0_1
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _I40IW_ERR_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I40IW_ERR_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_i40iw_free_dma_mem
	mov	x0, x20
	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	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_PFPE_CCQPHIGH,4,2         ; @I40E_PFPE_CCQPHIGH
	.comm	_I40E_PFPE_CCQPLOW,4,2          ; @I40E_PFPE_CCQPLOW
	.comm	_I40E_PFPE_CCQPSTATUS,4,2       ; @I40E_PFPE_CCQPSTATUS
	.comm	_I40E_VFPE_CCQPHIGH1,4,2        ; @I40E_VFPE_CCQPHIGH1
	.comm	_I40E_VFPE_CCQPLOW1,4,2         ; @I40E_VFPE_CCQPLOW1
	.comm	_I40E_VFPE_CCQPSTATUS1,4,2      ; @I40E_VFPE_CCQPSTATUS1
	.comm	_I40IW_DONE_COUNT,8,3           ; @I40IW_DONE_COUNT
	.comm	_I40IW_ERR_TIMEOUT,4,2          ; @I40IW_ERR_TIMEOUT
	.comm	_I40IW_SLEEP_COUNT,4,2          ; @I40IW_SLEEP_COUNT
	.no_dead_strip	_i40iw_sc_cqp_destroy
.subsections_via_symbols
