	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ghb_sanitize_audio_settings
_ghb_sanitize_audio_settings:           ## @ghb_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_ghb_dict_get_int
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ghb_lookup_title
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ghb_dict_get_string
	movq	%rax, %rdi
	callq	_hb_container_get_from_name
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_ghb_settings_audio_encoder_codec
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ghb_select_fallback
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_ghb_get_copy_mask
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_ghb_dict_get_int
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ghb_get_audio_info
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %esi
LBB0_2:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_ghb_select_audio_codec
	movl	%eax, %edi
	callq	_hb_audio_encoder_get_short_name
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_ghb_dict_set_string
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_sanitize_audio_settings     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"title"

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

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

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

	.no_dead_strip	_ghb_sanitize_audio_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ghb_sanitize_audio_settings
_ghb_sanitize_audio_settings:           ; @ghb_sanitize_audio_settings
	.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	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ghb_dict_get_int
	mov	x1, #0
	bl	_ghb_lookup_title
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_ghb_dict_get_string
	bl	_hb_container_get_from_name
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ghb_settings_audio_encoder_codec
	mov	x22, x0
	mov	x0, x24
	mov	x1, x22
	bl	_ghb_select_fallback
	mov	x23, x0
	mov	x0, x24
	bl	_ghb_get_copy_mask
	mov	x24, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ghb_dict_get_int
	mov	x1, x0
	mov	x0, x20
	bl	_ghb_get_audio_info
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x0]
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x24
	bl	_ghb_select_audio_codec
	bl	_hb_audio_encoder_get_short_name
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ghb_dict_set_string
	mov	x0, x20
	mov	x1, x19
	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
	b	_hb_sanitize_audio_settings
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"title"

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

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

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

	.no_dead_strip	_ghb_sanitize_audio_settings
.subsections_via_symbols
