	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xvid_strip_vol_header
_xvid_strip_vol_header:                 ## @xvid_strip_vol_header
	.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
	addl	$-3, %edx
	je	LBB0_12
## %bb.1:
	movl	%ecx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rsi), %rdi
	movl	%edx, %eax
	shlq	$2, %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	incl	%r13d
	cmpq	%rbx, %rax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdi,%rbx)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 4(%rdi,%rbx)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, 8(%rdi,%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$182, 12(%rdi,%rbx)
	jne	LBB0_6
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.8:
	cmpl	$0, 4(%r15)
	jne	LBB0_11
## %bb.9:
	movl	%r13d, %edi
	callq	_av_malloc
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	movq	(%r12), %rsi
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, (%r15)
	movq	(%r12), %rdi
LBB0_11:
	addq	%rdi, %rbx
	subl	%r13d, %r14d
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memmove
	movl	%r14d, 8(%r12)
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	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	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_xvid_strip_vol_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xvid_strip_vol_header
_xvid_strip_vol_header:                 ; @xvid_strip_vol_header
	.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
	subs	w8, w2, #3
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x3
	mov	x19, x1
	mov	x22, x0
	mov	w21, #0
	mov	x23, #0
	ldr	x0, [x1]
	lsl	x8, x8, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #4
	add	w21, w21, #1
	cmp	x8, x23
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0, x23]
	cbnz	w9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x0, x23
	ldr	w10, [x9, #4]
	cbnz	w10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x9, #8]
	cmp	w9, #1
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x0, x23
	ldr	w9, [x9, #12]
	cmp	w9, #182
	b.ne	LBB0_2
; %bb.7:
	cbz	w21, LBB0_12
; %bb.8:
	ldr	w8, [x22, #4]
	cbnz	w8, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_av_malloc
	str	w0, [x22, #4]
	cbz	w0, LBB0_13
; %bb.10:
	ldr	x1, [x19]
	mov	x2, x21
	bl	_memcpy
	str	w21, [x22]
	ldr	x0, [x19]
LBB0_11:
	add	x1, x0, x23
	sub	w20, w20, w21
	mov	x2, x20
	bl	_memmove
	str	w20, [x19, #8]
LBB0_12:
	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_13:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_xvid_strip_vol_header
.subsections_via_symbols
