	.file	"extr_cobalt-alsa-pcm.c_snd_cobalt_pcm_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cobalt PCM-In HDMI"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"snd_cobalt_pcm_create() failed for input with err %d\n"
	.section	.rodata.str1.1
.LC2:
	.string	"cobalt"
.LC3:
	.string	"Cobalt PCM-Out HDMI"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"snd_cobalt_pcm_create() failed for output with err %d\n"
	.text
	.p2align 4
	.globl	snd_cobalt_pcm_create
	.type	snd_cobalt_pcm_create, @function
snd_cobalt_pcm_create:
.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	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR __GFP_ZERO[rip]
	or	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	r12, QWORD PTR 16[rbx]
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR [rbx]
	call	COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT@PLT
	xor	edx, edx
	mov	rdi, r12
	mov	esi, eax
	call	cobalt_s_bit_sysctrl@PLT
	mov	edi, 2
	call	mdelay@PLT
	mov	edi, DWORD PTR [rbx]
	call	COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT@PLT
	mov	edx, 1
	mov	rdi, r12
	mov	esi, eax
	call	cobalt_s_bit_sysctrl@PLT
	mov	edi, 1
	call	mdelay@PLT
	xor	edx, edx
	lea	rsi, .LC0[rip]
	xor	ecx, ecx
	mov	r9, rsp
	mov	r8d, 1
	mov	rdi, r13
	call	snd_pcm_new@PLT
	mov	esi, DWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	lea	rdx, snd_cobalt_pcm_capture_ops[rip]
	mov	r12d, eax
	test	eax, eax
	jne	.L10
.L8:
	mov	rdi, QWORD PTR [rsp]
	call	snd_pcm_set_ops@PLT
	mov	rax, QWORD PTR [rsp]
	mov	edx, 4
	lea	rsi, .LC2[rip]
	mov	QWORD PTR 16[rax], 0
	mov	edi, DWORD PTR [rax]
	mov	QWORD PTR 8[rax], rbp
	call	strscpy@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT[rip]
	xor	edx, edx
	mov	rdi, r12
	call	cobalt_s_bit_sysctrl@PLT
	mov	edi, 2
	call	mdelay@PLT
	mov	esi, DWORD PTR COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT[rip]
	mov	edx, 1
	mov	rdi, r12
	call	cobalt_s_bit_sysctrl@PLT
	mov	edi, 1
	call	mdelay@PLT
	xor	edx, edx
	mov	r9, rsp
	xor	r8d, r8d
	lea	rsi, .LC3[rip]
	mov	ecx, 1
	mov	rdi, r13
	call	snd_pcm_new@PLT
	mov	esi, DWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	lea	rdx, snd_cobalt_pcm_playback_ops[rip]
	mov	r12d, eax
	test	eax, eax
	je	.L8
	mov	esi, eax
	lea	rdi, .LC4[rip]
	call	cobalt_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	cobalt_err@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_cobalt_pcm_create, .-snd_cobalt_pcm_create
	.comm	snd_cobalt_pcm_playback_ops,4,4
	.comm	snd_cobalt_pcm_capture_ops,4,4
	.comm	__GFP_ZERO,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT,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_cobalt-alsa-pcm.c_snd_cobalt_pcm_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cobalt PCM-In HDMI\000"
	.align	2
.LC1:
	.ascii	"snd_cobalt_pcm_create() failed for input with err %"
	.ascii	"d\012\000"
	.align	2
.LC2:
	.ascii	"cobalt\000"
	.align	2
.LC3:
	.ascii	"Cobalt PCM-Out HDMI\000"
	.align	2
.LC4:
	.ascii	"snd_cobalt_pcm_create() failed for output with err "
	.ascii	"%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	snd_cobalt_pcm_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_cobalt_pcm_create, %function
snd_cobalt_pcm_create:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L13
	ldr	r4, [r0]
	ldr	r3, [r3]
	ldr	r2, [r4, #8]
	ldr	r7, [r4, #4]
	orr	r2, r2, r3
	ldr	r3, .L13+4
	sub	sp, sp, #16
	cmp	r7, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r8, [r0, #4]
	mov	r5, r0
	ldr	r6, [r4, #12]
	str	r2, [r4, #8]
	bne	.L2
	ldr	r0, [r4]
	bl	COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT
	mov	r2, r7
	mov	r1, r0
	mov	r0, r6
	bl	cobalt_s_bit_sysctrl
	mov	r0, #2
	bl	mdelay
	ldr	r0, [r4]
	bl	COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT
	mov	r2, #1
	mov	r1, r0
	mov	r0, r6
	bl	cobalt_s_bit_sysctrl
	mov	r0, #1
	bl	mdelay
	mov	r2, #1
	add	r3, sp, #8
	stm	sp, {r2, r3}
	mov	r0, r8
	mov	r3, r7
	mov	r2, r7
	ldr	r1, .L13+8
	bl	snd_pcm_new
	subs	r4, r0, #0
	bne	.L10
	ldr	r3, .L13+12
	ldr	r2, .L13+16
	b	.L8
.L2:
	ldr	r4, .L13+20
	mov	r2, #0
	ldr	r1, [r4]
	mov	r0, r6
	bl	cobalt_s_bit_sysctrl
	mov	r0, #2
	bl	mdelay
	ldr	r1, [r4]
	mov	r2, #1
	mov	r0, r6
	bl	cobalt_s_bit_sysctrl
	mov	r0, #1
	bl	mdelay
	mov	r2, #0
	add	r3, sp, #8
	stm	sp, {r2, r3}
	mov	r0, r8
	mov	r3, #1
	ldr	r1, .L13+24
	bl	snd_pcm_new
	subs	r4, r0, #0
	bne	.L11
	ldr	r3, .L13+28
	ldr	r2, .L13+32
.L8:
	ldr	r1, [r3]
	ldr	r0, [sp, #8]
	bl	snd_pcm_set_ops
	ldr	r3, [sp, #8]
	mov	r2, #4
	ldr	r0, [r3]
	ldr	r1, .L13+36
	str	r4, [r3, #8]
	str	r5, [r3, #4]
	bl	strscpy
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r1, r4
	ldr	r0, .L13+40
	bl	cobalt_err
	b	.L1
.L10:
	mov	r1, r4
	ldr	r0, .L13+44
	bl	cobalt_err
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	__GFP_ZERO
	.word	.LC5
	.word	.LC0
	.word	SNDRV_PCM_STREAM_CAPTURE
	.word	snd_cobalt_pcm_capture_ops
	.word	COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT
	.word	.LC3
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	snd_cobalt_pcm_playback_ops
	.word	.LC2
	.word	.LC4
	.word	.LC1
	.size	snd_cobalt_pcm_create, .-snd_cobalt_pcm_create
	.comm	snd_cobalt_pcm_playback_ops,4,4
	.comm	snd_cobalt_pcm_capture_ops,4,4
	.comm	__GFP_ZERO,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
