	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0299_get_tune_settings
_stv0299_get_tune_settings:             ## @stv0299_get_tune_settings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	movl	(%rdi), %eax
	cmpl	$9999999, %eax                  ## imm = 0x98967F
	jg	LBB0_2
## %bb.1:
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$43, %rax
	addl	%ecx, %eax
	movl	$5000, %ecx                     ## imm = 0x1388
	jmp	LBB0_3
LBB0_2:
	movl	%eax, %eax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rax
	shrq	$42, %rax
	shrq	$39, %rcx
LBB0_3:
	movl	%eax, (%rsi)
	movl	%ecx, 4(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stv0299_get_tune_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0299_get_tune_settings
_stv0299_get_tune_settings:             ; @stv0299_get_tune_settings
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x1, #8]
	ldr	w8, [x0]
	mov	w9, #38527
	movk	w9, #152, lsl #16
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	umull	x11, w8, w10
	lsr	x12, x11, #42
	lsr	x11, x11, #39
	smull	x10, w8, w10
	lsr	x13, x10, #63
	asr	x10, x10, #43
	add	w10, w10, w13
	mov	w13, #5000
	cmp	w8, w9
	csel	w8, w12, w10, gt
	csel	w9, w11, w13, gt
	stp	w8, w9, [x1]
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stv0299_get_tune_settings
.subsections_via_symbols
