	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmdaudio_decode_frame
_vmdaudio_decode_frame:                 ## @vmdaudio_decode_frame
	.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
	movq	%rdx, %r13
	movq	%rdi, %r12
	movl	8(%rcx), %ebx
	cmpl	$15, %ebx
	jg	LBB0_2
## %bb.1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$0, (%r13)
LBB0_26:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rcx, %r15
	movq	(%rcx), %r14
	movl	24(%r14), %ecx
	movq	_BLOCK_TYPE_AUDIO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_4
## %bb.3:
	movq	_BLOCK_TYPE_SILENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jle	LBB0_6
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_6:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r8
	leaq	64(%r14), %r13
	movq	_BLOCK_TYPE_INITIAL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jne	LBB0_10
## %bb.7:
	cmpl	$19, %ebx
	ja	LBB0_9
## %bb.8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_10:
	addl	$-16, %ebx
	xorl	%edx, %edx
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	sete	%dil
	cmovel	%edx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	%r13, %rdi
	movq	%rsi, %r13
	callq	_AV_RB32
	movl	%eax, %edi
	callq	_av_popcount
	movq	%r13, %rsi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	%eax, %edi
	addq	$80, %r14
	addl	$-20, %ebx
	movq	%r14, %r13
LBB0_11:
	movl	(%r8), %ecx
	movl	%ebx, %eax
	cltd
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	addl	%edi, %eax
	imull	(%r12), %eax
	cltd
	idivl	4(%r12)
	movl	%eax, (%rsi)
	movq	%r12, %rdi
	xorl	%edx, %edx
	movq	%rsi, %r14
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	8(%r14), %rax
	movq	(%rax), %rbx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testl	%edx, %edx
	jle	LBB0_14
## %bb.15:
	movl	4(%r12), %eax
	imull	(%r14), %eax
	movslq	(%r12), %rcx
	movslq	%edx, %r14
	imulq	%rcx, %r14
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setle	%dil
	callq	_av_assert0
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, 4(%rax)
	jne	LBB0_17
## %bb.16:
	leal	(%r14,%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rax
	leaq	(%rbx,%r14,4), %r14
	jmp	LBB0_18
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_14:
	movq	%rbx, %r14
	jmp	LBB0_18
LBB0_17:
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	%r14d, %edx
	callq	_memset
	movslq	%r14d, %rax
	movq	%rbx, %r14
	leaq	(%rbx,%rax,4), %rbx
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_25
## %bb.19:
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	$2, 4(%r12)
	setge	%dil
	andl	%eax, %edi
	xorl	$1, %edi
	callq	_av_assert0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jge	LBB0_20
LBB0_25:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	8(%r15), %ebx
	jmp	LBB0_26
LBB0_20:
	cltq
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%r12), %rax
	leaq	(%rbx,%rax,4), %rbx
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	movslq	(%rcx), %rdx
	leaq	(%r13,%rdx,4), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	%r13, %rax
	sarq	$2, %rax
	cmpq	%rdx, %rax
	jl	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$2, 4(%rcx)
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	4(%r12), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_decode_audio_s16
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%r12), %rax
	leaq	(%r14,%rax,4), %r14
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skipping small junk packet\n"

	.comm	_BLOCK_TYPE_AUDIO,4,2           ## @BLOCK_TYPE_AUDIO
	.comm	_BLOCK_TYPE_SILENCE,4,2         ## @BLOCK_TYPE_SILENCE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"unknown block type: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BLOCK_TYPE_INITIAL,4,2         ## @BLOCK_TYPE_INITIAL
L_.str.2:                               ## @.str.2
	.asciz	"packet is too small\n"

	.no_dead_strip	_vmdaudio_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmdaudio_decode_frame
