	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_pll_ref
_read_pll_ref:                          ## @read_pll_ref
	.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, %r12d
	movq	%rdi, %r14
	callq	_nouveau_dev
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_nouveau_drm
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	cmpl	$16423, %r12d                   ## imm = 0x4027
	jle	LBB0_1
## %bb.4:
	cmpl	$16424, %r12d                   ## imm = 0x4028
	je	LBB0_5
## %bb.6:
	cmpl	$16432, %r12d                   ## imm = 0x4030
	je	LBB0_15
## %bb.7:
	cmpl	$59408, %r12d                   ## imm = 0xE810
	jne	LBB0_10
## %bb.8:
	movq	_clk_src_crystal@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	cmpl	$16392, %r12d                   ## imm = 0x4008
	je	LBB0_11
## %bb.2:
	cmpl	$16416, %r12d                   ## imm = 0x4020
	jne	LBB0_10
## %bb.3:
	movl	$22, %ecx
	btl	%ecx, %eax
	jb	LBB0_13
	jmp	LBB0_14
LBB0_5:
	movl	$21, %ecx
	btl	%ecx, %eax
	jb	LBB0_13
	jmp	LBB0_14
LBB0_15:
	movl	$25, %ecx
	btl	%ecx, %eax
	jae	LBB0_14
LBB0_13:
	movq	_clk_src_href@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_clk                       ## TAILCALL
LBB0_11:
	movl	$16, %ecx
	btl	%ecx, %eax
	jb	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read_pll_src                   ## TAILCALL
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_NV_ERROR
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clk_src_crystal,4,2            ## @clk_src_crystal
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad pll 0x%06x\n"

	.comm	_clk_src_href,4,2               ## @clk_src_href
	.no_dead_strip	_read_pll_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_pll_ref
_read_pll_ref:                          ; @read_pll_ref
	.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	x19, x1
	mov	x20, x0
	bl	_nouveau_dev
	mov	x22, x0
	mov	x0, x20
	bl	_nouveau_drm
	mov	x21, x0
	mov	x0, x22
	mov	w1, #49216
	bl	_nv_rd32
	mov	w8, #16423
	cmp	w19, w8
	b.le	LBB0_5
; %bb.1:
	mov	w8, #16424
	cmp	w19, w8
	b.eq	LBB0_8
; %bb.2:
	mov	w8, #16432
	cmp	w19, w8
	b.eq	LBB0_9
; %bb.3:
	mov	w8, #59408
	cmp	w19, w8
	b.ne	LBB0_14
; %bb.4:
Lloh0:
	adrp	x8, _clk_src_crystal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _clk_src_crystal@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	w8, #16392
	cmp	w19, w8
	b.eq	LBB0_12
; %bb.6:
	mov	w8, #16416
	cmp	w19, w8
	b.ne	LBB0_14
; %bb.7:
	mov	w8, #22
	lsr	w8, w0, w8
	tbnz	w8, #0, LBB0_10
	b	LBB0_13
LBB0_8:
	mov	w8, #21
	lsr	w8, w0, w8
	tbnz	w8, #0, LBB0_10
	b	LBB0_13
LBB0_9:
	mov	w8, #25
	lsr	w8, w0, w8
	tbz	w8, #0, LBB0_13
LBB0_10:
Lloh2:
	adrp	x8, _clk_src_href@GOTPAGE
Lloh3:
	ldr	x8, [x8, _clk_src_href@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x20
	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
	b	_read_clk
LBB0_12:
	mov	w8, #16
	lsr	w8, w0, w8
	tbnz	w8, #0, LBB0_10
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	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
	b	_read_pll_src
LBB0_14:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_NV_ERROR
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_clk_src_crystal,4,2            ; @clk_src_crystal
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad pll 0x%06x\n"

	.comm	_clk_src_href,4,2               ; @clk_src_href
	.no_dead_strip	_read_pll_ref
.subsections_via_symbols
