	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function therm_table
_therm_table:                           ## @therm_table
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rdx
	movl	$80, %esi
	callq	_bit_entry
	testl	%eax, %eax
	je	LBB0_2
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-64(%rbp), %edx
	cmpl	$1, %edx
	je	LBB0_5
## %bb.3:
	cmpl	$2, %edx
	jne	LBB0_8
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$16, %esi
	jmp	LBB0_6
LBB0_5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$12, %esi
LBB0_6:
	addq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd32
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_nvbios_rd08
	movq	%rax, (%r13)
	leaq	1(%r14), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_nvbios_rd08
	movq	%rax, (%r12)
	leaq	2(%r14), %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd08
	movq	%rax, (%r15)
	leaq	3(%r14), %rsi
	movq	%rbx, %rdi
	callq	_nvbios_rd08
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_nvbios_rd08
	addq	%r14, %rax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nvkm_error
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown offset for thermal in BIT P %d\n"

	.no_dead_strip	_therm_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function therm_table
_therm_table:                           ; @therm_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x2, sp
	mov	w1, #80
	bl	_bit_entry
	cbz	w0, LBB0_3
LBB0_1:
	mov	x0, #0
LBB0_2:
	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
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	w2, [sp]
	cmp	w2, #1
	b.eq	LBB0_6
; %bb.4:
	cmp	w2, #2
	b.ne	LBB0_9
; %bb.5:
	mov	w8, #16
	b	LBB0_7
LBB0_6:
	mov	w8, #12
LBB0_7:
	ldr	x9, [sp, #8]
	add	x1, x9, x8
	mov	x0, x19
	bl	_nvbios_rd32
	cbz	x0, LBB0_2
; %bb.8:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_nvbios_rd08
	str	x0, [x23]
	add	x23, x24, #1
	mov	x0, x19
	mov	x1, x23
	bl	_nvbios_rd08
	str	x0, [x22]
	add	x1, x24, #2
	mov	x0, x19
	bl	_nvbios_rd08
	str	x0, [x21]
	add	x1, x24, #3
	mov	x0, x19
	bl	_nvbios_rd08
	str	x0, [x20]
	mov	x0, x19
	mov	x1, x23
	bl	_nvbios_rd08
	add	x0, x0, x24
	b	LBB0_2
LBB0_9:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_error
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown offset for thermal in BIT P %d\n"

	.no_dead_strip	_therm_table
.subsections_via_symbols
