	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_add_track
_audio_add_track:                       ## @audio_add_track
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ghb_dict_new
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%r12d, %edx
	callq	_ghb_dict_set_int
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_hb_audio_encoder_get_short_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_ghb_dict_set_string
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_ghb_dict_set_double
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_ghb_dict_set_int
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_ghb_dict_set_int
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ghb_get_title_audio_track
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.5(%rip), %rsi
	movq	%rax, %rdi
	callq	_ghb_dict_get_int
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %r14
	movl	%r15d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	16(%rbp), %edx
	callq	_ghb_get_best_mix
	movl	%eax, %r12d
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_ghb_dict_set_string
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbp), %r14d
	movl	24(%rbp), %r15d
	jmp	LBB0_5
LBB0_1:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbp), %r14d
	movl	24(%rbp), %r15d
	movl	16(%rbp), %r12d
LBB0_5:
	movl	%r12d, %edi
	callq	_hb_mixdown_get_short_name
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_ghb_dict_set_string
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_ghb_dict_set_double
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_ghb_dict_set_double
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ghb_sanitize_audio_settings
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_audio_add_to_settings
	movq	%r13, %rax
	addq	$24, %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	"Track"

L_.str.1:                               ## @.str.1
	.asciz	"Encoder"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"ChannelLayout"

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

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

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

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

	.no_dead_strip	_audio_add_track
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_add_track
_audio_add_track:                       ; @audio_add_track
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x7
	mov	x23, x6
	mov	x25, x5
	mov	x26, x4
	mov	x27, x3
	mov	x24, x2
	mov	x28, x1
	mov	x19, x0
	ldr	w22, [x29, #16]
	bl	_ghb_dict_new
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x28
	bl	_ghb_dict_set_int
	mov	x0, x24
	bl	_hb_audio_encoder_get_short_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_set_string
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x27
	bl	_ghb_dict_set_double
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_ghb_dict_set_int
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	bl	_ghb_dict_set_int
	mov	x0, x19
	mov	x1, x28
	bl	_ghb_get_title_audio_track
	cbz	x0, LBB0_3
; %bb.1:
	mov	x25, x0
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_ghb_dict_get_int
	mov	x26, x0
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x25
	bl	_ghb_dict_get_string
	mov	x25, x0
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	bl	_ghb_get_best_mix
	mov	x23, x0
	cbz	x25, LBB0_3
; %bb.2:
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	bl	_ghb_dict_set_string
LBB0_3:
	mov	x0, x23
	bl	_hb_mixdown_get_short_name
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_ghb_dict_set_string
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_ghb_dict_set_double
Lloh20:
	adrp	x1, l_.str.9@PAGE
Lloh21:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_ghb_dict_set_double
	mov	x0, x19
	mov	x1, x20
	bl	_ghb_sanitize_audio_settings
	mov	x0, x19
	mov	x1, x20
	bl	_audio_add_to_settings
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Track"

l_.str.1:                               ; @.str.1
	.asciz	"Encoder"

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"ChannelLayout"

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

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

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

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

	.no_dead_strip	_audio_add_track
.subsections_via_symbols
