	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avisynth_create_stream_audio
_avisynth_create_stream_audio:          ## @avisynth_create_stream_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rsi), %rdx
	movl	%eax, 12(%rdx)
	movq	8(%r15), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	12(%rax), %esi
	movl	%esi, 4(%rdx)
	movl	8(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	leal	-128(%rcx), %eax
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_AV_CODEC_ID_PCM_U8@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_av_log
	movl	$1, (%r15)
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_AV_CODEC_ID_PCM_S32LE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_AV_CODEC_ID_PCM_S24LE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_AV_CODEC_ID_PCM_S16LE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_7:
	movq	_AV_CODEC_ID_PCM_F32LE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ## @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ## @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_S24LE,4,2      ## @AV_CODEC_ID_PCM_S24LE
	.comm	_AV_CODEC_ID_PCM_S32LE,4,2      ## @AV_CODEC_ID_PCM_S32LE
	.comm	_AV_CODEC_ID_PCM_F32LE,4,2      ## @AV_CODEC_ID_PCM_F32LE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown AviSynth sample type %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.no_dead_strip	_avisynth_create_stream_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avisynth_create_stream_audio
_avisynth_create_stream_audio:          ; @avisynth_create_stream_audio
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x1]
	str	w8, [x9, #12]
	ldr	x8, [x21, #8]
	ldr	w3, [x8, #4]
	ldp	w8, w10, [x8, #8]
	stp	w10, w3, [x9, #4]
	str	w8, [x1, #8]
	mov	w22, #1
	mov	x0, x1
	mov	w1, #64
	mov	w2, #1
	bl	_avpriv_set_pts_info
	ldr	x8, [x21, #8]
	ldr	w3, [x8]
	sub	w8, w3, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #0
Lloh5:
	adrp	x8, _AV_CODEC_ID_PCM_U8@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_U8@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	str	w22, [x21]
Lloh12:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_4:
	mov	w0, #0
Lloh15:
	adrp	x8, _AV_CODEC_ID_PCM_S32LE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S32LE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w0, #0
Lloh17:
	adrp	x8, _AV_CODEC_ID_PCM_S24LE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S24LE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
Lloh19:
	adrp	x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_S16LE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
Lloh21:
	adrp	x8, _AV_CODEC_ID_PCM_F32LE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_CODEC_ID_PCM_F32LE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_PCM_U8,4,2         ; @AV_CODEC_ID_PCM_U8
	.comm	_AV_CODEC_ID_PCM_S16LE,4,2      ; @AV_CODEC_ID_PCM_S16LE
	.comm	_AV_CODEC_ID_PCM_S24LE,4,2      ; @AV_CODEC_ID_PCM_S24LE
	.comm	_AV_CODEC_ID_PCM_S32LE,4,2      ; @AV_CODEC_ID_PCM_S32LE
	.comm	_AV_CODEC_ID_PCM_F32LE,4,2      ; @AV_CODEC_ID_PCM_F32LE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown AviSynth sample type %d\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.no_dead_strip	_avisynth_create_stream_audio
.subsections_via_symbols
