	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_sliced_vbi_cap_process   ## -- Begin function vivid_sliced_vbi_cap_process
	.p2align	4, 0x90
_vivid_sliced_vbi_cap_process:          ## @vivid_sliced_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	4(%rsi), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	%rax, %rbx
	movl	(%r14), %esi
	movl	%esi, (%r12)
	movq	8(%r14), %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	%r14, %rdi
	callq	_vivid_sliced_vbi_cap_fill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_size
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	16(%r14), %rax
	movq	32(%r14), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_VIVID_INVALID_SIGNAL
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	24(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	12(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	16(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movl	20(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	24(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movl	28(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movl	32(%rax), %ecx
	movl	%ecx, 32(%rbx)
	movl	36(%rax), %ecx
	movl	%ecx, 36(%rbx)
	movl	40(%rax), %ecx
	movl	%ecx, 40(%rbx)
	movl	44(%rax), %ecx
	movl	%ecx, 44(%rbx)
	movl	48(%rax), %ecx
	movl	%ecx, 48(%rbx)
	movl	52(%rax), %ecx
	movl	%ecx, 52(%rbx)
	movl	56(%rax), %ecx
	movl	%ecx, 56(%rbx)
	movl	60(%rax), %ecx
	movl	%ecx, 60(%rbx)
	movl	64(%rax), %ecx
	movl	%ecx, 64(%rbx)
	movl	68(%rax), %ecx
	movl	%ecx, 68(%rbx)
	movl	72(%rax), %ecx
	movl	%ecx, 72(%rbx)
	movl	76(%rax), %ecx
	movl	%ecx, 76(%rbx)
	movl	80(%rax), %ecx
	movl	%ecx, 80(%rbx)
	movl	84(%rax), %ecx
	movl	%ecx, 84(%rbx)
	movl	88(%rax), %ecx
	movl	%ecx, 88(%rbx)
	movl	92(%rax), %ecx
	movl	%ecx, 92(%rbx)
	movl	96(%rax), %eax
	movl	%eax, 96(%rbx)
LBB0_4:
	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_sliced_vbi_cap_process   ; -- Begin function vivid_sliced_vbi_cap_process
	.p2align	2
_vivid_sliced_vbi_cap_process:          ; @vivid_sliced_vbi_cap_process
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	add	x21, x1, #4
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_plane_vaddr
	mov	x19, x0
	ldr	w1, [x20]
	str	w1, [x22]
	ldr	x8, [x20, #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, x20
	bl	_vivid_sliced_vbi_cap_fill
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_plane_size
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #32]
	ldr	x9, [x20, #16]
	ldr	w0, [x8, x9, lsl #2]
	bl	_VIVID_INVALID_SIGNAL
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #24]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w9, [x8, #4]
	str	w9, [x19, #4]
	ldr	w9, [x8, #8]
	str	w9, [x19, #8]
	ldr	w9, [x8, #12]
	str	w9, [x19, #12]
	ldr	w9, [x8, #16]
	str	w9, [x19, #16]
	ldr	w9, [x8, #20]
	str	w9, [x19, #20]
	ldr	w9, [x8, #24]
	str	w9, [x19, #24]
	ldr	w9, [x8, #28]
	str	w9, [x19, #28]
	ldr	w9, [x8, #32]
	str	w9, [x19, #32]
	ldr	w9, [x8, #36]
	str	w9, [x19, #36]
	ldr	w9, [x8, #40]
	str	w9, [x19, #40]
	ldr	w9, [x8, #44]
	str	w9, [x19, #44]
	ldr	w9, [x8, #48]
	str	w9, [x19, #48]
	ldr	w9, [x8, #52]
	str	w9, [x19, #52]
	ldr	w9, [x8, #56]
	str	w9, [x19, #56]
	ldr	w9, [x8, #60]
	str	w9, [x19, #60]
	ldr	w9, [x8, #64]
	str	w9, [x19, #64]
	ldr	w9, [x8, #68]
	str	w9, [x19, #68]
	ldr	w9, [x8, #72]
	str	w9, [x19, #72]
	ldr	w9, [x8, #76]
	str	w9, [x19, #76]
	ldr	w9, [x8, #80]
	str	w9, [x19, #80]
	ldr	w9, [x8, #84]
	str	w9, [x19, #84]
	ldr	w9, [x8, #88]
	str	w9, [x19, #88]
	ldr	w9, [x8, #92]
	str	w9, [x19, #92]
	ldr	w8, [x8, #96]
	str	w8, [x19, #96]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
.subsections_via_symbols
