	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_raw_vbi_cap_process      ## -- Begin function vivid_raw_vbi_cap_process
	.p2align	4, 0x90
_vivid_raw_vbi_cap_process:             ## @vivid_raw_vbi_cap_process
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	4(%rsi), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	%rax, %r14
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vivid_g_fmt_vbi_cap
	movl	(%rbx), %esi
	movl	%esi, (%r12)
	movq	8(%rbx), %rax
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	movl	%eax, (%r12)
	movl	%eax, %esi
LBB0_2:
	movq	%rbx, %rdi
	callq	_vivid_sliced_vbi_cap_fill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_size
	movq	%r14, %rdi
	movl	$16, %esi
	movl	%eax, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_VIVID_INVALID_SIGNAL
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rbx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_vivid_vbi_gen_raw
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ## @V4L2_FIELD_ALTERNATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_raw_vbi_cap_process      ; -- Begin function vivid_raw_vbi_cap_process
	.p2align	2
_vivid_raw_vbi_cap_process:             ; @vivid_raw_vbi_cap_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x1
	mov	x19, x0
	add	x21, x1, #4
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_plane_vaddr
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_vivid_g_fmt_vbi_cap
	ldr	w1, [x19]
	str	w1, [x22]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w1, w8, #1
	str	w1, [x22]
LBB0_2:
	mov	x0, x19
	bl	_vivid_sliced_vbi_cap_fill
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_plane_size
	mov	x2, x0
	mov	x0, x20
	mov	w1, #16
	bl	_memset
	ldr	x8, [x19, #32]
	ldr	x9, [x19, #16]
	ldr	w0, [x8, x9, lsl #2]
	bl	_VIVID_INVALID_SIGNAL
	cbnz	w0, LBB0_4
; %bb.3:
	add	x0, x19, #24
	add	x1, sp, #8
	mov	x2, x20
	bl	_vivid_vbi_gen_raw
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
.subsections_via_symbols
