	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_video_tail
_verify_video_tail:                     ## @verify_video_tail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	subq	%rax, %rsi
	sarq	$2, %rsi
	movslq	%edx, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	movl	%edx, %ecx
	leaq	(%rax,%rcx,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %ecx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rax,%rsi,4)
	leaq	1(%rsi), %rsi
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_DRM_ERROR
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	%rdx, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal termination of video command.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Illegal video command tail.\n"

	.no_dead_strip	_verify_video_tail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_video_tail
_verify_video_tail:                     ; @verify_video_tail
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x0]
	sub	x9, x1, x8
	sxtw	x10, w2
	cmp	x10, x9, asr #2
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	add	x9, x8, w2, uxtw #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w2, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w2, w2, #1
	ldr	w10, [x8], #4
	cbz	w10, LBB0_3
; %bb.5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_DRM_ERROR
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	str	x9, [x0]
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal termination of video command.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Illegal video command tail.\n"

	.no_dead_strip	_verify_video_tail
.subsections_via_symbols
