	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_apply_mux            ## -- Begin function hb_preset_apply_mux
	.p2align	4, 0x90
_hb_preset_apply_mux:                   ## @hb_preset_apply_mux
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_hb_dict_get
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_hb_value_type
	movq	_HB_VALUE_TYPE_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_hb_value_get_string
	movl	%eax, %edi
	callq	_hb_container_get_from_name
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	callq	_hb_value_get_string
	movl	%eax, %edi
	callq	_hb_container_get_from_extension
	jmp	LBB0_4
LBB0_3:
	movq	%r13, %rdi
	callq	_hb_value_get_int
LBB0_4:
	movl	%eax, %r12d
LBB0_5:
	movl	%r12d, %edi
	callq	_hb_container_get_from_format
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_hb_value_string
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	leaq	L_.str.4(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hb_dict_get
	movq	_HB_VALUE_TYPE_BOOL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_hb_value_xform
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_hb_dict_set
	leaq	L_.str.5(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hb_dict_get
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_hb_value_xform
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_hb_dict_set
	movq	_HB_MUX_MASK_MP4@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hb_dict_init
	movq	%rax, %r12
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_hb_dict_get
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_hb_value_xform
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_hb_dict_get
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_hb_value_xform
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_hb_dict_set
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_hb_dict_set
	jmp	LBB0_10
LBB0_6:
	movq	%r13, %rdi
	callq	_hb_value_get_string_xform
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_hb_error
	movq	%rbx, %rdi
	callq	_free
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %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	"FileFormat"

	.comm	_HB_VALUE_TYPE_STRING,8,3       ## @HB_VALUE_TYPE_STRING
L_.str.1:                               ## @.str.1
	.asciz	"Invalid container (%s)"

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

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

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

	.comm	_HB_VALUE_TYPE_BOOL,4,2         ## @HB_VALUE_TYPE_BOOL
L_.str.5:                               ## @.str.5
	.asciz	"InlineParameterSets"

	.comm	_HB_MUX_MASK_MP4,4,2            ## @HB_MUX_MASK_MP4
L_.str.6:                               ## @.str.6
	.asciz	"Mp4Optimize"

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

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

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_apply_mux            ; -- Begin function hb_preset_apply_mux
	.p2align	2
_hb_preset_apply_mux:                   ; @hb_preset_apply_mux
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hb_dict_get
	mov	x22, x0
	bl	_hb_value_type
Lloh2:
	adrp	x8, _HB_VALUE_TYPE_STRING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HB_VALUE_TYPE_STRING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_hb_value_get_string
	bl	_hb_container_get_from_name
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x22
	bl	_hb_value_get_string
	bl	_hb_container_get_from_extension
	b	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_hb_value_get_int
LBB0_4:
	mov	x21, x0
LBB0_5:
	mov	x0, x21
	bl	_hb_container_get_from_format
	cbz	x0, LBB0_9
; %bb.6:
	mov	x23, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_hb_dict_get
	mov	x20, x0
	ldr	w0, [x23]
	bl	_hb_value_string
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_hb_dict_set
Lloh9:
	adrp	x22, l_.str.4@PAGE
Lloh10:
	add	x22, x22, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_hb_dict_get
Lloh11:
	adrp	x23, _HB_VALUE_TYPE_BOOL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _HB_VALUE_TYPE_BOOL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_hb_value_xform
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_hb_dict_set
Lloh13:
	adrp	x22, l_.str.5@PAGE
Lloh14:
	add	x22, x22, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_hb_dict_get
	ldr	w1, [x23]
	bl	_hb_value_xform
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_hb_dict_set
Lloh15:
	adrp	x8, _HB_MUX_MASK_MP4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HB_MUX_MASK_MP4@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	bl	_hb_dict_init
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get
	ldr	w1, [x23]
	bl	_hb_value_xform
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_hb_dict_set
Lloh22:
	adrp	x1, l_.str.9@PAGE
Lloh23:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get
	ldr	w1, [x23]
	bl	_hb_value_xform
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_hb_dict_set
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_hb_dict_set
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x22
	bl	_hb_value_get_string_xform
	mov	x19, x0
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_hb_error
	mov	x0, x19
	bl	_free
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FileFormat"

	.comm	_HB_VALUE_TYPE_STRING,8,3       ; @HB_VALUE_TYPE_STRING
l_.str.1:                               ; @.str.1
	.asciz	"Invalid container (%s)"

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

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

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

	.comm	_HB_VALUE_TYPE_BOOL,4,2         ; @HB_VALUE_TYPE_BOOL
l_.str.5:                               ; @.str.5
	.asciz	"InlineParameterSets"

	.comm	_HB_MUX_MASK_MP4,4,2            ; @HB_MUX_MASK_MP4
l_.str.6:                               ; @.str.6
	.asciz	"Mp4Optimize"

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

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

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

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

.subsections_via_symbols
