	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_clk
_read_clk:                              ## @read_clk
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$3, %ebx
	movl	$137, %esi
	cmpl	$1, %ebx
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movl	%eax, %ebx
	leal	-128(%r12), %eax
	cmpl	$10, %eax
	ja	LBB0_55
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	testl	$1048576, %ebx                  ## imm = 0x100000
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movl	$16424, %esi                    ## imm = 0x4028
	callq	_nv_rd32
	movl	%eax, %r15d
	shrl	$16, %r15d
	andl	$7, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	callq	_nv_device
	movl	(%rax), %eax
	leal	-132(%rax), %ecx
	cmpl	$28, %ecx
	ja	LBB0_50
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1392645, %edx                  ## imm = 0x154005
	btl	%ecx, %edx
	jae	LBB0_49
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_read_div
	movl	%eax, %r13d
	movl	$132, %esi
	movl	%ebx, %eax
	andl	$201326592, %eax                ## imm = 0xC000000
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$134217728, %eax                ## imm = 0x8000000
	jne	LBB0_34
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$136, %esi
	jmp	LBB0_2
LBB0_11:
	cmpl	$3, %ebx
	je	LBB0_36
## %bb.12:
	cmpl	$2, %ebx
	jne	LBB0_38
## %bb.13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16416, %esi                    ## imm = 0x4020
	jmp	LBB0_37
LBB0_14:
	movq	%r13, %rdi
	movl	$16392, %esi                    ## imm = 0x4008
	callq	_nv_rd32
	movl	%eax, %r14d
	shrl	$16, %r14d
	andl	$7, %r14d
	movq	%r13, %rdi
	movl	$16392, %esi                    ## imm = 0x4008
	callq	_nv_rd32
	testl	$512, %eax                      ## imm = 0x200
	jne	LBB0_40
## %bb.15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16392, %esi                    ## imm = 0x4008
	callq	_read_pll
	jmp	LBB0_44
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_read_div
	movl	%eax, %r13d
	movl	(%r15), %edi
	callq	_nv_device
	movl	$-132, %ecx
	addl	(%rax), %ecx
	rorl	%ecx
	cmpl	$14, %ecx
	ja	LBB0_55
## %bb.17:
	shrl	$8, %r13d
	andl	$7, %r13d
	movl	$17283, %eax                    ## imm = 0x4383
	btl	%ecx, %eax
	jae	LBB0_52
