	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdec_g_selection
_vdec_g_selection:                      ## @vdec_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	_to_inst
	movq	(%r14), %rcx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rdx, %rcx
	je	LBB0_4
## %bb.1:
	cmpq	%rsi, %rcx
	je	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_4:
	movl	8(%r14), %edi
	addl	$-128, %edi
	cmpl	$6, %edi
	ja	LBB0_2
## %bb.5:
	movl	$7, %ebx
	btl	%edi, %ebx
	jb	LBB0_10
## %bb.6:
	movl	$40, %esi
	btl	%edi, %esi
	jae	LBB0_12
## %bb.7:
	cmpq	%rdx, %rcx
	jne	LBB0_2
## %bb.8:
	movl	12(%rax), %ecx
	movl	%ecx, 36(%r14)
	addq	$8, %rax
	jmp	LBB0_9
LBB0_10:
	cmpq	%rsi, %rcx
	jne	LBB0_2
	jmp	LBB0_11
LBB0_12:
	cmpq	%rdx, %rcx
	jne	LBB0_2
LBB0_11:
	movl	4(%rax), %ecx
	movl	%ecx, 36(%r14)
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vdec_g_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdec_g_selection
_vdec_g_selection:                      ; @vdec_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	_to_inst
	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]
Lloh3:
	adrp	x10, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.1:
	ldr	w11, [x19, #8]
	sub	w11, w11, #128
	cmp	w11, #6
	b.hi	LBB0_10
; %bb.2:
	mov	w12, #1
	lsl	w11, w12, w11
	tst	w11, #0x7
	b.ne	LBB0_6
; %bb.3:
	mov	w10, #40
	tst	w11, w10
	b.eq	LBB0_9
; %bb.4:
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x0, #12]
	str	w8, [x19, #36]
	add	x0, x0, #8
	b	LBB0_8
LBB0_6:
	cmp	x8, x10
	b.ne	LBB0_10
LBB0_7:
	ldr	w8, [x0, #4]
	str	w8, [x19, #36]
LBB0_8:
	mov	w8, #0
	ldr	w9, [x0]
	str	w9, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	b	LBB0_11
LBB0_9:
	cmp	x8, x9
	b.eq	LBB0_7
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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vdec_g_selection
.subsections_via_symbols
