	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_g_sliced_vbi_cap
_cx18_g_sliced_vbi_cap:                 ## @cx18_g_sliced_vbi_cap
	.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	%rdx, %r14
	movq	%rsi, %rdi
	callq	_fh2id
	movq	(%rax), %r15
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_SLICED_VBI_525@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_SLICED_VBI_625@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%r14), %rcx
	movq	_V4L2_BUF_TYPE_SLICED_VBI_CAPTURE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_4
## %bb.5:
	movl	(%rax), %r12d
	movl	$0, 8(%r14)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_valid_service_line
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, (%rcx,%rbx,4)
	orl	%r12d, 8(%r14)
	cmpq	$23, %rbx
	jne	LBB0_17
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, (%rcx,%rbx,4)
	cmpq	$23, %rbx
	je	LBB0_10
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rdx
	incq	%rbx
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	$0, (%rcx,%rbx,4)
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	$24, %rbx
	je	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_valid_service_line
	movq	16(%r14), %rcx
	movq	8(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r12d, (%rcx,%rbx,4)
	orl	%r12d, 8(%r14)
	jmp	LBB0_14
LBB0_15:
	movq	24(%r14), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SLICED_VBI_625,4,2        ## @V4L2_SLICED_VBI_625
	.comm	_V4L2_SLICED_VBI_525,4,2        ## @V4L2_SLICED_VBI_525
	.comm	_V4L2_BUF_TYPE_SLICED_VBI_CAPTURE,8,3 ## @V4L2_BUF_TYPE_SLICED_VBI_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cx18_g_sliced_vbi_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_g_sliced_vbi_cap
_cx18_g_sliced_vbi_cap:                 ; @cx18_g_sliced_vbi_cap
	.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, x2
	mov	x0, x1
	bl	_fh2id
	ldr	x21, [x0]
	ldr	x2, [x21]
Lloh0:
	adrp	x8, _V4L2_SLICED_VBI_625@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SLICED_VBI_625@GOTPAGEOFF]
Lloh2:
	adrp	x9, _V4L2_SLICED_VBI_525@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_SLICED_VBI_525@GOTPAGEOFF]
	cmp	x2, #0
	csel	x8, x9, x8, eq
	ldr	x9, [x19]
Lloh4:
	adrp	x10, _V4L2_BUF_TYPE_SLICED_VBI_CAPTURE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _V4L2_BUF_TYPE_SLICED_VBI_CAPTURE@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.1:
	mov	x20, #0
	ldr	w22, [x8]
	str	wzr, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	x1, x20
	bl	_valid_service_line
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w22, [x8, x20, lsl #2]
	ldr	w8, [x19, #8]
	orr	w8, w8, w22
	str	w8, [x19, #8]
	cmp	x20, #23
	b.ne	LBB0_5
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x8, x20, lsl #2]
	cmp	x20, #23
	b.eq	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x21]
	add	x20, x20, #1
	b	LBB0_2
LBB0_6:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	mov	x20, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	wzr, [x8, x20, lsl #2]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	cmp	x20, #24
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21]
	mov	w0, #1
	mov	x1, x20
	bl	_valid_service_line
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w22, [x8, x20, lsl #2]
	ldr	w8, [x19, #8]
	orr	w8, w8, w22
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_12:
	mov	w0, #0
	ldr	x8, [x19, #24]
	stp	xzr, xzr, [x8]
	str	xzr, [x8, #16]
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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SLICED_VBI_625,4,2        ; @V4L2_SLICED_VBI_625
	.comm	_V4L2_SLICED_VBI_525,4,2        ; @V4L2_SLICED_VBI_525
	.comm	_V4L2_BUF_TYPE_SLICED_VBI_CAPTURE,8,3 ; @V4L2_BUF_TYPE_SLICED_VBI_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cx18_g_sliced_vbi_cap
.subsections_via_symbols
