	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_therm_intr
_nv50_therm_intr:                       ## @nv50_therm_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nouveau_therm
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movl	$131328, %esi                   ## imm = 0x20100
	callq	_nv_rd32
	movl	%eax, %ebx
	testb	$2, %bl
	jne	LBB0_1
## %bb.2:
	testb	$4, %bl
	jne	LBB0_3
LBB0_4:
	testb	$8, %bl
	jne	LBB0_5
LBB0_6:
	testb	$16, %bl
	jne	LBB0_7
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_nv_error
LBB0_10:
	movq	%r14, %rdi
	movl	$131328, %esi                   ## imm = 0x20100
	movl	$-1, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_nv_wr32
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	leaq	16(%r14), %rcx
	movq	_NOUVEAU_THERM_THRS_DOWNCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$132116, %esi                   ## imm = 0x20414
	movl	$24, %edx
	callq	_nv50_therm_threshold_hyst_emulation
	andl	$-3, %ebx
	testb	$4, %bl
	je	LBB0_4
LBB0_3:
	leaq	12(%r14), %rcx
	movq	_NOUVEAU_THERM_THRS_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$132224, %esi                   ## imm = 0x20480
	movl	$20, %edx
	callq	_nv50_therm_threshold_hyst_emulation
	andl	$-5, %ebx
	testb	$8, %bl
	je	LBB0_6
LBB0_5:
	leaq	8(%r14), %rcx
	movq	_NOUVEAU_THERM_THRS_FANBOOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$132292, %esi                   ## imm = 0x204C4
	movl	$21, %edx
	callq	_nv50_therm_threshold_hyst_emulation
	andl	$-9, %ebx
	testb	$16, %bl
	je	LBB0_8
LBB0_7:
	movq	%r14, %rcx
	addq	$4, %rcx
	movq	_NOUVEAU_THERM_THRS_CRITICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	$132288, %esi                   ## imm = 0x204C0
	movl	$22, %edx
	callq	_nv50_therm_threshold_hyst_emulation
	andl	$-17, %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NOUVEAU_THERM_THRS_DOWNCLOCK,4,2 ## @NOUVEAU_THERM_THRS_DOWNCLOCK
	.comm	_NOUVEAU_THERM_THRS_SHUTDOWN,4,2 ## @NOUVEAU_THERM_THRS_SHUTDOWN
	.comm	_NOUVEAU_THERM_THRS_FANBOOST,4,2 ## @NOUVEAU_THERM_THRS_FANBOOST
	.comm	_NOUVEAU_THERM_THRS_CRITICAL,4,2 ## @NOUVEAU_THERM_THRS_CRITICAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled intr 0x%08x\n"

	.no_dead_strip	_nv50_therm_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_therm_intr
_nv50_therm_intr:                       ; @nv50_therm_intr
	.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	w21, #256
	movk	w21, #2, lsl #16
	bl	_nouveau_therm
	mov	x19, x0
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #256
	movk	w1, #2, lsl #16
	bl	_nv_rd32
	mov	x20, x0
	tbnz	w0, #1, LBB0_7
; %bb.1:
	tbnz	w20, #2, LBB0_8
LBB0_2:
	tbnz	w20, #3, LBB0_9
LBB0_3:
	tbnz	w20, #4, LBB0_10
LBB0_4:
	cbz	w20, LBB0_6
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nv_error
LBB0_6:
	mov	x0, x19
	mov	w1, #256
	movk	w1, #2, lsl #16
	mov	w2, #-1
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #4352
	mov	w2, #65536
	bl	_nv_wr32
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
LBB0_7:
	add	x3, x19, #16
Lloh2:
	adrp	x8, _NOUVEAU_THERM_THRS_DOWNCLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NOUVEAU_THERM_THRS_DOWNCLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	add	w1, w21, #788
	mov	x0, x19
	mov	w2, #24
	bl	_nv50_therm_threshold_hyst_emulation
	and	w20, w20, #0xfffffffd
	tbz	w20, #2, LBB0_2
LBB0_8:
	add	x3, x19, #12
Lloh5:
	adrp	x8, _NOUVEAU_THERM_THRS_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NOUVEAU_THERM_THRS_SHUTDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	add	w1, w21, #896
	mov	x0, x19
	mov	w2, #20
	bl	_nv50_therm_threshold_hyst_emulation
	and	w20, w20, #0xfffffffb
	tbz	w20, #3, LBB0_3
LBB0_9:
	add	x3, x19, #8
Lloh8:
	adrp	x8, _NOUVEAU_THERM_THRS_FANBOOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NOUVEAU_THERM_THRS_FANBOOST@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	add	w1, w21, #964
	mov	x0, x19
	mov	w2, #21
	bl	_nv50_therm_threshold_hyst_emulation
	and	w20, w20, #0xfffffff7
	tbz	w20, #4, LBB0_4
LBB0_10:
	add	x3, x19, #4
Lloh11:
	adrp	x8, _NOUVEAU_THERM_THRS_CRITICAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NOUVEAU_THERM_THRS_CRITICAL@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	w1, w21, #960
	mov	x0, x19
	mov	w2, #22
	bl	_nv50_therm_threshold_hyst_emulation
	and	w20, w20, #0xffffffef
	cbnz	w20, LBB0_5
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NOUVEAU_THERM_THRS_DOWNCLOCK,4,2 ; @NOUVEAU_THERM_THRS_DOWNCLOCK
	.comm	_NOUVEAU_THERM_THRS_SHUTDOWN,4,2 ; @NOUVEAU_THERM_THRS_SHUTDOWN
	.comm	_NOUVEAU_THERM_THRS_FANBOOST,4,2 ; @NOUVEAU_THERM_THRS_FANBOOST
	.comm	_NOUVEAU_THERM_THRS_CRITICAL,4,2 ; @NOUVEAU_THERM_THRS_CRITICAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled intr 0x%08x\n"

	.no_dead_strip	_nv50_therm_intr
.subsections_via_symbols
