	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r12d
	leal	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movl	%eax, %ecx
	xorl	%eax, %eax
	testb	$1, %r12b
	je	LBB0_19
## %bb.1:
	cmpl	$1273855, %ebx                  ## imm = 0x136FFF
	jg	LBB0_9
## %bb.2:
	cmpl	$1253375, %ebx                  ## imm = 0x131FFF
	jg	LBB0_6
## %bb.3:
	cmpl	$59392, %ebx                    ## imm = 0xE800
	je	LBB0_5
## %bb.4:
	cmpl	$59424, %ebx                    ## imm = 0xE820
	jne	LBB0_19
LBB0_5:
	movl	(%r15), %r14d
	movl	%ecx, %ebx
	movl	$1, %ecx
	jmp	LBB0_17
LBB0_9:
	cmpl	$1273919, %ebx                  ## imm = 0x13703F
	jg	LBB0_12
## %bb.10:
	cmpl	$1273856, %ebx                  ## imm = 0x137000
	je	LBB0_14
## %bb.11:
	cmpl	$1273888, %ebx                  ## imm = 0x137020
	je	LBB0_14
	jmp	LBB0_19
LBB0_6:
	cmpl	$1253376, %ebx                  ## imm = 0x132000
	je	LBB0_16
## %bb.7:
	cmpl	$1253408, %ebx                  ## imm = 0x132020
	jne	LBB0_19
## %bb.8:
	movl	%ecx, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1274656, %edx                  ## imm = 0x137320
	movl	$1274672, %ecx                  ## imm = 0x137330
	callq	_read_div
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$1253424, %esi                  ## imm = 0x132030
	callq	_nvkm_rd32
	sarl	$16, %eax
	addl	$4096, %eax                     ## imm = 0x1000
	jmp	LBB0_15
LBB0_12:
	cmpl	$1273920, %ebx                  ## imm = 0x137040
	je	LBB0_14
## %bb.13:
	cmpl	$1274080, %ebx                  ## imm = 0x1370E0
	jne	LBB0_19
LBB0_14:
	movl	%ecx, %r12d
	shrl	$5, %ebx
	andl	$7, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1274144, %edx                  ## imm = 0x137120
	movl	$1274176, %ecx                  ## imm = 0x137140
	callq	_read_div
	movl	%eax, %r14d
	movl	$65536, %eax                    ## imm = 0x10000
LBB0_15:
	movl	%r12d, %ebx
	movl	%r12d, %edx
	shrl	$16, %edx
	andl	$63, %edx
	movl	$1, %ecx
	cmovnel	%edx, %ecx
	jmp	LBB0_18
LBB0_16:
	movq	%r14, %rdi
	movl	$1253408, %esi                  ## imm = 0x132020
	movl	%ecx, %ebx
	callq	_read_pll
	movl	%eax, %r14d
	movl	%ebx, %eax
	andl	$268435456, %eax                ## imm = 0x10000000
	cmpl	$1, %eax
	movl	$2, %ecx
	sbbl	$0, %ecx
LBB0_17:
	movl	$65536, %eax                    ## imm = 0x10000
LBB0_18:
	movzbl	%bh, %edx
	movzbl	%bl, %esi
	imull	%ecx, %esi
	imull	%r14d, %edx
	imull	%r14d, %eax
	sarl	$13, %eax
	addl	%edx, %eax
	cltd
	idivl	%esi
LBB0_19:
	popq	%rbx
	popq	%r12
	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, x1
	mov	x20, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x23, x0
	add	w1, w21, #4
	mov	x0, x22
	bl	_nvkm_rd32
	tbnz	w23, #0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_21
LBB0_2:
	mov	x19, x0
	mov	w0, #0
	cmp	w21, #311, lsl #12              ; =1273856
	b.ge	LBB0_7
; %bb.3:
	cmp	w21, #306, lsl #12              ; =1253376
	b.ge	LBB0_10
; %bb.4:
	mov	w8, #59392
	cmp	w21, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #59424
	cmp	w21, w8
	b.ne	LBB0_21
LBB0_6:
	ldr	w20, [x22]
	mov	w9, #1
	b	LBB0_19
LBB0_7:
	mov	w8, #28735
	movk	w8, #19, lsl #16
	cmp	w21, w8
	b.gt	LBB0_13
; %bb.8:
	cmp	w21, #311, lsl #12              ; =1273856
	b.eq	LBB0_16
; %bb.9:
	mov	w8, #28704
	b	LBB0_15
LBB0_10:
	b.eq	LBB0_18
; %bb.11:
	mov	w23, #8224
	movk	w23, #19, lsl #16
	cmp	w21, w23
	b.ne	LBB0_21
; %bb.12:
	mov	w8, #28960
	movk	w8, #19, lsl #16
	orr	w2, w8, #0x200
	mov	w9, #528
	orr	w3, w8, w9
	mov	x0, x20
	mov	w1, #0
	bl	_read_div
	mov	x20, x0
	orr	w1, w23, #0x10
	mov	x0, x22
	bl	_nvkm_rd32
	asr	w8, w0, #16
	add	w8, w8, #1, lsl #12             ; =4096
	b	LBB0_17
LBB0_13:
	mov	w8, #28736
	movk	w8, #19, lsl #16
	cmp	w21, w8
	b.eq	LBB0_16
; %bb.14:
	mov	w8, #28896
LBB0_15:
	movk	w8, #19, lsl #16
	cmp	w21, w8
	b.ne	LBB0_21
LBB0_16:
	ubfx	w1, w21, #5, #3
	mov	w8, #28960
	movk	w8, #19, lsl #16
	add	w3, w8, #32
	mov	x0, x20
	mov	w2, #28960
	movk	w2, #19, lsl #16
	bl	_read_div
	mov	x20, x0
	mov	w8, #65536
LBB0_17:
	ubfx	w9, w19, #16, #6
	cmp	w9, #0
	csinc	w9, w9, wzr, ne
	b	LBB0_20
LBB0_18:
	mov	x0, x20
	mov	w1, #8224
	movk	w1, #19, lsl #16
	bl	_read_pll
	mov	x20, x0
	tst	w19, #0x10000000
	mov	w8, #1
	cinc	w9, w8, ne
LBB0_19:
	mov	w8, #65536
LBB0_20:
	ubfx	w10, w19, #8, #8
	and	w11, w19, #0xff
	mul	w10, w20, w10
	mul	w8, w20, w8
	add	w8, w10, w8, asr #13
	mul	w9, w9, w11
	sdiv	w0, w8, w9
LBB0_21:
	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
