	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setPLL_double_lowregs
_setPLL_double_lowregs:                 ## @setPLL_double_lowregs
	.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, %r12
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	leal	-4(%rsi), %ebx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_nv_rd32
	movl	(%r12), %esi
	movl	8(%r12), %r14d
	movl	%esi, %r13d
	shll	$16, %r13d
	orl	4(%r12), %r13d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	cmpl	$16416, %ebx                    ## imm = 0x4020
	movl	%eax, %ebx
	movl	$1065943039, %ecx               ## imm = 0x3F88FFFF
	movl	$1073283071, %edx               ## imm = 0x3FF8FFFF
	cmovel	%ecx, %edx
	andl	%eax, %edx
	shll	$16, %r14d
	orl	%edx, %r14d
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	16(%r12), %rax
	cmpq	24(%r12), %rax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	jmp	LBB0_3
LBB0_1:
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
LBB0_3:
	movl	%r14d, %r15d
	orl	$-1073741824, %r15d             ## imm = 0xC0000000
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_nv_rd32
	cmpl	%r13d, %eax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	andl	$-1073283072, %eax              ## imm = 0xC0070000
	cmpl	%r15d, %eax
	je	LBB0_16
LBB0_5:
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$16384, %ebx                    ## imm = 0x4000
	movl	$-820, %eax                     ## imm = 0xFCCC
	movl	$-49153, %ecx                   ## imm = 0xFFFF3FFF
	cmovel	%eax, %ecx
	cmpl	$16472, %ebx                    ## imm = 0x4058
	movl	$-201326593, %eax               ## imm = 0xF3FFFFFF
	cmovnel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movl	$256, %eax                      ## imm = 0x100
	movl	$0, %ecx
	cmpl	$16416, %ebx                    ## imm = 0x4020
	jne	LBB0_8
## %bb.6:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_nouveau_bios
	leaq	-96(%rbp), %rdx
	movl	%eax, %edi
	movl	$16416, %esi                    ## imm = 0x4020
	callq	_nvbios_pll_parse
	testq	%rax, %rax
	jne	LBB0_16
## %bb.7:
	movl	-96(%rbp), %eax
	addl	8(%r12), %eax
	movl	-92(%rbp), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	shll	$20, %eax
	orl	%eax, %r14d
	orl	$-805306368, %r14d              ## imm = 0xD0000000
	movq	%r15, %rdi
	movl	$17920, %esi                    ## imm = 0x4600
	callq	_nv_rd32
	movl	%eax, %r12d
	movl	%eax, %edx
	orl	$-2147483648, %edx              ## imm = 0x80000000
	movq	%r15, %rdi
	movl	$17920, %esi                    ## imm = 0x4600
	callq	_nv_wr32
	movl	%r12d, %ecx
	movl	$4096, %eax                     ## imm = 0x1000
	movl	%r14d, %r15d
	xorl	%r13d, %r13d
LBB0_8:
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	cmovnel	%eax, %r13d
	orl	%r15d, %r13d
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	orl	$268435456, %edx                ## imm = 0x10000000
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nv_wr32
	movl	%r13d, %edx
	andl	$-1073741825, %edx              ## imm = 0xBFFFFFFF
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nv_wr32
	cmpl	$16416, %ebx                    ## imm = 0x4020
	jne	LBB0_10
## %bb.9:
	movl	%r13d, %r15d
	orl	$8388608, %r15d                 ## imm = 0x800000
	movl	%r15d, %r13d
	andl	$1073741823, %r15d              ## imm = 0x3FFFFFFF
	movq	%r14, %rdi
	movl	$16416, %esi                    ## imm = 0x4020
	movl	%r15d, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$16440, %esi                    ## imm = 0x4038
	movl	%r15d, %edx
	callq	_nv_wr32
