	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_decode_frame
_mp_decode_frame:                       ## @mp_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	%rsi, %r15
	movq	8(%rcx), %r14
	movl	(%rcx), %ebx
	movq	16(%rdi), %r12
	movq	24(%r12), %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_20
## %bb.1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	48(%r12), %r15
	leaq	64(%r12), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_av_fast_padded_malloc
	movq	48(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leal	3(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	sarl	$2, %edx
	movq	%r14, %rsi
	callq	*56(%r12)
	movl	%ebx, %edx
	andl	$3, %edx
	je	LBB0_4
## %bb.3:
	movslq	%ebx, %rdi
	andq	$-4, %rdi
	leaq	(%r14,%rdi,4), %rsi
	addq	(%r15), %rdi
	callq	_memcpy
LBB0_4:
	movq	48(%r12), %rsi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leal	(,%rbx,8), %edx
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_init_get_bits
	movq	(%r12), %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edx
	imull	(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%rbx), %rax
	movl	4(%rax), %ebx
	shrl	%ebx
	andl	$1, %ebx
	movl	%ebx, %r13d
	xorl	$1, %r13d
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	movl	%r15d, %edx
	movl	$8, %ecx
	movl	%r13d, %r8d
	callq	_mp_read_changes_map
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	movl	%r14d, %edx
	movl	$4, %ecx
	movl	%r13d, %r8d
	callq	_mp_read_changes_map
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_get_bits
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	$8, %ecx
	movl	$1, %r8d
	callq	_mp_read_changes_map
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	$4, %ecx
	movl	$1, %r8d
	callq	_mp_read_changes_map
LBB0_6:
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
## %bb.7:
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	leaq	-44(%rbp), %rdi
	movl	$15, %esi
	callq	_get_bits
	movq	24(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rax
	movl	$1, (%rax)
LBB0_9:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mp_read_codes_table
	testq	%rax, %rax
	js	LBB0_16
## %bb.10:
	leaq	-44(%rbp), %rdi
	movl	$18, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpl	$5, (%rax)
	je	LBB0_12
## %bb.11:
	leaq	-44(%rbp), %rdi
	movl	$18, %esi
	callq	_get_bits
	addl	%eax, %r14d
LBB0_12:
	testl	%r14d, %r14d
	je	LBB0_16
## %bb.13:
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	jle	LBB0_16
## %bb.14:
	leaq	32(%r12), %r14
	movl	8(%r12), %edx
	movq	40(%r12), %rax
	leaq	4(%rax), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	movl	$1, %r9d
	pushq	$0
	pushq	$4
	pushq	$4
	pushq	%rax
	callq	_init_vlc
	addq	$32, %rsp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_mp_decode_frame_helper
	movq	%r14, %rdi
	callq	_ff_free_vlc
LBB0_16:
	movq	24(%r12), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_20
## %bb.17:
	movl	$1, (%r15)
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mp_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_decode_frame
_mp_decode_frame:                       ; @mp_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	x21, x1
	mov	x23, x0
	ldr	x24, [x3, #8]
	ldr	w19, [x3]
	ldr	x22, [x0, #16]
	ldr	x1, [x22, #24]
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_18
; %bb.1:
	add	x25, x22, #48
	add	x1, x22, #64
	mov	x0, x25
	mov	x2, x19
	bl	_av_fast_padded_malloc
	ldr	x0, [x22, #48]
	cbz	x0, LBB0_20
; %bb.2:
	ldr	x8, [x22, #56]
	add	w9, w19, #3
	cmp	w19, #0
	csel	w9, w9, w19, lt
	asr	w2, w9, #2
	mov	x1, x24
	blr	x8
	ands	w2, w19, #0x3
	b.eq	LBB0_4
; %bb.3:
	sxtw	x8, w19
	ldr	x9, [x25]
	and	x8, x8, #0xfffffffffffffffc
	add	x0, x9, x8
	add	x1, x24, x8, lsl #2
	bl	_memcpy
LBB0_4:
	ldr	x1, [x22, #48]
	lsl	w2, w19, #3
	add	x0, sp, #12
	bl	_init_get_bits
	ldr	x0, [x22]
	ldp	w8, w9, [x23]
	mul	w2, w9, w8
	mov	w1, #0
	bl	_memset
	ldr	x8, [x23, #8]
	ldr	w8, [x8, #4]
	lsr	w27, w8, #1
	mvn	w8, w27
	and	w24, w8, #0x1
	add	x0, sp, #12
	mov	w1, #12
	bl	_get_bits
	mov	x25, x0
	add	x0, sp, #12
	mov	w1, #12
	bl	_get_bits
	mov	x26, x0
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x25
	mov	w3, #8
	mov	x4, x24
	bl	_mp_read_changes_map
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x26
	mov	w3, #4
	mov	x4, x24
	bl	_mp_read_changes_map
	tbz	w27, #0, LBB0_6
; %bb.5:
	add	x0, sp, #12
	mov	w1, #12
	bl	_get_bits
	mov	x24, x0
	add	x0, sp, #12
	mov	w1, #12
	bl	_get_bits
	mov	x25, x0
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x24
	mov	w3, #8
	mov	w4, #1
	bl	_mp_read_changes_map
	add	x1, sp, #12
	mov	x0, x22
	mov	x2, x25
	mov	w3, #4
	mov	w4, #1
	bl	_mp_read_changes_map
LBB0_6:
	add	x0, sp, #12
	mov	w1, #4
	bl	_get_bits
	str	w0, [x22, #8]
	cbz	w0, LBB0_16
; %bb.7:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.8:
	add	x0, sp, #12
	mov	w1, #15
	bl	_get_bits
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	w0, [x8]
	ldr	x8, [x22]
	mov	w9, #1
	str	w9, [x8]
LBB0_9:
	add	x1, sp, #12
	mov	x0, x22
	bl	_mp_read_codes_table
	tbnz	x0, #63, LBB0_16
; %bb.10:
	add	x0, sp, #12
	mov	w1, #18
	bl	_get_bits
	mov	x24, x0
	ldr	x8, [x23, #8]
	ldr	w8, [x8]
	cmp	w8, #5
	b.eq	LBB0_12
; %bb.11:
	add	x0, sp, #12
	mov	w1, #18
	bl	_get_bits
	add	w24, w0, w24
LBB0_12:
	cbz	w24, LBB0_16
; %bb.13:
	ldr	x1, [x22, #16]
	cmp	x1, #1
	b.lt	LBB0_16
; %bb.14:
	add	x23, x22, #32
	ldr	w2, [x22, #8]
	ldr	x6, [x22, #40]
	add	x3, x6, #4
	mov	w8, #4
	str	x8, [sp]
	mov	x0, x23
	mov	w4, #4
	mov	w5, #1
	mov	w7, #4
	bl	_init_vlc
	cbnz	x0, LBB0_16
; %bb.15:
	add	x1, sp, #12
	mov	x0, x22
	bl	_mp_decode_frame_helper
	mov	x0, x23
	bl	_ff_free_vlc
LBB0_16:
	ldr	x1, [x22, #24]
	mov	x0, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_19
LBB0_18:
	mov	x19, x0
LBB0_19:
	mov	x0, x19
	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_20:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mp_decode_frame
.subsections_via_symbols
