	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __verify_length
___verify_length:                       ## @__verify_length
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	24(%rsi), %edi
	callq	_V4L2_TYPE_IS_OUTPUT
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_17
## %bb.1:
	movl	24(%rbx), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	(%r14), %r9d
	testq	%r9, %r9
	je	LBB0_17
## %bb.3:
	movq	_VB2_MEMORY_USERPTR@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %r8
	cmpq	(%rax), %rcx
	sete	%al
	movq	_VB2_MEMORY_DMABUF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	orb	%al, %dl
	leaq	8(%r8), %rsi
	shlq	$2, %r9
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	addq	$12, %rsi
	addq	$4, %rdi
	cmpq	%rdi, %r9
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testb	%dl, %dl
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%r8,%rax,4), %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rcx
	addq	%rdi, %rcx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx), %ecx
	movl	-4(%rsi), %eax
	cmpl	%ecx, %eax
	ja	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	cmovnel	%eax, %ecx
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %eax
	jb	LBB0_6
	jmp	LBB0_16
LBB0_12:
	movq	(%rbx), %rax
	movq	_VB2_MEMORY_USERPTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	leaq	8(%rbx), %rax
	jmp	LBB0_15
LBB0_14:
	movq	8(%r14), %rax
LBB0_15:
	movl	12(%rbx), %ecx
	cmpl	(%rax), %ecx
	jbe	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_7:
	xorl	%r15d, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_MEMORY_USERPTR,8,3         ## @VB2_MEMORY_USERPTR
	.comm	_VB2_MEMORY_DMABUF,8,3          ## @VB2_MEMORY_DMABUF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	___verify_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __verify_length
___verify_length:                       ; @__verify_length
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #24]
	bl	_V4L2_TYPE_IS_OUTPUT
	cbz	w0, LBB0_16
; %bb.1:
	ldr	w0, [x20, #24]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w13, [x19]
	cbz	w13, LBB0_15
; %bb.3:
	mov	x8, #0
	mov	x9, #0
Lloh0:
	adrp	x10, _VB2_MEMORY_USERPTR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VB2_MEMORY_USERPTR@GOTPAGEOFF]
	ldr	x11, [x20]
Lloh2:
	ldr	x10, [x10]
	cmp	x11, x10
Lloh3:
	adrp	x10, _VB2_MEMORY_DMABUF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VB2_MEMORY_DMABUF@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ccmp	x11, x10, #4, ne
	cset	w10, eq
	ldr	x11, [x20, #16]
	add	x12, x11, #8
	lsl	x13, x13, #2
	mov	w14, #12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w10, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x15, x9, x14, x11
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [x19, #8]
	add	x15, x15, x8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w15, [x15]
	ldur	w16, [x12, #-4]
	cmp	w16, w15
	b.hi	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #0
	csel	w15, w15, w16, eq
	ldr	w16, [x12]
	cmp	w16, #0
	ccmp	w16, w15, #0, ne
	b.hs	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x12, x12, #12
	add	x8, x8, #4
	cmp	x13, x8
	b.ne	LBB0_4
	b	LBB0_15
LBB0_10:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _VB2_MEMORY_USERPTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VB2_MEMORY_USERPTR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	add	x8, x20, #8
	b	LBB0_13
LBB0_12:
	ldr	x8, [x19, #8]
LBB0_13:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	cmp	w9, w8
	b.ls	LBB0_15
LBB0_14:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_MEMORY_USERPTR,8,3         ; @VB2_MEMORY_USERPTR
	.comm	_VB2_MEMORY_DMABUF,8,3          ; @VB2_MEMORY_DMABUF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	___verify_length
.subsections_via_symbols
