	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_fan_parse               ## -- Begin function nvbios_fan_parse
	.p2align	4, 0x90
_nvbios_fan_parse:                      ## @nvbios_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	leaq	-32(%rbp), %r8
	leaq	-28(%rbp), %r9
	xorl	%esi, %esi
	callq	_nvbios_fan_entry
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvbios_rd08
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.nvbios_fan_parse(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_NVBIOS_THERM_FAN_UNK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_NVBIOS_THERM_FAN_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	leaq	2(%rbx), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd08
	movq	%rax, 16(%r14)
	leaq	3(%rbx), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd08
	movq	%rax, 8(%r14)
	movq	%rbx, %rsi
	addq	$11, %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, (%r14)
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVBIOS_THERM_FAN_TOGGLE,4,2    ## @NVBIOS_THERM_FAN_TOGGLE
	.comm	_NVBIOS_THERM_FAN_PWM,4,2       ## @NVBIOS_THERM_FAN_PWM
	.comm	_NVBIOS_THERM_FAN_UNK,4,2       ## @NVBIOS_THERM_FAN_UNK
	.comm	_NVBIOS_THERM_FAN_LINEAR,4,2    ## @NVBIOS_THERM_FAN_LINEAR
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.nvbios_fan_parse
l_switch.table.nvbios_fan_parse:
	.quad	_NVBIOS_THERM_FAN_TOGGLE
	.quad	_NVBIOS_THERM_FAN_PWM
	.quad	_NVBIOS_THERM_FAN_PWM

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_fan_parse               ; -- Begin function nvbios_fan_parse
	.p2align	2
_nvbios_fan_parse:                      ; @nvbios_fan_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x5, sp
	mov	w1, #0
	bl	_nvbios_fan_entry
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_nvbios_rd08
	cmp	w0, #2
	b.hi	LBB0_3
; %bb.2:
	sbfiz	x8, x0, #3, #32
Lloh0:
	adrp	x9, l_switch.table.nvbios_fan_parse@PAGE
Lloh1:
	add	x9, x9, l_switch.table.nvbios_fan_parse@PAGEOFF
	ldr	x8, [x9, x8]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _NVBIOS_THERM_FAN_UNK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVBIOS_THERM_FAN_UNK@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _NVBIOS_THERM_FAN_LINEAR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NVBIOS_THERM_FAN_LINEAR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	add	x1, x21, #2
	mov	x0, x20
	bl	_nvbios_rd08
	str	x0, [x19, #16]
	add	x1, x21, #3
	mov	x0, x20
	bl	_nvbios_rd08
	str	x0, [x19, #8]
	add	x1, x21, #11
	mov	x0, x20
	bl	_nvbios_rd32
	and	w8, w0, #0xffffff
	str	w8, [x19]
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NVBIOS_THERM_FAN_TOGGLE,4,2    ; @NVBIOS_THERM_FAN_TOGGLE
	.comm	_NVBIOS_THERM_FAN_PWM,4,2       ; @NVBIOS_THERM_FAN_PWM
	.comm	_NVBIOS_THERM_FAN_UNK,4,2       ; @NVBIOS_THERM_FAN_UNK
	.comm	_NVBIOS_THERM_FAN_LINEAR,4,2    ; @NVBIOS_THERM_FAN_LINEAR
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.nvbios_fan_parse
l_switch.table.nvbios_fan_parse:
	.quad	_NVBIOS_THERM_FAN_TOGGLE
	.quad	_NVBIOS_THERM_FAN_PWM
	.quad	_NVBIOS_THERM_FAN_PWM

.subsections_via_symbols
