	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_idc_ready_state
_qlcnic_83xx_idc_ready_state:           ## @qlcnic_83xx_idc_ready_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	callq	*32(%r14)
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_qlcnic_check_temp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	movq	_QLCNIC_TEMP_PANIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_idc_check_fan_failure
	movq	(%r15), %rax
	movq	16(%r15), %rdi
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %r14
	movq	%r14, %rsi
	callq	_clear_bit
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_qlcnic_83xx_idc_detach_driver
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_idc_enter_failed_state
	jmp	LBB0_1
LBB0_5:
	movq	(%r15), %rdi
	movq	_QLC_83XX_IDC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCRDX
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_qlcnic_83xx_check_heartbeat
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	_QLCNIC_FW_HANG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r15)
	movq	_QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_1
## %bb.7:
	movq	_QLC_83XX_MBX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %r14
	movq	%r14, %rsi
	callq	_clear_bit
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_idc_enter_need_reset_state
	jmp	LBB0_1
LBB0_8:
	movq	_QLC_83XX_IDC_GRACEFULL_RESET@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 16(%r14)
	je	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_idc_enter_need_reset_state
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_11:
	cmpq	$0, 40(%r14)
	je	LBB0_14
## %bb.12:
	movq	_QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
LBB0_14:
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_15
## %bb.16:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_idc_enter_need_quiesce
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_qlcnic_83xx_idc_update_audit_reg
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	(%r15), %rax
	movq	$0, 40(%rax)
	movq	%r15, %rdi
	callq	_qlcnic_83xx_idc_tx_soft_reset
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_TEMP_PANIC,8,3          ## @QLCNIC_TEMP_PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: device temperature %d above limits\n"

	.comm	_QLC_83XX_MBX_READY,4,2         ## @QLC_83XX_MBX_READY
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.comm	_QLC_83XX_IDC_CTRL,4,2          ## @QLC_83XX_IDC_CTRL
	.comm	_QLCNIC_FW_HANG,4,2             ## @QLCNIC_FW_HANG
	.comm	_QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY,4,2 ## @QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY
	.comm	_QLC_83XX_IDC_GRACEFULL_RESET,4,2 ## @QLC_83XX_IDC_GRACEFULL_RESET
	.no_dead_strip	_qlcnic_83xx_idc_ready_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_idc_ready_state
_qlcnic_83xx_idc_ready_state:           ; @qlcnic_83xx_idc_ready_state
	.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	x21, [x0]
	ldr	x8, [x21, #32]
	blr	x8
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	mov	x0, x19
	bl	_qlcnic_check_temp
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _QLCNIC_TEMP_PANIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_TEMP_PANIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_qlcnic_83xx_idc_check_fan_failure
	ldr	x0, [x19, #16]
	ldr	x8, [x19]
	ldr	x2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x21, #24
	bl	_clear_bit
Lloh11:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	mov	x0, x19
	bl	_qlcnic_83xx_idc_detach_driver
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_idc_enter_failed_state
	b	LBB0_1
LBB0_6:
	ldr	x0, [x19]
Lloh14:
	adrp	x8, _QLC_83XX_IDC_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLC_83XX_IDC_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_QLCRDX
	mov	x20, x0
	mov	x0, x19
	bl	_qlcnic_83xx_check_heartbeat
	cbz	w0, LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _QLCNIC_FW_HANG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QLCNIC_FW_HANG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
Lloh20:
	adrp	x8, _QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_1
; %bb.8:
Lloh23:
	adrp	x8, _QLC_83XX_MBX_READY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _QLC_83XX_MBX_READY@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, x21, #24
	bl	_clear_bit
Lloh26:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh27:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_idc_enter_need_reset_state
	b	LBB0_1
LBB0_9:
Lloh29:
	adrp	x8, _QLC_83XX_IDC_GRACEFULL_RESET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _QLC_83XX_IDC_GRACEFULL_RESET@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_13
LBB0_11:
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_idc_enter_need_reset_state
LBB0_12:
	mov	w0, #0
	b	LBB0_2
LBB0_13:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_15
; %bb.14:
Lloh32:
	adrp	x8, _QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY@GOTPAGE
Lloh33:
	ldr	x8, [x8, _QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_17
LBB0_15:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.16:
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_idc_enter_need_quiesce
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_qlcnic_83xx_idc_update_audit_reg
	b	LBB0_12
LBB0_17:
	ldr	x8, [x19]
	str	xzr, [x8, #40]
	mov	x0, x19
	bl	_qlcnic_83xx_idc_tx_soft_reset
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_TEMP_PANIC,8,3          ; @QLCNIC_TEMP_PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: device temperature %d above limits\n"

	.comm	_QLC_83XX_MBX_READY,4,2         ; @QLC_83XX_MBX_READY
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.comm	_QLC_83XX_IDC_CTRL,4,2          ; @QLC_83XX_IDC_CTRL
	.comm	_QLCNIC_FW_HANG,4,2             ; @QLCNIC_FW_HANG
	.comm	_QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY,4,2 ; @QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY
	.comm	_QLC_83XX_IDC_GRACEFULL_RESET,4,2 ; @QLC_83XX_IDC_GRACEFULL_RESET
	.no_dead_strip	_qlcnic_83xx_idc_ready_state
.subsections_via_symbols
