	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function sanitize_audio
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sanitize_audio:                        ## @sanitize_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_51:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	callq	_hb_autopassthru_apply_settings
	movl	(%rbx), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.2:
	movq	_HB_ACODEC_AUTO_PASS@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_hb_list_item
	movq	%rax, %r13
	movl	(%rax), %eax
	movq	%r12, %rdi
	cmpl	(%r15), %eax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	andl	48(%r13), %eax
	leaq	L_.str.1(%rip), %rdi
	movq	_HB_ACODEC_PASS_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %esi
	xorl	%eax, %eax
	callq	_hb_log
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_hb_list_rem
	movq	%r13, %rdi
	callq	_free
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	callq	_hb_list_count
	cmpl	%eax, %r14d
	jl	LBB0_3
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movl	%r14d, 4(%r13)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_5:
	movl	(%rbx), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_51
## %bb.6:
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	52(%r15), %eax
	movl	60(%r15), %ecx
	movl	%ecx, 40(%r15)
	movl	%eax, 8(%r15)
LBB0_50:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	movl	(%rbx), %edi
	callq	_hb_list_count
	cmpl	%eax, %r14d
	jge	LBB0_51
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_hb_list_item
	movq	%rax, %r15
	movl	(%rax), %esi
	testl	%esi, (%r13)
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_HB_ACODEC_VORBIS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	64(%r15), %eax
	movl	%eax, 72(%r15)
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r15), %edi
	testl	%edi, %edi
	jg	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	52(%r15), %edi
	movl	%edi, 8(%r15)
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_hb_audio_samplerate_find_closest
	movl	8(%r15), %r12d
	cmpl	%r12d, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ebx
	movl	4(%r15), %r13d
	movl	%eax, %edi
	callq	_hb_audio_samplerate_get_name
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %r13
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_hb_log
	movl	%ebx, 8(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	movl	12(%r15), %edx
	movl	56(%r15), %esi
	movq	_HB_AMIXDOWN_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	callq	_hb_mixdown_get_best
	movl	12(%r15), %edi
	cmpl	%eax, %edi
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ebx
	movl	4(%r15), %r12d
	callq	_hb_mixdown_get_name
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_hb_mixdown_get_name
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %r13
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_hb_log
	movl	%ebx, 12(%r15)
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_hb_mixdown_get_default
	movl	%eax, 12(%r15)
	movl	4(%r15), %ebx
	movl	%eax, %edi
	callq	_hb_mixdown_get_name
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_hb_log
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=1
	movss	16(%r15), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm0, %xmm1
	movl	(%r15), %edi
	jbe	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	callq	_hb_audio_compression_get_default
	xorps	%xmm1, %xmm1
	movss	%xmm0, 16(%r15)
	ucomiss	%xmm1, %xmm0
	jb	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r15), %esi
	cvtss2sd	%xmm0, %xmm0
	leaq	L_.str.5(%rip), %rdi
	movb	$1, %al
	callq	_hb_log
	jmp	LBB0_31
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_hb_audio_compression_get_best
	movaps	%xmm0, %xmm1
	movss	16(%r15), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jne	LBB0_27
	jnp	LBB0_31
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=1
	ucomiss	LCPI0_0(%rip), %xmm1
	movl	4(%r15), %esi
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_29
	jp	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	cvtss2sd	%xmm0, %xmm0
	cvtss2sd	%xmm1, %xmm1
	leaq	L_.str.7(%rip), %rdi
	movb	$2, %al
	callq	_hb_log
LBB0_30:                                ##   in Loop: Header=BB0_7 Depth=1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 16(%r15)
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movss	20(%r15), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rax
	ucomiss	(%rax), %xmm0
	jne	LBB0_32
	jnp	LBB0_37
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	callq	_hb_audio_quality_get_best
	movaps	%xmm0, %xmm1
	movss	20(%r15), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jne	LBB0_33
	jnp	LBB0_37
LBB0_33:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rax
	ucomiss	(%rax), %xmm1
	movl	4(%r15), %esi
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_35
	jp	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	jmp	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	cvtss2sd	%xmm0, %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	leaq	L_.str.9(%rip), %rdi
	movb	$2, %al
	callq	_hb_log
