	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_audio
_add_audio:                             ## @add_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
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movl	$64, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %rbx
	movl	%r12d, %r13d
	shll	$16, %r13d
	orl	(%r15), %r13d
	movl	%r13d, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_STR4_TO_UINT32
	movl	%eax, 44(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	%r12d, 8(%rbx)
	movl	%r14d, 12(%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%rbx)
	cmpl	$129, %r14d
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r14d
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_HB_ACODEC_FF_MASK@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_5
## %bb.6:
	addl	$-130, %eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.8:
	cltq
	leaq	l_reltable.add_audio(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.11(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.10(%rip), %rax
LBB0_9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	callq	_lang_for_code2
	movq	%rax, %r15
	movq	_HB_AUDIO_ATTR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	52(%rbx), %r12d
	movq	(%r15), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_11
## %bb.10:
	movq	8(%r15), %rcx
LBB0_11:
	leaq	L_.str.12(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_snprintf
	movl	48(%rbx), %r14d
	movq	16(%r15), %rcx
	movl	%r14d, %edi
	movl	$4, %esi
	leaq	L_.str.12(%rip), %rdx
	callq	_snprintf
	leaq	L_.str.13(%rip), %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_hb_log
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx)
	movabsq	$386547056640001, %rax          ## imm = 0x15F9000000001
	movq	%rax, 20(%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hb_list_add                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMV"

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

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

	.comm	_HB_ACODEC_FF_MASK,4,2          ## @HB_ACODEC_FF_MASK
L_.str.3:                               ## @.str.3
	.asciz	"E-AC3"

L_.str.4:                               ## @.str.4
	.asciz	"DTS-HD HRA"

L_.str.5:                               ## @.str.5
	.asciz	"DTS-HD MA"

L_.str.6:                               ## @.str.6
	.asciz	"BD LPCM"

L_.str.7:                               ## @.str.7
	.asciz	"MPEG1"

L_.str.8:                               ## @.str.8
	.asciz	"MPEG2"

L_.str.9:                               ## @.str.9
	.asciz	"TrueHD"

L_.str.10:                              ## @.str.10
	.asciz	"Unknown FFmpeg"

L_.str.11:                              ## @.str.11
	.asciz	"Unknown"

	.comm	_HB_AUDIO_ATTR_NONE,4,2         ## @HB_AUDIO_ATTR_NONE
L_.str.12:                              ## @.str.12
	.asciz	"%s"

L_.str.13:                              ## @.str.13
	.asciz	"bd: audio id=0x%x, lang=%s (%s), 3cc=%s"

	.no_dead_strip	_add_audio
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.add_audio
l_reltable.add_audio:
	.long	L_.str.9-l_reltable.add_audio
	.long	L_.str.8-l_reltable.add_audio
	.long	L_.str.7-l_reltable.add_audio
	.long	L_.str.6-l_reltable.add_audio
	.long	L_.str.5-l_reltable.add_audio
	.long	L_.str.4-l_reltable.add_audio
	.long	L_.str.3-l_reltable.add_audio

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function add_audio
lCPI0_0:
	.long	1                               ; 0x1
	.long	90000                           ; 0x15f90
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_add_audio:                             ; @add_audio
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x25, x5
	mov	x24, x4
	mov	x26, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #64
	mov	w1, #1
	bl	_calloc
	mov	x21, x0
	ldr	w8, [x23]
	orr	w22, w8, w26, lsl #16
	str	w22, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_STR4_TO_UINT32
	ldr	w8, [x23, #16]
	stp	w8, w0, [x21, #40]
	stp	w26, w24, [x21, #8]
	str	x25, [x21, #32]
	cmp	w24, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w24, #128
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x24, l_.str.2@PAGE
Lloh3:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x9, _HB_ACODEC_FF_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HB_ACODEC_FF_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_7
; %bb.5:
	sub	w8, w8, #130
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.6:
Lloh9:
	adrp	x9, l_switch.table.add_audio@PAGE
Lloh10:
	add	x9, x9, l_switch.table.add_audio@PAGEOFF
	ldr	x24, [x9, w8, sxtw #3]
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x24, l_.str.11@PAGE
Lloh12:
	add	x24, x24, l_.str.11@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x24, l_.str.10@PAGE
Lloh14:
	add	x24, x24, l_.str.10@PAGEOFF
LBB0_9:
	ldr	x0, [x23, #8]
	bl	_lang_for_code2
	mov	x25, x0
Lloh15:
	adrp	x8, _HB_AUDIO_ATTR_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HB_AUDIO_ATTR_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #56]
	ldr	w23, [x21, #52]
	ldr	x3, [x0]
	ldrb	w8, [x3]
	cbnz	w8, LBB0_11
; %bb.10:
	ldr	x3, [x25, #8]
LBB0_11:
Lloh18:
	adrp	x26, l_.str.12@PAGE
Lloh19:
	add	x26, x26, l_.str.12@PAGEOFF
	mov	x0, x23
	mov	w1, #4
	mov	x2, x26
	bl	_snprintf
	ldr	w27, [x21, #48]
	ldr	x3, [x25, #16]
	mov	x0, x27
	mov	w1, #4
	mov	x2, x26
	bl	_snprintf
Lloh20:
	adrp	x0, l_.str.13@PAGE
Lloh21:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x27
	bl	_hb_log
	str	w20, [x21, #16]
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x21, #20]
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_hb_list_add
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMV"

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

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

	.comm	_HB_ACODEC_FF_MASK,4,2          ; @HB_ACODEC_FF_MASK
l_.str.3:                               ; @.str.3
	.asciz	"E-AC3"

l_.str.4:                               ; @.str.4
	.asciz	"DTS-HD HRA"

l_.str.5:                               ; @.str.5
	.asciz	"DTS-HD MA"

l_.str.6:                               ; @.str.6
	.asciz	"BD LPCM"

l_.str.7:                               ; @.str.7
	.asciz	"MPEG1"

l_.str.8:                               ; @.str.8
	.asciz	"MPEG2"

l_.str.9:                               ; @.str.9
	.asciz	"TrueHD"

l_.str.10:                              ; @.str.10
	.asciz	"Unknown FFmpeg"

l_.str.11:                              ; @.str.11
	.asciz	"Unknown"

	.comm	_HB_AUDIO_ATTR_NONE,4,2         ; @HB_AUDIO_ATTR_NONE
l_.str.12:                              ; @.str.12
	.asciz	"%s"

l_.str.13:                              ; @.str.13
	.asciz	"bd: audio id=0x%x, lang=%s (%s), 3cc=%s"

	.no_dead_strip	_add_audio
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.add_audio
l_switch.table.add_audio:
	.quad	l_.str.9
	.quad	l_.str.8
	.quad	l_.str.7
	.quad	l_.str.6
	.quad	l_.str.5
	.quad	l_.str.4
	.quad	l_.str.3

.subsections_via_symbols
