	.file	"extr_preset.c_hb_preset_job_add_audio.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid title index (%d)"
.LC1:
	.string	"Audio"
.LC2:
	.string	"CopyMask"
.LC3:
	.string	"AudioEncoderFallback"
.LC4:
	.string	"FallbackEncoder"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"Invalid fallback audio codec (%s)"
	.section	.rodata.str1.1
.LC6:
	.string	"AudioList"
.LC7:
	.string	"AudioTrackSelectionBehavior"
.LC8:
	.string	"none"
.LC9:
	.string	"all"
.LC10:
	.string	"AudioLanguageList"
.LC11:
	.string	"AudioSecondaryEncoderMode"
.LC12:
	.string	"any"
	.text
	.p2align 4
	.globl	hb_preset_job_add_audio
	.type	hb_preset_job_add_audio, @function
hb_preset_job_add_audio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	hb_find_title_by_index@PLT
	test	rax, rax
	je	.L31
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	hb_list_count@PLT
	test	rax, rax
	jle	.L29
	mov	rdi, r13
	call	get_job_mux@PLT
	cmp	DWORD PTR HB_MUX_INVALID[rip], eax
	mov	r14d, eax
	je	.L28
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	hb_dict_get@PLT
	mov	r15, rax
	test	rax, rax
	je	.L32
.L6:
	lea	rsi, 28[rsp]
	mov	rdi, rbp
	call	get_audio_copy_mask@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L28
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	call	hb_dict_set@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	hb_dict_get@PLT
	mov	r13, rax
	test	rax, rax
	je	.L17
	mov	rdi, rax
	call	hb_value_dup@PLT
	lea	rsi, .LC4[rip]
	mov	rdi, r15
	mov	rdx, rax
	call	hb_dict_set@PLT
	mov	rdi, r13
	call	hb_value_type@PLT
	cmp	rax, QWORD PTR HB_VALUE_TYPE_STRING[rip]
	mov	rdi, r13
	je	.L33
	call	hb_value_get_int@PLT
	mov	DWORD PTR [rsp], eax
.L8:
	mov	rdi, rbp
	call	validate_audio_encoders@PLT
	test	rax, rax
	js	.L28
	lea	rsi, .LC6[rip]
	mov	rdi, r15
	call	hb_dict_get@PLT
	mov	r13, rax
	test	rax, rax
	je	.L34
.L10:
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	hb_dict_get@PLT
	mov	rdi, rax
	call	hb_value_get_string@PLT
	mov	r15, rax
	test	rax, rax
	je	.L18
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	je	.L29
	lea	rsi, .LC9[rip]
	mov	rdi, r15
	call	strcasecmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	add	eax, 1
	mov	DWORD PTR 8[rsp], eax
.L11:
	xor	eax, eax
	call	hb_dict_init@PLT
	lea	rsi, .LC10[rip]
	mov	rdi, rbp
	mov	QWORD PTR 32[rsp], rax
	call	hb_dict_get@PLT
	lea	rsi, .LC11[rip]
	mov	rdi, rbp
	mov	rbx, rax
	call	hb_dict_get@PLT
	mov	rdi, rax
	call	hb_value_get_bool@PLT
	mov	rdi, rbx
	mov	DWORD PTR 4[rsp], eax
	call	hb_value_array_len@PLT
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jle	.L13
	xor	r15d, r15d
	mov	rax, rbp
	mov	rbp, rbx
	mov	ebx, r15d
	mov	r15, rax
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	hb_value_array_get@PLT
	mov	rdi, rax
	call	hb_value_get_string@PLT
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 120
	mov	ecx, DWORD PTR 12[rsp]
	mov	rsi, r15
	mov	rdi, r13
	push	rcx
	.cfi_def_cfa_offset 128
	mov	edx, DWORD PTR 24[rsp]
	mov	ecx, r14d
	push	rdx
	.cfi_def_cfa_offset 136
	mov	rdx, r12
	push	rax
	.cfi_def_cfa_offset 144
	mov	r9d, DWORD PTR 32[rsp]
	mov	r8d, DWORD PTR 60[rsp]
	call	add_audio_for_lang@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	cmp	DWORD PTR 12[rsp], ebx
	jne	.L14
	lea	rdi, 32[rsp]
	call	hb_dict_free@PLT
