	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_preview
_verify_preview:                        ## @verify_preview
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	je	LBB0_1
LBB0_4:
	movl	8(%rsi), %r8d
	cmpl	$47, %r8d
	jg	LBB0_6
## %bb.5:
	movl	$48, 8(%rsi)
	movl	$48, %r8d
LBB0_6:
	movl	12(%rsi), %r9d
	cmpl	$31, %r9d
	jg	LBB0_8
## %bb.7:
	movl	$32, 12(%rsi)
	movl	$32, %r9d
LBB0_8:
	cmpl	$9, (%rsi)
	jl	LBB0_10
## %bb.9:
	movl	$8, (%rsi)
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsi)
	movl	4(%rsi), %eax
	movl	4(%rdi), %edx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_13
## %bb.11:
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	movl	$128, %eax
	cmpl	%ecx, %r9d
	jle	LBB0_13
## %bb.12:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movl	(%rdi), %edi
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_15
## %bb.14:
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	movl	%ecx, %edx
	jmp	LBB0_16
LBB0_15:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	movl	%eax, 4(%rsi)
	cmpl	%edi, %r8d
	jle	LBB0_18
## %bb.17:
	movl	%edi, 8(%rsi)
LBB0_18:
	xorl	%eax, %eax
	cmpl	%edx, %r9d
	jle	LBB0_20
## %bb.19:
	movl	%edx, 12(%rsi)
LBB0_20:
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rdi)
	jne	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.no_dead_strip	_verify_preview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_preview
_verify_preview:                        ; @verify_preview
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_11
LBB0_1:
	ldr	w8, [x1, #8]
	cmp	w8, #47
	b.gt	LBB0_3
; %bb.2:
	mov	w8, #48
	str	w8, [x1, #8]
LBB0_3:
	ldr	w9, [x1, #12]
	cmp	w9, #31
	b.gt	LBB0_5
; %bb.4:
	mov	w9, #32
	str	w9, [x1, #12]
LBB0_5:
	ldr	w10, [x1]
	cmp	w10, #9
	b.lt	LBB0_7
; %bb.6:
	mov	w10, #8
	str	w10, [x1]
LBB0_7:
	stp	xzr, xzr, [x1, #16]
	ldr	w11, [x1, #4]
	ldr	w10, [x0, #4]
Lloh0:
	adrp	x12, _V4L2_FIELD_ANY@GOTPAGE
Lloh1:
	ldr	x12, [x12, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	cmp	w12, w11
	b.ne	LBB0_9
; %bb.8:
	cmp	w10, #0
	cinc	w11, w10, lt
Lloh3:
	adrp	x12, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh4:
	ldr	x12, [x12, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	cmp	w9, w11, asr #1
	mov	w11, #128
	csel	w11, w12, w11, gt
LBB0_9:
	ldr	w12, [x0]
	and	w13, w11, #0xfffffffe
	cmp	w13, #128
	b.ne	LBB0_14
; %bb.10:
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	b	LBB0_15
LBB0_11:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_1
LBB0_13:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_14:
Lloh9:
	adrp	x11, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh10:
	ldr	x11, [x11, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
LBB0_15:
	str	w11, [x1, #4]
	cmp	w8, w12
	b.le	LBB0_17
; %bb.16:
	str	w12, [x1, #8]
LBB0_17:
	cmp	w9, w10
	b.le	LBB0_19
; %bb.18:
	mov	w0, #0
	str	w10, [x1, #12]
	ret
LBB0_19:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.no_dead_strip	_verify_preview
.subsections_via_symbols
