	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setPLL_single                  ## -- Begin function setPLL_single
	.p2align	4, 0x90
_setPLL_single:                         ## @setPLL_single
	.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	%rdx, %r12
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r13d
	andl	$-524288, %eax                  ## imm = 0xFFF80000
	movl	(%r12), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	orl	4(%r12), %ecx
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	movl	%ecx, %r15d
	movl	%r14d, %esi
	callq	_powerctrl_1_shift
	cmpl	%r15d, %r13d
	je	LBB0_13
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	js	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$5508, %esi                     ## imm = 0x1584
	callq	_nvkm_rd32
	movl	$15, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	notl	%edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	btsl	%r14d, %edx
	movq	%rbx, %rdi
	movl	$5508, %esi                     ## imm = 0x1584
	callq	_nvkm_wr32
	jmp	LBB0_4
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	testb	%r13b, %r13b
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_8
## %bb.5:
	movl	8(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	movl	%r13d, %eax
	shrl	$8, %eax
	movzbl	%al, %eax
	divb	%r13b
	movzbl	%al, %esi
	movl	12(%r12), %eax
	cltd
	idivl	%ebx
	cmpl	%esi, %eax
	jle	LBB0_8
## %bb.7:
	movl	(%r12), %eax
	shll	$16, %eax
	movzwl	%r13w, %r13d
	orl	%eax, %r13d
	jmp	LBB0_9
LBB0_8:
	andl	$-65536, %r13d                  ## imm = 0xFFFF0000
	orl	4(%r12), %r13d
LBB0_9:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_nvkm_wr32
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	cmpl	$23, %r13d
	setl	%al
	cmpl	$26, %r13d
	sete	%cl
	cmpl	$17, %r13d
	je	LBB0_12
## %bb.10:
	orb	%cl, %al
	je	LBB0_12
## %bb.11:
	movl	$64, %edi
	callq	_msleep
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nvkm_rd32
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_nvkm_wr32
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_13
## %bb.14:
	movq	%rbx, %rdi
	movl	$5508, %esi                     ## imm = 0x1584
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setPLL_single                  ; -- Begin function setPLL_single
	.p2align	2
_setPLL_single:                         ; @setPLL_single
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x2
	mov	x20, x1
	ldr	x19, [x0]
	ldr	x8, [x19]
	ldr	w23, [x8]
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x25, x0
	and	w8, w0, #0xfff80000
	ldp	w9, w10, [x26]
	orr	w8, w8, w9, lsl #16
	orr	w21, w8, w10
	mov	x0, x23
	mov	x1, x20
	bl	_powerctrl_1_shift
	cmp	w25, w21
	b.eq	LBB0_12
; %bb.1:
	mov	x22, x0
	and	w27, w25, #0xff
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #5508
	bl	_nvkm_rd32
	mov	x24, x0
	mov	w8, #15
	lsl	w8, w8, w22
	bic	w8, w0, w8
	mov	w9, #1
	lsl	w9, w9, w22
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #5508
	bl	_nvkm_wr32
	cbnz	w27, LBB0_4
	b	LBB0_7
LBB0_3:
	mov	w24, #0
	cbz	w27, LBB0_7
LBB0_4:
	ldr	w8, [x26, #8]
	cbz	w8, LBB0_7
; %bb.5:
	ubfx	w9, w25, #8, #8
	and	w10, w25, #0xff
	udiv	w9, w9, w10
	ldr	w10, [x26, #12]
	sdiv	w8, w10, w8
	cmp	w8, w9
	b.le	LBB0_7
; %bb.6:
	ldr	w8, [x26]
	bfi	w25, w8, #16, #16
	b	LBB0_8
LBB0_7:
	and	w8, w25, #0xffff0000
	ldr	w9, [x26, #4]
	orr	w25, w9, w8
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_nvkm_wr32
	cmp	w23, #23
	ccmp	w23, #26, #4, ge
	cset	w8, eq
	cmp	w23, #17
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #64
	bl	_msleep
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_rd32
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nvkm_wr32
	tbnz	w22, #31, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #5508
	mov	x2, x24
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_nvkm_wr32
LBB0_12:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
