	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setPLL_double_highregs         ## -- Begin function setPLL_double_highregs
	.p2align	4, 0x90
_setPLL_double_highregs:                ## @setPLL_double_highregs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	leal	112(%rsi), %eax
	leal	92(%rsi), %r12d
	cmpl	$6817056, %esi                  ## imm = 0x680520
	cmovnel	%eax, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nvkm_rd32
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpl	$48, %ebx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.1:
	cmpl	$53, %ebx
	je	LBB0_3
## %bb.2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_nvkm_rd32
LBB0_3:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, -88(%rbp)                ## 4-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	andl	$-524288, %r15d                 ## imm = 0xFFF80000
	movl	(%r14), %r12d
	movl	8(%r14), %r13d
	shll	$16, %r12d
	orl	%r15d, %r12d
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movl	12(%r14), %eax
	cmpl	16(%r14), %eax
	sete	%al
	jmp	LBB0_6
LBB0_5:
	movb	$1, %al
LBB0_6:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	orl	4(%r14), %r12d
	movzbl	%al, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_powerctrl_1_shift
	movl	%eax, %r9d
	cmpl	$53, %ebx
	je	LBB0_8
## %bb.7:
	cmpl	$48, %ebx
	jne	LBB0_17
LBB0_8:
	andl	$-54001793, %r12d               ## imm = 0xFCC7FF7F
	movl	12(%r14), %eax
	movl	16(%r14), %ecx
	movl	%eax, %edx
	andl	$24, %edx
	shll	$21, %edx
	orl	%r12d, %edx
	andl	$7, %eax
	shll	$19, %eax
	orl	%edx, %eax
	shll	$4, %ecx
	movzbl	%cl, %r12d
	orl	%eax, %r12d
	orl	$128, %r12d
	xorl	%edx, %edx
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
LBB0_9:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_10:
	movl	%r12d, %eax
	andl	$1073741823, %eax               ## imm = 0x3FFFFFFF
	testl	%ecx, %ecx
	movl	$1073741824, %ecx               ## imm = 0x40000000
	movl	$-1073741824, %r13d             ## imm = 0xC0000000
	cmovnel	%ecx, %r13d
	orl	%eax, %r13d
	cmpl	$113, %ebx
	cmovll	%r12d, %r13d
	cmpl	%r13d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.11:
	cmpl	%edx, %esi
	je	LBB0_37
LBB0_12:
	movl	%ebx, %r15d
	xorl	%r12d, %r12d
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	testl	%r9d, %r9d
	movl	%r9d, %ebx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	js	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	$5508, %esi                     ## imm = 0x1584
	movl	%r8d, %r12d
	callq	_nvkm_rd32
	movl	$15, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	notl	%edx
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	andl	%eax, %edx
	btsl	%ebx, %edx
	movq	%r14, %rdi
	movl	$5508, %esi                     ## imm = 0x1584
	callq	_nvkm_wr32
	movl	%r12d, %r8d
	xorl	%r12d, %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_14:
	cmpl	$64, %r15d
	jl	LBB0_15
## %bb.20:
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	-6817024(%rax), %edx
	roll	$30, %edx
	cmpl	$8, %edx
	ja	LBB0_28
## %bb.21:
	movl	$16, %r12d
	movl	$18, %ecx
	movl	$20, %eax
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_22:
	movl	$22, %eax
LBB0_23:
	movl	%eax, %ecx
LBB0_24:
	movl	%ecx, %r12d
LBB0_25:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nvkm_rd32
	movl	$3, %edx
	movl	%r12d, %ecx
	shll	%cl, %edx
	movl	%eax, %r12d
	notl	%edx
	andl	%eax, %edx
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nvkm_wr32
	jmp	LBB0_29
LBB0_15:
	cmpl	%r8d, %edi
	jne	LBB0_30
LBB0_16:
	cmpl	$48, %r15d
	jne	LBB0_31
	jmp	LBB0_33
LBB0_17:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	andl	$2147418112, %eax               ## imm = 0x7FFF0000
	orl	%eax, %r13d
	movl	%r13d, %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	xorl	%edi, %edi
	cmpl	$6817032, %r15d                 ## imm = 0x680508
	jl	LBB0_26
