	.file	"extr_wm0010.c_wm0010_spi_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AVDD"
.LC1:
	.string	"DCVDD"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to obtain core supplies: %d\n"
	.section	.rodata.str1.1
.LC3:
	.string	"DBVDD"
.LC4:
	.string	"Failed to obtain DBVDD: %d\n"
.LC5:
	.string	"wm0010 reset"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Failed to request GPIO for DSP reset: %d\n"
	.section	.rodata.str1.1
.LC7:
	.string	"No reset GPIO configured\n"
.LC8:
	.string	"wm0010"
.LC9:
	.string	"Failed to request IRQ %d: %d\n"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"Failed to set IRQ %d as wake source: %d\n"
	.text
	.p2align 4
	.type	wm0010_spi_probe, @function
wm0010_spi_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 96
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, r13
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rbx, rax
	lea	rdi, 88[rax]
	call	mutex_init@PLT
	lea	rdi, 84[rbx]
	call	spin_lock_init@PLT
	mov	rdi, rbp
	mov	rsi, rbx
	call	spi_set_drvdata@PLT
	mov	QWORD PTR 16[rbx], r13
	mov	rdi, r13
	call	dev_get_platdata@PLT
	test	rax, rax
	jne	.L19
.L4:
	lea	rdi, 80[rbx]
	call	init_completion@PLT
	mov	r12, QWORD PTR 72[rbx]
	lea	rax, .LC0[rip]
	mov	QWORD PTR [r12], rax
	lea	rax, .LC1[rip]
	mov	rdi, r12
	mov	QWORD PTR 8[r12], rax
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	rdx, r12
	mov	esi, eax
	call	devm_regulator_bulk_get@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	r12d, eax
	test	eax, eax
	jne	.L20
	lea	rsi, .LC3[rip]
	call	devm_regulator_get@PLT
	mov	DWORD PTR 64[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L21
	mov	rsi, QWORD PTR 40[rbx]
	mov	rdi, QWORD PTR 16[rbx]
	test	rsi, rsi
	je	.L7
	mov	rax, QWORD PTR 32[rbx]
	xor	edx, edx
	mov	QWORD PTR 56[rbx], rsi
	lea	rcx, .LC5[rip]
	test	rax, rax
	setne	dl
	mov	DWORD PTR [rbx], edx
	mov	rdx, QWORD PTR GPIOF_OUT_INIT_HIGH[rip]
	cmove	rdx, QWORD PTR GPIOF_OUT_INIT_LOW[rip]
	call	devm_gpio_request_one@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L22
	mov	eax, DWORD PTR WM0010_POWER_OFF[rip]
	mov	ecx, DWORD PTR 24[rbx]
	mov	r9, rbx
	lea	r8, .LC8[rip]
	mov	r14d, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR wm0010_irq[rip]
	mov	DWORD PTR 48[rbx], eax
	test	ecx, ecx
	cmove	ecx, DWORD PTR IRQF_TRIGGER_FALLING[rip]
	xor	esi, esi
	or	ecx, DWORD PTR IRQF_ONESHOT[rip]
	mov	edi, r14d
	call	request_threaded_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L23
	mov	DWORD PTR 4[rbx], r14d
	mov	esi, 1
	mov	edi, r14d
	call	irq_set_irq_wake@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR wm0010_dai[rip]
	mov	QWORD PTR 8[rbx], rax
	call	ARRAY_SIZE@PLT
	mov	rdx, QWORD PTR wm0010_dai[rip]
	lea	rsi, soc_component_dev_wm0010[rip]
	mov	rdi, r13
	mov	ecx, eax
	call	devm_snd_soc_register_component@PLT
	test	eax, eax
	cmovle	r12d, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, r13
	call	dev_get_platdata@PLT
	lea	rdi, 24[rbx]
	mov	edx, 24
	mov	rsi, rax
	call	memcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 16[rbx]
	mov	ecx, eax
	mov	edx, r14d
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR 64[rbx]
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC4[rip]
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 16[rbx]
	mov	edx, eax
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, QWORD PTR 16[rbx]
	mov	ecx, eax
	mov	edx, r14d
	lea	rsi, .LC10[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wm0010_spi_probe, .-wm0010_spi_probe
	.comm	wm0010_irq,4,4
	.comm	wm0010_dai,8,8
	.comm	soc_component_dev_wm0010,4,4
	.comm	WM0010_POWER_OFF,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	GPIOF_OUT_INIT_LOW,8,8
	.comm	GPIOF_OUT_INIT_HIGH,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_wm0010.c_wm0010_spi_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AVDD\000"
	.align	2
.LC1:
	.ascii	"DCVDD\000"
	.align	2
.LC2:
	.ascii	"Failed to obtain core supplies: %d\012\000"
	.align	2
.LC3:
	.ascii	"DBVDD\000"
	.align	2
.LC4:
	.ascii	"Failed to obtain DBVDD: %d\012\000"
	.align	2
.LC5:
	.ascii	"wm0010 reset\000"
	.align	2
.LC6:
	.ascii	"Failed to request GPIO for DSP reset: %d\012\000"
	.align	2
.LC7:
	.ascii	"No reset GPIO configured\012\000"
	.align	2
.LC8:
	.ascii	"wm0010\000"
	.align	2
.LC9:
	.ascii	"Failed to request IRQ %d: %d\012\000"
	.align	2
.LC10:
	.ascii	"Failed to set IRQ %d as wake source: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm0010_spi_probe, %function
wm0010_spi_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L26
	add	r7, r0, #4
	mov	r6, r0
	mov	r1, #56
	mov	r0, r7
	ldr	r2, [r3]
	sub	sp, sp, #8
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L19
	add	r0, r4, #52
	bl	mutex_init
	add	r0, r4, #48
	bl	spin_lock_init
	mov	r1, r4
	mov	r0, r6
	bl	spi_set_drvdata
	mov	r0, r7
	str	r7, [r4, #12]
	bl	dev_get_platdata
	cmp	r0, #0
	bne	.L20
.L4:
	add	r0, r4, #44
	bl	init_completion
	ldr	r2, .L26+4
	ldr	r3, .L26+8
	ldr	r0, [r4, #40]
	ldr	r5, [r4, #12]
	stm	r0, {r2, r3}
	bl	ARRAY_SIZE
	ldr	r2, [r4, #40]
	mov	r1, r0
	mov	r0, r5
	bl	devm_regulator_bulk_get
	subs	r5, r0, #0
	bne	.L21
	ldr	r1, .L26+12
	ldr	r0, [r4, #12]
	bl	devm_regulator_get
	str	r0, [r4, #36]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L22
	ldr	r1, [r4, #24]
	ldr	r0, [r4, #12]
	cmp	r1, #0
	beq	.L7
	ldr	r3, [r4, #20]
	str	r1, [r4, #32]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	str	r3, [r4]
	ldrne	r3, .L26+16
	ldreq	r3, .L26+20
	ldr	r2, [r3]
	ldr	r3, .L26+24
	bl	devm_gpio_request_one
	subs	r5, r0, #0
	blt	.L23
	ldr	r3, [r4, #16]
	ldr	r2, .L26+28
	cmp	r3, #0
	ldr	r2, [r2]
	ldreq	r3, .L26+32
	ldr	r1, .L26+36
	ldreq	r3, [r3]
	ldr	r0, [r1]
	ldr	r8, [r6]
	str	r2, [r4, #28]
	ldr	r1, .L26+40
	ldr	r2, .L26+44
	str	r4, [sp, #4]
	ldr	r2, [r2]
	orr	r3, r3, r0
	str	r1, [sp]
	mov	r0, r8
	mov	r1, #0
	bl	request_threaded_irq
	subs	r5, r0, #0
	bne	.L24
	mov	r1, #1
	mov	r0, r8
	str	r8, [r4, #4]
	bl	irq_set_irq_wake
	subs	r5, r0, #0
	bne	.L25
	ldr	r2, .L26+48
	ldr	r3, [r6, #8]
	ldr	r5, [r2]
	str	r3, [r4, #8]
	mov	r0, r5
	bl	ARRAY_SIZE
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L26+52
	mov	r0, r7
	bl	devm_snd_soc_register_component
	and	r5, r0, r0, asr #31
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r2, r5
	ldr	r0, [r4, #12]
	ldr	r1, .L26+56
	bl	dev_err
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r0, r7
	bl	dev_get_platdata
	mov	r2, #12
	mov	r1, r0
	add	r0, r4, #16
	bl	memcpy
	b	.L4
.L19:
	ldr	r3, .L26+60
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r2, r8
	mov	r3, r5
	ldr	r0, [r4, #12]
	ldr	r1, .L26+64
	bl	dev_err
	b	.L1
.L22:
	ldr	r0, [r4, #36]
	bl	PTR_ERR
	mov	r5, r0
	ldr	r1, .L26+68
	mov	r2, r5
	ldr	r0, [r4, #12]
	bl	dev_err
	b	.L1
.L7:
	ldr	r1, .L26+72
	bl	dev_err
	ldr	r3, .L26+76
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L23:
	mov	r2, r5
	ldr	r0, [r4, #12]
	ldr	r1, .L26+80
	bl	dev_err
	b	.L1
.L25:
	mov	r2, r8
	mov	r3, r5
	ldr	r0, [r4, #12]
	ldr	r1, .L26+84
	bl	dev_err
	b	.L1
.L27:
	.align	2
.L26:
	.word	GFP_KERNEL
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	GPIOF_OUT_INIT_HIGH
	.word	GPIOF_OUT_INIT_LOW
	.word	.LC5
	.word	WM0010_POWER_OFF
	.word	IRQF_TRIGGER_FALLING
	.word	IRQF_ONESHOT
	.word	.LC8
	.word	wm0010_irq
	.word	wm0010_dai
	.word	soc_component_dev_wm0010
	.word	.LC2
	.word	ENOMEM
	.word	.LC9
	.word	.LC4
	.word	.LC7
	.word	EINVAL
	.word	.LC6
	.word	.LC10
	.size	wm0010_spi_probe, .-wm0010_spi_probe
	.comm	wm0010_irq,4,4
	.comm	wm0010_dai,4,4
	.comm	soc_component_dev_wm0010,4,4
	.comm	WM0010_POWER_OFF,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	GPIOF_OUT_INIT_LOW,4,4
	.comm	GPIOF_OUT_INIT_HIGH,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
