	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_pll
_read_pll:                              ## @read_pll
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_nouveau_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_nv_rd32
	testb	$8, %al
	jne	LBB0_4
## %bb.1:
	testb	$1, %al
	jne	LBB0_3
## %bb.2:
	movl	$1, %ecx
	xorl	%eax, %eax
	movl	$1, %ebx
	testl	%ebx, %ebx
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	addl	$16, %r14d
	movl	$1, %ebx
	movl	$1, %r13d
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_3:
	leal	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
	movzbl	%al, %ecx
	movzbl	%ah, %edx
	movl	%edx, %r13d
	shrl	$16, %eax
	andl	$63, %eax
	andl	$65280, %r12d                   ## imm = 0xFF00
	cmpl	$59392, %r12d                   ## imm = 0xE800
	movl	$1, %ebx
	cmovnel	%eax, %ebx
LBB0_5:
	imull	%ecx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_read_clk
	movl	%r13d, %ecx
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_8:
	imull	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%ebx
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_pll
_read_pll:                              ; @read_pll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_nouveau_dev
	mov	x22, x0
	mov	x1, x21
	bl	_nv_rd32
	tbnz	w0, #3, LBB0_4
; %bb.1:
	tbnz	w0, #0, LBB0_5
; %bb.2:
	mov	w0, #0
	mov	w22, #1
	mov	w8, #1
	cbnz	w8, LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	add	w19, w19, #16
	mov	w21, #1
	mov	w22, #1
	mov	w23, #1
	b	LBB0_6
LBB0_5:
	add	w1, w21, #4
	mov	x0, x22
	bl	_nv_rd32
	and	w23, w0, #0xff
	ubfx	w22, w0, #8, #8
	ubfx	w8, w0, #16, #6
	and	w9, w21, #0xff00
	mov	w10, #59392
	cmp	w9, w10
	csinc	w21, w8, wzr, ne
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_read_clk
	mul	w8, w23, w21
	cbz	w8, LBB0_3
LBB0_7:
	mul	w9, w22, w0
	sdiv	w0, w9, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_pll
.subsections_via_symbols