LBB0_36:                                ##   in Loop: Header=BB0_7 Depth=1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 20(%r15)
LBB0_37:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rax
	ucomiss	(%rax), %xmm0
	jne	LBB0_45
	jp	LBB0_45
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r15), %esi
	movl	(%r15), %edi
	movl	8(%r15), %edx
	movl	12(%r15), %ecx
	testl	%esi, %esi
	jle	LBB0_39
## %bb.41:                              ##   in Loop: Header=BB0_7 Depth=1
	callq	_hb_audio_bitrate_get_best
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_44
## %bb.42:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r15), %edx
	cmpl	%edx, %ebx
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r15), %esi
	leaq	L_.str.11(%rip), %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_hb_log
LBB0_44:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, 24(%r15)
	jmp	LBB0_45
LBB0_39:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_hb_audio_bitrate_get_default
	movl	%eax, 24(%r15)
	testl	%eax, %eax
	jle	LBB0_45
## %bb.40:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r15), %esi
	leaq	L_.str.10(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_hb_log
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edi
	callq	_hb_audio_dither_is_supported
	movq	%rax, %rbx
	movq	32(%r15), %r12
	xorl	%eax, %eax
	callq	_hb_audio_dither_get_default
	testq	%rbx, %rbx
	je	LBB0_48
## %bb.46:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_50
## %bb.47:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_hb_audio_dither_get_default_method
	movq	%rax, 32(%r15)
	jmp	LBB0_50
LBB0_48:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	4(%r15), %esi
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ## @HB_ACODEC_AUTO_PASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Auto Passthru error, dropping track %d"

	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
	.comm	_HB_ACODEC_PASS_MASK,4,2        ## @HB_ACODEC_PASS_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Passthru requested and input codec is not the same as output codec for track %d, dropping track"

	.comm	_HB_ACODEC_VORBIS,4,2           ## @HB_ACODEC_VORBIS
L_.str.2:                               ## @.str.2
	.asciz	"work: sanitizing track %d unsupported samplerate %d Hz to %s kHz"

	.comm	_HB_AMIXDOWN_NONE,4,2           ## @HB_AMIXDOWN_NONE
L_.str.3:                               ## @.str.3
	.asciz	"work: mixdown not specified, track %d setting mixdown %s"

L_.str.4:                               ## @.str.4
	.asciz	"work: sanitizing track %d mixdown %s to %s"

L_.str.5:                               ## @.str.5
	.asciz	"work: compression level not specified, track %d setting compression level %.2f"

L_.str.6:                               ## @.str.6
	.asciz	"work: track %d, compression level not supported by codec"

L_.str.7:                               ## @.str.7
	.asciz	"work: sanitizing track %d compression level %.2f to %.2f"

	.comm	_HB_INVALID_AUDIO_QUALITY,4,2   ## @HB_INVALID_AUDIO_QUALITY
L_.str.8:                               ## @.str.8
	.asciz	"work: track %d, quality mode not supported by codec"

L_.str.9:                               ## @.str.9
	.asciz	"work: sanitizing track %d quality %.2f to %.2f"

L_.str.10:                              ## @.str.10
	.asciz	"work: bitrate not specified, track %d setting bitrate %d Kbps"

L_.str.11:                              ## @.str.11
	.asciz	"work: sanitizing track %d bitrate %d to %d Kbps"

L_.str.12:                              ## @.str.12
	.asciz	"work: track %d, dithering not supported by codec"

	.no_dead_strip	_sanitize_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sanitize_audio
_sanitize_audio:                        ; @sanitize_audio
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #0
	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_2:
	mov	x19, x0
	bl	_hb_autopassthru_apply_settings
	ldr	w0, [x19]
	bl	_hb_list_count
Lloh0:
	adrp	x22, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.3:
	mov	w20, #0
Lloh2:
	adrp	x23, _HB_ACODEC_AUTO_PASS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HB_ACODEC_AUTO_PASS@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str@PAGE
Lloh5:
	add	x24, x24, l_.str@PAGEOFF
Lloh6:
	adrp	x25, _HB_ACODEC_PASS_MASK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HB_ACODEC_PASS_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x26, l_.str.1@PAGE
Lloh9:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_hb_list_item
	mov	x21, x0
	ldr	w8, [x0]
	ldr	w9, [x23]
	mov	x0, x24
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x21, #48]
	and	w8, w9, w8
	ldr	w9, [x25]
	mov	x0, x26
	tst	w8, w9
	b.ne	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21, #4]
	bl	_hb_log
	ldr	w0, [x19]
	mov	x1, x21
	bl	_hb_list_rem
	mov	x0, x21
	bl	_free
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	w20, w0
	b.lt	LBB0_4
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	str	w20, [x21, #4]
	b	LBB0_8
LBB0_10:
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.11:
	mov	w20, #0
Lloh10:
	adrp	x21, _HB_ACODEC_VORBIS@GOTPAGE
Lloh11:
	ldr	x21, [x21, _HB_ACODEC_VORBIS@GOTPAGEOFF]
Lloh12:
	adrp	x26, _HB_AMIXDOWN_NONE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _HB_AMIXDOWN_NONE@GOTPAGEOFF]
Lloh14:
	adrp	x24, _HB_INVALID_AUDIO_QUALITY@GOTPAGE
Lloh15:
	ldr	x24, [x24, _HB_INVALID_AUDIO_QUALITY@GOTPAGEOFF]
	fmov	s9, #-1.00000000
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x25, #60]
	str	w8, [x25, #40]
	ldr	w8, [x25, #52]
	str	w8, [x25, #8]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w20, w20, #1
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	w20, w0
	b.ge	LBB0_1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x20
	bl	_hb_list_item
	mov	x25, x0
	ldr	w1, [x0]
	ldr	w8, [x22]
	tst	w8, w1
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x21]
	cmp	w1, w8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x25, #64]
	str	w8, [x25, #72]
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x25, #8]
	cmp	w0, #0
	b.gt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x25, #52]
	str	w0, [x25, #8]
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_audio_samplerate_find_closest
	ldr	w23, [x25, #8]
	cmp	w0, w23
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x27, x0
	ldr	w28, [x25, #4]
	bl	_hb_audio_samplerate_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	bl	_hb_log
	str	w27, [x25, #8]
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w2, [x25, #12]
	ldr	w8, [x26]
	ldr	w0, [x25]
	ldr	w1, [x25, #56]
	cmp	w2, w8
	b.le	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_mixdown_get_best
	mov	x27, x0
	ldr	w0, [x25, #12]
	cmp	w0, w27
	b.eq	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w28, [x25, #4]
	bl	_hb_mixdown_get_name
	mov	x23, x0
	mov	x0, x27
	bl	_hb_mixdown_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x28
	bl	_hb_log
	str	w27, [x25, #12]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_mixdown_get_default
	str	w0, [x25, #12]
	ldr	w27, [x25, #4]
	bl	_hb_mixdown_get_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x27
	bl	_hb_log
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	s0, [x25, #16]
	ldr	w0, [x25]
	fcmp	s0, #0.0
	b.pl	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_audio_compression_get_default
	str	s0, [x25, #16]
	fcmp	s0, #0.0
	b.lt	LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x25, #4]
	fcvt	d0, s0
	str	d0, [sp]
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_hb_log
	b	LBB0_33
LBB0_28:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_audio_compression_get_best
	fmov	s8, s0
	ldr	s0, [x25, #16]
	fcmp	s8, s0
	b.eq	LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x25, #4]
	fcmp	s8, s9
	b.ne	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_14 Depth=1
	fcvt	d0, s0
	fcvt	d1, s8
	stp	d0, d1, [sp]
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_32:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_log
	str	s8, [x25, #16]
LBB0_33:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	s0, [x25, #20]
	ldr	s1, [x24]
	fcmp	s0, s1
	b.eq	LBB0_39
; %bb.34:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x25]
	bl	_hb_audio_quality_get_best
	fmov	s8, s0
	ldr	s0, [x25, #20]
	fcmp	s8, s0
	b.eq	LBB0_39
; %bb.35:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	s1, [x24]
	ldr	w1, [x25, #4]
	fcmp	s8, s1
	b.ne	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_14 Depth=1
	fcvt	d0, s0
	fcvt	d1, s8
	stp	d0, d1, [sp]
Lloh30:
	adrp	x0, l_.str.9@PAGE
Lloh31:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_38:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_log
	str	s8, [x25, #20]
	fmov	s0, s8
LBB0_39:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	s1, [x24]
	fcmp	s0, s1
	b.ne	LBB0_47
; %bb.40:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x25, #24]
	ldr	w0, [x25]
	ldp	w2, w3, [x25, #8]
	cmp	w1, #0
	b.le	LBB0_45
; %bb.41:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_audio_bitrate_get_best
	mov	x27, x0
	cmp	w0, #1
	b.lt	LBB0_44
; %bb.42:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x25, #24]
	cmp	w27, w8
	b.eq	LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x25, #4]
	stp	x8, x27, [sp]
Lloh32:
	adrp	x0, l_.str.11@PAGE
Lloh33:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_hb_log
LBB0_44:                                ;   in Loop: Header=BB0_14 Depth=1
	str	w27, [x25, #24]
	b	LBB0_47
LBB0_45:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x2
	mov	x2, x3
	bl	_hb_audio_bitrate_get_default
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x25, #24]
	cmp	w0, #1
	b.lt	LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x25, #4]
	str	x0, [sp]
Lloh34:
	adrp	x0, l_.str.10@PAGE
Lloh35:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_hb_log
LBB0_47:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w0, [x25]
	bl	_hb_audio_dither_is_supported
	mov	x23, x0
	ldr	x27, [x25, #32]
	bl	_hb_audio_dither_get_default
	cmp	x27, x0
	cbz	x23, LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_14 Depth=1
	b.ne	LBB0_13
; %bb.49:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_hb_audio_dither_get_default_method
	str	x0, [x25, #32]
	b	LBB0_13
LBB0_50:                                ;   in Loop: Header=BB0_14 Depth=1
	b.eq	LBB0_13
; %bb.51:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x25, #4]
Lloh36:
	adrp	x0, l_.str.12@PAGE
Lloh37:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_hb_log
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ; @HB_ACODEC_AUTO_PASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Auto Passthru error, dropping track %d"

	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
	.comm	_HB_ACODEC_PASS_MASK,4,2        ; @HB_ACODEC_PASS_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Passthru requested and input codec is not the same as output codec for track %d, dropping track"

	.comm	_HB_ACODEC_VORBIS,4,2           ; @HB_ACODEC_VORBIS
l_.str.2:                               ; @.str.2
	.asciz	"work: sanitizing track %d unsupported samplerate %d Hz to %s kHz"

	.comm	_HB_AMIXDOWN_NONE,4,2           ; @HB_AMIXDOWN_NONE
l_.str.3:                               ; @.str.3
	.asciz	"work: mixdown not specified, track %d setting mixdown %s"

l_.str.4:                               ; @.str.4
	.asciz	"work: sanitizing track %d mixdown %s to %s"

l_.str.5:                               ; @.str.5
	.asciz	"work: compression level not specified, track %d setting compression level %.2f"

l_.str.6:                               ; @.str.6
	.asciz	"work: track %d, compression level not supported by codec"

l_.str.7:                               ; @.str.7
	.asciz	"work: sanitizing track %d compression level %.2f to %.2f"

	.comm	_HB_INVALID_AUDIO_QUALITY,4,2   ; @HB_INVALID_AUDIO_QUALITY
l_.str.8:                               ; @.str.8
	.asciz	"work: track %d, quality mode not supported by codec"

l_.str.9:                               ; @.str.9
	.asciz	"work: sanitizing track %d quality %.2f to %.2f"

l_.str.10:                              ; @.str.10
	.asciz	"work: bitrate not specified, track %d setting bitrate %d Kbps"

l_.str.11:                              ; @.str.11
	.asciz	"work: sanitizing track %d bitrate %d to %d Kbps"

l_.str.12:                              ; @.str.12
	.asciz	"work: track %d, dithering not supported by codec"

	.no_dead_strip	_sanitize_audio
.subsections_via_symbols