.L29:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L35
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	DWORD PTR [rsp], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	xor	eax, eax
	call	hb_dict_init@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	mov	rdx, rax
	mov	r15, rax
	call	hb_dict_set@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L33:
	call	hb_value_get_string@PLT
	mov	rdi, rax
	mov	r13, rax
	call	hb_audio_encoder_get_from_name@PLT
	mov	DWORD PTR [rsp], eax
	test	eax, eax
	jne	.L8
	mov	rsi, r13
	lea	rdi, .LC5[rip]
	call	hb_error@PLT
.L28:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR 12[rsp]
	mov	rdi, r13
	mov	ecx, r14d
	mov	rdx, r12
	mov	rsi, rbp
	push	rax
	.cfi_def_cfa_offset 128
	mov	eax, DWORD PTR 24[rsp]
	push	rax
	.cfi_def_cfa_offset 136
	lea	rax, .LC12[rip]
	push	rax
	.cfi_def_cfa_offset 144
	mov	r9d, DWORD PTR 32[rsp]
	mov	r8d, DWORD PTR 60[rsp]
	call	add_audio_for_lang@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	lea	rdi, 32[rsp]
	call	hb_dict_free@PLT
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L18:
	mov	DWORD PTR 8[rsp], 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L34:
	xor	eax, eax
	call	hb_value_array_init@PLT
	lea	rsi, .LC6[rip]
	mov	rdi, r15
	mov	rdx, rax
	mov	r13, rax
	call	hb_dict_set@PLT
	jmp	.L10
.L31:
	mov	esi, r14d
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	hb_error@PLT
	mov	eax, -1
	jmp	.L1
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hb_preset_job_add_audio, .-hb_preset_job_add_audio
	.comm	HB_VALUE_TYPE_STRING,8,8
	.comm	HB_MUX_INVALID,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_preset.c_hb_preset_job_add_audio.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid title index (%d)\000"
	.align	2
.LC1:
	.ascii	"Audio\000"
	.align	2
.LC2:
	.ascii	"CopyMask\000"
	.align	2
.LC3:
	.ascii	"AudioEncoderFallback\000"
	.align	2
.LC4:
	.ascii	"FallbackEncoder\000"
	.align	2
.LC5:
	.ascii	"Invalid fallback audio codec (%s)\000"
	.align	2
.LC6:
	.ascii	"AudioList\000"
	.align	2
.LC7:
	.ascii	"AudioTrackSelectionBehavior\000"
	.align	2
.LC8:
	.ascii	"none\000"
	.align	2
.LC9:
	.ascii	"all\000"
	.align	2
.LC10:
	.ascii	"AudioLanguageList\000"
	.align	2
.LC11:
	.ascii	"AudioSecondaryEncoderMode\000"
	.align	2
.LC12:
	.ascii	"any\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hb_preset_job_add_audio
	.syntax unified
	.arm
	.fpu softvfp
	.type	hb_preset_job_add_audio, %function
hb_preset_job_add_audio:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, .L36
	sub	sp, sp, #52
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r4, r1
	bl	hb_find_title_by_index
	subs	r6, r0, #0
	beq	.L31
	ldr	r0, [r6]
	bl	hb_list_count
	cmp	r0, #0
	ble	.L29
	mov	r0, r7
	bl	get_job_mux
	ldr	r3, .L36+4
	mov	r9, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L28
	mov	r0, r7
	ldr	r1, .L36+8
	bl	hb_dict_get
	subs	r4, r0, #0
	beq	.L32
.L6:
	mov	r0, r5
	add	r1, sp, #36
	bl	get_audio_copy_mask
	subs	r2, r0, #0
	beq	.L28
	ldr	r1, .L36+12
	mov	r0, r4
	bl	hb_dict_set
	mov	r0, r5
	ldr	r1, .L36+16
	bl	hb_dict_get
	subs	r7, r0, #0
	beq	.L8
	bl	hb_value_dup
	ldr	r1, .L36+20
	mov	r2, r0
	mov	r0, r4
	bl	hb_dict_set
	mov	r0, r7
	bl	hb_value_type
	ldr	r3, .L36+24
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r7
	beq	.L33
	bl	hb_value_get_int
	mov	r7, r0
