	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_volt_parse              ## -- Begin function nvbios_volt_parse
	.p2align	4, 0x90
_nvbios_volt_parse:                     ## @nvbios_volt_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_nvbios_volt_table
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ebx
LBB0_2:
	cmpl	$47, %ebx
	jle	LBB0_3
## %bb.6:
	cmpl	$48, %ebx
	je	LBB0_11
## %bb.7:
	cmpl	$64, %ebx
	je	LBB0_13
## %bb.8:
	cmpl	$80, %ebx
	jne	LBB0_16
## %bb.9:
	leaq	10(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	movl	%eax, 16(%r13)
	leaq	14(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	movl	%eax, 20(%r13)
	leaq	18(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, 8(%r13)
	leaq	4(%r14), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvbios_rd32
	testb	$1, %al
	jne	LBB0_10
## %bb.15:
	movq	_NVBIOS_VOLT_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	leaq	6(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd08
	movl	%eax, (%r13)
	movq	%r14, %rsi
	addq	$22, %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd16
	movl	%eax, 12(%r13)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nvbios_rd08
	shrl	%eax
	andl	$1, %eax
	movl	%eax, 4(%r13)
	jmp	LBB0_16
LBB0_3:
	cmpl	$18, %ebx
	je	LBB0_11
## %bb.4:
	cmpl	$32, %ebx
	jne	LBB0_16
## %bb.5:
	movq	_NVBIOS_VOLT_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	movq	%r14, %rsi
	addq	$5, %rsi
	jmp	LBB0_12
LBB0_11:
	movq	_NVBIOS_VOLT_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	movq	%r14, %rsi
	addq	$4, %rsi
LBB0_12:
	movq	%r15, %rdi
	callq	_nvbios_rd08
	movl	%eax, (%r13)
	movl	$0, 4(%r13)
LBB0_16:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_NVBIOS_VOLT_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	leaq	4(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	movl	%eax, 8(%r13)
	leaq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd16
	movl	%eax, 12(%r13)
	leaq	11(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd08
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%r13)
	movl	$1, 4(%r13)
	movl	8(%r13), %edi
	imull	12(%r13), %eax
	leal	(%rax,%rdi), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_min
	movl	%eax, 16(%r13)
	movq	%r14, %rsi
	addq	$14, %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	movl	%eax, 20(%r13)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movl	(%r13), %esi
	movl	8(%r13), %edi
	imull	12(%r13), %esi
	addl	%edi, %esi
	callq	_max
	movl	%eax, 20(%r13)
	jmp	LBB0_16
LBB0_10:
	movq	_NVBIOS_VOLT_PWM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	leaq	5(%r14), %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, 24(%r13)
	movq	%r14, %rsi
	addq	$22, %rsi
	movq	%r15, %rdi
	callq	_nvbios_rd32
	movl	%eax, 28(%r13)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_NVBIOS_VOLT_GPIO,8,3           ## @NVBIOS_VOLT_GPIO
	.comm	_NVBIOS_VOLT_PWM,8,3            ## @NVBIOS_VOLT_PWM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_volt_parse              ; -- Begin function nvbios_volt_parse
	.p2align	2
_nvbios_volt_parse:                     ; @nvbios_volt_parse
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x5
	mov	x22, x1
	mov	x21, x0
	bl	_nvbios_volt_table
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x22]
	cmp	x20, #0
	csel	w8, wzr, w8, eq
	cmp	w8, #47
	b.le	LBB0_6
; %bb.1:
	cmp	w8, #48
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #64
	b.eq	LBB0_12
; %bb.3:
	cmp	w8, #80
	b.ne	LBB0_11
; %bb.4:
	add	x1, x20, #10
	mov	x0, x21
	bl	_nvbios_rd32
	str	w0, [x19, #16]
	add	x1, x20, #14
	mov	x0, x21
	bl	_nvbios_rd32
	str	w0, [x19, #20]
	add	x1, x20, #18
	mov	x0, x21
	bl	_nvbios_rd32
	and	w8, w0, #0xffffff
	str	w8, [x19, #8]
	add	x22, x20, #4
	mov	x0, x21
	mov	x1, x22
	bl	_nvbios_rd32
	tbnz	w0, #0, LBB0_14
; %bb.5:
Lloh0:
	adrp	x8, _NVBIOS_VOLT_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVBIOS_VOLT_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	add	x1, x20, #6
	mov	x0, x21
	bl	_nvbios_rd08
	str	w0, [x19]
	add	x1, x20, #22
	mov	x0, x21
	bl	_nvbios_rd16
	str	w0, [x19, #12]
	mov	x0, x21
	mov	x1, x22
	bl	_nvbios_rd08
	ubfx	w8, w0, #1, #1
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_6:
	cmp	w8, #18
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #32
	b.ne	LBB0_11
; %bb.8:
Lloh3:
	adrp	x8, _NVBIOS_VOLT_GPIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVBIOS_VOLT_GPIO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	add	x1, x20, #5
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _NVBIOS_VOLT_GPIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVBIOS_VOLT_GPIO@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	add	x1, x20, #4
LBB0_10:
	mov	x0, x21
	bl	_nvbios_rd08
	stp	w0, wzr, [x19]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh9:
	adrp	x8, _NVBIOS_VOLT_GPIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVBIOS_VOLT_GPIO@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	add	x1, x20, #4
	mov	x0, x21
	bl	_nvbios_rd32
	str	w0, [x19, #8]
	add	x1, x20, #8
	mov	x0, x21
	bl	_nvbios_rd16
	str	w0, [x19, #12]
	add	x1, x20, #11
	mov	x0, x21
	bl	_nvbios_rd08
	mov	w8, #1
	stp	w0, w8, [x19]
	ldp	w8, w9, [x19, #8]
	madd	w1, w9, w0, w8
	mov	x0, x8
	bl	_min
	str	w0, [x19, #16]
	add	x1, x20, #14
	mov	x0, x21
	bl	_nvbios_rd32
	str	w0, [x19, #20]
	cbnz	w0, LBB0_11
; %bb.13:
	ldp	w0, w8, [x19, #8]
	ldr	w9, [x19]
	madd	w1, w9, w8, w0
	bl	_max
	str	w0, [x19, #20]
	b	LBB0_11
LBB0_14:
Lloh12:
	adrp	x8, _NVBIOS_VOLT_PWM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NVBIOS_VOLT_PWM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #32]
	add	x1, x20, #5
	mov	x0, x21
	bl	_nvbios_rd32
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #6
	str	w8, [x19, #24]
	add	x1, x20, #22
	mov	x0, x21
	bl	_nvbios_rd32
	str	w0, [x19, #28]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NVBIOS_VOLT_GPIO,8,3           ; @NVBIOS_VOLT_GPIO
	.comm	_NVBIOS_VOLT_PWM,8,3            ; @NVBIOS_VOLT_PWM
.subsections_via_symbols
