	.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, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r14d
	leal	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
	movl	%eax, %r13d
	movq	_nv_clk_src_href@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nvkm_clk_read
	movl	%eax, %r15d
	cmpl	$16424, %ebx                    ## imm = 0x4028
	je	LBB0_3
## %bb.1:
	xorl	%esi, %esi
	cmpl	$16416, %ebx                    ## imm = 0x4020
	jne	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	movl	$16496, %esi                    ## imm = 0x4070
	callq	_nvkm_rd32
	shrl	$16, %eax
	andb	$15, %al
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	movl	$16448, %esi                    ## imm = 0x4040
	callq	_nvkm_rd32
	movl	%eax, %esi
	shrl	$16, %esi
	andl	$15, %esi
LBB0_4:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_7
## %bb.5:
	movl	%r13d, %edx
	movzbl	%dl, %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movzbl	%dh, %eax
	imull	%eax, %r15d
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	cltd
	idivl	%esi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nv_clk_src_href,4,2            ## @nv_clk_src_href
	.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	x23, x1
	mov	x21, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x19, x0
	add	w1, w23, #4
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x20, x0
Lloh0:
	adrp	x8, _nv_clk_src_href@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nv_clk_src_href@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nvkm_clk_read
	mov	x21, x0
	mov	w8, #16424
	cmp	w23, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #16416
	cmp	w23, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x22
	mov	w1, #16496
	bl	_nvkm_rd32
	ubfx	w8, w0, #16, #4
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w0, #0
	tbnz	w19, #31, LBB0_5
	b	LBB0_7
LBB0_3:
	mov	x0, x22
	mov	w1, #16448
	bl	_nvkm_rd32
	ubfx	w8, w0, #16, #4
	mov	w0, #0
	tbnz	w19, #31, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w8, #0
	mov	w0, #0
	tbz	w19, #31, LBB0_7
LBB0_5:
	and	w9, w20, #0xff
	cbz	w9, LBB0_7
; %bb.6:
	ubfx	w10, w20, #8, #8
	mul	w10, w21, w10
	sdiv	w9, w10, w9
	sdiv	w0, w9, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_nv_clk_src_href,4,2            ; @nv_clk_src_href
	.no_dead_strip	_read_pll
.subsections_via_symbols
