	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_sliced_vbi_out_process   ## -- Begin function vivid_sliced_vbi_out_process
	.p2align	4, 0x90
_vivid_sliced_vbi_out_process:          ## @vivid_sliced_vbi_out_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_get_plane_payload
	cltq
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	shrq	$4, %rdx
	movq	(%r14), %r8
	movq	$0, (%r8)
	movl	$0, 8(%r14)
	testl	%edx, %edx
	je	LBB0_13
## %bb.1:
	addq	$16, %rbx
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %r9
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %r10
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdi), %ecx
	movl	%ecx, 4(%rax)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rbx
	testl	%edx, %edx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edx
	movl	-16(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r10), %eax
	testl	%eax, 12(%r14)
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$21, -12(%rbx)
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	setne	%al
	movl	$1, (%r8,%rax,4)
	movq	-8(%rbx), %rdi
	movl	(%rdi), %eax
	movq	24(%r14), %rcx
	xorl	%esi, %esi
	cmpl	$0, (%rbx)
	setne	%sil
	movq	(%rcx,%rsi,8), %rsi
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	setne	%al
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r9), %eax
	testl	%eax, 12(%r14)
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$23, -12(%rbx)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 8(%r14)
	movq	-8(%rbx), %rdi
	movl	(%rdi), %ecx
	movq	16(%r14), %rax
	movl	%ecx, (%rax)
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_sliced_vbi_out_process   ; -- Begin function vivid_sliced_vbi_out_process
	.p2align	2
_vivid_sliced_vbi_out_process:          ; @vivid_sliced_vbi_out_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	x21, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	bl	_vb2_plane_vaddr
	mov	x20, x0
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_get_plane_payload
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x9, x8, x9
	ldr	x8, [x19]
	lsr	x9, x9, #4
	str	xzr, [x8]
	str	wzr, [x19, #8]
	cbz	w9, LBB0_13
; %bb.1:
	add	x10, x20, #16
Lloh0:
	adrp	x11, _V4L2_STD_625_50@GOTPAGE
Lloh1:
	ldr	x11, [x11, _V4L2_STD_625_50@GOTPAGEOFF]
	mov	w12, #1
Lloh2:
	adrp	x13, _V4L2_STD_525_60@GOTPAGE
Lloh3:
	ldr	x13, [x13, _V4L2_STD_525_60@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x14, #4]
	str	w14, [x15, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #24
	cbz	w9, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w9, #1
	ldur	w14, [x10, #-16]
	cmp	w14, #128
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w14, #129
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x19, #12]
	ldr	w15, [x13]
	tst	w15, w14
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w14, [x10, #-12]
	cmp	w14, #21
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x10]
	cmp	w14, #0
	cset	w14, ne
	str	w12, [x8, w14, uxtw #2]
	ldur	x14, [x10, #-8]
	ldr	w15, [x14]
	ldr	x16, [x19, #24]
	ldr	w17, [x10]
	cmp	w17, #0
	cset	w17, ne
	ldr	x17, [x16, w17, uxtw #3]
	str	w15, [x17]
	ldr	w15, [x10]
	cmp	w15, #0
	cset	w15, ne
	ldr	x15, [x16, w15, uxtw #3]
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x19, #12]
	ldr	w15, [x11]
	tst	w15, w14
	b.eq	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w14, [x10]
	cbnz	w14, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	w14, [x10, #-12]
	cmp	w14, #23
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w12, [x19, #8]
	ldur	x14, [x10, #-8]
	ldr	w16, [x14]
	ldr	x15, [x19, #16]
	str	w16, [x15]
	b	LBB0_2
LBB0_13:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
.subsections_via_symbols
