	.file	"extr_clk-rcg.c_clk_dyn_rcg_set_parent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clk_dyn_rcg_set_parent, @function
clk_dyn_rcg_set_parent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	to_clk_dyn_rcg@PLT
	pxor	xmm0, xmm0
	lea	rdx, 28[rsp]
	mov	rbp, rax
	mov	rax, QWORD PTR 16[rax]
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	esi, DWORD PTR 48[rbp]
	mov	edi, DWORD PTR 32[rbp]
	movaps	XMMWORD PTR 48[rsp], xmm0
	mov	r14d, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 8[rbp]
	mov	r15d, DWORD PTR 4[rax]
	call	regmap_read@PLT
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, rbp
	call	reg_to_bank@PLT
	mov	edi, DWORD PTR 32[rbp]
	lea	rdx, 20[rsp]
	movsx	rbx, eax
	lea	rax, 0[0+rbx*4]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 40[rbp]
	mov	esi, DWORD PTR [rax+rbx*4]
	call	regmap_read@PLT
	test	r14d, r14d
	jne	.L13
	test	r15d, r15d
	jne	.L14
.L3:
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r13d
	mov	rdi, r12
	mov	esi, DWORD PTR [rax+rbx*4]
	call	qcom_find_src_index@PLT
	lea	rsi, 32[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 32[rsp], eax
	call	configure_bank@PLT
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 32[rbp]
	lea	rdx, 24[rsp]
	lea	r14, 0[0+rbx*4]
	mov	esi, DWORD PTR [rax+rbx*4]
	call	regmap_read@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR 24[rsp]
	add	rdi, r14
	call	md_to_m@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	esi, DWORD PTR 20[rsp]
	mov	edx, eax
	mov	DWORD PTR 48[rsp], eax
	add	rdi, r14
	call	ns_m_to_n@PLT
	mov	DWORD PTR 52[rsp], eax
	test	r15d, r15d
	je	.L3
.L14:
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, 0[0+rbx*4]
	add	rdi, QWORD PTR 8[rbp]
	call	ns_to_pre_div@PLT
	add	rax, 1
	mov	QWORD PTR 40[rsp], rax
	jmp	.L3
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	clk_dyn_rcg_set_parent, .-clk_dyn_rcg_set_parent
	.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-rcg.c_clk_dyn_rcg_set_parent.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clk_dyn_rcg_set_parent, %function
clk_dyn_rcg_set_parent:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L16
	sub	sp, sp, #44
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r0
	bl	to_clk_dyn_rcg
	mov	r3, #0
	ldmib	r0, {ip, lr}
	mov	r4, r0
	ldr	r1, [r0, #24]
	add	r2, sp, #12
	ldr	r0, [r0, #16]
	ldr	r9, [lr, #4]
	ldr	r8, [ip, #4]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	bl	regmap_read
	ldr	r1, [sp, #12]
	mov	r0, r4
	bl	reg_to_bank
	mov	r5, r0
	ldr	r3, [r4, #20]
	ldr	r0, [r4, #16]
	ldr	r1, [r3, r5, lsl #2]
	add	r2, sp, #4
	bl	regmap_read
	cmp	r9, #0
	lsl	r9, r5, #2
	bne	.L13
	cmp	r8, #0
	bne	.L14
.L3:
	ldr	r3, [r4]
	mov	r2, r7
	ldr	r1, [r3, r5, lsl #2]
	mov	r0, r6
	bl	qcom_find_src_index
	mov	r3, r0
	add	r1, sp, #16
	mov	r0, r4
	str	r3, [sp, #16]
	bl	configure_bank
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	ldr	r3, [r4, #12]
	add	r2, sp, #8
	ldr	r1, [r3, r5, lsl #2]
	ldr	r0, [r4, #16]
	bl	regmap_read
	ldr	r0, [r4, #8]
	ldr	r1, [sp, #8]
	add	r0, r0, r9
	bl	md_to_m
	mov	r2, r0
	ldr	r0, [r4, #8]
	ldr	r1, [sp, #4]
	add	r0, r0, r9
	str	r2, [sp, #24]
	bl	ns_m_to_n
	cmp	r8, #0
	str	r0, [sp, #28]
	beq	.L3
.L14:
	ldr	r0, [r4, #4]
	ldr	r1, [sp, #4]
	add	r0, r0, r9
	bl	ns_to_pre_div
	add	r0, r0, #1
	str	r0, [sp, #20]
	b	.L3
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.size	clk_dyn_rcg_set_parent, .-clk_dyn_rcg_set_parent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
