	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg4_frame_end             ## -- Begin function ff_mpeg4_frame_end
	.p2align	4, 0x90
_ff_mpeg4_frame_end:                    ## @ff_mpeg4_frame_end
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	cmpq	$0, 40(%r13)
	je	LBB0_16
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	32(%r13), %rcx
	xorl	%eax, %eax
	cmpq	8(%r13), %rcx
	je	LBB0_3
## %bb.2:
	leaq	32(%r13), %rdi
	callq	_get_bits_count
	sarl	$3, %eax
LBB0_3:
	movl	%r12d, %r14d
	subl	%eax, %r14d
	cmpl	$8, %r14d
	jl	LBB0_16
## %bb.4:
	addl	$-4, %r12d
	cmpl	%r12d, %eax
	jge	LBB0_16
## %bb.5:
	leaq	8(%r13), %rdi
	movslq	%eax, %r15
	movslq	%r12d, %rcx
	movq	%r15, %rdx
	shlq	$32, %rdx
	movabsq	$17179869184, %rax              ## imm = 0x400000000
	addq	%rdx, %rax
	movabsq	$4294967296, %rdx               ## imm = 0x100000000
	movq	%r15, %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%rdx, %rax
	cmpq	%rsi, %rcx
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx,%rsi,4)
	leaq	1(%rsi), %rsi
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%rbx,%rsi,4)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$1, 4(%rbx,%rsi,4)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$182, 8(%rbx,%rsi,4)
	jne	LBB0_10
## %bb.11:
	sarq	$30, %rax
	testb	$64, (%rbx,%rax)
	jne	LBB0_16
## %bb.12:
	cmpl	$0, (%r13)
	jne	LBB0_14
## %bb.13:
	movq	%rdi, %r12
	movl	24(%r13), %edi
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	%r12, %rdi
	movl	$1, (%r13)
LBB0_14:
	leaq	20(%r13), %rsi
	movl	%r14d, %edx
	callq	_av_fast_padded_malloc
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.15:
	leaq	(%rbx,%r15,4), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, 16(%r13)
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$0, 16(%r13)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.\n"

	.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_mpeg4_frame_end             ; -- Begin function ff_mpeg4_frame_end
	.p2align	2
_ff_mpeg4_frame_end:                    ; @ff_mpeg4_frame_end
	.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
	ldr	x23, [x0]
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_17
; %bb.1:
	mov	x22, x2
	mov	x19, x1
	mov	x20, x23
	ldr	x8, [x20, #8]!
	mov	x0, x20
	ldr	x9, [x0, #24]!
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.2:
	mov	w10, #0
	b	LBB0_4
LBB0_3:
	bl	_get_bits_count
	asr	w10, w0, #3
LBB0_4:
	sub	w21, w22, w10
	cmp	w21, #8
	b.lt	LBB0_17
; %bb.5:
	sub	w8, w22, #4
	cmp	w10, w8
	b.ge	LBB0_17
; %bb.6:
	sxtw	x22, w10
	sxtw	x9, w8
	mov	x8, #17179869184
	add	x8, x8, x22, lsl #32
	sub	x9, x9, x22
	add	x10, x19, w10, sxtw #2
	add	x10, x10, #8
	mov	x11, #4294967296
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x11
	add	x10, x10, #4
	subs	x9, x9, #1
	b.eq	LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x10, #-8]
	cbnz	w12, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w12, [x10, #-4]
	cbnz	w12, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x10]
	cmp	w12, #1
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x10, #4]
	cmp	w12, #182
	b.ne	LBB0_7
; %bb.12:
	asr	x8, x8, #30
	ldr	w8, [x19, x8]
	tbnz	w8, #6, LBB0_17
; %bb.13:
	ldr	w8, [x23]
	cbnz	w8, LBB0_15
; %bb.14:
	ldr	w0, [x23, #24]
Lloh0:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w8, #1
	str	w8, [x23]
LBB0_15:
	add	x1, x23, #20
	mov	x0, x20
	mov	x2, x21
	bl	_av_fast_padded_malloc
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_18
; %bb.16:
	add	x1, x19, x22, lsl #2
	mov	x2, x21
	bl	_memcpy
	str	w21, [x23, #16]
LBB0_17:
	mov	w0, #0
	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
LBB0_18:
	str	wzr, [x23, #16]
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
