	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_autopassthru_apply_settings ## -- Begin function hb_autopassthru_apply_settings
	.p2align	4, 0x90
_hb_autopassthru_apply_settings:        ## @hb_autopassthru_apply_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_15
## %bb.1:
	movq	_HB_ACODEC_AUTO_PASS@GOTPCREL(%rip), %r12
	movq	_HB_ACODEC_NONE@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_hb_list_item
	movq	%rax, -48(%rbp)
	movl	(%rax), %ecx
	cmpl	(%r12), %ecx
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_hb_autopassthru_print_settings
	movq	-48(%rbp), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	60(%rax), %edi
	movl	12(%rbx), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	callq	_hb_autopassthru_get_encoder
	movq	-48(%rbp), %rcx
	movl	%eax, (%rcx)
	cmpl	(%r14), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HB_ACODEC_INVALID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movl	(%rbx), %edi
	movq	-48(%rbp), %rsi
	callq	_hb_list_rem
	leaq	-48(%rbp), %rdi
	callq	_hb_audio_close
	movl	(%rbx), %edi
	callq	_hb_list_count
	movl	$1, %r15d
	cmpl	%eax, %r13d
	jl	LBB0_2
	jmp	LBB0_15
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_HB_ACODEC_PASS_FLAG@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rdi
	callq	_hb_audio_encoder_get_next
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	(%rax), %edx
	movq	-48(%rbp), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax), %esi
	movl	4(%rcx), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	jmp	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rcx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_log
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdx
	movl	(%rax), %edi
	movl	56(%rax), %esi
	testq	%rdx, %rdx
	jle	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_hb_mixdown_get_best
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_hb_mixdown_get_default
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	16(%rcx), %rdi
	testq	%rdi, %rdi
	jg	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%rcx), %rdi
	movq	%rdi, 16(%rcx)
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %esi
	callq	_hb_audio_samplerate_find_closest
	movq	-48(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movl	(%rcx), %edi
	callq	_hb_audio_quality_get_default
	movq	-48(%rbp), %rcx
	movq	24(%rcx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edi
	movq	16(%rcx), %rdx
	movq	8(%rcx), %rcx
	callq	_hb_audio_bitrate_get_best
	jmp	LBB0_23
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_HB_INVALID_AUDIO_QUALITY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	cmpq	%rsi, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rsi, 32(%rcx)
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edi
	callq	_hb_audio_quality_get_best
	movq	-48(%rbp), %rcx
	movq	%rax, 32(%rcx)
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edi
	movq	16(%rcx), %rsi
	movq	8(%rcx), %rdx
	callq	_hb_audio_bitrate_get_default
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx
	movq	%rax, 24(%rcx)
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rcx), %rsi
	movl	(%rcx), %edi
	testq	%rsi, %rsi
	js	LBB0_29
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_hb_audio_compression_get_best
	jmp	LBB0_30
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_hb_audio_compression_get_default
LBB0_30:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx
	movq	%rax, 40(%rcx)
	movl	$1, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	-48(%rbp), %rax
	movl	%r13d, 4(%rax)
	movl	(%rbx), %edi
	callq	_hb_list_count
	cmpl	%eax, %r13d
	jl	LBB0_2
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ## @HB_ACODEC_AUTO_PASS
	.comm	_HB_ACODEC_NONE,4,2             ## @HB_ACODEC_NONE
	.comm	_HB_ACODEC_INVALID,4,2          ## @HB_ACODEC_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Auto Passthru: passthru not possible and no valid fallback specified, dropping track %d"

	.comm	_HB_ACODEC_PASS_FLAG,4,2        ## @HB_ACODEC_PASS_FLAG
L_.str.1:                               ## @.str.1
	.asciz	"Auto Passthru: passthru not possible for track %d, using fallback"

	.comm	_HB_INVALID_AUDIO_QUALITY,8,3   ## @HB_INVALID_AUDIO_QUALITY
L_.str.2:                               ## @.str.2
	.asciz	"Auto Passthru: using %s for track %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_autopassthru_apply_settings ; -- Begin function hb_autopassthru_apply_settings
	.p2align	2
_hb_autopassthru_apply_settings:        ; @hb_autopassthru_apply_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	w0, [x0]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_30
; %bb.1:
	mov	w20, #0
	mov	w28, #0
Lloh0:
	adrp	x24, _HB_ACODEC_AUTO_PASS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HB_ACODEC_AUTO_PASS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _HB_ACODEC_NONE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HB_ACODEC_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _HB_ACODEC_INVALID@GOTPAGE
Lloh5:
	ldr	x26, [x26, _HB_ACODEC_INVALID@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x27, _HB_ACODEC_PASS_FLAG@GOTPAGE
Lloh9:
	ldr	x27, [x27, _HB_ACODEC_PASS_FLAG@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh12:
	adrp	x23, l_.str.2@PAGE
Lloh13:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w0, [x19]
	mov	x1, x20
	bl	_hb_list_item
	str	x0, [sp, #8]
	ldr	w8, [x0]
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w28, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_hb_autopassthru_print_settings
	ldr	x0, [sp, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x0, #60]
	ldp	w2, w1, [x19, #8]
	ldr	w3, [x19, #4]
	bl	_hb_autopassthru_get_encoder
	ldr	x8, [sp, #8]
	str	w0, [x8]
	ldr	w9, [x25]
	ldr	w10, [x26]
	cmp	w0, w9
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_hb_log
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	bl	_hb_list_rem
	add	x0, sp, #8
	bl	_hb_audio_close
	ldr	w0, [x19]
	bl	_hb_list_count
	mov	w28, #1
	cmp	w20, w0
	b.lt	LBB0_2
	b	LBB0_30
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x27]
	tst	w9, w0
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, #0
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_hb_audio_encoder_get_next
	cbz	x0, LBB0_28
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w9, [x0]
	ldr	x8, [sp, #8]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x0, #4]
	ldr	w8, [x8, #4]
	str	x8, [sp]
	mov	x0, x23
	bl	_hb_log
	b	LBB0_28
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x8, #4]
	mov	x0, x22
	bl	_hb_log
	ldr	x8, [sp, #8]
	ldr	x2, [x8, #8]
	ldr	w0, [x8]
	ldr	w1, [x8, #56]
	cmp	x2, #0
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_hb_mixdown_get_best
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_hb_mixdown_get_default
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	ldr	x0, [x8, #16]
	cmp	x0, #0
	b.gt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x8, #48]
	str	x0, [x8, #16]
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x8]
	bl	_hb_audio_samplerate_find_closest
	ldr	x8, [sp, #8]
	str	x0, [x8, #16]
	ldr	w0, [x8]
	bl	_hb_audio_quality_get_default
	ldr	x8, [sp, #8]
	ldr	x1, [x8, #24]
	cmp	x1, #1
	b.lt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x8]
	ldp	x3, x2, [x8, #8]
	bl	_hb_audio_bitrate_get_best
	b	LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x9, _HB_INVALID_AUDIO_QUALITY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HB_INVALID_AUDIO_QUALITY@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x9]
	cmp	x0, x1
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x8, #32]
	cmp	x9, x1
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x8]
	bl	_hb_audio_quality_get_best
	ldr	x8, [sp, #8]
	str	x0, [x8, #32]
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x8]
	ldp	x2, x1, [x8, #8]
	bl	_hb_audio_bitrate_get_default
LBB0_23:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	str	x0, [x8, #24]
LBB0_24:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x8, #40]
	ldr	w0, [x8]
	tbnz	x1, #63, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_hb_audio_compression_get_best
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_hb_audio_compression_get_default
LBB0_27:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	str	x0, [x8, #40]
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #1
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	ldr	x8, [sp, #8]
	str	w20, [x8, #4]
	ldr	w0, [x19]
	bl	_hb_list_count
	cmp	w20, w0
	b.lt	LBB0_2
LBB0_30:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_ACODEC_AUTO_PASS,4,2        ; @HB_ACODEC_AUTO_PASS
	.comm	_HB_ACODEC_NONE,4,2             ; @HB_ACODEC_NONE
	.comm	_HB_ACODEC_INVALID,4,2          ; @HB_ACODEC_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Auto Passthru: passthru not possible and no valid fallback specified, dropping track %d"

	.comm	_HB_ACODEC_PASS_FLAG,4,2        ; @HB_ACODEC_PASS_FLAG
l_.str.1:                               ; @.str.1
	.asciz	"Auto Passthru: passthru not possible for track %d, using fallback"

	.comm	_HB_INVALID_AUDIO_QUALITY,8,3   ; @HB_INVALID_AUDIO_QUALITY
l_.str.2:                               ; @.str.2
	.asciz	"Auto Passthru: using %s for track %d"

.subsections_via_symbols