## %bb.18:
	cmpl	$65, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jl	LBB0_27
## %bb.19:
	movq	%r14, %rdi
	movl	%r9d, -84(%rbp)                 ## 4-byte Spill
	movl	$6817152, %esi                  ## imm = 0x680580
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_new_ramdac580
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-84(%rbp), %r9d                 ## 4-byte Reload
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%eax, %r8d
	cmpl	%eax, %edi
	movl	$-1, %eax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	cmovnel	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	$-2147483361, %r13d             ## imm = 0x8000011F
	testl	%ecx, %ecx
	cmovnel	%r13d, %edx
	jmp	LBB0_10
LBB0_26:
	xorl	%r8d, %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_27:
	xorl	%r8d, %r8d
	jmp	LBB0_9
LBB0_28:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nvkm_rd32
	movl	%eax, %r12d
LBB0_29:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%r8d, %edi
	je	LBB0_16
LBB0_30:
	movq	%r14, %rdi
	movl	$6817152, %esi                  ## imm = 0x680580
	movl	%r8d, %edx
	callq	_nvkm_wr32
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmpl	$48, %r15d
	je	LBB0_33
LBB0_31:
	cmpl	$53, %r15d
	je	LBB0_33
## %bb.32:
	movq	%r14, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_nvkm_wr32
LBB0_33:
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	callq	_nvkm_wr32
	testl	%ebx, %ebx
	js	LBB0_35
## %bb.34:
	movq	%r14, %rdi
	movl	$5508, %esi                     ## imm = 0x1584
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_nvkm_wr32
LBB0_35:
	cmpl	$64, %r15d
	jl	LBB0_37
## %bb.36:
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	movl	%r12d, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_37:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_22
	.long	L0_0_set_25
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setPLL_double_highregs         ; -- Begin function setPLL_double_highregs
	.p2align	2
_setPLL_double_highregs:                ; @setPLL_double_highregs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	w9, #1408
	movk	w9, #104, lsl #16
	ldr	x19, [x0]
	ldr	x8, [x19]
	ldr	w20, [x8]
	sub	w8, w9, #96
	mov	w9, #112
	mov	w10, #92
	cmp	w1, w8
	csel	w8, w10, w9, eq
	add	w22, w8, w1
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x27, x0
	mov	w28, #0
	mov	w25, #1408
	movk	w25, #104, lsl #16
	cmp	w20, #48
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #53
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_nvkm_rd32
	mov	x28, x0
