	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_audio
_init_audio:                            ## @init_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %ecx
	movq	%rax, %rdi
	movl	$32, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movl	8(%rbx), %eax
	movl	%eax, 24(%r14)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%rbx), %rax
	movl	%ecx, 40(%rax)
	movq	8(%r14), %rdx
	movq	%rdx, (%rax)
	movq	$0, 32(%rax)
	movl	16(%r14), %ecx
	movl	%ecx, 8(%rax)
	cmpl	$1, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_2:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rsi
LBB0_4:
	movl	(%rsi), %esi
	movl	%esi, 28(%rax)
	movl	(%r14), %esi
	movl	%esi, 12(%rax)
	movl	20(%r14), %edi
	movl	%edi, 16(%rax)
	imull	%edi, %ecx
	imull	%ecx, %esi
	movl	%esi, 20(%rax)
	movq	_AV_CODEC_ID_INTERPLAY_DPCM@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	jne	LBB0_6
## %bb.5:
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%edx, 20(%rax)
LBB0_6:
	movl	%ecx, 24(%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_AV_CODEC_ID_INTERPLAY_DPCM,8,3 ## @AV_CODEC_ID_INTERPLAY_DPCM
	.no_dead_strip	_init_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_audio
_init_audio:                            ; @init_audio
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w3, [x20]
	mov	w1, #32
	mov	w2, #1
	bl	_avpriv_set_pts_info
	ldr	w8, [x19, #8]
	str	w8, [x20, #24]
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x19]
	str	w9, [x8, #40]
Lloh3:
	adrp	x9, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh5:
	adrp	x10, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
	ldp	w11, w12, [x20, #16]
	cmp	w11, #1
	csel	x9, x9, x10, eq
	ldr	x13, [x20, #8]
	str	x13, [x8]
	str	xzr, [x8, #32]
	str	w11, [x8, #8]
	ldr	w9, [x9]
	str	w9, [x8, #28]
	ldr	w10, [x20]
	stp	w10, w12, [x8, #12]
	mul	w9, w12, w11
	mul	w10, w9, w10
	str	w10, [x8, #20]
Lloh7:
	adrp	x11, _AV_CODEC_ID_INTERPLAY_DPCM@GOTPAGE
Lloh8:
	ldr	x11, [x11, _AV_CODEC_ID_INTERPLAY_DPCM@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	cmp	x13, x11
	b.ne	LBB0_3
; %bb.2:
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	str	w10, [x8, #20]
LBB0_3:
	str	w9, [x8, #24]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_AV_CODEC_ID_INTERPLAY_DPCM,8,3 ; @AV_CODEC_ID_INTERPLAY_DPCM
	.no_dead_strip	_init_audio
.subsections_via_symbols
