	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_sanitize_audio_settings     ## -- Begin function hb_sanitize_audio_settings
	.p2align	4, 0x90
_hb_sanitize_audio_settings:            ## @hb_sanitize_audio_settings
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get_int
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get_string
	movq	%rax, %rdi
	callq	_hb_audio_encoder_get_from_name
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get_string
	movq	%rax, %rdi
	callq	_hb_mixdown_get_from_name
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get_int
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_hb_dict_get_double
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_hb_dict_get_int
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_hb_dict_get
	xorl	%ecx, %ecx
	movl	%r13d, %ebx
	testl	%r13d, %r13d
	jg	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	cmpneqsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	%xmm0, %rcx
	andl	$1, %ecx
LBB0_3:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_hb_list_audio_config_item
	testq	%rax, %rax
	setne	%cl
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.6:
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movb	$1, %cl
	jmp	LBB0_8
LBB0_4:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
LBB0_8:
	movl	%ebx, %r13d
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rdx
	testl	%r15d, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	_HB_AMIXDOWN_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hb_mixdown_get_short_name
	movl	%eax, %edi
	callq	_hb_value_string
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	xorl	%edi, %edi
	callq	_hb_value_int
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	xorpd	%xmm0, %xmm0
	callq	_hb_value_double
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_25
LBB0_10:
	testb	%cl, %cl
	jne	LBB0_11
## %bb.12:
	movq	_AV_CH_LAYOUT_5POINT1@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	addq	$4, %rax
LBB0_13:
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	(%rax), %esi
	movq	_HB_AMIXDOWN_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_15