## %bb.18:
	movl	%ebx, %ecx
	shrl	$10, %ecx
	andl	$3, %ecx
	xorl	%eax, %eax
	leaq	LJTI0_2(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_19:
	movl	(%r15), %edi
	callq	_nv_device
	cmpl	$160, (%rax)
	jne	LBB0_24
	jmp	LBB0_54
LBB0_20:
	movq	%r13, %rdi
	movl	$16416, %esi                    ## imm = 0x4020
	callq	_nv_rd32
	movl	%eax, %r13d
	shrl	$16, %r13d
	andl	$7, %r13d
	movl	%ebx, %eax
	andl	$48, %eax
	cmpl	$48, %eax
	je	LBB0_48
## %bb.21:
	cmpl	$32, %eax
	je	LBB0_58
## %bb.22:
	testl	%eax, %eax
	jne	LBB0_55
## %bb.23:
	testb	$-128, %bl
	jne	LBB0_59
LBB0_24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$138, %esi
	jmp	LBB0_62
LBB0_25:
	movl	%ebx, %eax
	andl	$805306368, %eax                ## imm = 0x30000000
	cmpl	$805306368, %eax                ## imm = 0x30000000
	je	LBB0_45
## %bb.26:
	cmpl	$536870912, %eax                ## imm = 0x20000000
	je	LBB0_45
## %bb.27:
	testl	%eax, %eax
	jne	LBB0_55
## %bb.28:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
LBB0_29:
	movl	$100000, %eax                   ## imm = 0x186A0
	jmp	LBB0_65
LBB0_30:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movl	$-227574, %eax                  ## imm = 0xFFFC870A
	jmp	LBB0_65
LBB0_31:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movl	$-455148, %eax                  ## imm = 0xFFF90E14
	jmp	LBB0_65
LBB0_32:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_46
LBB0_33:
	movl	(%r13), %eax
	jmp	LBB0_65
LBB0_34:
	cmpl	$201326592, %eax                ## imm = 0xC000000
	jne	LBB0_55
## %bb.35:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$135, %esi
	callq	_read_clk
	andb	$7, %r13b
	jmp	LBB0_63
LBB0_36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16424, %esi                    ## imm = 0x4028
LBB0_37:
	callq	_read_pll
	jmp	LBB0_39
LBB0_38:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movl	(%r14), %eax
LBB0_39:
	movl	%r15d, %ecx
	jmp	LBB0_64
LBB0_40:
	movl	%ebx, %eax
	andl	$49152, %eax                    ## imm = 0xC000
	cmpl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_47
## %bb.41:
	movzwl	%ax, %ecx
	cmpl	$49152, %ecx                    ## imm = 0xC000
	je	LBB0_47
## %bb.42:
	testw	%ax, %ax
	jne	LBB0_55
## %bb.43:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$138, %esi
	callq	_read_clk
LBB0_44:
	movl	%r14d, %ecx
	jmp	LBB0_64
LBB0_45:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
LBB0_46:
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movl	$-151716, %eax                  ## imm = 0xFFFDAF5C
	jmp	LBB0_65
LBB0_47:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movl	%r14d, %r15d
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	movl	$100000, %eax                   ## imm = 0x186A0
	movl	%r15d, %ecx
	shrl	%cl, %eax
	jmp	LBB0_65
LBB0_48:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16416, %esi                    ## imm = 0x4020
	callq	_read_pll
	jmp	LBB0_63
LBB0_49:
	cmpl	$28, %ecx
	je	LBB0_51
LBB0_50:
	cmpl	$80, %eax
	jne	LBB0_55
LBB0_51:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$59408, %esi                    ## imm = 0xE810
	callq	_read_pll
	sarl	$2, %eax
	jmp	LBB0_65
LBB0_52:
	cmpl	$10, %ecx
	jne	LBB0_55
## %bb.53:
	shrl	$10, %ebx
	andl	$3, %ebx
	xorl	%eax, %eax
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_54:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$130, %esi
	jmp	LBB0_62
LBB0_55:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_NV_DEBUG
	xorl	%eax, %eax
	jmp	LBB0_65
LBB0_56:
	testl	$16777216, %ebx                 ## imm = 0x1000000
	jne	LBB0_58
## %bb.57:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16432, %esi                    ## imm = 0x4030
	callq	_read_pll
	jmp	LBB0_63
LBB0_58:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16424, %esi                    ## imm = 0x4028
	callq	_read_pll
	jmp	LBB0_63
LBB0_59:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$133, %esi
	jmp	LBB0_62
LBB0_60:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$134, %esi
	jmp	LBB0_62
LBB0_61:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$131, %esi
LBB0_62:
	callq	_read_clk
LBB0_63:
	movl	%r13d, %ecx
LBB0_64:
	sarl	%cl, %eax
LBB0_65:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_29
	.long	L0_0_set_25
	.long	L0_0_set_30
	.long	L0_0_set_31
	.long	L0_0_set_32
	.long	L0_0_set_6
	.long	L0_0_set_33
.set L0_1_set_54, LBB0_54-LJTI0_1
.set L0_1_set_65, LBB0_65-LJTI0_1
.set L0_1_set_60, LBB0_60-LJTI0_1
.set L0_1_set_61, LBB0_61-LJTI0_1
LJTI0_1:
	.long	L0_1_set_54
	.long	L0_1_set_65
	.long	L0_1_set_60
	.long	L0_1_set_61
.set L0_2_set_19, LBB0_19-LJTI0_2
.set L0_2_set_65, LBB0_65-LJTI0_2
.set L0_2_set_56, LBB0_56-LJTI0_2
.set L0_2_set_54, LBB0_54-LJTI0_2
LJTI0_2:
	.long	L0_2_set_19
	.long	L0_2_set_65
	.long	L0_2_set_56
	.long	L0_2_set_54
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown clock source %d 0x%08x\n"

	.no_dead_strip	_read_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_clk
_read_clk:                              ; @read_clk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	mov	w24, #1
	mov	w25, #16389
	movk	w25, #21, lsl #16
	mov	w26, #134217728
Lloh0:
	adrp	x27, lJTI0_0@PAGE
Lloh1:
	add	x27, x27, lJTI0_0@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x1
	mov	x0, x19
	bl	_nouveau_dev
	mov	x23, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x22, x0
	mov	x0, x23
	mov	w1, #49216
	bl	_nv_rd32
	mov	x20, x0
	sub	w8, w21, #128
	cmp	w8, #10
	b.hi	LBB0_54
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w20, #20, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	mov	w1, #16424
	bl	_nv_rd32
	ubfx	w21, w0, #16, #3
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	bl	_nv_device
	ldr	w8, [x0]
	sub	w9, w8, #132
	cmp	w9, #28
	b.hi	LBB0_49
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	w10, w24, w9
	tst	w10, w25
	b.eq	LBB0_48
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_read_div
	mov	w1, #132
	ands	w8, w20, #0xc000000
	b.eq	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, w26
	b.ne	LBB0_35
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #136
	b	LBB0_1
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w21, #0
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w8, w20, #0x3
	mov	w1, #137
	cmp	w8, #1
	b.eq	LBB0_1
; %bb.12:
	cmp	w8, #3
	b.eq	LBB0_37
; %bb.13:
	cmp	w8, #2
	b.ne	LBB0_39
; %bb.14:
	mov	x0, x19
	mov	w1, #16416
	b	LBB0_38
LBB0_15:
	mov	x0, x23
	mov	w1, #16392
	bl	_nv_rd32
	ubfx	w24, w0, #16, #3
	mov	x0, x23
	mov	w1, #16392
	bl	_nv_rd32
	tbnz	w0, #9, LBB0_40
; %bb.16:
	mov	x0, x19
	mov	w1, #16392
	bl	_read_pll
	asr	w21, w0, w24
	b	LBB0_64
LBB0_17:
	mov	x0, x19
	bl	_read_div
	mov	x23, x0
	ldr	w0, [x22]
	bl	_nv_device
	ldr	w8, [x0]
	sub	w8, w8, #132
	ror	w8, w8, #1
	cmp	w8, #14
	b.hi	LBB0_54
; %bb.18:
	ubfx	w23, w23, #8, #3
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #17283
	tst	w9, w10
	b.eq	LBB0_51
; %bb.19:
	ubfx	w8, w20, #10, #2
	mov	w21, #0
Lloh2:
	adrp	x9, lJTI0_2@PAGE
Lloh3:
	add	x9, x9, lJTI0_2@PAGEOFF
	adr	x10, LBB0_20
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_20:
	ldr	w0, [x22]
	bl	_nv_device
	ldr	w8, [x0]
	cmp	w8, #160
	b.ne	LBB0_25
	b	LBB0_53
LBB0_21:
	mov	x0, x23
	mov	w1, #16416
	bl	_nv_rd32
	ubfx	w23, w0, #16, #3
	and	w8, w20, #0x30
	cmp	w8, #48
	b.eq	LBB0_47
; %bb.22:
	cmp	w8, #32
	b.eq	LBB0_57
; %bb.23:
	cbnz	w8, LBB0_54
; %bb.24:
	tbnz	w20, #7, LBB0_59
LBB0_25:
	mov	x0, x19
	mov	w1, #138
	b	LBB0_62
LBB0_26:
	mov	w21, #34464
	movk	w21, #1, lsl #16
	b	LBB0_64
LBB0_27:
	and	w8, w20, #0x30000000
	mov	w9, #805306368
	cmp	w8, w9
	b.eq	LBB0_44
; %bb.28:
	mov	w9, #536870912
	cmp	w8, w9
	b.eq	LBB0_44
; %bb.29:
	cbnz	w8, LBB0_54
; %bb.30:
	mov	w21, #34464
	movk	w21, #1, lsl #16
	b	LBB0_45
LBB0_31:
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	mov	w21, #34570
	movk	w21, #65532, lsl #16
	b	LBB0_64
LBB0_32:
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	mov	w21, #3604
	movk	w21, #65529, lsl #16
	b	LBB0_64
LBB0_33:
	mov	w21, #44892
	movk	w21, #65533, lsl #16
	b	LBB0_45
LBB0_34:
	ldr	w21, [x23]
	b	LBB0_64
LBB0_35:
	mov	w9, #201326592
	cmp	w8, w9
	b.ne	LBB0_54
; %bb.36:
	and	w20, w0, #0x7
	mov	x0, x19
	mov	w1, #135
	bl	_read_clk
	asr	w21, w0, w20
	b	LBB0_64
LBB0_37:
	mov	x0, x19
	mov	w1, #16424
LBB0_38:
	bl	_read_pll
	asr	w21, w0, w21
	b	LBB0_64
LBB0_39:
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	ldr	w8, [x20]
	asr	w21, w8, w21
	b	LBB0_64
LBB0_40:
	and	w8, w20, #0xc000
	cmp	w8, #12, lsl #12                ; =49152
	b.eq	LBB0_46
; %bb.41:
	cmp	w8, #8, lsl #12                 ; =32768
	b.eq	LBB0_46
; %bb.42:
	cbnz	w8, LBB0_54
; %bb.43:
	mov	x0, x19
	mov	w1, #138
	bl	_read_clk
	asr	w21, w0, w24
	b	LBB0_64
LBB0_44:
	mov	w21, #44892
	movk	w21, #65533, lsl #16
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
LBB0_45:
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	b	LBB0_64
LBB0_46:
	mov	x0, x19
	bl	_nouveau_dev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	mov	w8, #34464
	movk	w8, #1, lsl #16
	lsr	w21, w8, w24
	b	LBB0_64
LBB0_47:
	mov	x0, x19
	mov	w1, #16416
	b	LBB0_58
LBB0_48:
	cmp	w9, #28
	b.eq	LBB0_50
LBB0_49:
	cmp	w8, #80
	b.ne	LBB0_54
LBB0_50:
	mov	x0, x19
	mov	w1, #59408
	bl	_read_pll
	asr	w21, w0, #2
	b	LBB0_64
LBB0_51:
	cmp	w8, #10
	b.ne	LBB0_54
; %bb.52:
	ubfx	w8, w20, #10, #2
	mov	w21, #0
Lloh4:
	adrp	x9, lJTI0_1@PAGE
Lloh5:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_53
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_53:
	mov	x0, x19
	mov	w1, #130
	b	LBB0_62
LBB0_54:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_NV_DEBUG
	mov	w21, #0
	b	LBB0_64
LBB0_55:
	tbnz	w20, #24, LBB0_57
; %bb.56:
	mov	x0, x19
	mov	w1, #16432
	b	LBB0_58
LBB0_57:
	mov	x0, x19
	mov	w1, #16424
LBB0_58:
	bl	_read_pll
	b	LBB0_63
LBB0_59:
	mov	x0, x19
	mov	w1, #133
	b	LBB0_62
LBB0_60:
	mov	x0, x19
	mov	w1, #134
	b	LBB0_62
LBB0_61:
	mov	x0, x19
	mov	w1, #131
LBB0_62:
	bl	_read_clk
LBB0_63:
	asr	w21, w0, w23
LBB0_64:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_26-LBB0_3)>>2
	.byte	(LBB0_27-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_32-LBB0_3)>>2
	.byte	(LBB0_33-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_34-LBB0_3)>>2
lJTI0_1:
	.byte	(LBB0_53-LBB0_53)>>2
	.byte	(LBB0_64-LBB0_53)>>2
	.byte	(LBB0_60-LBB0_53)>>2
	.byte	(LBB0_61-LBB0_53)>>2
lJTI0_2:
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_64-LBB0_20)>>2
	.byte	(LBB0_55-LBB0_20)>>2
	.byte	(LBB0_53-LBB0_20)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown clock source %d 0x%08x\n"

	.no_dead_strip	_read_clk
.subsections_via_symbols
