	.file	"extr_tobermory.c_tobermory_late_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Headset"
	.text
	.p2align 4
	.type	tobermory_late_probe, @function
tobermory_late_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR [rdi]
	mov	rbp, rdi
	mov	esi, DWORD PTR [rax]
	call	snd_soc_get_pcm_runtime@PLT
	mov	ecx, DWORD PTR SND_SOC_CLOCK_IN[rip]
	mov	esi, DWORD PTR WM8962_SYSCLK_MCLK[rip]
	mov	edx, 32768
	mov	rdi, QWORD PTR [rax]
	mov	r13, QWORD PTR [rdi]
	call	snd_soc_dai_set_sysclk@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR tobermory_headset_pins[rip]
	call	ARRAY_SIZE@PLT
	mov	r8d, DWORD PTR tobermory_headset_pins[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR SND_JACK_HEADSET[rip]
	mov	r9d, eax
	or	edx, DWORD PTR SND_JACK_BTN_0[rip]
	lea	rcx, tobermory_headset[rip]
	lea	rsi, .LC0[rip]
	call	snd_soc_card_jack_new@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, tobermory_headset[rip]
	call	wm8962_mic_detect@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tobermory_late_probe, .-tobermory_late_probe
	.comm	tobermory_headset_pins,4,4
	.comm	tobermory_headset,4,4
	.comm	WM8962_SYSCLK_MCLK,4,4
	.comm	SND_SOC_CLOCK_IN,4,4
	.comm	SND_JACK_HEADSET,4,4
	.comm	SND_JACK_BTN_0,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_tobermory.c_tobermory_late_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Headset\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tobermory_late_probe, %function
tobermory_late_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	sub	sp, sp, #12
	ldr	r1, [r3]
	mov	r5, r0
	bl	snd_soc_get_pcm_runtime
	ldr	r2, .L6
	ldr	r3, .L6+4
	ldr	r0, [r0]
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r2, #32768
	ldr	r7, [r0]
	bl	snd_soc_dai_set_sysclk
	subs	r4, r0, #0
	blt	.L1
	ldr	r1, .L6+8
	ldr	r3, .L6+12
	ldr	r2, .L6+16
	ldr	r6, [r1]
	ldr	r4, [r2]
	ldr	r2, [r3]
	mov	r0, r6
	orr	r4, r4, r2
	bl	ARRAY_SIZE
	mov	r2, r4
	str	r0, [sp, #4]
	ldr	r3, .L6+20
	mov	r0, r5
	ldr	r1, .L6+24
	str	r6, [sp]
	bl	snd_soc_card_jack_new
	subs	r4, r0, #0
	beq	.L5
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	r0, r7
	ldr	r1, .L6+20
	bl	wm8962_mic_detect
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	.align	2
.L6:
	.word	WM8962_SYSCLK_MCLK
	.word	SND_SOC_CLOCK_IN
	.word	tobermory_headset_pins
	.word	SND_JACK_BTN_0
	.word	SND_JACK_HEADSET
	.word	tobermory_headset
	.word	.LC0
	.size	tobermory_late_probe, .-tobermory_late_probe
	.comm	tobermory_headset_pins,4,4
	.comm	tobermory_headset,4,4
	.comm	WM8962_SYSCLK_MCLK,4,4
	.comm	SND_SOC_CLOCK_IN,4,4
	.comm	SND_JACK_HEADSET,4,4
	.comm	SND_JACK_BTN_0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
