	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_selection
_vidioc_g_selection:                    ## @vidioc_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	_file2ctx
	movq	%rax, %rbx
	movl	20(%r14), %esi
	movq	%rax, %rdi
	callq	_get_q_data
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	cmpq	$0, (%rbx)
	movl	20(%r14), %ecx
	je	LBB0_7
## %bb.2:
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_10
## %bb.3:
	movl	(%r14), %ecx
	leal	-128(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_12
## %bb.4:
	cmpl	$130, %ecx
	je	LBB0_5
	jmp	LBB0_10
LBB0_7:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_10
## %bb.8:
	movl	(%r14), %ecx
	leal	-131(%rcx), %edx
	cmpl	$2, %edx
	jae	LBB0_9
LBB0_12:
	movq	$0, 12(%r14)
	movl	4(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_9:
	cmpl	$133, %ecx
	jne	LBB0_10
LBB0_5:
	movq	$0, 12(%r14)
	movl	12(%rax), %ecx
	movl	%ecx, 8(%r14)
	movl	8(%rax), %eax
LBB0_6:
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.no_dead_strip	_vidioc_g_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_selection
_vidioc_g_selection:                    ; @vidioc_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	_file2ctx
	mov	x20, x0
	ldr	w1, [x19, #20]
	bl	_get_q_data
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x9, [x20]
	ldr	w8, [x19, #20]
	cbz	x9, LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_7
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_9
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
	ldr	w8, [x19]
	sub	w9, w8, #131
	cmp	w9, #2
	b.hs	LBB0_8
LBB0_7:
	mov	w8, #0
	stp	wzr, wzr, [x19, #12]
	ldr	d0, [x0]
	stur	d0, [x19, #4]
	b	LBB0_11
LBB0_8:
	cmp	w8, #133
	b.ne	LBB0_10
LBB0_9:
	mov	w8, #0
	stp	wzr, wzr, [x19, #12]
	ldr	d0, [x0, #8]
	stur	d0, [x19, #4]
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_11:
	mov	x0, x8
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.no_dead_strip	_vidioc_g_selection
.subsections_via_symbols
