	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_th_msc_interrupt
_intel_th_msc_interrupt:                ## @intel_th_msc_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_REG_MSU_MSUSTS@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	40(%rax), %rdi
	callq	_ioread32
	cmpq	$0, 56(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_MSUSTS_MSC0BLAST@GOTPCREL(%rip), %rcx
	cmpl	$0, 48(%rbx)
	jne	LBB0_3
	jmp	LBB0_10
LBB0_2:
	movq	_MSUSTS_MSC1BLAST@GOTPCREL(%rip), %rcx
	cmpl	$0, 48(%rbx)
	je	LBB0_10
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.4:
	andl	(%rcx), %eax
	je	LBB0_11
## %bb.5:
	movq	(%r14), %rsi
	addq	40(%rbx), %rsi
	movl	%eax, %edi
	callq	_iowrite32
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.6:
	movq	24(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_16
## %bb.7:
	movq	%r14, %rdi
	callq	_msc_next_window
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	_WIN_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_WIN_INUSE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rax, %rdi
	callq	_msc_win_set_lockout
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_schedule_work
	jmp	LBB0_16
LBB0_11:
	cmpq	$0, 32(%rbx)
	jne	LBB0_16
LBB0_10:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movl	(%r15), %esi
	movq	_WIN_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_msc_win_set_lockout
	movq	%rbx, %rdi
	callq	_msc_win_switch
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_16
## %bb.15:
	movl	(%rbx), %ebx
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_msc_win_total_sz
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	*%r12
LBB0_16:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MSU_MSUSTS,8,3             ## @REG_MSU_MSUSTS
	.comm	_MSUSTS_MSC1BLAST,4,2           ## @MSUSTS_MSC1BLAST
	.comm	_MSUSTS_MSC0BLAST,4,2           ## @MSUSTS_MSC0BLAST
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_WIN_READY,4,2                  ## @WIN_READY
	.comm	_WIN_INUSE,4,2                  ## @WIN_INUSE
	.comm	_WIN_LOCKED,4,2                 ## @WIN_LOCKED
	.no_dead_strip	_intel_th_msc_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_th_msc_interrupt
_intel_th_msc_interrupt:                ; @intel_th_msc_interrupt
	.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
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x8, [x0, #40]
Lloh0:
	adrp	x20, _REG_MSU_MSUSTS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_MSU_MSUSTS@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_ioread32
Lloh2:
	adrp	x8, _MSUSTS_MSC1BLAST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSUSTS_MSC1BLAST@GOTPAGEOFF]
	ldr	x9, [x19, #56]
Lloh4:
	adrp	x10, _MSUSTS_MSC0BLAST@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MSUSTS_MSC0BLAST@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w9, [x19, #48]
	cbz	w9, LBB0_8
; %bb.1:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_8
; %bb.2:
	ldr	w8, [x8]
	ands	w0, w8, w0
	b.eq	LBB0_10
; %bb.3:
	ldr	x8, [x19, #40]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x20, [x19, #24]
	cbz	x20, LBB0_14
; %bb.5:
	mov	x0, x20
	bl	_msc_next_window
	cbz	x0, LBB0_14
; %bb.6:
Lloh6:
	adrp	x8, _WIN_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WIN_READY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x21, _WIN_INUSE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _WIN_INUSE@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_msc_win_set_lockout
	cbz	x0, LBB0_11
; %bb.7:
	add	x0, x19, #16
	bl	_schedule_work
	b	LBB0_14
LBB0_8:
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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_10:
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	ldr	x9, [x19, #32]
Lloh15:
	adrp	x10, _IRQ_NONE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IRQ_NONE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_9
LBB0_11:
	ldr	w1, [x21]
Lloh17:
	adrp	x8, _WIN_LOCKED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WIN_LOCKED@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_msc_win_set_lockout
	mov	x0, x19
	bl	_msc_win_switch
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x22, [x8]
	cbz	x22, LBB0_14
; %bb.13:
	ldr	w19, [x19]
	ldr	w21, [x20]
	mov	x0, x20
	bl	_msc_win_total_sz
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	blr	x22
LBB0_14:
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MSU_MSUSTS,8,3             ; @REG_MSU_MSUSTS
	.comm	_MSUSTS_MSC1BLAST,4,2           ; @MSUSTS_MSC1BLAST
	.comm	_MSUSTS_MSC0BLAST,4,2           ; @MSUSTS_MSC0BLAST
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_WIN_READY,4,2                  ; @WIN_READY
	.comm	_WIN_INUSE,4,2                  ; @WIN_INUSE
	.comm	_WIN_LOCKED,4,2                 ; @WIN_LOCKED
	.no_dead_strip	_intel_th_msc_interrupt
.subsections_via_symbols
