	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_new_audio_stream
_create_new_audio_stream:               ## @create_new_audio_stream
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	xorl	%esi, %esi
	callq	_avformat_new_stream
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	%r15d, (%rbx)
	movl	%r14d, %ecx
	andl	$1, %ecx
	leal	1(%rcx), %edx
	movq	8(%rbx), %rax
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_swf_audio_codec_tags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	shrl	$4, %esi
	andl	$15, %esi
	callq	_ff_codec_get_id
	movq	8(%rbx), %rdx
	movq	%rax, 8(%rdx)
	movq	_AVSTREAM_PARSE_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movl	%r14d, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	testb	$2, %r14b
	jne	LBB0_7
## %bb.5:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_7
## %bb.6:
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
LBB0_7:
	xorb	$3, %cl
	movl	$44100, %eax                    ## imm = 0xAC44
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movl	%eax, 16(%rdx)
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_avpriv_set_pts_info
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_swf_audio_codec_tags,4,2       ## @swf_audio_codec_tags
	.comm	_AVSTREAM_PARSE_FULL,4,2        ## @AVSTREAM_PARSE_FULL
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_U8,8,3         ## @AV_CODEC_ID_PCM_U8
	.no_dead_strip	_create_new_audio_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_new_audio_stream
_create_new_audio_stream:               ; @create_new_audio_stream
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x1, #0
	bl	_avformat_new_stream
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	str	w21, [x19]
	ldr	x8, [x19, #8]
	tst	w20, #0x1
	mov	w9, #1
	cinc	w9, w9, ne
Lloh0:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
Lloh2:
	adrp	x11, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
	str	w9, [x8]
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
Lloh4:
	adrp	x10, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #20]
Lloh7:
	adrp	x8, _swf_audio_codec_tags@GOTPAGE
Lloh8:
	ldr	x8, [x8, _swf_audio_codec_tags@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ubfx	w1, w20, #4, #4
	bl	_ff_codec_get_id
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
Lloh10:
	adrp	x9, _AVSTREAM_PARSE_FULL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AVSTREAM_PARSE_FULL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	str	w9, [x19, #16]
	ubfx	w9, w20, #2, #2
	tbnz	w20, #1, LBB0_4
; %bb.2:
Lloh13:
	adrp	x10, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x0, x10
	b.ne	LBB0_4
; %bb.3:
Lloh16:
	adrp	x10, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	str	x10, [x8, #8]
LBB0_4:
	eor	w9, w9, #0x3
	mov	w10, #44100
	lsr	w3, w10, w9
	str	w3, [x8, #16]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_swf_audio_codec_tags,4,2       ; @swf_audio_codec_tags
	.comm	_AVSTREAM_PARSE_FULL,4,2        ; @AVSTREAM_PARSE_FULL
	.comm	_AV_CODEC_ID_PCM_S16LE,8,3      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_U8,8,3         ; @AV_CODEC_ID_PCM_U8
	.no_dead_strip	_create_new_audio_stream
.subsections_via_symbols
