	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_fcoe_stop
_qed_fcoe_stop:                         ## @qed_fcoe_stop
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_QED_FLAG_STORAGE_STARTED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	4(%rbx), %edi
	callq	_hash_empty
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_QED_AFFIN_HWFN
	movl	%eax, %edi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_QED_AFFIN_HWFN
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_qed_sp_fcoe_func_stop
	movl	%eax, %r15d
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_QED_AFFIN_HWFN
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_qed_ptt_release
	movl	%r15d, %eax
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_FLAG_STORAGE_STARTED,4,2   ## @QED_FLAG_STORAGE_STARTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fcoe already stopped\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't stop fcoe - not all connections were returned\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.no_dead_strip	_qed_fcoe_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_fcoe_stop
_qed_fcoe_stop:                         ; @qed_fcoe_stop
	.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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _QED_FLAG_STORAGE_STARTED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QED_FLAG_STORAGE_STARTED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_hash_empty
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_QED_AFFIN_HWFN
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_QED_AFFIN_HWFN
Lloh2:
	adrp	x8, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, #0
	bl	_qed_sp_fcoe_func_stop
	mov	x21, x0
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_QED_AFFIN_HWFN
	mov	x1, x20
	bl	_qed_ptt_release
	mov	x0, x21
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_FLAG_STORAGE_STARTED,4,2   ; @QED_FLAG_STORAGE_STARTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fcoe already stopped\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't stop fcoe - not all connections were returned\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.no_dead_strip	_qed_fcoe_stop
.subsections_via_symbols
