	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_therm_sensor_parse      ## -- Begin function nvbios_therm_sensor_parse
	.p2align	4, 0x90
_nvbios_therm_sensor_parse:             ## @nvbios_therm_sensor_parse
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_NVBIOS_THERM_DOMAIN_CORE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_28
## %bb.1:
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	xorl	%esi, %esi
	callq	_nvbios_therm_entry
	testq	%rax, %rax
	je	LBB0_27
## %bb.2:
	movq	%rax, %r12
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %ebx
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_3
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	shrl	$4, %eax
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 20(%rcx)
	andl	$15, %r14d
	movl	%r14d, 24(%rcx)
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_nvbios_therm_entry
	movq	%rax, %r12
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_26
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r12), %rsi
	movq	%r15, %rdi
	callq	_nv_ro16
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nv_ro08
	cmpl	$50, %eax
	ja	LBB0_25
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %eax
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_25
	jmp	LBB0_26
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jne	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$2, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nv_ro08
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	shrl	$4, %eax
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 44(%rcx)
	andl	$15, %r14d
	movl	%r14d, 48(%rcx)
	jmp	LBB0_24
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	shrl	$4, %eax
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 36(%rcx)
	andl	$15, %r14d
	movl	%r14d, 40(%rcx)
	jmp	LBB0_24
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	shrl	$4, %eax
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 28(%rcx)
	andl	$15, %r14d
	movl	%r14d, 32(%rcx)
	jmp	LBB0_24
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 4(%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 8(%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 12(%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 16(%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_25
	jmp	LBB0_23
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_8
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_NVBIOS_THERM_DOMAIN_CORE,4,2   ## @NVBIOS_THERM_DOMAIN_CORE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_therm_sensor_parse      ; -- Begin function nvbios_therm_sensor_parse
	.p2align	2
_nvbios_therm_sensor_parse:             ; @nvbios_therm_sensor_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _NVBIOS_THERM_DOMAIN_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVBIOS_THERM_DOMAIN_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_25
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	add	x2, sp, #8
	mov	x3, sp
	mov	w1, #0
	bl	_nvbios_therm_entry
	cbz	x0, LBB0_26
; %bb.2:
	mov	x22, x0
	mov	w24, #0
	mov	w26, #-1
	mov	w21, #1
Lloh3:
	adrp	x25, lJTI0_0@PAGE
Lloh4:
	add	x25, x25, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x23
	cmp	w23, #0
	b.gt	LBB0_27
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	x1, x21
	bl	_nvbios_therm_entry
	mov	x22, x0
	add	w21, w21, #1
	cbz	x0, LBB0_26
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x22, #1
	mov	x0, x20
	bl	_nv_ro16
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_nv_ro08
	cmp	w0, #50
	b.hi	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, w0
	adr	x9, LBB0_3
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	adds	w26, w26, #1
	b.lo	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x22, #2
	mov	x0, x20
	bl	_nv_ro08
	mov	w26, #0
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w8, w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w24, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ubfx	w8, w23, #4, #8
	and	w9, w23, #0xf
	stp	w8, w9, [x19, #44]
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w24, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ubfx	w8, w23, #4, #8
	and	w9, w23, #0xf
	stp	w8, w9, [x19, #36]
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w24, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ubfx	w8, w23, #4, #8
	and	w9, w23, #0xf
	stp	w8, w9, [x19, #28]
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w26, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x19, #4]
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w26, LBB0_4
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x19, #8]
	b	LBB0_4
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w26, LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x19, #12]
	b	LBB0_4
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w26, LBB0_4
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w23, [x19, #16]
	b	LBB0_4
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w24, LBB0_4
; %bb.24:                               ;   in Loop: Header=BB0_5 Depth=1
	ubfx	w8, w23, #4, #8
	and	w9, w23, #0xf
	stp	w8, w9, [x19, #20]
	b	LBB0_4
LBB0_25:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_27:
	mov	w0, #0
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_23-LBB0_3)>>2
                                        ; -- End function
	.comm	_NVBIOS_THERM_DOMAIN_CORE,4,2   ; @NVBIOS_THERM_DOMAIN_CORE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
