	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_job_add_audio        ## -- Begin function hb_preset_job_add_audio
	.p2align	4, 0x90
_hb_preset_job_add_audio:               ## @hb_preset_job_add_audio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %ebx
	callq	_hb_find_title_by_index
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_hb_list_count
	testq	%rax, %rax
	jle	LBB0_26
## %bb.3:
	movq	%r15, %rdi
	callq	_get_job_mux
	movl	%eax, %ebx
	movq	_HB_MUX_INVALID@GOTPCREL(%rip), %rax
	movl	$-1, %r14d
	cmpl	(%rax), %ebx
	je	LBB0_27
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_hb_dict_get
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_hb_dict_init
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	callq	_hb_dict_set
LBB0_6:
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	callq	_get_audio_copy_mask
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_27
## %bb.7:
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_hb_value_dup
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movq	%rbx, %rdi
	callq	_hb_value_type
	movq	_HB_VALUE_TYPE_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_hb_value_get_string
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_hb_audio_encoder_get_from_name
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_hb_error
	jmp	LBB0_27
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_hb_error
	movl	$-1, %r14d
	jmp	LBB0_27
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	callq	_hb_value_get_int
	movl	%eax, %r15d
LBB0_13:
	movq	%r12, %rdi
	callq	_validate_audio_encoders
	testq	%rax, %rax
	js	LBB0_27
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_hb_dict_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_hb_value_array_init
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	callq	_hb_dict_set
LBB0_16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_string
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %rbx
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_26
## %bb.19:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	adcl	$1, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
LBB0_17:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_20:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_hb_dict_init
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -120(%rbp)
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get
	movq	%rax, %rbx
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_bool
	movl	%eax, %r14d
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_hb_value_array_len
	testl	%eax, %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_24