_vmdaudio_decode_frame:                 ; @vmdaudio_decode_frame
	.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	x20, x2
	mov	x19, x0
	ldr	w23, [x3, #8]
	cmp	w23, #15
	b.gt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	wzr, [x20]
LBB0_2:
	mov	x0, x23
	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
LBB0_3:
	mov	x21, x3
	ldr	x27, [x3]
	ldr	w8, [x27, #24]
Lloh5:
	adrp	x9, _BLOCK_TYPE_AUDIO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BLOCK_TYPE_AUDIO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
Lloh8:
	adrp	x9, _BLOCK_TYPE_SILENCE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BLOCK_TYPE_SILENCE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_7
LBB0_5:
Lloh11:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_av_log
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_7:
	mov	x24, x1
	ldr	x26, [x19, #8]
	add	x22, x27, #64
Lloh19:
	adrp	x10, _BLOCK_TYPE_INITIAL@GOTPAGE
Lloh20:
	ldr	x10, [x10, _BLOCK_TYPE_INITIAL@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_10
; %bb.8:
	cmp	w23, #19
	b.hi	LBB0_11
; %bb.9:
Lloh22:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_10:
	sub	w10, w23, #16
	cmp	w8, w9
	csel	w8, wzr, w10, eq
	cset	w25, eq
	b	LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_AV_RB32
	bl	_av_popcount
	mov	x25, x0
	add	x22, x27, #80
	sub	w8, w23, #20
LBB0_12:
	ldr	w27, [x26]
	sdiv	w28, w8, w27
	add	w8, w28, w25
	ldp	w9, w10, [x19]
	mul	w8, w8, w9
	sdiv	w8, w8, w10
	str	w8, [x24]
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_16
; %bb.13:
	ldr	x8, [x24, #8]
	ldr	x23, [x8]
	cmp	w25, #1
	b.lt	LBB0_17
; %bb.14:
	ldp	w8, w9, [x19]
	mul	w25, w8, w25
	ldr	w8, [x24]
	mul	w8, w9, w8
	cmp	w25, w8
	cset	w0, le
	bl	_av_assert0
	ldr	w8, [x26, #4]
	cmp	w8, #2
	b.ne	LBB0_18
; %bb.15:
	lsl	w2, w25, #1
	mov	x0, x23
	mov	w1, #0
	bl	_memset
	mov	x24, x23
	add	x23, x23, w25, sxtw #2
	b	LBB0_19
LBB0_16:
	mov	x23, x0
	b	LBB0_2
LBB0_17:
	mov	x24, x23
	b	LBB0_19
LBB0_18:
	mov	x0, x23
	mov	w1, #128
	mov	x2, x25
	bl	_memset
	add	x24, x23, w25, sxtw #2
LBB0_19:
	cmp	w28, #1
	b.lt	LBB0_21
; %bb.20:
	mul	w25, w28, w27
	ldr	w8, [x19, #4]
	cmp	w8, #1
	cset	w8, gt
	and	w8, w25, w8
	eor	w0, w8, #0x1
	bl	_av_assert0
	ldr	w2, [x26]
	cmp	w25, w2
	b.ge	LBB0_22
LBB0_21:
	mov	w8, #1
	str	w8, [x20]
	ldr	w23, [x21, #8]
	b	LBB0_2
LBB0_22:
	add	x25, x22, w25, sxtw #2
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x24
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldrsw	x8, [x19]
	add	x24, x24, x8, lsl #2
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldrsw	x2, [x26]
	add	x22, x22, x2, lsl #2
	sub	x8, x25, x22
	cmp	x2, x8, asr #2
	b.gt	LBB0_21
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26, #4]
	cmp	w8, #2
	b.ne	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w3, [x19, #4]
	mov	x0, x23
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_decode_audio_s16
	ldrsw	x8, [x19]
	add	x23, x23, x8, lsl #2
	b	LBB0_24
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skipping small junk packet\n"

	.comm	_BLOCK_TYPE_AUDIO,4,2           ; @BLOCK_TYPE_AUDIO
	.comm	_BLOCK_TYPE_SILENCE,4,2         ; @BLOCK_TYPE_SILENCE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"unknown block type: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BLOCK_TYPE_INITIAL,4,2         ; @BLOCK_TYPE_INITIAL
l_.str.2:                               ; @.str.2
	.asciz	"packet is too small\n"

	.no_dead_strip	_vmdaudio_decode_frame
.subsections_via_symbols
