	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_decode_vbi_line        ## -- Begin function cx18_av_decode_vbi_line
	.p2align	4, 0x90
_cx18_av_decode_vbi_line:               ## @cx18_av_decode_vbi_line
	.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	%rsi, %rbx
	callq	_v4l2_get_subdevdata
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_5
## %bb.1:
	cmpl	$255, 4(%rdx)
	jne	LBB0_5
## %bb.2:
	cmpl	$255, 8(%rdx)
	jne	LBB0_5
## %bb.3:
	movl	8(%rcx), %r15d
	movq	_sliced_vbi_did@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	cmpl	(%rdx), %r15d
	je	LBB0_6
## %bb.4:
	cmpl	4(%rdx), %r15d
	jne	LBB0_5
LBB0_6:
	movl	12(%rcx), %edx
	andl	$15, %edx
	movq	24(%rcx), %r14
	decl	%edx
	cmpl	$8, %edx
	ja	LBB0_14
## %bb.7:
	movq	16(%rcx), %rcx
	movl	(%rcx), %r13d
	andl	$63, %r13d
	addl	(%rax), %r13d
	movq	_V4L2_SLICED_TELETEXT_B@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_11:
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r13d, (%rbx)
LBB0_13:
	movq	(%r12), %rax
	xorl	%ecx, %ecx
	cmpl	4(%rax), %r15d
	sete	%cl
	jmp	LBB0_16
LBB0_5:
	movq	$0, (%rbx)
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	callq	_odd_parity
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movl	4(%r14), %edi
	callq	_odd_parity
	testl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmovel	%eax, %ecx
	movl	%ecx, 4(%rbx)
	cmovel	%eax, %r13d
	movl	%r13d, (%rbx)
	jne	LBB0_13
	jmp	LBB0_15
LBB0_14:
	movq	$0, (%rbx)
LBB0_15:
	xorl	%ecx, %ecx
	jmp	LBB0_16
LBB0_10:
	movq	_V4L2_SLICED_VPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_decode_vps
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovnel	%ecx, %r12d
	movl	%r12d, 4(%rbx)
	movq	_sliced_vbi_did@GOTPCREL(%rip), %r12
	cmovnel	%ecx, %r13d
	movl	%r13d, (%rbx)
	je	LBB0_13
LBB0_16:
	movl	%ecx, 8(%rbx)
	movq	%r14, 16(%rbx)
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_sliced_vbi_did,8,3             ## @sliced_vbi_did
	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ## @V4L2_SLICED_TELETEXT_B
	.comm	_V4L2_SLICED_WSS_625,4,2        ## @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_VPS,4,2            ## @V4L2_SLICED_VPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_av_decode_vbi_line        ; -- Begin function cx18_av_decode_vbi_line
	.p2align	2
_cx18_av_decode_vbi_line:               ; @cx18_av_decode_vbi_line
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_v4l2_get_subdevdata
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	ldr	w10, [x9]
	cbnz	w10, LBB0_10
; %bb.1:
	ldr	w10, [x9, #4]
	cmp	w10, #255
	b.ne	LBB0_10
; %bb.2:
	ldr	w9, [x9, #8]
	cmp	w9, #255
	b.ne	LBB0_10
; %bb.3:
	ldr	w21, [x8, #8]
Lloh0:
	adrp	x22, _sliced_vbi_did@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sliced_vbi_did@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w10, [x9]
	cmp	w21, w10
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x9, #4]
	cmp	w21, w9
	b.ne	LBB0_10
LBB0_5:
	ldr	w9, [x8, #12]
	and	w9, w9, #0xf
	ldr	x20, [x8, #24]
	sub	w9, w9, #1
	cmp	w9, #8
	b.hi	LBB0_15
; %bb.6:
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	and	w8, w8, #0x3f
	ldr	w10, [x0]
	add	w23, w8, w10
Lloh2:
	adrp	x8, _V4L2_SLICED_TELETEXT_B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_SLICED_TELETEXT_B@GOTPAGEOFF]
Lloh4:
	adrp	x10, lJTI0_0@PAGE
Lloh5:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_7
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_7:
Lloh6:
	adrp	x8, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	stp	w23, w8, [x19]
LBB0_9:
	ldr	x8, [x22]
	ldr	w8, [x8, #4]
	cmp	w21, w8
	cset	w8, eq
	b	LBB0_17
LBB0_10:
	str	xzr, [x19]
LBB0_11:
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh8:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	ldr	w0, [x20]
	bl	_odd_parity
	cbz	w0, LBB0_15
; %bb.13:
	ldr	w0, [x20, #4]
	bl	_odd_parity
	cmp	w0, #0
	csel	w8, wzr, w24, eq
	csel	w9, wzr, w23, eq
	stp	w9, w8, [x19]
	cbnz	w0, LBB0_9
; %bb.14:
	mov	w8, #0
	b	LBB0_17
LBB0_15:
	mov	w8, #0
	str	xzr, [x19]
	b	LBB0_17
LBB0_16:
Lloh11:
	adrp	x8, _V4L2_SLICED_VPS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_SLICED_VPS@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	mov	x0, x20
	mov	x1, x20
	bl	_decode_vps
	mov	w8, #0
	cmp	w0, #0
	csel	w9, w24, wzr, eq
	csel	w10, w23, wzr, eq
	stp	w10, w9, [x19]
	cbz	w0, LBB0_9
LBB0_17:
	str	w8, [x19, #8]
	str	x20, [x19, #16]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
                                        ; -- End function
	.comm	_sliced_vbi_did,8,3             ; @sliced_vbi_did
	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ; @V4L2_SLICED_TELETEXT_B
	.comm	_V4L2_SLICED_WSS_625,4,2        ; @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_VPS,4,2            ; @V4L2_SLICED_VPS
.subsections_via_symbols
