	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_therm_fan_parse         ## -- Begin function nvbios_therm_fan_parse
	.p2align	4, 0x90
_nvbios_therm_fan_parse:                ## @nvbios_therm_fan_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, (%rsi)
	movq	_NVBIOS_THERM_FAN_OTHER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rsi)
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	xorl	%esi, %esi
	callq	_nvbios_therm_entry
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r12
	movl	$1, %ebx
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 32(%rax)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	callq	_nvbios_therm_entry
	movq	%rax, %r12
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r12), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nvbios_rd16
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvbios_rd08
                                        ## kill: def $eax killed $eax def $rax
	addl	$-34, %eax
	cmpl	$36, %eax
	ja	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rcx
	movzbl	%cl, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 16(%rdx)
	movzbl	%ch, %eax
	movl	%eax, 20(%rdx)
	jmp	LBB0_16
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	8(%rsi), %rdx
	leaq	1(%rax), %rcx
	movq	%rcx, (%rsi)
	movq	_NVBIOS_THERM_FAN_TRIP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, 8(%rsi)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%rsi), %rcx
	movl	%r14d, %edx
	andl	$15, %edx
	leaq	(%rax,%rax,2), %rax
	movl	%edx, (%rcx,%rax,4)
	movl	%r14d, %edx
	shrl	$4, %edx
	movzbl	%dl, %edx
	movl	%edx, 4(%rcx,%rax,4)
	shrl	$12, %r14d
	andl	$15, %r14d
	leaq	l___const.nvbios_therm_fan_parse.duty_lut(%rip), %rdx
	movl	(%rdx,%r14,4), %edx
	movl	%edx, 8(%rcx,%rax,4)
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	48(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	%r14d, -4(%rcx,%rax,4)
	jmp	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 24(%rax)
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 24(%rax)
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 28(%rax)
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_NVBIOS_THERM_FAN_LINEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpq	%rax, 8(%r14)
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%r14)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nvbios_rd08
	movl	%eax, 36(%r14)
	addq	$2, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvbios_rd08
	movl	%eax, 40(%r14)
	jmp	LBB0_16
LBB0_17:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_NV_C0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jl	LBB0_20
## %bb.18:
	movq	8(%rdx), %rax
	movq	_NVBIOS_THERM_FAN_OTHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_NVBIOS_THERM_FAN_LINEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %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_4, LBB0_4-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_16
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.nvbios_therm_fan_parse.duty_lut
l___const.nvbios_therm_fan_parse.duty_lut:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	25                              ## 0x19
	.long	0                               ## 0x0
	.long	40                              ## 0x28
	.long	0                               ## 0x0
	.long	50                              ## 0x32
	.long	0                               ## 0x0
	.long	75                              ## 0x4b
	.long	0                               ## 0x0
	.long	85                              ## 0x55
	.long	0                               ## 0x0
	.long	100                             ## 0x64
	.long	0                               ## 0x0
	.long	100                             ## 0x64
	.long	0                               ## 0x0

	.comm	_NVBIOS_THERM_FAN_OTHER,8,3     ## @NVBIOS_THERM_FAN_OTHER
	.comm	_NVBIOS_THERM_FAN_TRIP,8,3      ## @NVBIOS_THERM_FAN_TRIP
	.comm	_NVBIOS_THERM_FAN_LINEAR,8,3    ## @NVBIOS_THERM_FAN_LINEAR
	.comm	_NV_C0,8,3                      ## @NV_C0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_therm_fan_parse         ; -- Begin function nvbios_therm_fan_parse
	.p2align	2
_nvbios_therm_fan_parse:                ; @nvbios_therm_fan_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x1]
Lloh0:
	adrp	x8, _NVBIOS_THERM_FAN_OTHER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVBIOS_THERM_FAN_OTHER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x1, #8]
	add	x2, sp, #8
	mov	x3, sp
	mov	w1, #0
	bl	_nvbios_therm_entry
	cbz	x0, LBB0_17
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x26, lJTI0_0@PAGE
Lloh4:
	add	x26, x26, lJTI0_0@PAGEOFF
	mov	w21, #1
	mov	w28, #12
Lloh5:
	adrp	x25, _NVBIOS_THERM_FAN_LINEAR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _NVBIOS_THERM_FAN_LINEAR@GOTPAGEOFF]
Lloh7:
	adrp	x27, l___const.nvbios_therm_fan_parse.duty_lut@PAGE
Lloh8:
	add	x27, x27, l___const.nvbios_therm_fan_parse.duty_lut@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x19, #32]
LBB0_3:                                 ;   in Loop: Header=BB0_4 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_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x22, #1
	mov	x0, x20
	mov	x1, x24
	bl	_nvbios_rd16
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_nvbios_rd08
	sub	w8, w0, #34
	cmp	w8, #36
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w23, #0xff
	ubfx	w9, w23, #8, #8
	stp	w8, w9, [x19, #16]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x8, x10, [x19]
	add	x9, x8, #1
	str	x9, [x19]
Lloh9:
	adrp	x9, _NVBIOS_THERM_FAN_TRIP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVBIOS_THERM_FAN_TRIP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x10, x9
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x9, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #48]
	and	w10, w23, #0xf
	madd	x8, x8, x28, x9
	ubfx	w9, w23, #4, #8
	stp	w10, w9, [x8]
	ubfx	w9, w23, #12, #4
	ldr	w9, [x27, w9, uxtw #2]
	str	w9, [x8, #8]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #48]
	ldr	x9, [x19]
	madd	x8, x9, x28, x8
	stur	w23, [x8, #-4]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x19, #24]
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x19, #28]
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
	ldr	x8, [x25]
	cmp	x9, x8
	b.le	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x19, #8]
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_nvbios_rd08
	str	w0, [x19, #36]
	add	x1, x22, #2
	mov	x0, x20
	bl	_nvbios_rd08
	str	w0, [x19, #40]
	b	LBB0_3
LBB0_17:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _NV_C0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NV_C0@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_20
; %bb.18:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _NVBIOS_THERM_FAN_OTHER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NVBIOS_THERM_FAN_OTHER@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
Lloh18:
	adrp	x8, _NVBIOS_THERM_FAN_LINEAR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NVBIOS_THERM_FAN_LINEAR@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_20:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.p2align	2                               ; @__const.nvbios_therm_fan_parse.duty_lut
l___const.nvbios_therm_fan_parse.duty_lut:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	25                              ; 0x19
	.long	0                               ; 0x0
	.long	40                              ; 0x28
	.long	0                               ; 0x0
	.long	50                              ; 0x32
	.long	0                               ; 0x0
	.long	75                              ; 0x4b
	.long	0                               ; 0x0
	.long	85                              ; 0x55
	.long	0                               ; 0x0
	.long	100                             ; 0x64
	.long	0                               ; 0x0
	.long	100                             ; 0x64
	.long	0                               ; 0x0

	.comm	_NVBIOS_THERM_FAN_OTHER,8,3     ; @NVBIOS_THERM_FAN_OTHER
	.comm	_NVBIOS_THERM_FAN_TRIP,8,3      ; @NVBIOS_THERM_FAN_TRIP
	.comm	_NVBIOS_THERM_FAN_LINEAR,8,3    ; @NVBIOS_THERM_FAN_LINEAR
	.comm	_NV_C0,8,3                      ; @NV_C0
.subsections_via_symbols
