	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_volt_ctor                 ## -- Begin function nvkm_volt_ctor
	.p2align	4, 0x90
_nvkm_volt_ctor:                        ## @nvkm_volt_ctor
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdi, %r12
	movq	(%rsi), %r15
	leaq	24(%rcx), %r14
	movq	_nvkm_volt@GOTPCREL(%rip), %rdi
	movq	%r14, %rcx
	callq	_nvkm_subdev_ctor
	movq	%r12, 40(%r13)
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nvkm_volt_parse_bios
	movl	28(%r13), %ecx
	movl	32(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvkm_debug
	leaq	-72(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	callq	_nvbios_vmap_parse
	movl	$255, %ecx
	movl	$255, %edx
	movl	$255, %esi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %esi
LBB0_3:
	movl	%ecx, (%r13)
	movl	%edx, 4(%r13)
	movl	%esi, 8(%r13)
LBB0_4:
	cmpl	$0, 12(%r13)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%rbx,8), %ecx
	movl	4(%rax,%rbx,8), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nvkm_debug
	incq	%rbx
	movslq	12(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvkm_volt,4,2                  ## @nvkm_volt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"min: %iuv max: %iuv\n"

L_.str.1:                               ## @.str.1
	.asciz	"VID %02x: %duv\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_volt_ctor                 ; -- Begin function nvkm_volt_ctor
	.p2align	2
_nvkm_volt_ctor:                        ; @nvkm_volt_ctor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x22, x0
	ldr	x21, [x1]
	add	x20, x3, #24
Lloh0:
	adrp	x0, _nvkm_volt@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nvkm_volt@GOTPAGEOFF]
	mov	x3, x20
	bl	_nvkm_subdev_ctor
	str	x22, [x19, #40]
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_nvkm_volt_parse_bios
	ldp	w3, w2, [x19, #28]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvkm_debug
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x5, sp
	mov	x0, x21
	bl	_nvbios_vmap_parse
	cmp	x0, #0
	cset	w8, eq
	ldr	w9, [sp, #8]
	mov	w10, #255
	csel	w9, w10, w9, eq
	ldr	d0, [sp]
	dup.2s	v1, w8
	shl.2s	v1, v1, #31
	cmlt.2s	v1, v1, #0
	movi	d2, #0x0000ff000000ff
	bit.8b	v0, v2, v1
	str	d0, [x19]
	str	w9, [x19, #8]
LBB0_2:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	x23, #0
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, x22
	ldp	w3, w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_nvkm_debug
	add	x23, x23, #1
	ldrsw	x8, [x19, #12]
	add	x22, x22, #8
	cmp	x23, x8
	b.lt	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_nvkm_volt,4,2                  ; @nvkm_volt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"min: %iuv max: %iuv\n"

l_.str.1:                               ; @.str.1
	.asciz	"VID %02x: %duv\n"

.subsections_via_symbols
