	.file	"extr_mdio-mux-meson-g12a.c_g12a_ephy_glue_clk_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"clkin%d"
.LC1:
	.string	"Missing clock %s\n"
.LC2:
	.string	"%s#mux"
.LC3:
	.string	"failed to register input mux\n"
.LC4:
	.string	"%s#pll"
	.text
	.p2align 4
	.type	g12a_ephy_glue_clk_register, @function
g12a_ephy_glue_clk_register:
.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
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	dev_get_drvdata@PLT
	mov	rsi, rsp
	mov	QWORD PTR -128[rbp], rax
	movsx	rax, DWORD PTR PLL_MUX_NUM_PARENT[rip]
	mov	rcx, rax
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L26
.L4:
	lea	rbx, 7[rsp]
	mov	rax, rbx
	and	rbx, -8
	shr	rax, 3
	mov	QWORD PTR -120[rbp], rbx
	mov	QWORD PTR -144[rbp], rax
	test	ecx, ecx
	jle	.L5
	xor	ebx, ebx
	lea	r12, -64[rbp]
	lea	r14, .LC0[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	call	__clk_get_name@PLT
	mov	rcx, QWORD PTR -120[rbp]
	mov	QWORD PTR [rcx+rbx*8], rax
	add	rbx, 1
	cmp	DWORD PTR PLL_MUX_NUM_PARENT[rip], ebx
	jle	.L5
.L9:
	mov	ecx, ebx
	mov	rdx, r14
	mov	esi, 8
	mov	rdi, r12
	call	snprintf@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	devm_clk_get@PLT
	mov	rdi, rax
	mov	r15, rax
	call	IS_ERR@PLT
	mov	rdi, r15
	test	rax, rax
	je	.L6
	call	PTR_ERR@PLT
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	je	.L7
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
.L7:
	mov	rdi, r15
	call	PTR_ERR@PLT
.L1:
	mov	rdx, QWORD PTR -56[rbp]
	xor	rdx, QWORD PTR fs:40
	jne	.L27
	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
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 24
	mov	rdi, r13
	call	devm_kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L22
	mov	rdi, r13
	call	dev_name@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	lea	rsi, .LC2[rip]
	mov	edx, eax
	call	kasprintf@PLT
	test	rax, rax
	je	.L22
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -128[rbp]
	lea	r14, -112[rbp]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, clk_mux_ro_ops[rip]
	mov	edi, DWORD PTR PLL_CTL0_SEL[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -104[rbp], rax
	mov	eax, DWORD PTR PLL_MUX_NUM_PARENT[rip]
	mov	DWORD PTR -96[rbp], eax
	mov	rax, QWORD PTR ETH_PLL_CTL0[rip]
	add	rax, QWORD PTR 8[rdx]
	mov	QWORD PTR 16[r12], rax
	call	__ffs@PLT
	mov	QWORD PTR 8[r12], r14
	lea	rsi, 8[r12]
	mov	rdi, r13
	mov	ecx, eax
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR PLL_CTL0_SEL[rip]
	sar	eax, cl
	mov	DWORD PTR 4[r12], eax
	call	devm_clk_register@PLT
	mov	r8, QWORD PTR -136[rbp]
	mov	r12, rax
	mov	rdi, r8
	call	kfree@PLT
	mov	rdi, r12
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 16
	mov	rdi, r13
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L22
	mov	rdi, r13
	mov	QWORD PTR -136[rbp], rax
	call	dev_name@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	lea	rsi, .LC4[rip]
	mov	edx, eax
	call	kasprintf@PLT
	mov	r8, QWORD PTR -136[rbp]
	test	rax, rax
	je	.L22
	mov	rdi, r12
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -136[rbp], rax
	lea	rax, g12a_ephy_pll_ops[rip]
	mov	QWORD PTR -152[rbp], r8
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -88[rbp], 0
	call	__clk_get_name@PLT
	mov	rdx, QWORD PTR -144[rbp]
	mov	r8, QWORD PTR -152[rbp]
	mov	rdi, r13
	mov	DWORD PTR -96[rbp], 1
	mov	QWORD PTR 0[0+rdx*8], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, r8
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [r8], r14
	mov	QWORD PTR 8[r8], rax
	call	devm_clk_register@PLT
	mov	r9, QWORD PTR -136[rbp]
	mov	r12, rax
	mov	rdi, r9
	call	kfree@PLT
	mov	rdi, r12
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L23
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR [rax], r12
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	g12a_ephy_glue_clk_register, .-g12a_ephy_glue_clk_register
	.comm	g12a_ephy_pll_ops,4,4
	.comm	clk_mux_ro_ops,4,4
	.comm	PLL_MUX_NUM_PARENT,4,4
	.comm	PLL_CTL0_SEL,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_PLL_CTL0,8,8
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,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_mdio-mux-meson-g12a.c_g12a_ephy_glue_clk_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clkin%d\000"
	.align	2
.LC1:
	.ascii	"Missing clock %s\012\000"
	.align	2
.LC2:
	.ascii	"%s#mux\000"
	.align	2
.LC3:
	.ascii	"failed to register input mux\012\000"
	.align	2
.LC4:
	.ascii	"%s#pll\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	g12a_ephy_glue_clk_register, %function
g12a_ephy_glue_clk_register:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	ldr	r3, .L21
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	dev_get_drvdata
	ldr	r7, .L21+4
	str	r0, [fp, #-72]
	ldr	r2, [r7]
	lsl	r3, r2, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	cmp	r2, #0
	mov	r10, sp
	ble	.L2
	mov	r9, #0
	ldr	r8, .L21+8
	sub	r5, r10, #4
	b	.L6
.L3:
	bl	__clk_get_name
	ldr	r2, [r7]
	add	r9, r9, #1
	cmp	r2, r9
	str	r0, [r5, #4]!
	ble	.L2
.L6:
	mov	r3, r9
	mov	r2, r8
	mov	r1, #8
	sub	r0, fp, #48
	bl	snprintf
	sub	r1, fp, #48
	mov	r0, r6
	bl	devm_clk_get
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r4
	beq	.L3
	bl	PTR_ERR
	ldr	r3, .L21+12
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L16
	mov	r0, r6
	ldr	r1, .L21+16
	sub	r2, fp, #48
	bl	dev_err
.L16:
	mov	r0, r4
	bl	PTR_ERR
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r5, .L21+20
	mov	r1, #16
	mov	r0, r6
	ldr	r2, [r5]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L18
	mov	r0, r6
	ldr	r8, [r5]
	bl	dev_name
	ldr	r1, .L21+24
	mov	r2, r0
	mov	r0, r8
	bl	kasprintf
	subs	r8, r0, #0
	beq	.L18
	mov	r0, #0
	ldr	r3, .L21+28
	ldr	r2, [r7]
	ldr	r1, [r3]
	ldr	r3, [fp, #-72]
	ldr	r7, .L21+32
	ldr	r3, [r3, #4]
	str	r0, [fp, #-56]
	add	r3, r3, r1
	ldr	r1, .L21+36
	ldr	r0, [r7]
	str	r1, [fp, #-52]
	str	r3, [r4, #12]
	str	r2, [fp, #-60]
	str	r8, [fp, #-68]
	str	r10, [fp, #-64]
	bl	__ffs
	mov	r1, r4
	ldr	r3, [r7]
	str	r0, [r4]
	asr	r0, r3, r0
	sub	r3, fp, #68
	str	r0, [r4, #4]
	str	r3, [r1, #8]!
	mov	r0, r6
	bl	devm_clk_register
	mov	r4, r0
	mov	r0, r8
	bl	kfree
	mov	r0, r4
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L17
	mov	r1, #8
	mov	r0, r6
	ldr	r2, [r5]
	bl	devm_kzalloc
	subs	r8, r0, #0
	beq	.L18
	mov	r0, r6
	ldr	r5, [r5]
	bl	dev_name
	ldr	r1, .L21+40
	mov	r2, r0
	mov	r0, r5
	bl	kasprintf
	subs	r5, r0, #0
	beq	.L18
	ldr	r3, .L21+44
	mov	r0, r4
	str	r3, [fp, #-52]
	str	r5, [fp, #-68]
	str	r7, [fp, #-56]
	bl	__clk_get_name
	mov	r2, #1
	ldr	r3, [fp, #-72]
	mov	r1, r8
	ldr	r3, [r3, #4]
	str	r2, [fp, #-60]
	str	r0, [r10]
	str	r10, [fp, #-64]
	str	r3, [r8, #4]
	sub	r3, fp, #68
	str	r3, [r8]
	mov	r0, r6
	bl	devm_clk_register
	mov	r4, r0
	mov	r0, r5
	bl	kfree
	mov	r0, r4
	bl	IS_ERR
	cmp	r0, #0
	bne	.L17
	ldr	r3, [fp, #-72]
	str	r4, [r3]
	b	.L1
.L18:
	ldr	r3, .L21+48
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L17:
	mov	r0, r6
	ldr	r1, .L21+52
	bl	dev_err
	b	.L16
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	PLL_MUX_NUM_PARENT
	.word	.LC0
	.word	EPROBE_DEFER
	.word	.LC1
	.word	GFP_KERNEL
	.word	.LC2
	.word	ETH_PLL_CTL0
	.word	PLL_CTL0_SEL
	.word	clk_mux_ro_ops
	.word	.LC4
	.word	g12a_ephy_pll_ops
	.word	ENOMEM
	.word	.LC3
	.size	g12a_ephy_glue_clk_register, .-g12a_ephy_glue_clk_register
	.comm	g12a_ephy_pll_ops,4,4
	.comm	clk_mux_ro_ops,4,4
	.comm	PLL_MUX_NUM_PARENT,4,4
	.comm	PLL_CTL0_SEL,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETH_PLL_CTL0,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
