	.file	"extr_clk-si5351.c_si5351_write_parameters.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	si5351_write_parameters, @function
si5351_write_parameters:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	.cfi_offset 13, -40
	mov	r13d, esi
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SI5351_PARAMETERS_LENGTH[rip]
	mov	rdi, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	lea	r15, 3[rsp]
	lea	eax, -128[r13]
	mov	r12, r15
	and	r15, -4
	shr	r12, 2
	cmp	eax, 1
	jbe	.L15
	mov	eax, DWORD PTR 4[rbx]
	lea	esi, 2[r13]
	mov	rdi, r14
	movzx	edx, ah
	and	eax, 255
	mov	DWORD PTR 0[0+r12*4], edx
	mov	DWORD PTR 4[0+r12*4], eax
	call	si5351_reg_read@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, r13d
	mov	rdi, r14
	and	eax, -4
	mov	ecx, edx
	sar	ecx, 16
	and	ecx, 3
	or	ecx, eax
	movzx	eax, dh
	and	edx, 255
	mov	DWORD PTR 16[0+r12*4], edx
	mov	edx, DWORD PTR 8[rbx]
	mov	DWORD PTR 12[0+r12*4], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 8[0+r12*4], ecx
	mov	ecx, edx
	sar	eax, 12
	sar	ecx, 16
	and	ecx, 15
	and	eax, 240
	or	eax, ecx
	mov	rcx, r15
	mov	DWORD PTR 20[0+r12*4], eax
	movzx	eax, dh
	and	edx, 255
	mov	DWORD PTR 28[0+r12*4], edx
	mov	edx, DWORD PTR SI5351_PARAMETERS_LENGTH[rip]
	mov	DWORD PTR 24[0+r12*4], eax
	call	si5351_bulk_write@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	movzx	edx, BYTE PTR [rbx]
	mov	esi, r13d
	mov	rdi, r14
	mov	DWORD PTR 0[0+r12*4], edx
	call	si5351_reg_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	si5351_write_parameters, .-si5351_write_parameters
	.comm	SI5351_PARAMETERS_LENGTH,4,4
	.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_clk-si5351.c_si5351_write_parameters.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si5351_write_parameters, %function
si5351_write_parameters:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	r8, .L9
	sub	ip, r1, #128
	ldr	r3, [r8]
	cmp	ip, #1
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L9+4
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r4, sp
	bls	.L7
	ldr	r3, [r2, #4]
	mov	r6, r1
	asr	r2, r3, #8
	and	r2, r2, #255
	and	r3, r3, #255
	add	r1, r1, #2
	stm	r4, {r2, r3}
	mov	r7, r0
	bl	si5351_reg_read
	ldr	lr, [r5]
	ldr	r3, [r5, #4]
	ldr	ip, [r5, #8]
	lsl	r9, lr, #14
	bic	r5, r0, #3
	asr	r3, r3, #12
	orr	r5, r5, r9, lsr #30
	mov	r1, r6
	and	r3, r3, #240
	lsl	r6, ip, #12
	orr	r3, r3, r6, lsr #28
	str	r5, [r4, #8]
	asr	r6, lr, #8
	asr	r5, ip, #8
	and	r6, r6, #255
	and	lr, lr, #255
	and	r5, r5, #255
	and	ip, ip, #255
	str	r3, [r4, #20]
	mov	r0, r7
	mov	r3, r4
	ldr	r2, [r8]
	str	r6, [r4, #12]
	str	lr, [r4, #16]
	str	r5, [r4, #24]
	str	ip, [r4, #28]
	bl	si5351_bulk_write
.L1:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L7:
	ldrb	r2, [r2]	@ zero_extendqisi2
	str	r2, [r4]
	bl	si5351_reg_write
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	SI5351_PARAMETERS_LENGTH
	.word	.LC0
	.size	si5351_write_parameters, .-si5351_write_parameters
	.comm	SI5351_PARAMETERS_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
