	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv6110x_get_frequency
_stv6110x_get_frequency:                ## @stv6110x_get_frequency
	.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	%rsi, %r14
	movq	(%rdi), %r12
	movq	_STV6110x_TNG1@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	leaq	(,%rsi,4), %rdx
	addq	(%r12), %rdx
	movq	%r12, %rdi
	callq	_stv6110x_read_reg
	movq	_STV6110x_TNG0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	(,%rsi,4), %rdx
	addq	(%r12), %rdx
	movq	%r12, %rdi
	callq	_stv6110x_read_reg
	movq	_TNG1_N_DIV_11_8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_STV6110x_GETFIELD
	movl	%eax, %r15d
	movq	_TNG0_N_DIV_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_STV6110x_GETFIELD
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_MAKEWORD16
	movq	_REFCLOCK_kHz@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, (%r14)
	movq	_TNG1_R_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_STV6110x_GETFIELD
	movl	%eax, %ebx
	movq	_TNG1_DIV4SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_STV6110x_GETFIELD
	addl	%eax, %ebx
	movl	$1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	movl	(%r14), %eax
	cltd
	idivl	%esi
	sarl	$2, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV6110x_TNG1,8,3              ## @STV6110x_TNG1
	.comm	_STV6110x_TNG0,8,3              ## @STV6110x_TNG0
	.comm	_TNG1_N_DIV_11_8,4,2            ## @TNG1_N_DIV_11_8
	.comm	_TNG0_N_DIV_7_0,4,2             ## @TNG0_N_DIV_7_0
	.comm	_REFCLOCK_kHz,4,2               ## @REFCLOCK_kHz
	.comm	_TNG1_R_DIV,4,2                 ## @TNG1_R_DIV
	.comm	_TNG1_DIV4SEL,4,2               ## @TNG1_DIV4SEL
	.no_dead_strip	_stv6110x_get_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv6110x_get_frequency
_stv6110x_get_frequency:                ; @stv6110x_get_frequency
	.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	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x22, _STV6110x_TNG1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _STV6110x_TNG1@GOTPAGEOFF]
	ldr	x1, [x22]
	ldr	x8, [x20]
	add	x2, x8, x1, lsl #2
	mov	x0, x20
	bl	_stv6110x_read_reg
Lloh2:
	adrp	x23, _STV6110x_TNG0@GOTPAGE
Lloh3:
	ldr	x23, [x23, _STV6110x_TNG0@GOTPAGEOFF]
	ldr	x1, [x23]
	ldr	x8, [x20]
	add	x2, x8, x1, lsl #2
	mov	x0, x20
	bl	_stv6110x_read_reg
Lloh4:
	adrp	x8, _TNG1_N_DIV_11_8@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TNG1_N_DIV_11_8@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
	bl	_STV6110x_GETFIELD
	mov	x21, x0
Lloh7:
	adrp	x8, _TNG0_N_DIV_7_0@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TNG0_N_DIV_7_0@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	w1, [x8, x9, lsl #2]
	bl	_STV6110x_GETFIELD
	mov	x1, x0
	mov	x0, x21
	bl	_MAKEWORD16
Lloh10:
	adrp	x8, _REFCLOCK_kHz@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REFCLOCK_kHz@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mul	w8, w8, w0
Lloh13:
	adrp	x9, _TNG1_R_DIV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TNG1_R_DIV@GOTPAGEOFF]
	str	w8, [x19]
Lloh15:
	ldr	w0, [x9]
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
	bl	_STV6110x_GETFIELD
	mov	x21, x0
Lloh16:
	adrp	x8, _TNG1_DIV4SEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TNG1_DIV4SEL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
	bl	_STV6110x_GETFIELD
	add	w8, w0, w21
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19]
	sdiv	w8, w9, w8
	asr	w8, w8, #2
	str	w8, [x19]
	mov	w0, #0
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STV6110x_TNG1,8,3              ; @STV6110x_TNG1
	.comm	_STV6110x_TNG0,8,3              ; @STV6110x_TNG0
	.comm	_TNG1_N_DIV_11_8,4,2            ; @TNG1_N_DIV_11_8
	.comm	_TNG0_N_DIV_7_0,4,2             ; @TNG0_N_DIV_7_0
	.comm	_REFCLOCK_kHz,4,2               ; @REFCLOCK_kHz
	.comm	_TNG1_R_DIV,4,2                 ; @TNG1_R_DIV
	.comm	_TNG1_DIV4SEL,4,2               ; @TNG1_DIV4SEL
	.no_dead_strip	_stv6110x_get_frequency
.subsections_via_symbols
