	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ips_irq_handler
_ips_irq_handler:                       ## @ips_irq_handler
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_THM_TSES@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_thm_readb
	movl	%eax, %r14d
	movq	_THM_TES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_thm_readb
	movl	%eax, %ebx
	movl	%r14d, %eax
	orl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_info
	movl	24(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_info
	testb	$1, %bl
	je	LBB0_8
## %bb.3:
	movq	_THM_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_thm_readl
	movl	%eax, %r13d
	movq	_THM_TC1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_thm_readl
	movl	%eax, %r12d
	movq	_STS_NVV@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.4:
	leaq	28(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_STS_PCPL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_STS_PCPL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, (%r15)
	movq	_STS_GPL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_STS_GPL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%r15)
	movl	$0, 8(%r15)
	cmpq	$0, 32(%r15)
	je	LBB0_6
## %bb.5:
	movq	_STS_GTD_DIS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r13d, %eax
	sete	%cl
	movl	%ecx, 12(%r15)
LBB0_6:
	movq	_STS_PTL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_STS_PTL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r13d
	movl	%r13d, 16(%r15)
	movq	_STS_PPL_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_STS_PPL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r12d
	movl	%r12d, 20(%r15)
	movq	%r15, %rdi
	callq	_verify_limits
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	_THM_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SEC_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_thm_writeb
LBB0_7:
	movq	_THM_TES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_thm_writeb
	movq	_THM_TSES@GOTPCREL(%rip), %r12
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	movl	24(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_thm_writeb
	jmp	LBB0_10
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THM_TSES,4,2                   ## @THM_TSES
	.comm	_THM_TES,4,2                    ## @THM_TES
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TSES: 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"TES: 0x%02x\n"

	.comm	_THM_STS,4,2                    ## @THM_STS
	.comm	_THM_TC1,4,2                    ## @THM_TC1
	.comm	_STS_NVV,4,2                    ## @STS_NVV
	.comm	_STS_PCPL_MASK,4,2              ## @STS_PCPL_MASK
	.comm	_STS_PCPL_SHIFT,4,2             ## @STS_PCPL_SHIFT
	.comm	_STS_GPL_MASK,4,2               ## @STS_GPL_MASK
	.comm	_STS_GPL_SHIFT,4,2              ## @STS_GPL_SHIFT
	.comm	_STS_PCTD_DIS,4,2               ## @STS_PCTD_DIS
	.comm	_STS_GTD_DIS,4,2                ## @STS_GTD_DIS
	.comm	_STS_PTL_MASK,4,2               ## @STS_PTL_MASK
	.comm	_STS_PTL_SHIFT,4,2              ## @STS_PTL_SHIFT
	.comm	_STS_PPL_MASK,4,2               ## @STS_PPL_MASK
	.comm	_STS_PPL_SHIFT,4,2              ## @STS_PPL_SHIFT
	.comm	_THM_SEC,4,2                    ## @THM_SEC
	.comm	_SEC_ACK,4,2                    ## @SEC_ACK
L_.str.2:                               ## @.str.2
	.asciz	"thermal trip occurred, tses: 0x%04x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ips_irq_handler
_ips_irq_handler:                       ; @ips_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
Lloh0:
	adrp	x25, _THM_TSES@GOTPAGE
Lloh1:
	ldr	x25, [x25, _THM_TSES@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_thm_readb
	mov	x19, x0
Lloh2:
	adrp	x26, _THM_TES@GOTPAGE
Lloh3:
	ldr	x26, [x26, _THM_TES@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_thm_readb
	orr	w8, w19, w0
	cbz	w8, LBB0_10
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #24]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_info
	ldr	w0, [x20, #24]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_info
	tbz	w21, #0, LBB0_7
; %bb.2:
Lloh8:
	adrp	x8, _THM_STS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _THM_STS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_thm_readl
	mov	x24, x0
Lloh11:
	adrp	x8, _THM_TC1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _THM_TC1@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_thm_readl
Lloh14:
	adrp	x8, _STS_NVV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STS_NVV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_6
; %bb.3:
	mov	x23, x0
	add	x22, x20, #28
	mov	x0, x22
	bl	_spin_lock
Lloh17:
	adrp	x8, _STS_PCPL_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STS_PCPL_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh20:
	adrp	x9, _STS_PCPL_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _STS_PCPL_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x20]
Lloh23:
	adrp	x8, _STS_GPL_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STS_GPL_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _STS_GPL_SHIFT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _STS_GPL_SHIFT@GOTPAGEOFF]
	and	w8, w8, w24
Lloh28:
	ldr	w9, [x9]
	asr	w8, w8, w9
	stp	w8, wzr, [x20, #4]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.4:
Lloh29:
	adrp	x8, _STS_GTD_DIS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STS_GTD_DIS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w8, eq
	str	w8, [x20, #12]
LBB0_5:
Lloh32:
	adrp	x8, _STS_PTL_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _STS_PTL_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh35:
	adrp	x9, _STS_PTL_SHIFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _STS_PTL_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh38:
	adrp	x9, _STS_PPL_MASK@GOTPAGE
Lloh39:
	ldr	x9, [x9, _STS_PPL_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	and	w9, w9, w23
Lloh41:
	adrp	x10, _STS_PPL_SHIFT@GOTPAGE
Lloh42:
	ldr	x10, [x10, _STS_PPL_SHIFT@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	asr	w9, w9, w10
	stp	w8, w9, [x20, #16]
	mov	x0, x20
	bl	_verify_limits
	mov	x0, x22
	bl	_spin_unlock
Lloh44:
	adrp	x8, _THM_SEC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _THM_SEC@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x8, _SEC_ACK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _SEC_ACK@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	bl	_thm_writeb
LBB0_6:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_thm_writeb
LBB0_7:
	cbz	w19, LBB0_9
; %bb.8:
	ldr	w0, [x20, #24]
Lloh50:
	adrp	x1, l_.str.2@PAGE
Lloh51:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_warn
	ldr	w0, [x25]
	mov	x1, x19
	bl	_thm_writeb
LBB0_9:
Lloh52:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh54:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_THM_TSES,4,2                   ; @THM_TSES
	.comm	_THM_TES,4,2                    ; @THM_TES
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TSES: 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"TES: 0x%02x\n"

	.comm	_THM_STS,4,2                    ; @THM_STS
	.comm	_THM_TC1,4,2                    ; @THM_TC1
	.comm	_STS_NVV,4,2                    ; @STS_NVV
	.comm	_STS_PCPL_MASK,4,2              ; @STS_PCPL_MASK
	.comm	_STS_PCPL_SHIFT,4,2             ; @STS_PCPL_SHIFT
	.comm	_STS_GPL_MASK,4,2               ; @STS_GPL_MASK
	.comm	_STS_GPL_SHIFT,4,2              ; @STS_GPL_SHIFT
	.comm	_STS_PCTD_DIS,4,2               ; @STS_PCTD_DIS
	.comm	_STS_GTD_DIS,4,2                ; @STS_GTD_DIS
	.comm	_STS_PTL_MASK,4,2               ; @STS_PTL_MASK
	.comm	_STS_PTL_SHIFT,4,2              ; @STS_PTL_SHIFT
	.comm	_STS_PPL_MASK,4,2               ; @STS_PPL_MASK
	.comm	_STS_PPL_SHIFT,4,2              ; @STS_PPL_SHIFT
	.comm	_THM_SEC,4,2                    ; @THM_SEC
	.comm	_SEC_ACK,4,2                    ; @SEC_ACK
l_.str.2:                               ; @.str.2
	.asciz	"thermal trip occurred, tses: 0x%04x\n"

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