	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpe_g_selection
_vpe_g_selection:                       ## @vpe_g_selection
	.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	%rdx, %rbx
	callq	_file2ctx
	movl	32(%rbx), %esi
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %r14
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %r15
	cmpl	(%r14), %esi
	je	LBB0_3
## %bb.1:
	cmpl	(%r15), %esi
	jne	LBB0_2
LBB0_3:
	movq	%rax, %rdi
	callq	_get_q_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$5, %ecx
	ja	LBB0_2
## %bb.5:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movl	32(%rbx), %ecx
	cmpl	(%r14), %ecx
	jne	LBB0_8
	jmp	LBB0_2
LBB0_6:
	movl	32(%rbx), %ecx
	cmpl	(%r15), %ecx
	je	LBB0_2
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_12
LBB0_10:
	movl	32(%rbx), %ecx
	cmpl	(%r14), %ecx
	je	LBB0_2
LBB0_11:
	movq	24(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movups	8(%rax), %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movl	32(%rbx), %ecx
	cmpl	(%r15), %ecx
	jne	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vpe_g_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpe_g_selection
_vpe_g_selection:                       ; @vpe_g_selection
	.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, x2
	bl	_file2ctx
	ldr	w1, [x19, #32]
Lloh0:
	adrp	x20, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	b.ne	LBB0_10
; %bb.1:
	bl	_get_q_data
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w9, [x19]
	sub	w9, w9, #128
	cmp	w9, #5
	b.hi	LBB0_10
; %bb.3:
	mov	x8, x0
Lloh4:
	adrp	x10, lJTI0_0@PAGE
Lloh5:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	ldr	w9, [x19, #32]
	ldr	w10, [x20]
	cmp	w9, w10
	b.ne	LBB0_6
	b	LBB0_10
LBB0_5:
	ldr	w9, [x19, #32]
	ldr	w10, [x21]
	cmp	w9, w10
	b.eq	LBB0_10
LBB0_6:
	mov	w0, #0
	stp	xzr, xzr, [x19, #16]
	ldr	d0, [x8]
	str	d0, [x19, #8]
	b	LBB0_11
LBB0_7:
	ldr	w9, [x19, #32]
	ldr	w10, [x20]
	cmp	w9, w10
	b.eq	LBB0_10
LBB0_8:
	mov	w0, #0
	ldur	q0, [x8, #8]
	ldr	x8, [x8, #24]
	str	x8, [x19, #24]
	stur	q0, [x19, #8]
	b	LBB0_11
LBB0_9:
	ldr	w9, [x19, #32]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ne	LBB0_8
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vpe_g_selection
.subsections_via_symbols