## %bb.21:
	movl	%eax, %r12d
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-112(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_hb_value_array_get
	movq	%rax, %rdi
	callq	_hb_value_get_string
	movl	-72(%rbp), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%r13
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_add_audio_for_lang
	addq	$32, %rsp
	incl	%r15d
	cmpl	%r15d, %r12d
	jne	LBB0_22
## %bb.23:
	testl	%r12d, %r12d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_25
LBB0_24:
	movl	-72(%rbp), %r8d
	leaq	L_.str.12(%rip), %rax
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	%r13, %rdx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	callq	_add_audio_for_lang
	addq	$32, %rsp
LBB0_25:
	leaq	-120(%rbp), %rdi
	callq	_hb_dict_free
LBB0_26:
	xorl	%r14d, %r14d
LBB0_27:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid title index (%d)"

	.comm	_HB_MUX_INVALID,4,2             ## @HB_MUX_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"Audio"

L_.str.2:                               ## @.str.2
	.asciz	"CopyMask"

L_.str.3:                               ## @.str.3
	.asciz	"AudioEncoderFallback"

L_.str.4:                               ## @.str.4
	.asciz	"FallbackEncoder"

	.comm	_HB_VALUE_TYPE_STRING,8,3       ## @HB_VALUE_TYPE_STRING
L_.str.5:                               ## @.str.5
	.asciz	"Invalid fallback audio codec (%s)"

L_.str.6:                               ## @.str.6
	.asciz	"AudioList"

L_.str.7:                               ## @.str.7
	.asciz	"AudioTrackSelectionBehavior"

L_.str.8:                               ## @.str.8
	.asciz	"none"

L_.str.9:                               ## @.str.9
	.asciz	"all"

L_.str.10:                              ## @.str.10
	.asciz	"AudioLanguageList"

L_.str.11:                              ## @.str.11
	.asciz	"AudioSecondaryEncoderMode"

L_.str.12:                              ## @.str.12
	.asciz	"any"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_job_add_audio        ; -- Begin function hb_preset_job_add_audio
	.p2align	2
_hb_preset_job_add_audio:               ; @hb_preset_job_add_audio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	bl	_hb_find_title_by_index
	cbz	x0, LBB0_10
; %bb.1:
	mov	x26, x0
	ldr	w0, [x0]
	bl	_hb_list_count
	cmp	x0, #1
	b.lt	LBB0_28
; %bb.2:
	mov	x0, x22
	bl	_get_job_mux
Lloh0:
	adrp	x8, _HB_MUX_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_MUX_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_20
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_hb_dict_get
	mov	x24, x0
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_hb_dict_init
	mov	x24, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_hb_dict_set
LBB0_5:
	add	x1, sp, #44
	mov	x0, x19
	bl	_get_audio_copy_mask
	cbz	x0, LBB0_20
; %bb.6:
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_hb_dict_set
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get
	cbz	x0, LBB0_12
; %bb.7:
	mov	x22, x0
	bl	_hb_value_dup
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_hb_dict_set
	mov	x0, x22
	bl	_hb_value_type
Lloh13:
	adrp	x8, _HB_VALUE_TYPE_STRING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HB_VALUE_TYPE_STRING@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.8:
	mov	x0, x22
	bl	_hb_value_get_string
	mov	x22, x0
	bl	_hb_audio_encoder_get_from_name
	mov	x25, x0
	cbnz	w0, LBB0_14
; %bb.9:
	str	x22, [sp]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_10:
	str	x21, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_hb_error
	mov	w0, #-1
	b	LBB0_29
LBB0_12:
	mov	w25, #0
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_hb_value_get_int
	mov	x25, x0
LBB0_14:
	mov	x0, x19
	bl	_validate_audio_encoders
	tbnz	x0, #63, LBB0_20
; %bb.15:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x24
	bl	_hb_dict_get
	mov	x23, x0
	cbnz	x0, LBB0_17
; %bb.16:
	bl	_hb_value_array_init
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	bl	_hb_dict_set
LBB0_17:
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get
	bl	_hb_value_get_string
	cbz	x0, LBB0_21
; %bb.18:
	mov	x22, x0
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_29
; %bb.19:
	str	w25, [sp, #24]                  ; 4-byte Folded Spill
Lloh28:
	adrp	x1, l_.str.9@PAGE
Lloh29:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cmp	w0, #0
	mov	w8, #1
	cinc	w22, w8, eq
	b	LBB0_22
LBB0_20:
	mov	w0, #-1
	b	LBB0_29
LBB0_21:
	str	w25, [sp, #24]                  ; 4-byte Folded Spill
	mov	w22, #1
LBB0_22:
	bl	_hb_dict_init
	mov	x24, x0
	str	x0, [sp, #32]
Lloh30:
	adrp	x1, l_.str.10@PAGE
Lloh31:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get
	mov	x27, x0
Lloh32:
	adrp	x1, l_.str.11@PAGE
Lloh33:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get
	bl	_hb_value_get_bool
	mov	x25, x0
	mov	x0, x27
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_26
; %bb.23:
	mov	x28, x0
	str	w25, [sp, #28]                  ; 4-byte Folded Spill
	mov	x25, x22
	mov	w22, #0
	mov	x20, x24
	mov	x24, x19
	mov	x19, x23
	mov	x23, x21
	ldr	w21, [sp, #24]                  ; 4-byte Folded Reload
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x27
	mov	x1, x22
	bl	_hb_value_array_get
	bl	_hb_value_get_string
	mov	x6, x0
	ldr	w4, [sp, #44]
	str	x20, [sp, #8]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x26
	mov	x3, x23
	mov	x5, x21
	mov	x7, x25
	bl	_add_audio_for_lang
	add	w22, w22, #1
	cmp	w28, w22
	b.ne	LBB0_24
; %bb.25:
	cmp	w28, #0
	mov	x21, x23
	mov	x23, x19
	mov	x19, x24
	mov	x22, x25
	mov	x24, x20
	ldr	w25, [sp, #28]                  ; 4-byte Folded Reload
	b.gt	LBB0_27
LBB0_26:
	ldr	w4, [sp, #44]
	str	x24, [sp, #8]
	str	w25, [sp]
Lloh34:
	adrp	x6, l_.str.12@PAGE
Lloh35:
	add	x6, x6, l_.str.12@PAGEOFF
	mov	x0, x23
	mov	x1, x19
	mov	x2, x26
	mov	x3, x21
	ldr	w5, [sp, #24]                   ; 4-byte Folded Reload
	mov	x7, x22
	bl	_add_audio_for_lang
LBB0_27:
	add	x0, sp, #32
	bl	_hb_dict_free
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid title index (%d)"

	.comm	_HB_MUX_INVALID,4,2             ; @HB_MUX_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"Audio"

l_.str.2:                               ; @.str.2
	.asciz	"CopyMask"

l_.str.3:                               ; @.str.3
	.asciz	"AudioEncoderFallback"

l_.str.4:                               ; @.str.4
	.asciz	"FallbackEncoder"

	.comm	_HB_VALUE_TYPE_STRING,8,3       ; @HB_VALUE_TYPE_STRING
l_.str.5:                               ; @.str.5
	.asciz	"Invalid fallback audio codec (%s)"

l_.str.6:                               ; @.str.6
	.asciz	"AudioList"

l_.str.7:                               ; @.str.7
	.asciz	"AudioTrackSelectionBehavior"

l_.str.8:                               ; @.str.8
	.asciz	"none"

l_.str.9:                               ; @.str.9
	.asciz	"all"

l_.str.10:                              ; @.str.10
	.asciz	"AudioLanguageList"

l_.str.11:                              ; @.str.11
	.asciz	"AudioSecondaryEncoderMode"

l_.str.12:                              ; @.str.12
	.asciz	"any"

.subsections_via_symbols
