	.file	"extr_m88rs6000t.c_m88rs6000t_set_params.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"frequency=%d symbol_rate=%d\n"
.LC1:
	.string	"failed=%d\n"
	.text
	.p2align 4
	.type	m88rs6000t_set_params, @function
m88rs6000t_set_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	xor	eax, eax
	mov	r13d, 3000
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 8[rdi]
	mov	ecx, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR [rdi]
	mov	rdi, QWORD PTR [rbx]
	call	dev_dbg@PLT
	mov	edx, 0
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, rbx
	cmp	DWORD PTR 4[rbp], 5000000
	cmovge	r13d, edx
	add	eax, r13d
	add	eax, 500
	movsx	rsi, eax
	sar	eax, 31
	imul	rsi, rsi, 274877907
	sar	rsi, 38
	sub	esi, eax
	call	m88rs6000t_set_pll_freq@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L3:
	mov	rdi, QWORD PTR [rbx]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movsx	rsi, DWORD PTR 4[rbp]
	mov	edx, r13d
	mov	rdi, rbx
	mov	rax, rsi
	imul	rsi, rsi, 274877907
	sar	eax, 31
	sar	rsi, 38
	sub	esi, eax
	call	m88rs6000t_set_bb@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, 1
	xor	esi, esi
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR 8[rbx]
	xor	edx, edx
	xor	esi, esi
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	rdi, rbp
	call	m88rs6000t_set_demod_mclk@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	m88rs6000t_set_params, .-m88rs6000t_set_params
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_m88rs6000t.c_m88rs6000t_set_params.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"frequency=%d symbol_rate=%d\012\000"
	.align	2
.LC1:
	.ascii	"failed=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	m88rs6000t_set_params, %function
m88rs6000t_set_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldmib	r0, {r3, r6}
	mov	r5, r0
	ldr	r1, .L13
	ldr	r2, [r5]
	ldr	r0, [r6]
	bl	dev_dbg
	ldr	r1, [r5, #4]
	ldr	r2, .L13+4
	ldr	r8, .L13+8
	cmp	r1, r2
	movgt	r8, #0
	ldr	r3, [r5]
	ldr	r7, .L13+12
	add	r3, r8, r3
	add	r3, r3, #500
	smull	r2, r1, r7, r3
	asr	r3, r3, #31
	mov	r0, r6
	rsb	r1, r3, r1, asr #6
	bl	m88rs6000t_set_pll_freq
	subs	r4, r0, #0
	beq	.L12
.L3:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L13+16
	bl	dev_dbg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r1, [r5, #4]
	mov	r2, r8
	smull	r3, r7, r1, r7
	asr	r1, r1, #31
	mov	r0, r6
	rsb	r1, r1, r7, asr #6
	bl	m88rs6000t_set_bb
	subs	r4, r0, #0
	bne	.L3
	mov	r1, r4
	mov	r2, #1
	ldr	r0, [r6, #4]
	bl	regmap_write
	subs	r4, r0, #0
	bne	.L3
	mov	r2, r4
	mov	r1, r4
	ldr	r0, [r6, #4]
	bl	regmap_write
	subs	r4, r0, #0
	bne	.L3
	mov	r0, r5
	bl	m88rs6000t_set_demod_mclk
	subs	r4, r0, #0
	bne	.L3
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	4999999
	.word	3000
	.word	274877907
	.word	.LC1
	.size	m88rs6000t_set_params, .-m88rs6000t_set_params
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
