	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_vf_idc_failed_state
_qlcnic_sriov_vf_idc_failed_state:      ## @qlcnic_sriov_vf_idc_failed_state
	.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, %r14
	movq	8(%rdi), %rdi
	movq	16(%r14), %rbx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	(%rbx), %rax
	movq	_QLC_83XX_IDC_DEV_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_qlcnic_sriov_vf_detach
LBB0_2:
	movq	_QLC_83XX_MODULE_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device is in failed state\n"

	.comm	_QLC_83XX_IDC_DEV_READY,8,3     ## @QLC_83XX_IDC_DEV_READY
	.comm	_QLC_83XX_MODULE_LOADED,4,2     ## @QLC_83XX_MODULE_LOADED
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_sriov_vf_idc_failed_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_vf_idc_failed_state
_qlcnic_sriov_vf_idc_failed_state:      ; @qlcnic_sriov_vf_idc_failed_state
	.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
	ldp	x0, x20, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _QLC_83XX_IDC_DEV_READY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QLC_83XX_IDC_DEV_READY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_sriov_vf_detach
LBB0_2:
Lloh5:
	adrp	x8, _QLC_83XX_MODULE_LOADED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLC_83XX_MODULE_LOADED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_clear_bit
Lloh8:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device is in failed state\n"

	.comm	_QLC_83XX_IDC_DEV_READY,8,3     ; @QLC_83XX_IDC_DEV_READY
	.comm	_QLC_83XX_MODULE_LOADED,4,2     ; @QLC_83XX_MODULE_LOADED
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_sriov_vf_idc_failed_state
.subsections_via_symbols
