	.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	%esi, %r15d
	movq	%rdi, %r14
	callq	_nouveau_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_nv_rd32
	movl	%eax, %r12d
	leal	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_nv_rd32
	movl	%eax, %edx
	xorl	%eax, %eax
	testb	$1, %r12b
	je	LBB0_14
## %bb.1:
	movl	%r15d, %ecx
	andl	$16773120, %ecx                 ## imm = 0xFFF000
	cmpl	$57344, %ecx                    ## imm = 0xE000
	je	LBB0_2
## %bb.3:
	movl	%edx, %ebx
	shrl	$16, %ebx
	andl	$63, %ebx
	cmpl	$1253376, %ecx                  ## imm = 0x132000
	je	LBB0_6
## %bb.4:
	cmpl	$1273856, %ecx                  ## imm = 0x137000
	jne	LBB0_14
## %bb.5:
	leal	-1273856(%r15), %eax
	addl	$-1273825, %r15d                ## imm = 0xFFEC901F
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$5, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%edx, %r14d
	movl	$1274144, %edx                  ## imm = 0x137120
	movl	$1274176, %ecx                  ## imm = 0x137140
	jmp	LBB0_12
LBB0_2:
	movl	$27000, %eax                    ## imm = 0x6978
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_6:
	cmpl	$1253408, %r15d                 ## imm = 0x132020
	je	LBB0_11
## %bb.7:
	cmpl	$1253376, %r15d                 ## imm = 0x132000
	jne	LBB0_14
## %bb.8:
	movl	%edx, %r13d
	movq	%r14, %rdi
	callq	_nouveau_dev
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$1253408, %esi                  ## imm = 0x132020
	callq	_nv_rd32
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$1253412, %esi                  ## imm = 0x132024
	callq	_nv_rd32
	movl	%eax, %ecx
	xorl	%eax, %eax
	testb	$1, %r15b
	jne	LBB0_10
## %bb.9:
	movl	%r13d, %edx
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%edx, %r14d
	movl	$1274656, %edx                  ## imm = 0x137320
	movl	$1274672, %ecx                  ## imm = 0x137330
LBB0_12:
	callq	_read_div
	movl	%r14d, %edx
LBB0_13:
	movzbl	%dh, %ecx
	movzbl	%dl, %esi
	imull	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cltd
	idivl	%ebx
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movzbl	%cl, %r15d
	movzbl	%ch, %eax
	movl	%eax, %r12d
	shrl	$16, %ecx
	andl	$63, %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1274656, %edx                  ## imm = 0x137320
	movl	%ecx, %r14d
	movl	$1274672, %ecx                  ## imm = 0x137330
	callq	_read_div
	imull	%r12d, %eax
	cltd
	idivl	%r15d
	cltd
	idivl	%r14d
	movl	%r13d, %edx
	jmp	LBB0_13
	.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, x1
	mov	x20, x0
	bl	_nouveau_dev
	mov	x19, x0
	mov	x1, x21
	bl	_nv_rd32
	mov	x22, x0
	add	w1, w21, #4
	mov	x0, x19
	bl	_nv_rd32
	tbnz	w22, #0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_14
LBB0_2:
	mov	x19, x0
	and	w8, w21, #0xfff000
	cmp	w8, #14, lsl #12                ; =57344
	b.eq	LBB0_6
; %bb.3:
	ubfx	w23, w19, #16, #6
	cmp	w8, #306, lsl #12               ; =1253376
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #311, lsl #12               ; =1273856
	b.ne	LBB0_1
; %bb.5:
	sub	w8, w21, #311, lsl #12          ; =1273856
	sub	w9, w21, #310, lsl #12          ; =1269760
	sub	w9, w9, #4065
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #5
	mov	w8, #29472
	movk	w8, #19, lsl #16
	sub	w2, w8, #512
	sub	w3, w8, #480
	mov	x0, x20
	b	LBB0_12
LBB0_6:
	mov	w0, #27000
	mov	w23, #1
	b	LBB0_13
LBB0_7:
	mov	w8, #8224
	movk	w8, #19, lsl #16
	cmp	w21, w8
	b.eq	LBB0_11
; %bb.8:
	cmp	w21, #306, lsl #12              ; =1253376
	b.ne	LBB0_1
; %bb.9:
	mov	x0, x20
	bl	_nouveau_dev
	mov	x21, x0
	mov	w24, #8224
	movk	w24, #19, lsl #16
	mov	w1, #8224
	movk	w1, #19, lsl #16
	bl	_nv_rd32
	mov	x22, x0
	orr	w1, w24, #0x4
	mov	x0, x21
	bl	_nv_rd32
	tbnz	w22, #0, LBB0_15
; %bb.10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	mov	w8, #29472
	movk	w8, #19, lsl #16
	orr	w3, w8, #0x10
	mov	x0, x20
	mov	w1, #0
	mov	w2, #29472
	movk	w2, #19, lsl #16
LBB0_12:
	bl	_read_div
LBB0_13:
	ubfx	w8, w19, #8, #8
	and	w9, w19, #0xff
	mul	w8, w0, w8
	sdiv	w8, w8, w9
	sdiv	w0, w8, w23
LBB0_14:
	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
LBB0_15:
	and	w21, w0, #0xff
	ubfx	w22, w0, #8, #8
	ubfx	w24, w0, #16, #6
	mov	w8, #29472
	movk	w8, #19, lsl #16
	orr	w3, w8, #0x10
	mov	x0, x20
	mov	w1, #0
	mov	w2, #29472
	movk	w2, #19, lsl #16
	bl	_read_div
	mul	w8, w0, w22
	sdiv	w8, w8, w21
	sdiv	w0, w8, w24
	b	LBB0_13
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_pll
.subsections_via_symbols
