	.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	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	$0, (%rsi)
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	xorl	%esi, %esi
	callq	_nvbios_therm_entry
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r12
	movl	$1, %ebx
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 24(%rax)
	.p2align	4, 0x90
LBB0_11:                                ##   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_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r12), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nv_ro16
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nv_ro08
                                        ## kill: def $eax killed $eax def $rax
	addl	$-34, %eax
	cmpl	$36, %eax
	ja	LBB0_11
## %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, 8(%rdx)
	movzbl	%ch, %eax
	movl	%eax, 12(%rdx)
	jmp	LBB0_11
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	40(%rsi), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rsi)
	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_11
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	40(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	%r14d, -4(%rcx,%rax,4)
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 16(%rax)
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, 20(%rax)
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nv_ro08
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 28(%r14)
	addq	$2, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nv_ro08
	movl	%eax, 32(%r14)
	jmp	LBB0_11
LBB0_12:
	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_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_10
	.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

.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]
	add	x2, sp, #8
	mov	x3, sp
	mov	w1, #0
	bl	_nvbios_therm_entry
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
	mov	w21, #1
Lloh0:
	adrp	x25, lJTI0_0@PAGE
Lloh1:
	add	x25, x25, lJTI0_0@PAGEOFF
	mov	w26, #12
Lloh2:
	adrp	x27, l___const.nvbios_therm_fan_parse.duty_lut@PAGE
Lloh3:
	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, #24]
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_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x22, #1
	mov	x0, x20
	mov	x1, x24
	bl	_nv_ro16
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_nv_ro08
	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, [x25, 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, #8]
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldr	x9, [x19, #40]
	and	w10, w23, #0xf
	madd	x8, x8, x26, 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_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #40]
	ldr	x9, [x19]
	madd	x8, x9, x26, x8
	stur	w23, [x8, #-4]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x19, #16]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w23, [x19, #20]
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_nv_ro08
	str	w0, [x19, #28]
	add	x1, x22, #2
	mov	x0, x20
	bl	_nv_ro08
	str	w0, [x19, #32]
	b	LBB0_3
LBB0_12:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.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_8-LBB0_2)>>2
	.byte	(LBB0_9-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_10-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_11-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

.subsections_via_symbols
