	.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
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nvkm_rd32
	movl	%eax, %r13d
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_nvkm_rd32
	movl	%eax, %r14d
	leal	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_nvkm_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_read_pll_ref
	cmpl	$16424, %ebx                    ## imm = 0x4028
	jne	LBB0_3
## %bb.1:
	andl	$1048576, %r13d                 ## imm = 0x100000
	je	LBB0_3
## %bb.2:
	cmpl	$160, (%r12)
	jne	LBB0_9
LBB0_3:
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	jns	LBB0_8
## %bb.4:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movzbl	%bl, %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.5:
	movzbl	%bh, %ecx
	imull	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	andl	$1073742080, %r14d              ## imm = 0x40000100
	movl	%eax, %ecx
	cmpl	$1073741824, %r14d              ## imm = 0x40000000
	jne	LBB0_8
## %bb.6:
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %esi
	movl	$0, %ecx
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:
	shrl	$24, %ebx
	imull	%ebx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_nv_clk_src_dom6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_clk_read                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nv_clk_src_dom6,4,2            ## @nv_clk_src_dom6
	.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	x24, x1
	mov	x20, x0
	ldr	x22, [x0]
	mov	x0, x22
	mov	w1, #49216
	bl	_nvkm_rd32
	mov	x23, x0
	mov	x0, x22
	mov	x1, x24
	bl	_nvkm_rd32
	mov	x21, x0
	add	w1, w24, #4
	mov	x0, x22
	bl	_nvkm_rd32
	mov	x19, x0
	mov	x0, x20
	mov	x1, x24
	bl	_read_pll_ref
	mov	x8, x0
	mov	w9, #16424
	cmp	w24, w9
	b.ne	LBB0_3
; %bb.1:
	tbz	w23, #20, LBB0_3
; %bb.2:
	ldr	w9, [x22]
	cmp	w9, #160
	b.ne	LBB0_8
LBB0_3:
	mov	w0, #0
	tbz	w21, #31, LBB0_10
; %bb.4:
	and	w9, w19, #0xff
	cbz	w9, LBB0_10
; %bb.5:
	ubfx	w10, w19, #8, #8
	mul	w8, w10, w8
	and	w10, w21, #0x7fffff00
	and	w10, w10, #0xc00001ff
	mov	w11, #1073741824
	sdiv	w0, w8, w9
	cmp	w10, w11
	b.ne	LBB0_10
; %bb.6:
	ubfx	w8, w19, #16, #8
	cbz	w8, LBB0_9
; %bb.7:
	lsr	w9, w19, #24
	mul	w9, w0, w9
	sdiv	w0, w9, w8
	b	LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _nv_clk_src_dom6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nv_clk_src_dom6@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	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
	b	_nvkm_clk_read
LBB0_9:
	mov	w0, #0
LBB0_10:
	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_dom6,4,2            ; @nv_clk_src_dom6
	.no_dead_strip	_read_pll
.subsections_via_symbols
