	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_perf_fan_parse          ## -- Begin function nvbios_perf_fan_parse
	.p2align	4, 0x90
_nvbios_perf_fan_parse:                 ## @nvbios_perf_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-28(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	leaq	-32(%rbp), %r9
	callq	_nvbios_perf_table
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	-24(%rbp), %ecx
	andl	$-32, %ecx
	cmpl	$32, %ecx
	jne	LBB0_5
## %bb.3:
	cmpl	$7, -20(%rbp)
	jl	LBB0_5
## %bb.4:
	addq	$6, %rax
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_nvbios_rd16
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	$0, (%r14)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_perf_fan_parse          ; -- Begin function nvbios_perf_fan_parse
	.p2align	2
_nvbios_perf_fan_parse:                 ; @nvbios_perf_fan_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	sub	x1, x29, #20
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	add	x5, sp, #12
	add	x6, sp, #8
	bl	_nvbios_perf_table
	cbz	x0, LBB0_3
; %bb.1:
	ldur	w8, [x29, #-20]
	and	w8, w8, #0xffffffe0
	ldr	w9, [sp, #24]
	cmp	w8, #32
	ccmp	w9, #7, #8, eq
	b.ge	LBB0_4
; %bb.2:
	mov	w0, #0
	str	wzr, [x19]
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	add	x1, x0, #6
	mov	x0, x20
	bl	_nvbios_rd16
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