LBB0_10:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movl	%eax, %r15d
	andl	%eax, %ebx
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	movl	%ebx, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	-76(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_nv_wr32
	cmpl	$16420, %ebx                    ## imm = 0x4024
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$16444, %esi                    ## imm = 0x403C
	movl	%r12d, %edx
	callq	_nv_wr32
LBB0_12:
	movq	%r14, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_nv_wr32
	cmpl	$16416, %ebx                    ## imm = 0x4020
	jne	LBB0_13
## %bb.14:
	movl	%r13d, %ebx
	andl	$-8388609, %ebx                 ## imm = 0xFF7FFFFF
	movq	%r14, %rdi
	movl	$16416, %esi                    ## imm = 0x4020
	movl	%ebx, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$16440, %esi                    ## imm = 0x4038
	movl	%ebx, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$17920, %esi                    ## imm = 0x4600
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	movl	%r15d, %edx
	callq	_nv_wr32
	andl	$-276824065, %r13d              ## imm = 0xEF7FFFFF
	movq	%r14, %rdi
	movl	$16416, %esi                    ## imm = 0x4020
	movl	%r13d, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$16440, %esi                    ## imm = 0x4038
	movl	%r13d, %edx
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	movl	%r15d, %edx
LBB0_15:
	callq	_nv_wr32
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_setPLL_double_lowregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setPLL_double_lowregs
_setPLL_double_lowregs:                 ; @setPLL_double_lowregs
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
	sub	w20, w1, #4
	mov	x1, x20
	bl	_nv_rd32
	mov	x24, x0
	ldp	w8, w9, [x23]
	orr	w22, w9, w8, lsl #16
	mov	w9, #1065943039
	orr	w10, w9, #0x700000
	mov	w11, #16416
	cmp	w20, w11
	csel	w9, w9, w10, eq
	and	w9, w0, w9
	ldr	w10, [x23, #8]
	orr	w26, w9, w10, lsl #16
	orr	w28, w26, #0xc0000000
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x8, x9, [x23, #16]
	cmp	x8, x9
	cset	w25, eq
	b	LBB0_3
LBB0_2:
	mov	w25, #1
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_nv_rd32
	mov	w8, #-1073283072
	and	w8, w24, w8
	cmp	w0, w22
	ccmp	w8, w28, #0, eq
	b.eq	LBB0_16
; %bb.4:
	mov	w8, #-49153
	mov	w9, #-820
	cmp	w20, #4, lsl #12                ; =16384
	csel	w8, w9, w8, eq
	mov	w9, #16472
	mov	w10, #-201326593
	cmp	w20, w9
	csel	w8, w10, w8, eq
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mov	w27, #16416
	cmp	w20, w27
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_nouveau_bios
	add	x2, sp, #8
	mov	w1, #16416
	bl	_nvbios_pll_parse
	cbnz	x0, LBB0_16
; %bb.6:
	ldr	w8, [x23, #8]
	ldp	w9, w10, [sp, #8]
	add	w8, w9, w8
	cmp	w8, w10
	csel	w8, w8, w10, lt
	orr	w8, w26, w8, lsl #20
	mov	w9, #-805306368
	orr	w28, w8, w9
	mov	x0, x19
	mov	w1, #17920
	bl	_nv_rd32
	mov	x23, x0
	orr	w2, w0, #0x80000000
	mov	x0, x19
	mov	w1, #17920
	bl	_nv_wr32
	mov	w8, #4096
	b	LBB0_8
LBB0_7:
	mov	w23, #0
	mov	w8, #256
LBB0_8:
	cmp	w25, #0
	csel	w8, w8, wzr, ne
	orr	w25, w28, w8
	orr	w2, w24, #0x10000000
	mov	x0, x19
	mov	x1, x20
	bl	_nv_wr32
	and	w2, w25, #0xbfffffff
	mov	x0, x19
	mov	x1, x20
	bl	_nv_wr32
	cmp	w20, w27
	b.ne	LBB0_10
; %bb.9:
	orr	w25, w25, #0x800000
	and	w24, w25, #0x3fffffff
	mov	x0, x19
	mov	w1, #16416
	mov	x2, x24
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #16440
	mov	x2, x24
	bl	_nv_wr32
LBB0_10:
	mov	x0, x19
	mov	w1, #49216
	bl	_nv_rd32
	mov	x24, x0
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	and	w2, w0, w8
	mov	x0, x19
	mov	w1, #49216
	bl	_nv_wr32
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_nv_wr32
	mov	w8, #16420
	cmp	w21, w8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #16444
	mov	x2, x22
	bl	_nv_wr32
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x25
	bl	_nv_wr32
	mov	w8, #16416
	cmp	w20, w8
	b.ne	LBB0_14
; %bb.13:
	and	w20, w25, #0xff7fffff
	mov	x0, x19
	mov	w1, #16416
	mov	x2, x20
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #16440
	mov	x2, x20
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #17920
	mov	x2, x23
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #49216
	mov	x2, x24
	bl	_nv_wr32
	mov	w8, #-276824065
	and	w20, w25, w8
	mov	x0, x19
	mov	w1, #16416
	mov	x2, x20
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #16440
	mov	x2, x20
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	mov	w1, #49216
	mov	x2, x24
LBB0_15:
	bl	_nv_wr32
LBB0_16:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_setPLL_double_lowregs
.subsections_via_symbols
