	.file	"extr_hda_generic.c_create_out_jack_modes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	create_out_jack_modes, @function
create_out_jack_modes:
.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
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	test	esi, esi
	jle	.L2
	lea	eax, -1[rsi]
	mov	r14, rdi
	mov	rbx, rdx
	lea	r13, 8[rdx+rax*8]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 8
	cmp	rbx, r13
	je	.L2
.L11:
	mov	r15, QWORD PTR [rbx]
	cmp	QWORD PTR [r12], r15
	je	.L4
	mov	rsi, r15
	mov	rdi, r14
	call	get_out_jack_num_items@PLT
	cmp	eax, 1
	jle	.L4
	movsx	rax, DWORD PTR SNDRV_CTL_ELEM_ID_NAME_MAXLEN[rip]
	mov	rdi, rsp
	mov	r9, rsp
	mov	rcx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L7
.L19:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L19
.L7:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L8
	or	QWORD PTR -8[rsp+rdx], 0
.L8:
	mov	rdx, rsp
	mov	rsi, r15
	mov	rdi, r14
	mov	QWORD PTR -72[rbp], r9
	call	get_jack_mode_name@PLT
	lea	rdx, out_jack_mode_enum[rip]
	mov	rsi, rsp
	mov	rdi, r12
	call	snd_hda_gen_add_kctl@PLT
	mov	r9, QWORD PTR -72[rbp]
	test	rax, rax
	je	.L20
	add	rbx, 8
	mov	QWORD PTR [rax], r15
	mov	rsp, r9
	cmp	rbx, r13
	jne	.L11
.L2:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	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
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	rsp, r9
	neg	eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_out_jack_modes, .-create_out_jack_modes
	.comm	out_jack_mode_enum,4,4
	.comm	SNDRV_CTL_ELEM_ID_NAME_MAXLEN,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_hda_generic.c_create_out_jack_modes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_out_jack_modes, %function
create_out_jack_modes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L15
	subs	r8, r1, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r7, [r0]
	ble	.L2
	mov	r9, r0
	mov	r5, #0
	sub	r6, r2, #4
	b	.L8
.L4:
	add	r5, r5, #1
	cmp	r8, r5
	beq	.L2
.L8:
	ldr	r4, [r6, #4]!
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L4
	mov	r1, r4
	mov	r0, r9
	bl	get_out_jack_num_items
	cmp	r0, #1
	ble	.L4
	ldr	r3, .L15+4
	mov	r10, sp
	ldr	r3, [r3]
	mov	r1, r4
	add	r2, r3, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	mov	r2, sp
	mov	r0, r9
	bl	get_jack_mode_name
	mov	r1, sp
	mov	r0, r7
	ldr	r2, .L15+8
	bl	snd_hda_gen_add_kctl
	cmp	r0, #0
	beq	.L13
	add	r5, r5, #1
	cmp	r8, r5
	str	r4, [r0]
	mov	sp, r10
	bne	.L8
.L2:
	mov	r0, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	mov	sp, r10
	rsb	r0, r0, #0
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	SNDRV_CTL_ELEM_ID_NAME_MAXLEN
	.word	out_jack_mode_enum
	.word	ENOMEM
	.size	create_out_jack_modes, .-create_out_jack_modes
	.comm	out_jack_mode_enum,4,4
	.comm	SNDRV_CTL_ELEM_ID_NAME_MAXLEN,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
