	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_pm_clocks_set             ## -- Begin function nv04_pm_clocks_set
	.p2align	4, 0x90
_nv04_pm_clocks_set:                    ## @nv04_pm_clocks_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_nouveau_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nouveau_timer
	movq	%rax, %r14
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_prog_pll
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_prog_pll
	movq	(%r15), %rax
	movq	_NV_30@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.2:
	movq	_NV_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$1049284, %esi                  ## imm = 0x1002C4
	xorl	%edx, %edx
	movl	$1048576, %ecx                  ## imm = 0x100000
	callq	_nv_mask
LBB0_4:
	movq	%r15, %rdi
	movl	$1049280, %esi                  ## imm = 0x1002C0
	xorl	%edx, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_nv_mask
LBB0_5:
	movq	%r14, %rdi
	callq	_nv_ofuncs
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_nv_object
	movl	%eax, %edi
	callq	*%rbx
	movq	%r12, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_30,8,3                      ## @NV_30
	.comm	_NV_20,8,3                      ## @NV_20
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_pm_clocks_set             ; -- Begin function nv04_pm_clocks_set
	.p2align	2
_nv04_pm_clocks_set:                    ; @nv04_pm_clocks_set
	.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, x1
	mov	x22, x0
	bl	_nouveau_dev
	mov	x21, x0
	bl	_nouveau_timer
	mov	x20, x0
	add	x1, x19, #8
	mov	x0, x22
	bl	_prog_pll
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_prog_pll
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NV_30@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_30@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.2:
	mov	w9, #704
	movk	w9, #16, lsl #16
Lloh3:
	adrp	x10, _NV_20@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NV_20@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.3:
	add	w1, w9, #4
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1048576
	bl	_nv_mask
LBB0_4:
	mov	x0, x21
	mov	w1, #704
	movk	w1, #16, lsl #16
	mov	w2, #0
	mov	w3, #256
	bl	_nv_mask
LBB0_5:
	mov	x0, x20
	bl	_nv_ofuncs
	ldr	x21, [x0]
	mov	x0, x20
	bl	_nv_object
	blr	x21
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_30,8,3                      ; @NV_30
	.comm	_NV_20,8,3                      ; @NV_20
.subsections_via_symbols