.L8:
	mov	r0, r5
	bl	validate_audio_encoders
	cmp	r0, #0
	blt	.L28
	mov	r0, r4
	ldr	r1, .L36+28
	bl	hb_dict_get
	subs	r8, r0, #0
	beq	.L34
.L10:
	ldr	r1, .L36+32
	mov	r0, r5
	bl	hb_dict_get
	bl	hb_value_get_string
	subs	r4, r0, #0
	beq	.L18
	ldr	r1, .L36+36
	bl	strcasecmp
	cmp	r0, #0
	beq	.L29
	mov	r0, r4
	ldr	r1, .L36+40
	bl	strcasecmp
	cmp	r0, #0
	movne	r3, #1
	moveq	r3, #2
	str	r3, [sp, #24]
.L11:
	bl	hb_dict_init
	mov	r3, r0
	ldr	r1, .L36+44
	mov	r0, r5
	str	r3, [sp, #40]
	bl	hb_dict_get
	ldr	r1, .L36+48
	mov	r10, r0
	mov	r0, r5
	bl	hb_dict_get
	bl	hb_value_get_bool
	mov	fp, r0
	mov	r0, r10
	bl	hb_value_array_len
	subs	r3, r0, #0
	str	r3, [sp, #28]
	ble	.L13
	mov	r4, #0
.L14:
	mov	r1, r4
	mov	r0, r10
	bl	hb_value_array_get
	bl	hb_value_get_string
	ldr	r2, [sp, #40]
	ldr	r3, [sp, #36]
	ldr	r1, [sp, #24]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	str	r2, [sp, #20]
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r9
	mov	r1, r5
	mov	r0, r8
	str	fp, [sp, #16]
	str	r7, [sp, #4]
	bl	add_audio_for_lang
	ldr	r3, [sp, #28]
	add	r4, r4, #1
	cmp	r3, r4
	bne	.L14
	add	r0, sp, #40
	bl	hb_dict_free
.L29:
	mov	r0, #0
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	bl	hb_dict_init
	mov	r4, r0
	ldr	r1, .L36+8
	mov	r0, r7
	mov	r2, r4
	bl	hb_dict_set
	b	.L6
.L18:
	mov	r3, #1
	str	r3, [sp, #24]
	b	.L11
.L34:
	bl	hb_value_array_init
	mov	r8, r0
	ldr	r1, .L36+28
	mov	r0, r4
	mov	r2, r8
	bl	hb_dict_set
	b	.L10
.L33:
	bl	hb_value_get_string
	mov	r8, r0
	bl	hb_audio_encoder_get_from_name
	subs	r7, r0, #0
	bne	.L8
	mov	r1, r8
	ldr	r0, .L36+52
	bl	hb_error
.L28:
	mvn	r0, #0
	b	.L1
.L13:
	ldr	r3, [sp, #24]
	ldr	r4, [sp, #40]
	ldr	lr, .L36+56
	ldr	ip, [sp, #36]
	str	r3, [sp, #12]
	mov	r2, r6
	mov	r3, r9
	mov	r1, r5
	mov	r0, r8
	str	fp, [sp, #16]
	str	r7, [sp, #4]
	str	r4, [sp, #20]
	str	lr, [sp, #8]
	str	ip, [sp]
	bl	add_audio_for_lang
	add	r0, sp, #40
	bl	hb_dict_free
	b	.L29
.L31:
	mov	r1, r4
	ldr	r0, .L36+60
	bl	hb_error
	mvn	r0, #0
	b	.L1
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC13
	.word	HB_MUX_INVALID
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	HB_VALUE_TYPE_STRING
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC5
	.word	.LC12
	.word	.LC0
	.size	hb_preset_job_add_audio, .-hb_preset_job_add_audio
	.comm	HB_VALUE_TYPE_STRING,4,4
	.comm	HB_MUX_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
