	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv6110x_set_refclock
_stv6110x_set_refclock:                 ## @stv6110x_set_refclock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	xorl	%edx, %edx
	cmpl	$8, %esi
	ja	LBB0_2
## %bb.1:
	movslq	%esi, %rax
	leaq	l_switch.table.stv6110x_set_refclock(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
LBB0_2:
	movq	(%rbx), %rax
	movq	_STV6110x_CTRL2@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_CTRL2_CO_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STV6110x_SETFIELD
	movq	(%r14), %rsi
	movq	(%rbx), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%rbx, %rdi
	callq	_stv6110x_write_reg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV6110x_CTRL2,8,3             ## @STV6110x_CTRL2
	.comm	_CTRL2_CO_DIV,4,2               ## @CTRL2_CO_DIV
	.no_dead_strip	_stv6110x_set_refclock
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.stv6110x_set_refclock
l_switch.table.stv6110x_set_refclock:
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv6110x_set_refclock
_stv6110x_set_refclock:                 ; @stv6110x_set_refclock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	cmp	w1, #8
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_switch.table.stv6110x_set_refclock@PAGE
Lloh1:
	add	x8, x8, l_switch.table.stv6110x_set_refclock@PAGEOFF
	ldr	w2, [x8, w1, sxtw #2]
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _STV6110x_CTRL2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _STV6110x_CTRL2@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
Lloh4:
	adrp	x8, _CTRL2_CO_DIV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CTRL2_CO_DIV@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_STV6110x_SETFIELD
	ldr	x1, [x20]
	ldr	x8, [x19]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_stv6110x_write_reg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_STV6110x_CTRL2,8,3             ; @STV6110x_CTRL2
	.comm	_CTRL2_CO_DIV,4,2               ; @CTRL2_CO_DIV
	.no_dead_strip	_stv6110x_set_refclock
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.stv6110x_set_refclock
l_switch.table.stv6110x_set_refclock:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	3                               ; 0x3

.subsections_via_symbols
