	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vid_cap_g_selection      ## -- Begin function vivid_vid_cap_g_selection
	.p2align	4, 0x90
_vivid_vid_cap_g_selection:             ## @vivid_vid_cap_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	cmpl	$0, 56(%rax)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 16(%rbx)
	je	LBB0_2
LBB0_3:
	movq	(%r14), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.4:
	movq	%rbx, %rdi
	callq	_vivid_is_webcam
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_19
## %bb.7:
	addq	$16, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	cmpl	$0, 56(%rbx)
	je	LBB0_19
## %bb.12:
	movups	40(%rbx), %xmm0
	jmp	LBB0_10
LBB0_2:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_8:
	cmpl	$0, 56(%rbx)
	je	LBB0_19
## %bb.9:
	movups	64(%rbx), %xmm0
	jmp	LBB0_10
LBB0_17:
	cmpl	$0, 16(%rbx)
	je	LBB0_19
## %bb.18:
	movups	(%rbx), %xmm0
	jmp	LBB0_10
LBB0_13:
	cmpl	$0, 16(%rbx)
	je	LBB0_19
## %bb.14:
	movq	_vivid_max_rect@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	jmp	LBB0_10
LBB0_15:
	cmpl	$0, 16(%rbx)
	je	LBB0_19
## %bb.16:
	movups	24(%rbx), %xmm0
LBB0_10:
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_20:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_17
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_vivid_max_rect,16,3            ## @vivid_max_rect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vid_cap_g_selection      ; -- Begin function vivid_vid_cap_g_selection
	.p2align	2
_vivid_vid_cap_g_selection:             ; @vivid_vid_cap_g_selection
	.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	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	ldr	w8, [x0, #56]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_9
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.3:
	mov	x0, x20
	bl	_vivid_is_webcam
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ENODATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
	b	LBB0_19
LBB0_5:
	stp	xzr, xzr, [x19, #16]!
	ldur	w8, [x19, #-8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_18
; %bb.6:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	w8, [x20, #56]
	cbz	w8, LBB0_18
; %bb.8:
	mov	w0, #0
	ldur	q0, [x20, #40]
	str	q0, [x19]
	b	LBB0_20
LBB0_9:
Lloh7:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_19
LBB0_10:
	ldr	w8, [x20, #56]
	cbz	w8, LBB0_18
; %bb.11:
	mov	w0, #0
	ldr	q0, [x20, #64]
	str	q0, [x19]
	b	LBB0_20
LBB0_12:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_18
; %bb.13:
	mov	w0, #0
	ldr	q0, [x20]
	str	q0, [x19]
	b	LBB0_20
LBB0_14:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_18
; %bb.15:
	mov	w0, #0
Lloh9:
	adrp	x8, _vivid_max_rect@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vivid_max_rect@GOTPAGEOFF]
Lloh11:
	ldr	q0, [x8]
	str	q0, [x19]
	b	LBB0_20
LBB0_16:
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_18
; %bb.17:
	mov	w0, #0
	ldur	q0, [x20, #24]
	str	q0, [x19]
	b	LBB0_20
LBB0_18:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
                                        ; -- End function
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_vivid_max_rect,16,3            ; @vivid_max_rect
.subsections_via_symbols
