	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iscsi_stop
_qed_iscsi_stop:                        ## @qed_iscsi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_QED_FLAG_STORAGE_STARTED@GOTPCREL(%rip), %r14
	movl	(%r14), %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
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_qed_sp_iscsi_func_stop
	movl	(%r14), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	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	"iscsi already stopped\n"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.no_dead_strip	_qed_iscsi_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iscsi_stop
_qed_iscsi_stop:                        ; @qed_iscsi_stop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _QED_FLAG_STORAGE_STARTED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _QED_FLAG_STORAGE_STARTED@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_hash_empty
	cbz	w0, LBB0_4
; %bb.2:
	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	w1, [x8]
	mov	x2, #0
	bl	_qed_sp_iscsi_func_stop
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
	mov	w0, #0
	b	LBB0_5
LBB0_4:
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]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_FLAG_STORAGE_STARTED,4,2   ; @QED_FLAG_STORAGE_STARTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iscsi already stopped\n"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.no_dead_strip	_qed_iscsi_stop
.subsections_via_symbols
