	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delta_g_selection
_delta_g_selection:                     ## @delta_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
	movq	%rsi, %rdi
	callq	_to_ctx
	movq	(%rbx), %rcx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.1:
	movq	_DELTA_FLAG_FRAMEINFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_DELTA_FRAMEINFO_FLAG_CROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_4
## %bb.3:
	leaq	32(%rax), %rdx
	movq	%rax, %rcx
	addq	$36, %rcx
	movups	40(%rax), %xmm0
	jmp	LBB0_5
LBB0_4:
	leaq	24(%rax), %rcx
	movq	%rax, %rdx
	addq	$20, %rdx
	xorps	%xmm0, %xmm0
LBB0_5:
	movl	8(%rbx), %esi
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_8
## %bb.6:
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	12(%rax), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_9:
	movl	(%rdx), %eax
	movl	(%rcx), %ecx
	movl	%eax, 16(%rbx)
	movl	%ecx, 20(%rbx)
	movups	%xmm0, 24(%rbx)
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DELTA_FLAG_FRAMEINFO,4,2       ## @DELTA_FLAG_FRAMEINFO
	.comm	_DELTA_FRAMEINFO_FLAG_CROP,4,2  ## @DELTA_FRAMEINFO_FLAG_CROP
	.no_dead_strip	_delta_g_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delta_g_selection
_delta_g_selection:                     ; @delta_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
	mov	x0, x1
	bl	_to_ctx
	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_8
; %bb.1:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _DELTA_FLAG_FRAMEINFO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DELTA_FLAG_FRAMEINFO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x0, #8]
Lloh6:
	adrp	x9, _DELTA_FRAMEINFO_FLAG_CROP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DELTA_FRAMEINFO_FLAG_CROP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x10, x0, #32
	add	x9, x0, #36
	ldur	q0, [x0, #40]
	b	LBB0_5
LBB0_4:
	add	x9, x0, #24
	add	x10, x0, #20
	movi.2d	v0, #0000000000000000
LBB0_5:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh9:
	adrp	x11, lJTI0_0@PAGE
Lloh10:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_7
	ldrb	w13, [x11, x8]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_7:
	mov	w8, #0
	stp	xzr, xzr, [x19, #24]
	ldur	d0, [x0, #12]
	str	d0, [x19, #16]
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_10
LBB0_9:
	mov	w8, #0
	ldr	w10, [x10]
	ldr	w9, [x9]
	stp	w10, w9, [x19, #16]
	stur	q0, [x19, #24]
LBB0_10:
	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
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DELTA_FLAG_FRAMEINFO,4,2       ; @DELTA_FLAG_FRAMEINFO
	.comm	_DELTA_FRAMEINFO_FLAG_CROP,4,2  ; @DELTA_FRAMEINFO_FLAG_CROP
	.no_dead_strip	_delta_g_selection
.subsections_via_symbols
