	.file	"extr_stm32_sai_sub.c_stm32_sai_add_mclk_provider.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a_mclk"
.LC1:
	.string	"b_mclk"
.LC2:
	.string	"Register master clock %s\n"
.LC3:
	.string	"mclk register returned %d\n"
	.text
	.p2align 4
	.type	stm32_sai_add_mclk_provider, @function
stm32_sai_add_mclk_provider:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 16[rdi]
	call	__clk_get_name@PLT
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 16
	mov	rdi, rbp
	mov	r14, rax
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L4
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edx, DWORD PTR SAI_MCLK_NAME_LEN[rip]
	mov	rdi, rbp
	mov	r12, rax
	mov	esi, 1
	call	devm_kcalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L4
	movzx	eax, BYTE PTR [r14]
	test	al, al
	je	.L13
	mov	r13, r15
	xor	ecx, ecx
	cmp	al, 95
	jne	.L5
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	mov	BYTE PTR 0[r13], al
	movzx	eax, BYTE PTR 1[r14+rcx]
	add	r13, 1
	add	rcx, 1
	test	al, al
	je	.L7
	cmp	al, 95
	je	.L7
.L5:
	mov	esi, DWORD PTR SAI_MCLK_NAME_LEN[rip]
	lea	edx, -7[rsi]
	cmp	edx, ecx
	jg	.L8
.L7:
	mov	rdi, rbx
	call	STM_SAI_IS_SUB_A@PLT
	test	rax, rax
	jne	.L26
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	strcat@PLT
.L10:
	xor	ecx, ecx
	lea	rdx, mclk_ops[rip]
	mov	rsi, r14
	mov	rdi, r15
	call	CLK_HW_INIT@PLT
	mov	QWORD PTR 8[r12], rbx
	mov	rdx, r15
	mov	rdi, rbp
	mov	DWORD PTR 4[r12], eax
	lea	rsi, .LC2[rip]
	call	dev_dbg@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rsi, r12
	call	devm_clk_hw_register@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR [r12]
	mov	esi, DWORD PTR of_clk_hw_simple_get[rip]
	mov	rdx, r12
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	add	rsp, 8
	.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
	jmp	devm_of_clk_add_hw_provider@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	strcat@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L27:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L1
.L13:
	mov	r13, r15
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	stm32_sai_add_mclk_provider, .-stm32_sai_add_mclk_provider
	.comm	of_clk_hw_simple_get,4,4
	.comm	mclk_ops,4,4
	.comm	SAI_MCLK_NAME_LEN,4,4
	.comm	GFP_KERNEL,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_stm32_sai_sub.c_stm32_sai_add_mclk_provider.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"a_mclk\000"
	.align	2
.LC1:
	.ascii	"b_mclk\000"
	.align	2
.LC2:
	.ascii	"Register master clock %s\012\000"
	.align	2
.LC3:
	.ascii	"mclk register returned %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm32_sai_add_mclk_provider, %function
stm32_sai_add_mclk_provider:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r9, [r4, #4]
	bl	__clk_get_name
	ldr	r8, .L19
	mov	r7, r0
	mov	r1, #12
	mov	r0, r9
	ldr	r2, [r8]
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L4
	ldr	r6, .L19+4
	ldr	r3, [r8]
	mov	r1, #1
	mov	r0, r9
	ldr	r2, [r6]
	bl	devm_kcalloc
	subs	r8, r0, #0
	beq	.L4
	ldrb	r3, [r7]	@ zero_extendqisi2
	cmp	r3, #95
	cmpne	r3, #0
	beq	.L11
	mov	r10, r8
	mvn	ip, r7
	add	r0, r7, #1
	b	.L6
.L7:
	strb	r3, [r10], #1
	ldrb	r3, [r0], #1	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, #95
	beq	.L5
.L6:
	ldr	r1, [r6]
	add	r2, ip, r0
	sub	r1, r1, #7
	cmp	r1, r2
	bgt	.L7
.L5:
	mov	r0, r4
	bl	STM_SAI_IS_SUB_A
	cmp	r0, #0
	mov	r0, r10
	bne	.L17
	bl	strlen
	mov	r2, #7
	ldr	r1, .L19+8
	add	r0, r10, r0
	bl	memcpy
.L9:
	mov	r3, #0
	mov	r1, r7
	ldr	r2, .L19+12
	mov	r0, r8
	bl	CLK_HW_INIT
	mov	r2, r8
	stmib	r5, {r0, r4}
	ldr	r1, .L19+16
	mov	r0, r9
	bl	dev_dbg
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	devm_clk_hw_register
	subs	r6, r0, #0
	bne	.L18
	ldr	r2, [r5]
	ldr	r3, .L19+20
	str	r2, [r4]
	mov	r0, r9
	mov	r2, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, [r3]
	b	devm_of_clk_add_hw_provider
.L17:
	bl	strlen
	mov	r2, #7
	ldr	r1, .L19+24
	add	r0, r10, r0
	bl	memcpy
	b	.L9
.L4:
	ldr	r3, .L19+28
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r0, r9
	mov	r2, r6
	ldr	r1, .L19+32
	bl	dev_err
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r10, r8
	b	.L5
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	SAI_MCLK_NAME_LEN
	.word	.LC1
	.word	mclk_ops
	.word	.LC2
	.word	of_clk_hw_simple_get
	.word	.LC0
	.word	ENOMEM
	.word	.LC3
	.size	stm32_sai_add_mclk_provider, .-stm32_sai_add_mclk_provider
	.comm	of_clk_hw_simple_get,4,4
	.comm	mclk_ops,4,4
	.comm	SAI_MCLK_NAME_LEN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
