	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_trailer
_check_trailer:                         ## @check_trailer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	24(%rdi), %r8
	movl	16(%rdi), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	movl	(%r8), %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movl	(%rdi), %r9d
	movl	8(%rdi), %ecx
	movl	4(%rdi), %eax
	imull	%r9d, %eax
	movl	%ecx, %edi
	subl	%r9d, %edi
	testl	%ecx, %ecx
	cmovel	%ecx, %edi
	addl	4(%r8), %eax
	addl	%esi, %ebx
	subl	%eax, %ebx
	addl	%edi, %ebx
	cmpl	%edx, %ebx
	jg	LBB0_5
## %bb.1:
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.2:
	movl	%ebx, %r12d
	addq	%r14, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	12(%r12), %eax
	andl	$1, %eax
	movl	12(%r15), %esi
	cmpl	%esi, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_copy_video_data
LBB0_5:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_end_field                      ## TAILCALL
LBB0_6:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_init_copy                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VFHS"

	.no_dead_strip	_check_trailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_trailer
_check_trailer:                         ; @check_trailer
	.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
	ldr	x8, [x0, #24]
	ldr	w9, [x0, #16]
	cmp	w9, #0
	cinc	w9, w9, lt
	ldp	w10, w8, [x8]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	ldp	w11, w12, [x0]
	ldr	w13, [x0, #8]
	sub	w14, w13, w11
	cmp	w13, #0
	csel	w13, wzr, w14, eq
	add	w9, w10, w9, asr #1
	madd	w8, w12, w11, w8
	sub	w8, w9, w8
	add	w21, w8, w13
	cmp	w21, w2
	ccmp	w21, #1, #8, le
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x1
	add	x22, x1, w21, uxtw
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	w2, #4
	bl	_strncmp
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x22, #12]
	and	w8, w8, #0x1
	ldr	w1, [x19, #12]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_copy_video_data
LBB0_4:
	mov	x0, x19
	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	_end_field
LBB0_5:
	mov	x0, x19
	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	_init_copy
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VFHS"

	.no_dead_strip	_check_trailer
.subsections_via_symbols
