	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vid_out_g_selection      ## -- Begin function vivid_vid_out_g_selection
	.p2align	4, 0x90
_vivid_vid_out_g_selection:             ## @vivid_vid_out_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movl	40(%rax), %ecx
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 16(%rax)
	je	LBB0_2
LBB0_3:
	movq	(%rbx), %rdx
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_17
## %bb.4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	8(%rbx), %edx
	addl	$-128, %edx
	cmpl	$5, %edx
	ja	LBB0_17
## %bb.5:
	addq	$16, %rbx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_15:
	cmpl	$0, 16(%rax)
	je	LBB0_17
## %bb.16:
	movups	(%rax), %xmm0
	jmp	LBB0_8
LBB0_2:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_9:
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.10:
	movups	48(%rax), %xmm0
	jmp	LBB0_8
LBB0_11:
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.12:
	movq	_vivid_max_rect@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	jmp	LBB0_8
LBB0_6:
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.7:
	movups	64(%rax), %xmm0
	jmp	LBB0_8
LBB0_13:
	cmpl	$0, 16(%rax)
	je	LBB0_17
## %bb.14:
	movups	24(%rax), %xmm0
LBB0_8:
	movups	%xmm0, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_18:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_out_g_selection      ; -- Begin function vivid_vid_out_g_selection
	.p2align	2
_vivid_vid_out_g_selection:             ; @vivid_vid_out_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	x8, x0
	ldr	w9, [x0, #40]
	cbnz	w9, LBB0_2
; %bb.1:
	ldr	w10, [x8, #16]
	cbz	w10, LBB0_7
LBB0_2:
	ldr	x10, [x19]
Lloh0:
	adrp	x11, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_17
; %bb.3:
	stp	xzr, xzr, [x19, #16]!
	ldur	w10, [x19, #-8]
	sub	w10, w10, #128
	cmp	w10, #5
	b.hi	LBB0_17
; %bb.4:
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_17
; %bb.6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh5:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_18
LBB0_8:
	cbz	w9, LBB0_17
; %bb.9:
	mov	w0, #0
	ldr	q0, [x8, #48]
	str	q0, [x19]
	b	LBB0_19
LBB0_10:
	cbz	w9, LBB0_17
; %bb.11:
	mov	w0, #0
Lloh7:
	adrp	x8, _vivid_max_rect@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vivid_max_rect@GOTPAGEOFF]
LBB0_12:
	ldr	q0, [x8]
	str	q0, [x19]
	b	LBB0_19
LBB0_13:
	cbz	w9, LBB0_17
; %bb.14:
	mov	w0, #0
	ldr	q0, [x8, #64]
	str	q0, [x19]
	b	LBB0_19
LBB0_15:
	ldr	w9, [x8, #16]
	cbz	w9, LBB0_17
; %bb.16:
	mov	w0, #0
	ldur	q0, [x8, #24]
	str	q0, [x19]
	b	LBB0_19
LBB0_17:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_vivid_max_rect,16,3            ; @vivid_max_rect
.subsections_via_symbols
