	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_get_mclk
_stv090x_get_mclk:                      ## @stv090x_get_mclk
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_STV090x_NCOARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_STV090x_SYNTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv090x_read_reg
	movq	_SELX1RATIO_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	addl	%ecx, %ecx
	addl	$4, %ecx
	incl	%ebx
	imull	(%r15), %ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV090x_NCOARSE,4,2            ## @STV090x_NCOARSE
	.comm	_STV090x_SYNTCTRL,4,2           ## @STV090x_SYNTCTRL
	.comm	_SELX1RATIO_FIELD,4,2           ## @SELX1RATIO_FIELD
	.no_dead_strip	_stv090x_get_mclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_get_mclk
_stv090x_get_mclk:                      ; @stv090x_get_mclk
	.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, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _STV090x_NCOARSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STV090x_NCOARSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh3:
	adrp	x8, _STV090x_SYNTCTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STV090x_SYNTCTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv090x_read_reg
Lloh6:
	adrp	x8, _SELX1RATIO_FIELD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SELX1RATIO_FIELD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD
	cmp	x0, #0
	mov	w8, #4
	mov	w9, #6
	csel	w8, w9, w8, eq
	ldr	w9, [x21]
	madd	w9, w9, w20, w9
	sdiv	w0, w9, w8
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STV090x_NCOARSE,4,2            ; @STV090x_NCOARSE
	.comm	_STV090x_SYNTCTRL,4,2           ; @STV090x_SYNTCTRL
	.comm	_SELX1RATIO_FIELD,4,2           ; @SELX1RATIO_FIELD
	.no_dead_strip	_stv090x_get_mclk
.subsections_via_symbols
