	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_create_bufs                ## -- Begin function vb2_create_bufs
	.p2align	4, 0x90
_vb2_create_bufs:                       ## @vb2_create_bufs
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VIDEO_MAX_PLANES@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	8(%r12), %esi
	movl	24(%r12), %edx
	movq	%r15, %rdi
	callq	_vb2_verify_memory_type
	movl	%eax, %r14d
	leaq	16(%r12), %rsi
	movq	%r15, %rdi
	callq	_fill_buf_caps
	movl	(%r15), %eax
	movl	%eax, 12(%r12)
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.1:
	movl	24(%r12), %eax
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_22
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	72(%r12), %r9d
	testq	%r9, %r9
	je	LBB0_22
## %bb.4:
	cmpl	(%r13), %r9d
	ja	LBB0_22
## %bb.5:
	movq	80(%r12), %rcx
	xorl	%edx, %edx
	cmpl	$8, %r9d
	jb	LBB0_31
## %bb.6:
	movq	%rbx, %rax
	subq	%rcx, %rax
	cmpq	$32, %rax
	jb	LBB0_31
## %bb.7:
	movl	%r9d, %edx
	andl	$-8, %edx
	leaq	-8(%rdx), %rax
	movq	%rax, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rax
	jae	LBB0_25
## %bb.8:
	xorl	%esi, %esi
	jmp	LBB0_27
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	addl	%r14d, %eax
	cmovel	%ecx, %r14d
	jmp	LBB0_23
LBB0_10:
	movl	64(%r12), %eax
	jmp	LBB0_15
LBB0_11:
	movq	56(%r12), %rax
	movl	4(%rax), %ecx
	addl	(%rax), %ecx
	imull	48(%r12), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_16
LBB0_12:
	movl	40(%r12), %eax
	jmp	LBB0_15
LBB0_13:
	movl	36(%r12), %eax
	jmp	LBB0_15
LBB0_14:
	movl	32(%r12), %eax
LBB0_15:
	movl	%eax, (%rbx)
LBB0_16:
	movl	$1, %r9d
LBB0_17:
	movl	%r9d, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx,%rax,4)
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_18
## %bb.20:
	testl	%r14d, %r14d
	jne	LBB0_23
## %bb.21:
	movl	8(%r12), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%rbx, %r8
	callq	_vb2_core_create_bufs
	movl	%eax, %r14d
	jmp	LBB0_23
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.24:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	andq	$-4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rsi,4), %xmm0
	movups	16(%rcx,%rsi,4), %xmm1
	movaps	%xmm0, (%rbx,%rsi,4)
	movaps	%xmm1, 16(%rbx,%rsi,4)
	movups	32(%rcx,%rsi,4), %xmm0
	movups	48(%rcx,%rsi,4), %xmm1
	movaps	%xmm0, 32(%rbx,%rsi,4)
	movaps	%xmm1, 48(%rbx,%rsi,4)
	movups	64(%rcx,%rsi,4), %xmm0
	movups	80(%rcx,%rsi,4), %xmm1
	movaps	%xmm0, 64(%rbx,%rsi,4)
	movaps	%xmm1, 80(%rbx,%rsi,4)
	movups	96(%rcx,%rsi,4), %xmm0
	movups	112(%rcx,%rsi,4), %xmm1
	movaps	%xmm0, 96(%rbx,%rsi,4)
	movaps	%xmm1, 112(%rbx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rdi
	jne	LBB0_26
LBB0_27:
	testq	%r8, %r8
	je	LBB0_30
## %bb.28:
	leaq	(%rbx,%rsi,4), %rdi
	addq	$16, %rdi
	leaq	(%rcx,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rax), %xmm0
	movups	(%rsi,%rax), %xmm1
	movaps	%xmm0, -16(%rdi,%rax)
	movaps	%xmm1, (%rdi,%rax)
	addq	$32, %rax
	cmpq	%rax, %r8
	jne	LBB0_29
LBB0_30:
	cmpq	%r9, %rdx
	je	LBB0_17
LBB0_31:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r9, %rsi
	movq	%r9, %rdi
	andq	$3, %rdi
	je	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, (%rbx,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_32
LBB0_33:
	cmpq	$3, %rsi
	jb	LBB0_17
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %eax
	movl	%eax, (%rbx,%rdx,4)
	movl	4(%rcx,%rdx,4), %eax
	movl	%eax, 4(%rbx,%rdx,4)
	movl	8(%rcx,%rdx,4), %eax
	movl	%eax, 8(%rbx,%rdx,4)
	movl	12(%rcx,%rdx,4), %eax
	movl	%eax, 12(%rbx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r9
	jne	LBB0_34
	jmp	LBB0_17
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_VIDEO_MAX_PLANES,4,2           ## @VIDEO_MAX_PLANES
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vb2_create_bufs                ; -- Begin function vb2_create_bufs
	.p2align	2
_vb2_create_bufs:                       ; @vb2_create_bufs
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _VIDEO_MAX_PLANES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VIDEO_MAX_PLANES@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w1, [x1, #8]
	ldr	w2, [x20, #24]
	bl	_vb2_verify_memory_type
	mov	x19, x0
	add	x1, x20, #16
	mov	x0, x21
	bl	_fill_buf_caps
	ldr	w8, [x21]
	str	w8, [x20, #12]
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.1:
	ldr	w8, [x20, #24]
	sub	w8, w8, #128
	cmp	w8, #11
	b.hi	LBB0_24
; %bb.2:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x20, #72]
	cbz	w8, LBB0_24
; %bb.4:
	ldr	w9, [x23]
	cmp	w8, w9
	b.hi	LBB0_24
; %bb.5:
	mov	x9, #0
	ldr	x10, [x20, #80]
	cmp	w8, #16
	b.lo	LBB0_10
; %bb.6:
	sub	x11, x22, x10
	cmp	x11, #64
	b.lo	LBB0_10
; %bb.7:
	and	x9, x8, #0xfffffff0
	add	x11, x10, #32
	add	x12, x22, #32
	mov	x13, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x9, x8
	b.eq	LBB0_19
LBB0_10:
	lsl	x12, x9, #2
	add	x11, x22, x12
	add	x10, x10, x12
	sub	x9, x8, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10], #4
	str	w12, [x11], #4
	subs	x9, x9, #1
	b.ne	LBB0_11
	b	LBB0_19
LBB0_12:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w19, w8
	csel	w19, wzr, w19, eq
	b	LBB0_25
LBB0_13:
	ldr	w8, [x20, #64]
	b	LBB0_18
LBB0_14:
	ldr	w8, [x20, #48]
	ldr	x9, [x20, #56]
	ldp	w10, w9, [x9]
	add	w9, w9, w10
	mul	w8, w9, w8
	b	LBB0_18
LBB0_15:
	ldr	w8, [x20, #40]
	b	LBB0_18
LBB0_16:
	ldr	w8, [x20, #36]
	b	LBB0_18
LBB0_17:
	ldr	w8, [x20, #32]
LBB0_18:
	str	w8, [x22]
	mov	w8, #1
LBB0_19:
	mov	x9, #0
	mov	w3, w8
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, x9, lsl #2]
	cbz	w8, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x9, x9, #1
	cmp	x3, x9
	b.ne	LBB0_20
; %bb.22:
	cbnz	w19, LBB0_25
; %bb.23:
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x22
	bl	_vb2_core_create_bufs
	mov	x19, x0
	b	LBB0_25
LBB0_24:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_25:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x19
	sub	sp, x29, #48
	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_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.comm	_VIDEO_MAX_PLANES,4,2           ; @VIDEO_MAX_PLANES
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
