	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_clk_ctor                  ## -- Begin function nvkm_clk_ctor
	.p2align	4, 0x90
_nvkm_clk_ctor:                         ## @nvkm_clk_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	%r8, %r15
	movl	%ecx, %r13d
	movq	%rdi, %r14
	leaq	64(%r8), %rcx
	movq	8(%rsi), %r12
	movq	_nvkm_clk@GOTPCREL(%rip), %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_nvkm_subdev_ctor
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_nvbios_vpstate_parse
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	-52(%rbp), %edx
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	callq	_nvbios_vpstate_entry
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	imull	$1000, -64(%rbp), %eax          ## imm = 0x3E8
	movl	%eax, (%r15)
LBB0_4:
	movl	-56(%rbp), %edx
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	callq	_nvbios_vpstate_entry
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	imull	$1000, -48(%rbp), %eax          ## imm = 0x3E8
	movl	%eax, 4(%r15)
LBB0_6:
	movq	%r14, 56(%r15)
	leaq	32(%r15), %r12
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movl	16(%r14), %eax
	movl	%eax, 48(%r15)
	movq	$-1, 8(%r15)
	movl	%r13d, 16(%r15)
	leaq	44(%r15), %rdi
	movq	_nvkm_pstate_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	40(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	36(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_atomic_set
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.9:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.10:
	movq	%r12, %rsi
	callq	_list_add_tail
	movl	(%r14), %eax
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.11:
	movl	$1, %r13d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_12
LBB0_13:
	movl	%eax, 20(%r15)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_7:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rbx), %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nvkm_pstate_new
	movl	%r14d, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_14:
	leaq	4(%r12), %rsi
	movq	_nvkm_clk_pwrsrc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	28(%r15), %rax
	xorl	%edi, %edi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_nvkm_notify_init
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.15:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_nvkm_stropt
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rax, %rbx
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_nvkm_clk_nstate
	movl	%eax, 8(%r15)
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_nvkm_clk_nstate
	movl	%eax, 12(%r15)
LBB0_17:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_nvkm_stropt
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_nvkm_clk_nstate
	movl	%eax, 8(%r15)
LBB0_19:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_nvkm_stropt
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	-48(%rbp), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_nvkm_clk_nstate
	movl	%eax, 12(%r15)
LBB0_21:
	movl	(%r12), %edi
	movq	_NVKM_CLK_BOOST_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_nvkm_longopt
	movl	%eax, 24(%r15)
LBB0_22:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvkm_clk,4,2                   ## @nvkm_clk
	.comm	_nvkm_pstate_work,4,2           ## @nvkm_pstate_work
	.comm	_nvkm_clk_pwrsrc,4,2            ## @nvkm_clk_pwrsrc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NvClkMode"

L_.str.1:                               ## @.str.1
	.asciz	"NvClkModeAC"

L_.str.2:                               ## @.str.2
	.asciz	"NvClkModeDC"

L_.str.3:                               ## @.str.3
	.asciz	"NvBoost"

	.comm	_NVKM_CLK_BOOST_NONE,4,2        ## @NVKM_CLK_BOOST_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_clk_ctor                  ; -- Begin function nvkm_clk_ctor
	.p2align	2
_nvkm_clk_ctor:                         ; @nvkm_clk_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, x4
	mov	x23, x3
	mov	x20, x1
	mov	x21, x0
	add	x3, x4, #64
	ldr	x22, [x1, #8]
Lloh0:
	adrp	x0, _nvkm_clk@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nvkm_clk@GOTPAGEOFF]
	bl	_nvkm_subdev_ctor
	cbz	x22, LBB0_6
; %bb.1:
	add	x1, sp, #16
	mov	x0, x22
	bl	_nvbios_vpstate_parse
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w2, [sp, #20]
	add	x1, sp, #16
	add	x3, sp, #8
	mov	x0, x22
	bl	_nvbios_vpstate_entry
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #8]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	ldr	w2, [sp, #16]
	add	x1, sp, #16
	add	x3, sp, #24
	mov	x0, x22
	bl	_nvbios_vpstate_entry
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #24]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19, #4]
LBB0_6:
	str	x21, [x19, #56]
	add	x22, x19, #32
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	ldr	w8, [x21, #16]
	str	w8, [x19, #48]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19, #8]
	str	w23, [x19, #16]
	add	x0, x19, #44
Lloh2:
	adrp	x8, _nvkm_pstate_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _nvkm_pstate_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #40
	bl	_init_waitqueue_head
	add	x0, x19, #36
	mov	w1, #0
	bl	_atomic_set
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_12
; %bb.7:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x1, x22
	bl	_list_add_tail
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.9:
	mov	w23, #1
	mov	w24, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x24
	mov	x1, x22
	bl	_list_add_tail
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x24, x24, #4
	cmp	x23, x8
	b.lt	LBB0_10
LBB0_11:
	str	w8, [x19, #20]
	b	LBB0_14
LBB0_12:
	mov	w1, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w1, #1
	mov	x0, x19
	bl	_nvkm_pstate_new
	mov	x1, x21
	cbz	w0, LBB0_13
LBB0_14:
	add	x1, x20, #4
Lloh5:
	adrp	x8, _nvkm_clk_pwrsrc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nvkm_clk_pwrsrc@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x7, x19, #28
	mov	x0, #0
	mov	w3, #1
	mov	x4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_nvkm_notify_init
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.15:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	bl	_nvkm_stropt
	cbz	x0, LBB0_17
; %bb.16:
	mov	x22, x0
	ldr	w2, [sp, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_nvkm_clk_nstate
	str	w0, [x19, #8]
	ldr	w2, [sp, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_nvkm_clk_nstate
	str	w0, [x19, #12]
LBB0_17:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	bl	_nvkm_stropt
	cbz	x0, LBB0_19
; %bb.18:
	mov	x1, x0
	ldr	w2, [sp, #24]
	mov	x0, x19
	bl	_nvkm_clk_nstate
	str	w0, [x19, #8]
LBB0_19:
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	bl	_nvkm_stropt
	cbz	x0, LBB0_21
; %bb.20:
	mov	x1, x0
	ldr	w2, [sp, #24]
	mov	x0, x19
	bl	_nvkm_clk_nstate
	str	w0, [x19, #12]
LBB0_21:
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _NVKM_CLK_BOOST_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NVKM_CLK_BOOST_NONE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_nvkm_longopt
	str	w0, [x19, #24]
LBB0_22:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_nvkm_clk,4,2                   ; @nvkm_clk
	.comm	_nvkm_pstate_work,4,2           ; @nvkm_pstate_work
	.comm	_nvkm_clk_pwrsrc,4,2            ; @nvkm_clk_pwrsrc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NvClkMode"

l_.str.1:                               ; @.str.1
	.asciz	"NvClkModeAC"

l_.str.2:                               ; @.str.2
	.asciz	"NvClkModeDC"

l_.str.3:                               ; @.str.3
	.asciz	"NvBoost"

	.comm	_NVKM_CLK_BOOST_NONE,4,2        ; @NVKM_CLK_BOOST_NONE
.subsections_via_symbols
