	.file	"extr_hda_generic.c_create_in_jack_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	create_in_jack_mode, @function
create_in_jack_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	mov	r13, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SNDRV_CTL_ELEM_ID_NAME_MAXLEN[rip]
	mov	rcx, rsp
	mov	r14, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
	cmp	QWORD PTR 0[r13], rbx
	je	.L14
.L5:
	mov	rsi, rbx
	mov	rdi, r12
	call	snd_hda_codec_get_pincfg@PLT
	mov	edi, eax
	call	snd_hda_get_input_pin_attr@PLT
	cmp	rax, QWORD PTR INPUT_PIN_ATTR_INT[rip]
	je	.L14
	mov	rsi, rbx
	mov	rdi, r12
	call	get_in_jack_num_items@PLT
	cmp	eax, 1
	jle	.L14
	mov	rdx, rsp
	mov	rsi, rbx
	mov	rdi, r12
	mov	ecx, r14d
	call	get_jack_mode_name@PLT
	lea	rdx, in_jack_mode_enum[rip]
	mov	rsi, rsp
	mov	rdi, r13
	call	snd_hda_gen_add_kctl@PLT
	test	rax, rax
	je	.L18
	mov	QWORD PTR [rax], rbx
.L14:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	cmp	QWORD PTR 0[r13], rbx
	jne	.L5
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_in_jack_mode, .-create_in_jack_mode
	.comm	in_jack_mode_enum,4,4
	.comm	SNDRV_CTL_ELEM_ID_NAME_MAXLEN,4,4
	.comm	INPUT_PIN_ATTR_INT,8,8
	.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_in_jack_mode.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_in_jack_mode, %function
create_in_jack_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	ldr	r3, .L10
	ldr	r6, [r0]
	ldr	r7, [r3]
	ldr	r3, [r6]
	add	r2, r7, #7
	cmp	r3, r1
	ldr	r3, .L10+4
	bic	r2, r2, #7
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	sp, sp, r2
	beq	.L4
	mov	r4, r1
	mov	r5, r0
	bl	snd_hda_codec_get_pincfg
	bl	snd_hda_get_input_pin_attr
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	mov	r1, r4
	mov	r0, r5
	bl	get_in_jack_num_items
	cmp	r0, #1
	ble	.L4
	mov	r3, r7
	mov	r2, sp
	mov	r1, r4
	mov	r0, r5
	bl	get_jack_mode_name
	mov	r0, r6
	mov	r1, sp
	ldr	r2, .L10+12
	bl	snd_hda_gen_add_kctl
	subs	r3, r0, #0
	ldreq	r3, .L10+16
	movne	r0, #0
	ldreq	r0, [r3]
	strne	r4, [r3]
	rsbeq	r0, r0, #0
	b	.L1
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	SNDRV_CTL_ELEM_ID_NAME_MAXLEN
	.word	.LC0
	.word	INPUT_PIN_ATTR_INT
	.word	in_jack_mode_enum
	.word	ENOMEM
	.size	create_in_jack_mode, .-create_in_jack_mode
	.comm	in_jack_mode_enum,4,4
	.comm	SNDRV_CTL_ELEM_ID_NAME_MAXLEN,4,4
	.comm	INPUT_PIN_ATTR_INT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
