	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __verify_planes_array
___verify_planes_array:                 ## @__verify_planes_array
	.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	16(%rsi), %edi
	callq	_V4L2_TYPE_IS_MULTIPLANAR
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.3:
	movq	(%rbx), %rcx
	movq	(%r14), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_5
## %bb.4:
	movq	_VB2_MAX_PLANES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"multi-planar buffer passed but planes array not provided\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VB2_MAX_PLANES,8,3             ## @VB2_MAX_PLANES
L_.str.1:                               ## @.str.1
	.asciz	"incorrect planes array length, expected %d, got %d\n"

	.no_dead_strip	___verify_planes_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __verify_planes_array
___verify_planes_array:                 ; @__verify_planes_array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	bl	_V4L2_TYPE_IS_MULTIPLANAR
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _VB2_MAX_PLANES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VB2_MAX_PLANES@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_6
; %bb.3:
	stp	x9, x8, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	mov	w0, #1
	bl	_dprintk
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"multi-planar buffer passed but planes array not provided\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VB2_MAX_PLANES,8,3             ; @VB2_MAX_PLANES
l_.str.1:                               ; @.str.1
	.asciz	"incorrect planes array length, expected %d, got %d\n"

	.no_dead_strip	___verify_planes_array
.subsections_via_symbols
