	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg_er_init                ## -- Begin function ff_mpeg_er_init
	.p2align	4, 0x90
_ff_mpeg_er_init:                       ## @ff_mpeg_er_init
	.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	%rdi, %r15
	movl	(%rdi), %eax
	movl	4(%rdi), %r14d
	movl	40(%rdi), %ecx
	movl	%ecx, 112(%rdi)
	movl	%eax, 48(%rdi)
	movl	%r14d, 52(%rdi)
	imull	%eax, %r14d
	movups	24(%rdi), %xmm0
	movups	%xmm0, 96(%rdi)
	movl	%r14d, %edi
	shll	$4, %edi
	addl	%r14d, %edi
	callq	_av_malloc
	movl	%eax, 60(%r15)
	movl	%r14d, %edi
	callq	_av_mallocz
	movl	%eax, 56(%r15)
	cmpl	$0, 60(%r15)
	je	LBB0_6
## %bb.1:
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	8(%r15), %rdi
	movq	16(%r15), %rax
	movq	%rax, 88(%r15)
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movq	80(%r15), %rax
	movl	(%rdi,%rbx,4), %ecx
	movl	%ecx, (%rax,%rbx,4)
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_mpeg_er_decode_mb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r15)
	movq	%r15, 64(%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	60(%r15), %rdi
	addq	$56, %r15
	callq	_av_freep
	movq	%r15, %rdi
	callq	_av_freep
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mpeg_er_decode_mb,4,2          ## @mpeg_er_decode_mb
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg_er_init                ; -- Begin function ff_mpeg_er_init
	.p2align	2
_ff_mpeg_er_init:                       ; @ff_mpeg_er_init
	.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, x0
	ldp	w8, w9, [x0]
	mul	w21, w9, w8
	ldr	w10, [x0, #40]
	str	w10, [x0, #112]
	stp	w8, w9, [x0, #48]
	ldur	q0, [x0, #24]
	str	q0, [x0, #96]
	add	w0, w21, w21, lsl #4
	bl	_av_malloc
	mov	x20, x19
	str	w0, [x20, #60]!
	mov	x0, x21
	bl	_av_mallocz
	mov	x21, x19
	str	w0, [x21, #56]!
	ldr	w8, [x20]
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_av_freep
	mov	x0, x21
	bl	_av_freep
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_2:
	ldr	d0, [x19, #16]
	str	d0, [x19, #88]
	ldr	x0, [x19, #8]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	lsl	x8, x20, #2
	ldr	w9, [x0, x8]
	ldr	x10, [x19, #80]
	str	w9, [x10, x8]
	add	x20, x20, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x20, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
Lloh3:
	adrp	x8, _mpeg_er_decode_mb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mpeg_er_decode_mb@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	str	x19, [x19, #64]
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_mpeg_er_decode_mb,4,2          ; @mpeg_er_decode_mb
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
