	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_reset_work_fn
_fw_reset_work_fn:                      ## @fw_reset_work_fn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ishtp_dev@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ish_fw_reset_handler
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movl	4(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_1:
	movq	_TIMEOUT_FOR_HW_RDY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep_interruptible
	movq	(%rbx), %rdi
	movl	$1, (%rdi)
	addq	$8, %rdi
	callq	_wake_up_interruptible
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ishtp_reset_compl_handler      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ishtp_dev,8,3                  ## @ishtp_dev
	.comm	_TIMEOUT_FOR_HW_RDY_MS,4,2      ## @TIMEOUT_FOR_HW_RDY_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[ishtp-ish]: FW reset failed (%d)\n"

	.no_dead_strip	_fw_reset_work_fn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_reset_work_fn
_fw_reset_work_fn:                      ; @fw_reset_work_fn
	.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
Lloh0:
	adrp	x19, _ishtp_dev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ishtp_dev@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_ish_fw_reset_handler
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_2:
Lloh4:
	adrp	x8, _TIMEOUT_FOR_HW_RDY_MS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TIMEOUT_FOR_HW_RDY_MS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msleep_interruptible
	ldr	x0, [x19]
	mov	w8, #1
	str	w8, [x0], #8
	bl	_wake_up_interruptible
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ishtp_reset_compl_handler
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ishtp_dev,8,3                  ; @ishtp_dev
	.comm	_TIMEOUT_FOR_HW_RDY_MS,4,2      ; @TIMEOUT_FOR_HW_RDY_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[ishtp-ish]: FW reset failed (%d)\n"

	.no_dead_strip	_fw_reset_work_fn
.subsections_via_symbols
