	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g84_therm_intr
_g84_therm_intr:                        ## @g84_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movl	$131328, %esi                   ## imm = 0x20100
	callq	_nvkm_rd32
	movl	%eax, %ebx
	testb	$2, %bl
	jne	LBB0_2
## %bb.1:
	andl	$1023, %ebx                     ## imm = 0x3FF
	testb	$4, %bl
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	leaq	16(%r15), %rcx
	movq	_NVKM_THERM_THRS_DOWNCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$132116, %esi                   ## imm = 0x20414
	movl	$24, %edx
	callq	_g84_therm_threshold_hyst_emulation
	andl	$1021, %ebx                     ## imm = 0x3FD
	testb	$4, %bl
	je	LBB0_5
LBB0_4:
	leaq	12(%r15), %rcx
	movq	_NVKM_THERM_THRS_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$132224, %esi                   ## imm = 0x20480
	movl	$20, %edx
	callq	_g84_therm_threshold_hyst_emulation
	andl	$-5, %ebx
LBB0_5:
	testb	$8, %bl
	jne	LBB0_6
## %bb.7:
	testb	$16, %bl
	jne	LBB0_8
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_11
LBB0_10:
	leaq	24(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_nvkm_error
LBB0_11:
	movq	%r14, %rdi
	movl	$131328, %esi                   ## imm = 0x20100
	movl	$-1, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$4352, %esi                     ## imm = 0x1100
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_nvkm_wr32
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	leaq	8(%r15), %rcx
	movq	_NVKM_THERM_THRS_FANBOOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$132292, %esi                   ## imm = 0x204C4
	movl	$21, %edx
	callq	_g84_therm_threshold_hyst_emulation
	andl	$-9, %ebx
	testb	$16, %bl
	je	LBB0_9
LBB0_8:
	leaq	4(%r15), %rcx
	movq	_NVKM_THERM_THRS_CRITICAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$132288, %esi                   ## imm = 0x204C0
	movl	$22, %edx
	callq	_g84_therm_threshold_hyst_emulation
	andl	$-17, %ebx
	testl	%ebx, %ebx
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_THERM_THRS_DOWNCLOCK,4,2  ## @NVKM_THERM_THRS_DOWNCLOCK
	.comm	_NVKM_THERM_THRS_SHUTDOWN,4,2   ## @NVKM_THERM_THRS_SHUTDOWN
	.comm	_NVKM_THERM_THRS_FANBOOST,4,2   ## @NVKM_THERM_THRS_FANBOOST
	.comm	_NVKM_THERM_THRS_CRITICAL,4,2   ## @NVKM_THERM_THRS_CRITICAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intr %08x\n"

	.no_dead_strip	_g84_therm_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g84_therm_intr
_g84_therm_intr:                        ; @g84_therm_intr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w23, #256
	movk	w23, #2, lsl #16
	mov	x21, x0
	ldr	x20, [x21, #24]!
	bl	_spin_lock_irqsave
	mov	x0, x20
	mov	w1, #256
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	mov	x22, x0
	tbnz	w0, #1, LBB0_2
; %bb.1:
	and	w22, w22, #0x3ff
	tbnz	w22, #2, LBB0_3
	b	LBB0_4
LBB0_2:
	add	x3, x19, #16
Lloh0:
	adrp	x8, _NVKM_THERM_THRS_DOWNCLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_THERM_THRS_DOWNCLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	w1, w23, #788
	mov	x0, x19
	mov	w2, #24
	bl	_g84_therm_threshold_hyst_emulation
	mov	w8, #1021
	and	w22, w22, w8
	tbz	w22, #2, LBB0_4
LBB0_3:
	add	x3, x19, #12
Lloh3:
	adrp	x8, _NVKM_THERM_THRS_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVKM_THERM_THRS_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	w1, w23, #896
	mov	x0, x19
	mov	w2, #20
	bl	_g84_therm_threshold_hyst_emulation
	and	w22, w22, #0xfffffffb
LBB0_4:
	tbnz	w22, #3, LBB0_9
; %bb.5:
	tbnz	w22, #4, LBB0_10
LBB0_6:
	cbz	w22, LBB0_8
LBB0_7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_nvkm_error
LBB0_8:
	mov	x0, x20
	mov	w1, #256
	movk	w1, #2, lsl #16
	mov	w2, #-1
	bl	_nvkm_wr32
	mov	x0, x20
	mov	w1, #4352
	mov	w2, #65536
	bl	_nvkm_wr32
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_9:
	add	x3, x19, #8
Lloh8:
	adrp	x8, _NVKM_THERM_THRS_FANBOOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVKM_THERM_THRS_FANBOOST@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	add	w1, w23, #964
	mov	x0, x19
	mov	w2, #21
	bl	_g84_therm_threshold_hyst_emulation
	and	w22, w22, #0xfffffff7
	tbz	w22, #4, LBB0_6
LBB0_10:
	add	x3, x19, #4
Lloh11:
	adrp	x8, _NVKM_THERM_THRS_CRITICAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVKM_THERM_THRS_CRITICAL@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	w1, w23, #960
	mov	x0, x19
	mov	w2, #22
	bl	_g84_therm_threshold_hyst_emulation
	and	w22, w22, #0xffffffef
	cbnz	w22, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_THERM_THRS_DOWNCLOCK,4,2  ; @NVKM_THERM_THRS_DOWNCLOCK
	.comm	_NVKM_THERM_THRS_SHUTDOWN,4,2   ; @NVKM_THERM_THRS_SHUTDOWN
	.comm	_NVKM_THERM_THRS_FANBOOST,4,2   ; @NVKM_THERM_THRS_FANBOOST
	.comm	_NVKM_THERM_THRS_CRITICAL,4,2   ; @NVKM_THERM_THRS_CRITICAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intr %08x\n"

	.no_dead_strip	_g84_therm_intr
.subsections_via_symbols
