	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil6210_irq_misc_thread
_wil6210_irq_misc_thread:               ## @wil6210_irq_misc_thread
	.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	%rsi, %rbx
	movl	(%rsi), %r14d
	movl	%r14d, %edi
	callq	_trace_wil6210_irq_misc_thread
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_irq
	movq	_ISR_MISC_FW_ERROR@GOTPCREL(%rip), %r15
	testl	%r14d, (%r15)
	je	LBB0_4
## %bb.1:
	movq	_fw_recovery_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_wil_fw_core_dump
	movq	%rbx, %rdi
	callq	_wil_notify_fw_error
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %r14d
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_wil_err
	movl	24(%rbx), %edi
	movq	_WIL_PLATFORM_EVT_FW_CRASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*32(%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_wil_fw_error_recovery
LBB0_4:
	movq	_ISR_MISC_MBOX_EVT@GOTPCREL(%rip), %r15
	testl	%r14d, (%r15)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_irq
	movq	%rbx, %rdi
	callq	_wmi_recv_cmd
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, %r14d
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wil_dbg_irq
LBB0_8:
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_wil6210_unmask_irq_misc
	cmpl	$3, 4(%rbx)
	jne	LBB0_11
## %bb.9:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_irq
	movl	$1, 8(%rbx)
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
LBB0_11:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Thread ISR MISC 0x%08x\n"

	.comm	_ISR_MISC_FW_ERROR,4,2          ## @ISR_MISC_FW_ERROR
	.comm	_fw_recovery_pending,4,2        ## @fw_recovery_pending
L_.str.1:                               ## @.str.1
	.asciz	"notify platform driver about FW crash"

	.comm	_WIL_PLATFORM_EVT_FW_CRASH,4,2  ## @WIL_PLATFORM_EVT_FW_CRASH
	.comm	_ISR_MISC_MBOX_EVT,4,2          ## @ISR_MISC_MBOX_EVT
L_.str.2:                               ## @.str.2
	.asciz	"MBOX event\n"

L_.str.3:                               ## @.str.3
	.asciz	"un-handled MISC ISR bits 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"set suspend_resp_comp to true\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_wil6210_irq_misc_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil6210_irq_misc_thread
_wil6210_irq_misc_thread:               ; @wil6210_irq_misc_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	ldr	w20, [x1]
	mov	x0, x20
	bl	_trace_wil6210_irq_misc_thread
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_irq
Lloh2:
	adrp	x21, _ISR_MISC_FW_ERROR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ISR_MISC_FW_ERROR@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _fw_recovery_pending@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fw_recovery_pending@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	x0, x19
	bl	_wil_fw_core_dump
	mov	x0, x19
	bl	_wil_notify_fw_error
	ldr	w8, [x21]
	bic	w20, w20, w8
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
; %bb.2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wil_err
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #24]
Lloh9:
	adrp	x9, _WIL_PLATFORM_EVT_FW_CRASH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WIL_PLATFORM_EVT_FW_CRASH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	blr	x8
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_wil_fw_error_recovery
LBB0_4:
Lloh12:
	adrp	x21, _ISR_MISC_MBOX_EVT@GOTPAGE
Lloh13:
	ldr	x21, [x21, _ISR_MISC_MBOX_EVT@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_irq
	mov	x0, x19
	bl	_wmi_recv_cmd
	ldr	w8, [x21]
	bic	w20, w20, w8
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_irq
LBB0_8:
	str	wzr, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_wil6210_unmask_irq_misc
	ldr	w8, [x19, #4]
	cmp	w8, #3
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.10:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_wil_dbg_irq
	mov	w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #12
	bl	_wake_up_interruptible
LBB0_11:
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Thread ISR MISC 0x%08x\n"

	.comm	_ISR_MISC_FW_ERROR,4,2          ; @ISR_MISC_FW_ERROR
	.comm	_fw_recovery_pending,4,2        ; @fw_recovery_pending
l_.str.1:                               ; @.str.1
	.asciz	"notify platform driver about FW crash"

	.comm	_WIL_PLATFORM_EVT_FW_CRASH,4,2  ; @WIL_PLATFORM_EVT_FW_CRASH
	.comm	_ISR_MISC_MBOX_EVT,4,2          ; @ISR_MISC_MBOX_EVT
l_.str.2:                               ; @.str.2
	.asciz	"MBOX event\n"

l_.str.3:                               ; @.str.3
	.asciz	"un-handled MISC ISR bits 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"set suspend_resp_comp to true\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_wil6210_irq_misc_thread
.subsections_via_symbols
