	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa711x_decode_vbi_line
_saa711x_decode_vbi_line:               ## @saa711x_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_to_state
	movq	(%r14), %r15
	movq	$0, 16(%r14)
	movl	8(%r15), %ecx
	movl	12(%r15), %ebx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax), %edx
	movl	%ecx, %eax
	xorl	$64, %eax
	testl	%edx, %edx
	cmovel	%ecx, %eax
	leaq	16(%r15), %r12
	movq	%r12, (%r14)
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	movl	%ecx, 8(%r14)
	andl	$63, %eax
	movl	%ebx, %ecx
	shrl	$4, %ecx
	andl	$7, %ecx
	leal	(%rcx,%rax,8), %eax
	movl	%eax, 12(%r14)
	leaq	_saa711x_decode_vbi_line.vbi_no_data_pattern(%rip), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	andl	$15, %ebx
	decl	%ebx
	cmpl	$6, %ebx
	ja	LBB0_11
## %bb.2:
	movq	_V4L2_SLICED_TELETEXT_B@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_3:
	movl	(%r12), %edi
	callq	_saa711x_odd_parity
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	movl	20(%r15), %edi
	callq	_saa711x_odd_parity
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	%r12, %rdi
	callq	_saa711x_decode_wss
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.7:
	movzbl	%al, %ecx
	movl	%ecx, 16(%r15)
	sarl	$8, %eax
	movl	%eax, 20(%r15)
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	movq	%r12, %rsi
	callq	_saa711x_decode_vps
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_V4L2_SLICED_VPS@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
_saa711x_decode_vbi_line.vbi_no_data_pattern: ## @saa711x_decode_vbi_line.vbi_no_data_pattern
	.space	10,160

	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_SLICED_TELETEXT_B,8,3     ## @V4L2_SLICED_TELETEXT_B
	.comm	_V4L2_SLICED_CAPTION_525,8,3    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,8,3        ## @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_VPS,8,3            ## @V4L2_SLICED_VPS
	.no_dead_strip	_saa711x_decode_vbi_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa711x_decode_vbi_line
_saa711x_decode_vbi_line:               ; @saa711x_decode_vbi_line
	.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	x19, x1
	bl	_to_state
	ldr	x21, [x19]
	str	xzr, [x19, #16]
	ldp	w8, w22, [x21, #8]
Lloh0:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
	ldr	w10, [x0]
Lloh2:
	ldr	w9, [x9]
	eor	w11, w8, #0x40
	tst	w9, w10
	csel	w8, w8, w11, eq
	add	x20, x21, #16
	str	x20, [x19]
	ubfx	w9, w8, #6, #1
	ubfx	w10, w22, #4, #3
	bfi	w10, w8, #3, #6
	stp	w9, w10, [x19, #8]
Lloh3:
	adrp	x1, _saa711x_decode_vbi_line.vbi_no_data_pattern@PAGE
Lloh4:
	add	x1, x1, _saa711x_decode_vbi_line.vbi_no_data_pattern@PAGEOFF
	mov	x0, x20
	mov	w2, #10
	bl	_memcmp
	cbz	w0, LBB0_11
; %bb.1:
	and	w8, w22, #0xf
	sub	w9, w8, #1
	cmp	w9, #6
	b.hi	LBB0_11
; %bb.2:
Lloh5:
	adrp	x8, _V4L2_SLICED_TELETEXT_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_SLICED_TELETEXT_B@GOTPAGEOFF]
Lloh7:
	adrp	x10, lJTI0_0@PAGE
Lloh8:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	ldr	w0, [x20]
	bl	_saa711x_odd_parity
	cbz	w0, LBB0_11
; %bb.4:
	ldr	w0, [x21, #20]
	bl	_saa711x_odd_parity
	cbz	w0, LBB0_11
; %bb.5:
Lloh9:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	bl	_saa711x_decode_wss
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.7:
	and	w8, w0, #0xff
	asr	w9, w0, #8
	stp	w8, w9, [x21, #16]
Lloh11:
	adrp	x8, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	mov	x1, x20
	bl	_saa711x_decode_vps
	cbnz	w0, LBB0_11
; %bb.9:
Lloh13:
	adrp	x8, _V4L2_SLICED_VPS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_SLICED_VPS@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_11:
	mov	w0, #0
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
_saa711x_decode_vbi_line.vbi_no_data_pattern: ; @saa711x_decode_vbi_line.vbi_no_data_pattern
	.space	10,160

	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_SLICED_TELETEXT_B,8,3     ; @V4L2_SLICED_TELETEXT_B
	.comm	_V4L2_SLICED_CAPTION_525,8,3    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,8,3        ; @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_VPS,8,3            ; @V4L2_SLICED_VPS
	.no_dead_strip	_saa711x_decode_vbi_line
.subsections_via_symbols
