	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_decode_vbi_line        ## -- Begin function cx25840_decode_vbi_line
	.p2align	4, 0x90
_cx25840_decode_vbi_line:               ## @cx25840_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, %r13
	callq	_to_state
	movq	(%r13), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	cmpl	$255, 4(%rbx)
	jne	LBB0_5
## %bb.2:
	cmpl	$255, 8(%rbx)
	jne	LBB0_5
## %bb.3:
	movl	12(%rbx), %r15d
	cmpl	$85, %r15d
	je	LBB0_6
## %bb.4:
	cmpl	$145, %r15d
	jne	LBB0_5
LBB0_6:
	movl	16(%rbx), %esi
	andl	$15, %esi
	leaq	32(%rbx), %rdi
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	decl	%esi
	cmpl	$8, %esi
	ja	LBB0_7
## %bb.8:
	movl	24(%rbx), %r12d
	andl	$63, %r12d
	addl	(%rax), %r12d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	xorl	%esi, %esi
	jmpq	*%rcx
LBB0_9:
	movq	_V4L2_SLICED_TELETEXT_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_5:
	movq	$0, 8(%r13)
LBB0_18:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_11:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_odd_parity
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	36(%rbx), %edi
	callq	_odd_parity
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_16
## %bb.14:
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_15:
	movq	_V4L2_SLICED_VPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rdi, %rsi
	movq	%rdi, %rbx
	callq	_decode_vps
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	movl	$0, %edx
	movl	$0, %esi
	testl	%eax, %eax
	jne	LBB0_17
LBB0_16:
	movb	$1, %dl
	movl	%r14d, %r8d
	movl	%r12d, %esi
LBB0_17:
	movl	%r8d, 12(%r13)
	movl	%esi, 8(%r13)
	cmpl	$85, %r15d
	sete	%al
	andb	%dl, %al
	movzbl	%al, %eax
	movl	%eax, 16(%r13)
	movq	%rdi, (%r13)
	jmp	LBB0_18
LBB0_7:
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_12:
	xorl	%r8d, %r8d
	xorl	%edx, %edx
	xorl	%esi, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_10
	.long	L0_0_set_17
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.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	_cx25840_decode_vbi_line        ; -- Begin function cx25840_decode_vbi_line
	.p2align	2
_cx25840_decode_vbi_line:               ; @cx25840_decode_vbi_line
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	bl	_to_state
	ldr	x23, [x19]
	ldr	w8, [x23]
	cbnz	w8, LBB0_8
; %bb.1:
	ldr	w8, [x23, #4]
	cmp	w8, #255
	b.ne	LBB0_8
; %bb.2:
	ldr	w8, [x23, #8]
	cmp	w8, #255
	b.ne	LBB0_8
; %bb.3:
	ldr	w21, [x23, #12]
	cmp	w21, #85
	b.eq	LBB0_5
; %bb.4:
	cmp	w21, #145
	b.ne	LBB0_8
LBB0_5:
	mov	w22, #0
	ldr	w8, [x23, #16]
	and	w8, w8, #0xf
	add	x20, x23, #32
	sub	w8, w8, #1
	cmp	w8, #8
	b.hi	LBB0_17
; %bb.6:
	ldr	w24, [x23, #24]
	ldr	w25, [x0]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	mov	x8, x22
	mov	x9, x22
	br	x10
LBB0_7:
Lloh2:
	adrp	x8, _V4L2_SLICED_TELETEXT_B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_SLICED_TELETEXT_B@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	str	xzr, [x19, #8]
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh4:
	adrp	x8, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
LBB0_11:
	ldr	w22, [x8]
LBB0_12:
	and	w8, w24, #0x3f
	add	w9, w8, w25
	mov	w8, #1
	b	LBB0_18
LBB0_13:
Lloh6:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	w0, [x20]
	bl	_odd_parity
	cbz	w0, LBB0_16
; %bb.14:
	ldr	w0, [x23, #36]
	bl	_odd_parity
	cbnz	w0, LBB0_12
	b	LBB0_16
LBB0_15:
Lloh9:
	adrp	x8, _V4L2_SLICED_VPS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_SLICED_VPS@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	mov	x0, x20
	mov	x1, x20
	bl	_decode_vps
	cbz	w0, LBB0_12
LBB0_16:
	mov	w22, #0
	mov	w8, #0
	mov	w9, #0
	b	LBB0_18
LBB0_17:
	mov	x8, x22
	mov	x9, x22
LBB0_18:
	stp	w9, w22, [x19, #8]
	cmp	w21, #85
	cset	w9, eq
	and	w8, w8, w9
	str	w8, [x19, #16]
	str	x20, [x19]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
                                        ; -- End function
	.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