## %bb.14:
	movq	_HB_INVALID_AMIXDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_15:
	movl	%r15d, %edi
	callq	_hb_mixdown_get_best
	movl	%eax, %r14d
	cmpb	$0, -72(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_20
## %bb.16:
	leaq	-84(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-92(%rbp), %rcx
	leaq	-88(%rbp), %r8
	movl	%r15d, %edi
	callq	_hb_audio_quality_get_limits
	movss	-84(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	ucomisd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	ja	LBB0_18
## %bb.17:
	movss	-80(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jbe	LBB0_19
LBB0_18:
	movl	%r15d, %edi
	callq	_hb_audio_quality_get_default
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	jmp	LBB0_24
LBB0_20:
	movl	%r15d, %edi
	cmpl	$-1, %r13d
	je	LBB0_22
## %bb.21:
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_hb_audio_bitrate_get_best
	jmp	LBB0_23
LBB0_22:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_hb_audio_bitrate_get_default
LBB0_23:
	movl	%eax, %r13d
LBB0_24:
	movl	%r14d, %edi
	callq	_hb_mixdown_get_short_name
	movl	%eax, %edi
	callq	_hb_value_string
	leaq	L_.str.2(%rip), %rsi
LBB0_25:
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$-1, %ebx
	testb	%al, %al
	cmovel	%r13d, %ebx
	jne	LBB0_27
## %bb.26:
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
LBB0_27:
	callq	_hb_value_double
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	movl	%ebx, %edi
	callq	_hb_value_int
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	movl	%r15d, %edi
	callq	_hb_audio_encoder_get_short_name
	movl	%eax, %edi
	callq	_hb_value_string
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_hb_dict_set
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%r15d, %edi
	callq	_hb_audio_quality_get_best
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	jmp	LBB0_24
	.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	"Mixdown"

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

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

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

	.comm	_HB_INVALID_AUDIO_QUALITY,8,3   ## @HB_INVALID_AUDIO_QUALITY
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
	.comm	_HB_AMIXDOWN_NONE,4,2           ## @HB_AMIXDOWN_NONE
L_.str.6:                               ## @.str.6
	.asciz	"DRC"

	.comm	_AV_CH_LAYOUT_5POINT1,4,2       ## @AV_CH_LAYOUT_5POINT1
	.comm	_HB_INVALID_AMIXDOWN,4,2        ## @HB_INVALID_AMIXDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_sanitize_audio_settings     ; -- Begin function hb_sanitize_audio_settings
	.p2align	2
_hb_sanitize_audio_settings:            ; @hb_sanitize_audio_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get_int
	mov	x25, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get_string
	bl	_hb_audio_encoder_get_from_name
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get_string
	bl	_hb_mixdown_get_from_name
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get_int
	mov	x21, x0
Lloh8:
	adrp	x26, l_.str.4@PAGE
Lloh9:
	add	x26, x26, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x26
	bl	_hb_dict_get_double
	fmov	d8, d0
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_get_int
	mov	x23, x0
	mov	x0, x19
	mov	x1, x26
	bl	_hb_dict_get
	mov	w27, #0
Lloh12:
	adrp	x26, _HB_INVALID_AUDIO_QUALITY@GOTPAGE
Lloh13:
	ldr	x26, [x26, _HB_INVALID_AUDIO_QUALITY@GOTPAGEOFF]
	cmp	w21, #0
	b.gt	LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	ldr	d0, [x26]
	fcmp	d8, d0
	cset	w27, ne
LBB0_3:
	cbz	x24, LBB0_7
; %bb.4:
	ldr	w0, [x24]
	mov	x1, x25
	bl	_hb_list_audio_config_item
	cmp	x0, #0
	cset	w8, ne
	cbnz	w23, LBB0_8
; %bb.5:
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w23, [x0]
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	mov	x0, #0
LBB0_8:
Lloh14:
	adrp	x9, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _HB_AMIXDOWN_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HB_AMIXDOWN_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_hb_mixdown_get_short_name
	bl	_hb_value_string
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_set
	mov	w0, #0
	bl	_hb_value_int
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_set
	movi	d0, #0000000000000000
	bl	_hb_value_double
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_10:
Lloh26:
	adrp	x9, _AV_CH_LAYOUT_5POINT1@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AV_CH_LAYOUT_5POINT1@GOTPAGEOFF]
	add	x10, x0, #4
	cmp	w8, #0
	csel	x8, x10, x9, ne
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _HB_AMIXDOWN_NONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HB_AMIXDOWN_NONE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _HB_INVALID_AMIXDOWN@GOTPAGE
Lloh32:
	ldr	x9, [x9, _HB_INVALID_AMIXDOWN@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w22, w8
	csel	w2, w9, w22, eq
	mov	x0, x20
	bl	_hb_mixdown_get_best
	mov	x22, x0
	cbz	w27, LBB0_14
; %bb.11:
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x20
	bl	_hb_audio_quality_get_limits
	ldr	s0, [sp, #12]
	fcvt	d0, s0
	fcmp	d8, d0
	b.mi	LBB0_13
; %bb.12:
	ldr	s0, [sp, #8]
	fcvt	d0, s0
	fcmp	d8, d0
	b.le	LBB0_20
LBB0_13:
	mov	x0, x20
	bl	_hb_audio_quality_get_default
	fmov	d8, d0
	b	LBB0_18
LBB0_14:
	mov	x0, x20
	cmn	w21, #1
	b.eq	LBB0_16
; %bb.15:
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_hb_audio_bitrate_get_best
	b	LBB0_17
LBB0_16:
	mov	x1, x23
	mov	x2, x22
	bl	_hb_audio_bitrate_get_default
LBB0_17:
	mov	x21, x0
LBB0_18:
	mov	x0, x22
	bl	_hb_mixdown_get_short_name
	bl	_hb_value_string
	mov	x2, x0
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_hb_dict_set
	ldr	d0, [x26]
	cmp	w27, #0
	csinv	w21, w21, wzr, eq
	fcsel	d0, d8, d0, ne
	bl	_hb_value_double
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_set
	mov	x0, x21
	bl	_hb_value_int
	mov	x2, x0
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_set
	mov	x0, x20
	bl	_hb_audio_encoder_get_short_name
	bl	_hb_value_string
	mov	x2, x0
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hb_dict_set
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	mov	x0, x20
	fmov	d0, d8
	bl	_hb_audio_quality_get_best
	fmov	d8, d0
	b	LBB0_18
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.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	"Mixdown"

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

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

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

	.comm	_HB_INVALID_AUDIO_QUALITY,8,3   ; @HB_INVALID_AUDIO_QUALITY
	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
	.comm	_HB_AMIXDOWN_NONE,4,2           ; @HB_AMIXDOWN_NONE
l_.str.6:                               ; @.str.6
	.asciz	"DRC"

	.comm	_AV_CH_LAYOUT_5POINT1,4,2       ; @AV_CH_LAYOUT_5POINT1
	.comm	_HB_INVALID_AMIXDOWN,4,2        ; @HB_INVALID_AMIXDOWN
.subsections_via_symbols
