	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_audio_copy_mask
_get_audio_copy_mask:                   ## @get_audio_copy_mask
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	$0, (%rsi)
LBB0_2:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	callq	_hb_dict_get
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_hb_value_array_init
	movq	%rax, %r14
	movq	%rax, -80(%rbp)
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.3:
	movq	%rbx, %rdi
	callq	_hb_value_array_len
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_14
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_hb_value_get_int
	movl	%eax, %r12d
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	callq	_hb_audio_encoder_get_short_name
	movl	%eax, %edi
	callq	_hb_value_string
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_hb_value_array_append
	orl	%r12d, %r15d
	incl	%r13d
	cmpl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_hb_value_array_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_hb_value_type
	movq	_HB_VALUE_TYPE_STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_hb_value_get_string
	movq	%rax, %r14
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_hb_strdup_printf
	movq	%rax, %rbx
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_hb_audio_encoder_get_from_name
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_free
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	%r15d, (%rax)
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_hb_error
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_hb_error
	movq	%rbx, %rdi
	callq	_free
	leaq	-80(%rbp), %rdi
	callq	_hb_value_free
LBB0_16:
	movq	%r14, %rax
	addq	$40, %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	"AudioCopyMask"

	.comm	_HB_VALUE_TYPE_STRING,8,3       ## @HB_VALUE_TYPE_STRING
L_.str.1:                               ## @.str.1
	.asciz	"copy:"

L_.str.2:                               ## @.str.2
	.asciz	"copy:%s"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid audio codec in autopassthru copy mask (%s)"

L_.str.4:                               ## @.str.4
	.asciz	"Codec name is invalid or can not be copied"

	.no_dead_strip	_get_audio_copy_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_audio_copy_mask
_get_audio_copy_mask:                   ; @get_audio_copy_mask
	.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, x1
	cbz	x1, LBB0_2
; %bb.1:
	str	wzr, [x19]
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hb_dict_get
	mov	x21, x0
	bl	_hb_value_array_init
	mov	x20, x0
	str	x0, [sp, #8]
	cbz	x21, LBB0_13
; %bb.3:
	mov	x0, x21
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x22, x0
	mov	w23, #0
	mov	w25, #0
Lloh2:
	adrp	x24, _HB_VALUE_TYPE_STRING@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HB_VALUE_TYPE_STRING@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_hb_value_get_int
	mov	x28, x0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x28
	bl	_hb_audio_encoder_get_short_name
	bl	_hb_value_string
	mov	x1, x0
	mov	x0, x20
	bl	_hb_value_array_append
	orr	w25, w28, w25
	add	w23, w23, #1
	cmp	w22, w23
	b.eq	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_hb_value_array_get
	mov	x26, x0
	bl	_hb_value_type
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_hb_value_get_string
	mov	x27, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #5
	bl	_strncmp
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x27
	bl	_hb_strdup_printf
	mov	x26, x0
	mov	x27, x0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x27
	bl	_hb_audio_encoder_get_from_name
	cbz	w0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, x0
	mov	x0, x26
	bl	_free
	b	LBB0_6
LBB0_13:
	mov	w25, #0
LBB0_14:
	cbnz	x19, LBB0_16
	b	LBB0_18
LBB0_15:
	mov	w25, #0
	cbz	x19, LBB0_18
LBB0_16:
	str	w25, [x19]
	b	LBB0_18
LBB0_17:
	str	x27, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_error
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hb_error
	mov	x0, x26
	bl	_free
	add	x0, sp, #8
	bl	_hb_value_free
	mov	x20, #0
LBB0_18:
	mov	x0, x20
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AudioCopyMask"

	.comm	_HB_VALUE_TYPE_STRING,8,3       ; @HB_VALUE_TYPE_STRING
l_.str.1:                               ; @.str.1
	.asciz	"copy:"

l_.str.2:                               ; @.str.2
	.asciz	"copy:%s"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid audio codec in autopassthru copy mask (%s)"

l_.str.4:                               ; @.str.4
	.asciz	"Codec name is invalid or can not be copied"

	.no_dead_strip	_get_audio_copy_mask
.subsections_via_symbols