LBB0_3:
	str	w22, [sp, #8]                   ; 4-byte Folded Spill
	and	w9, w27, #0xfff80000
	ldp	w10, w8, [x26]
	orr	w9, w9, w10, lsl #16
	ldr	w24, [x26, #8]
	cbz	w24, LBB0_5
; %bb.4:
	ldp	w10, w11, [x26, #12]
	cmp	w10, w11
	cset	w22, eq
	b	LBB0_6
LBB0_5:
	mov	w22, #1
LBB0_6:
	orr	w23, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_powerctrl_1_shift
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w20, #53
	b.eq	LBB0_8
; %bb.7:
	cmp	w20, #48
	b.ne	LBB0_18
LBB0_8:
	mov	w24, #0
	mov	w12, #0
	mov	w2, #0
	mov	w8, #65407
	movk	w8, #64711, lsl #16
	and	w8, w23, w8
	ldp	w9, w10, [x26, #12]
	lsr	w11, w9, #3
	ubfiz	w10, w10, #4, #3
	bfi	w8, w11, #24, #2
	bfi	w8, w9, #19, #3
	orr	w8, w8, w10
	orr	w23, w8, #0x80
LBB0_9:
	and	w8, w23, #0x3fffffff
	cmp	w22, #0
	mov	w9, #1073741824
	cneg	w9, w9, eq
	orr	w8, w8, w9
	cmp	w20, #112
	csel	w22, w8, w23, gt
	cmp	w27, w22
	ccmp	w28, w24, #0, eq
	b.eq	LBB0_34
; %bb.10:
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	tbnz	w25, #31, LBB0_21
; %bb.11:
	mov	x23, x12
	mov	x0, x19
	mov	w1, #5508
	mov	x26, x2
	bl	_nvkm_rd32
	mov	x27, x0
	mov	w8, #15
	lsl	w8, w8, w25
	bic	w8, w0, w8
	mov	w9, #1
	lsl	w9, w9, w25
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #5508
	bl	_nvkm_wr32
	mov	x2, x26
	mov	x12, x23
	cmp	w20, #64
	b.lt	LBB0_22
LBB0_12:
	str	w2, [sp, #4]                    ; 4-byte Folded Spill
	mov	x28, x24
	mov	x24, x12
	sub	w8, w21, #1664, lsl #12         ; =6815744
	sub	w8, w8, #1280
	ror	w10, w8, #2
	cmp	w10, #8
	b.hi	LBB0_24
; %bb.13:
	mov	w23, #16
	mov	w9, #18
	mov	w8, #20
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_14
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_14:
	mov	w8, #22
LBB0_15:
	mov	x9, x8
LBB0_16:
	mov	x23, x9
LBB0_17:
	mov	x0, x19
	mov	w1, #49216
	bl	_nvkm_rd32
	mov	x26, x0
	mov	w8, #3
	lsl	w8, w8, w23
	bic	w2, w0, w8
	mov	x0, x19
	mov	w1, #49216
	bl	_nvkm_wr32
	b	LBB0_25
LBB0_18:
	mov	w12, #0
	and	w8, w28, #0x7fff0000
	orr	w26, w24, w8
	orr	w24, w26, #0x80000000
	sub	w8, w25, #121
	cmp	w21, w8
	b.le	LBB0_23
; %bb.19:
	cmp	w20, #65
	b.lt	LBB0_23
; %bb.20:
	mov	x0, x19
	mov	w1, #1408
	movk	w1, #104, lsl #16
	bl	_nvkm_rd32
	str	w24, [sp, #4]                   ; 4-byte Folded Spill
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	bl	_new_ramdac580
	mov	x2, x0
	mov	x12, x24
	ldr	w24, [sp, #4]                   ; 4-byte Folded Reload
	cmp	w12, w2
	csinv	w27, w27, wzr, eq
	mov	w8, #287
	movk	w8, #32768, lsl #16
	orr	w8, w26, w8
	cmp	w22, #0
	csel	w24, w8, w24, ne
	b	LBB0_9
LBB0_21:
	mov	w27, #0
	cmp	w20, #64
	b.ge	LBB0_12
LBB0_22:
	mov	w26, #0
	cmp	w12, w2
	b.ne	LBB0_26
	b	LBB0_27
LBB0_23:
	mov	x2, x12
	b	LBB0_9
LBB0_24:
	mov	x0, x19
	mov	w1, #49216
	bl	_nvkm_rd32
	mov	x26, x0
LBB0_25:
	mov	x12, x24
	mov	x24, x28
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w12, w2
	b.eq	LBB0_27
LBB0_26:
	mov	x0, x19
	mov	w1, #1408
	movk	w1, #104, lsl #16
	bl	_nvkm_wr32
LBB0_27:
	cmp	w20, #48
	b.eq	LBB0_30
; %bb.28:
	cmp	w20, #53
	b.eq	LBB0_30
; %bb.29:
	mov	x0, x19
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	mov	x2, x24
	bl	_nvkm_wr32
LBB0_30:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_nvkm_wr32
	tbnz	w25, #31, LBB0_32
; %bb.31:
	mov	x0, x19
	mov	w1, #5508
	mov	x2, x27
	bl	_nvkm_wr32
LBB0_32:
	cmp	w20, #64
	b.lt	LBB0_34
; %bb.33:
	mov	x0, x19
	mov	w1, #49216
	mov	x2, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nvkm_wr32
LBB0_34:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
	.byte	(LBB0_16-LBB0_14)>>2
                                        ; -- End function
.subsections_via_symbols
