	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmv_aud_decode_frame
_bmv_aud_decode_frame:                  ## @bmv_aud_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	(%rcx), %r14
	movl	8(%rcx), %ebx
	movl	(%r14), %r13d
	movl	%r13d, %ecx
	shll	$6, %ecx
	addl	%r13d, %ecx
	cmpl	%ecx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%r13d, %eax
	shll	$5, %eax
	movl	%eax, (%rsi)
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.4:
	addq	$4, %r14
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	addq	$4, %r14
	movl	%eax, %ecx
	sarl	%ecx
	shll	$7, %eax
	orl	%ecx, %eax
	movq	_bmv_aud_mults@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andl	$15, %ecx
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	sarl	$4, %eax
	cltq
	movl	(%rdx,%rax,4), %r12d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%r13,8), %edi
	imull	-52(%rbp), %edi                 ## 4-byte Folded Reload
	sarl	$5, %edi
	callq	_av_clip_int16
	movl	%eax, (%rbx,%r13,8)
	movl	4(%r14,%r13,8), %edi
	imull	%r12d, %edi
	sarl	$5, %edi
	callq	_av_clip_int16
	movl	%eax, 4(%rbx,%r13,8)
	incq	%r13
	addq	$-8, %r15
	cmpl	$32, %r13d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	subq	%r15, %r14
	subq	%r15, %rbx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, %eax
	jne	LBB0_5
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_1:
	incl	%ecx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %r8d
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected %d bytes, got %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_bmv_aud_mults,8,3              ## @bmv_aud_mults
	.no_dead_strip	_bmv_aud_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmv_aud_decode_frame
_bmv_aud_decode_frame:                  ; @bmv_aud_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
	ldr	x22, [x3]
	ldr	w19, [x3, #8]
	ldr	w23, [x22], #4
	add	w8, w23, w23, lsl #6
	cmp	w19, w8
	b.le	LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	lsl	w8, w23, #5
	str	w8, [x1]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_9
; %bb.2:
	str	x20, [sp]                       ; 8-byte Folded Spill
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w24, #0
	ldr	x8, [x21, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x25, _bmv_aud_mults@GOTPAGE
Lloh1:
	ldr	x25, [x25, _bmv_aud_mults@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x26, #0
	ldr	w8, [x22], #4
	asr	w9, w8, #1
	orr	w8, w9, w8, lsl #7
	ldr	x10, [x25]
	and	w9, w9, #0xf
	ldr	w27, [x10, w9, uxtw #2]
	asr	w8, w8, #4
	ldr	w28, [x10, w8, sxtw #2]
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x22, x26
	add	x19, x21, x26
	ldr	w8, [x20]
	mul	w8, w8, w27
	asr	w0, w8, #5
	bl	_av_clip_int16
	str	w0, [x19]
	ldr	w8, [x20, #4]
	mul	w8, w8, w28
	asr	w0, w8, #5
	bl	_av_clip_int16
	str	w0, [x19, #4]
	add	x26, x26, #8
	cmp	w26, #256
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	add	x22, x22, x26
	add	x21, x21, x26
	cmp	w24, w23
	b.ne	LBB0_4
LBB0_7:
	mov	w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	b	LBB0_9
LBB0_8:
	add	w3, w8, #1
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x19
	bl	_av_log
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected %d bytes, got %d\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_bmv_aud_mults,8,3              ; @bmv_aud_mults
	.no_dead_strip	_bmv_aud_decode_frame
.subsections_via_symbols
