	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aura_decode_frame
_aura_decode_frame:                     ## @aura_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %r13
	movl	8(%rcx), %ecx
	movl	4(%rdi), %r8d
	imull	(%rdi), %r8d
	addl	$48, %r8d
	cmpl	%r8d, %ecx
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%r14), %rbx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.4:
	movq	(%r12), %rax
	movq	8(%r12), %rdi
	movq	16(%rax), %r10
	movq	(%rax), %rsi
	movq	8(%rax), %r11
	leaq	192(%rbx), %r8
	xorl	%r9d, %r9d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %ecx
	sarl	%ecx
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%rdi), %rax
	movslq	%r15d, %rdx
	subq	%rdx, %rax
	leaq	(%rsi,%rax,4), %rsi
	addq	$8, %rsi
	movslq	4(%rdi), %rax
	movslq	%ecx, %rcx
	subq	%rcx, %rax
	leaq	(%r11,%rax,4), %r11
	addq	$4, %r11
	movslq	8(%rdi), %rax
	subq	%rcx, %rax
	leaq	(%r10,%rax,4), %r10
	addq	$4, %r10
	incl	%r9d
	cmpl	(%r13), %r9d
	jge	LBB0_11
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r8), %eax
	movl	%eax, %ecx
	andl	$240, %ecx
	movl	%ecx, (%r11)
	shll	$4, %eax
	movl	%eax, (%rsi)
	movl	4(%r8), %eax
	movl	%eax, %ecx
	andl	$240, %ecx
	movl	%ecx, (%r10)
	andl	$15, %eax
	movl	64(%rbx,%rax,4), %eax
	addl	(%rsi), %eax
	movl	%eax, 4(%rsi)
	addq	$8, %r8
	movl	4(%r13), %r15d
	cmpl	$4, %r15d
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edx
	xorl	%r14d, %r14d
	movq	%r8, %rax
	movq	%rsi, %rdi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r12
	movl	(%r8,%r14,2), %eax
	movl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movl	64(%rbx,%rcx,4), %ecx
	addl	(%r11,%r14), %ecx
	movl	%ecx, 4(%r11,%r14)
	andl	$15, %eax
	movl	64(%rbx,%rax,4), %eax
	addl	4(%rsi,%r14,2), %eax
	movl	%eax, 8(%rsi,%r14,2)
	movl	4(%r8,%r14,2), %eax
	movl	%eax, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movl	64(%rbx,%rcx,4), %ecx
	addl	(%r10,%r14), %ecx
	movl	%ecx, 4(%r10,%r14)
	andl	$15, %eax
	movl	64(%rbx,%rax,4), %eax
	addl	8(%rsi,%r14,2), %eax
	addq	$8, %rdi
	movl	%eax, 12(%rsi,%r14,2)
	incl	%edx
	movl	4(%r13), %r15d
	movl	%r15d, %ecx
	sarl	%ecx
	leaq	(%r8,%r14,2), %rax
	addq	$8, %rax
	addq	$4, %r14
	cmpl	%ecx, %edx
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r12
	addq	%r14, %r10
	addq	%r14, %r11
	movq	%r12, %r8
	movq	%rdi, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
LBB0_12:
	addq	$24, %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	"got a buffer with %d bytes when %d were expected\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_aura_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aura_decode_frame
_aura_decode_frame:                     ; @aura_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x19, x0
	ldr	w3, [x3, #8]
	ldp	w8, w9, [x0]
	orr	w10, wzr, #0x30
	madd	w4, w9, w8, w10
	cmp	w3, w4
	b.ne	LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_12
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	w8, #0
	add	x9, x23, #64
	ldp	x11, x10, [x22]
	ldp	x13, x14, [x11, #8]
	ldr	x12, [x11]
	add	x11, x23, #192
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	asr	w0, w17, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w15, [x10, #8]
	sub	w15, w15, w0
	add	x14, x14, w15, sxtw #2
	ldp	w16, w15, [x10]
	sub	w15, w15, w0
	add	x13, x13, w15, sxtw #2
	sub	w15, w16, w17
	add	x12, x12, w15, sxtw #2
	add	x12, x12, #8
	add	x13, x13, #4
	add	x14, x14, #4
	add	w8, w8, #1
	ldr	w15, [x19]
	cmp	w8, w15
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w15, [x11]
	and	w16, w15, #0xf0
	str	w16, [x13]
	lsl	w15, w15, #4
	str	w15, [x12]
	ldr	w15, [x11, #4]
	and	w16, w15, #0xf0
	str	w16, [x14]
	and	x15, x15, #0xf
	ldr	w15, [x9, x15, lsl #2]
	ldr	w16, [x12]
	add	w15, w15, w16
	str	w15, [x12, #4]
	add	x11, x11, #8
	ldr	w17, [x19, #4]
	cmp	w17, #4
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x15, #0
	mov	w16, #1
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x17, x11, x15
	add	x0, x12, x15
	ldr	w1, [x17]
	asr	w2, w1, #4
	ldr	w2, [x9, w2, sxtw #2]
	ldr	w3, [x13]
	add	w2, w2, w3
	str	w2, [x13, #4]!
	ldr	w2, [x0, #4]
	and	x1, x1, #0xf
	ldr	w1, [x9, x1, lsl #2]
	add	w1, w1, w2
	str	w1, [x0, #8]
	ldr	w17, [x17, #4]
	ldr	w1, [x14]
	asr	w2, w17, #4
	ldr	w2, [x9, w2, sxtw #2]
	add	w1, w2, w1
	str	w1, [x14, #4]!
	ldr	w1, [x0, #8]
	and	x17, x17, #0xf
	ldr	w17, [x9, x17, lsl #2]
	add	w17, w17, w1
	str	w17, [x0, #12]
	add	w16, w16, #1
	ldr	w17, [x19, #4]
	asr	w0, w17, #1
	add	x15, x15, #8
	cmp	w16, w0
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x11, x15
	add	x12, x12, x15
	b	LBB0_5
LBB0_10:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	str	w8, [x21]
	ldr	w0, [x20, #8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got a buffer with %d bytes when %d were expected\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_aura_decode_frame
.subsections_via_symbols
