	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_vpstate_parse           ## -- Begin function nvbios_vpstate_parse
	.p2align	4, 0x90
_nvbios_vpstate_parse:                  ## @nvbios_vpstate_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_nvbios_vpstate_offset
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_nvbios_rd08
	movl	%eax, (%rbx)
	cmpl	$16, %eax
	jne	LBB0_9
## %bb.4:
	movq	16(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movl	%eax, 4(%rbx)
	movq	16(%rbx), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movq	%rax, 56(%rbx)
	movq	16(%rbx), %rsi
	addq	$3, %rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movq	%rax, 48(%rbx)
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movq	%rax, 40(%rbx)
	movq	16(%rbx), %rsi
	addq	$5, %rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movq	%rax, 32(%rbx)
	movq	16(%rbx), %rsi
	addq	$15, %rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movq	%rax, 24(%rbx)
	cmpl	$16, 4(%rbx)
	jle	LBB0_5
## %bb.7:
	movq	16(%rbx), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movl	%eax, 8(%rbx)
	cmpl	$18, 4(%rbx)
	jl	LBB0_6
## %bb.8:
	movq	16(%rbx), %rsi
	addq	$17, %rsi
	movq	%r14, %rdi
	callq	_nvbios_rd08
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	$255, 8(%rbx)
LBB0_6:
	movl	$255, 12(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_vpstate_parse           ; -- Begin function nvbios_vpstate_parse
	.p2align	2
_nvbios_vpstate_parse:                  ; @nvbios_vpstate_parse
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_nvbios_vpstate_offset
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_nvbios_rd08
	str	w0, [x19]
	cmp	w0, #16
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	add	x1, x8, #1
	mov	x0, x20
	bl	_nvbios_rd08
	str	w0, [x19, #4]
	ldr	x8, [x19, #16]
	add	x1, x8, #2
	mov	x0, x20
	bl	_nvbios_rd08
	str	x0, [x19, #56]
	ldr	x8, [x19, #16]
	add	x1, x8, #3
	mov	x0, x20
	bl	_nvbios_rd08
	str	x0, [x19, #48]
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	mov	x0, x20
	bl	_nvbios_rd08
	str	x0, [x19, #40]
	ldr	x8, [x19, #16]
	add	x1, x8, #5
	mov	x0, x20
	bl	_nvbios_rd08
	str	x0, [x19, #32]
	ldr	x8, [x19, #16]
	add	x1, x8, #15
	mov	x0, x20
	bl	_nvbios_rd08
	str	x0, [x19, #24]
	ldr	w8, [x19, #4]
	cmp	w8, #17
	b.lt	LBB0_10
; %bb.4:
	ldr	x8, [x19, #16]
	add	x1, x8, #16
	mov	x0, x20
	bl	_nvbios_rd08
	str	w0, [x19, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #17
	b.le	LBB0_11
; %bb.5:
	ldr	x8, [x19, #16]
	add	x1, x8, #17
	mov	x0, x20
	bl	_nvbios_rd08
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #12]
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w8, #255
	str	w8, [x19, #8]
LBB0_11:
	mov	w0, #0
	mov	w8, #255
	str	w8, [x19, #12]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
