	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vbi_gen_raw              ## -- Begin function vivid_vbi_gen_raw
	.p2align	4, 0x90
_vivid_vbi_gen_raw:                     ## @vivid_vbi_gen_raw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r12), %edx
	callq	_vivid_vbi_gen_cc_raw
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$12, %rbx
	cmpq	$300, %rbx                      ## imm = 0x12C
	je	LBB0_15
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx), %ecx
	movslq	8(%rdi,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_SLICED_VBI_525@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rdi,%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$263, %ecx                      ## imm = 0x107
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	$313, %ecx                      ## imm = 0x139
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r12), %rdx
	subl	(%rdx,%rax,8), %ecx
	movq	_V4L2_VBI_INTERLACED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rax,%rcx,2), %ecx
	movl	4(%r12), %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rdx
	imull	(%rdx), %eax
	addl	%ecx, %eax
	movl	4(%r12), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	imull	%eax, %ecx
	leaq	(%r14,%rcx,4), %rsi
	movl	4(%rdi,%rbx), %eax
	addq	%rbx, %rdi
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r12), %edx
	callq	_vivid_vbi_gen_wss_raw
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_V4L2_SLICED_TELETEXT_B@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r12), %edx
	callq	_vivid_vbi_gen_teletext_raw
	jmp	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SLICED_VBI_525,4,2        ## @V4L2_SLICED_VBI_525
	.comm	_V4L2_VBI_INTERLACED,4,2        ## @V4L2_VBI_INTERLACED
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,4,2        ## @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ## @V4L2_SLICED_TELETEXT_B
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vivid_vbi_gen_raw              ; -- Begin function vivid_vbi_gen_raw
	.p2align	2
_vivid_vbi_gen_raw:                     ; @vivid_vbi_gen_raw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
Lloh0:
	adrp	x23, _V4L2_VBI_INTERLACED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _V4L2_VBI_INTERLACED@GOTPAGEOFF]
Lloh2:
	adrp	x24, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh3:
	ldr	x24, [x24, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
Lloh4:
	adrp	x25, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh5:
	ldr	x25, [x25, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
Lloh6:
	adrp	x27, _V4L2_SLICED_VBI_525@GOTPAGE
Lloh7:
	ldr	x27, [x27, _V4L2_SLICED_VBI_525@GOTPAGEOFF]
	mov	w28, #263
	mov	w26, #313
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x20, #16]
	bl	_vivid_vbi_gen_cc_raw
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #12
	cmp	x22, #300
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, x22
	ldr	w9, [x0]
	ldrsw	x8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x0, #4]
	ldr	w11, [x27]
	tst	w11, w10
	csel	w10, w26, w28, eq
	add	w9, w10, w9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #24]
	ldr	x10, [x10, x8, lsl #3]
	sub	w9, w9, w10
	ldr	w10, [x20]
	ldr	w11, [x23]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w8, w9, lsl #1
	ldr	w9, [x20, #4]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #8]
	ldr	w10, [x10]
	madd	w9, w10, w8, w9
	ldr	w8, [x20, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mul	w8, w9, w8
	add	x1, x19, w8, uxtw #2
	ldr	w8, [x0, #4]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x20, #16]
	bl	_vivid_vbi_gen_wss_raw
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh8:
	adrp	x9, _V4L2_SLICED_TELETEXT_B@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_SLICED_TELETEXT_B@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x20, #16]
	bl	_vivid_vbi_gen_teletext_raw
	b	LBB0_2
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SLICED_VBI_525,4,2        ; @V4L2_SLICED_VBI_525
	.comm	_V4L2_VBI_INTERLACED,4,2        ; @V4L2_VBI_INTERLACED
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,4,2        ; @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ; @V4L2_SLICED_TELETEXT_B
.subsections_via_symbols
