	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_pll_2
_read_pll_2:                            ## @read_pll_2
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_nouveau_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	movl	%eax, %r14d
	addl	$4, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nv_rd32
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_5
## %bb.1:
	movzbl	%cl, %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:
	movzbl	%ch, %eax
	imull	$27000, %eax, %eax              ## imm = 0x6978
	xorl	%edx, %edx
	divl	%esi
	movl	%r14d, %esi
	andl	$1073742080, %esi               ## imm = 0x40000100
	cmpl	$1073741824, %esi               ## imm = 0x40000000
	jne	LBB0_5
## %bb.3:
	movl	%eax, %edx
	movl	%ecx, %eax
	shrl	$16, %eax
	movzbl	%al, %esi
	movl	$0, %eax
	testl	%esi, %esi
	je	LBB0_5
## %bb.4:
	shrl	$24, %ecx
	imull	%ecx, %edx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%esi
LBB0_5:
	shrl	$16, %r14d
	andb	$7, %r14b
	movl	%r14d, %ecx
	shrl	%cl, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_pll_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_pll_2
_read_pll_2:                            ; @read_pll_2
	.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	x20, x1
	bl	_nouveau_dev
	mov	x21, x0
	mov	x1, x20
	bl	_nv_rd32
	mov	x19, x0
	add	w1, w20, #4
	mov	x0, x21
	bl	_nv_rd32
	mov	w8, #0
	tbz	w19, #31, LBB0_6
; %bb.1:
	and	w9, w0, #0xff
	cbz	w9, LBB0_6
; %bb.2:
	ubfx	w8, w0, #8, #8
	mov	w10, #27000
	mul	w8, w8, w10
	and	w10, w19, #0x7fffff00
	and	w10, w10, #0xc00001ff
	mov	w11, #1073741824
	udiv	w8, w8, w9
	cmp	w10, w11
	b.ne	LBB0_6
; %bb.3:
	ubfx	w9, w0, #16, #8
	cbz	w9, LBB0_5
; %bb.4:
	lsr	w10, w0, #24
	mul	w8, w8, w10
	udiv	w8, w8, w9
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	ubfx	w9, w19, #16, #3
	lsr	w0, w8, w9
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_pll_2
.subsections_via_symbols
