	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_g_sliced_vbi_cap
_ivtv_g_sliced_vbi_cap:                 ## @ivtv_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	16(%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_13
## %bb.4:
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_valid_service_line
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	%r12d, (%rax,%rbx,4)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$23, %rbx
	je	LBB0_8
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r15), %rdx
	incq	%rbx
	jmp	LBB0_5
LBB0_13:
	movq	_V4L2_BUF_TYPE_SLICED_VBI_OUTPUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_15
## %bb.14:
	movq	_V4L2_CAP_SLICED_VBI_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_15
## %bb.16:
	cmpq	$0, 8(%r15)
	je	LBB0_18
## %bb.17:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movq	(%rcx), %rdx
	movl	%eax, 84(%rdx)
	movq	8(%rcx), %rsi
	movl	%eax, 84(%rsi)
	jmp	LBB0_19
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	$24, %rbx
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdx
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_valid_service_line
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movl	%r12d, (%rax,%rbx,4)
	jmp	LBB0_11
LBB0_12:
	movq	8(%r14), %rcx
	movq	(%rcx), %rdx
LBB0_19:
	movl	4(%rdx), %eax
	orl	(%rdx), %eax
	orl	8(%rdx), %eax
	orl	12(%rdx), %eax
	orl	16(%rdx), %eax
	orl	20(%rdx), %eax
	orl	24(%rdx), %eax
	orl	28(%rdx), %eax
	orl	32(%rdx), %eax
	orl	36(%rdx), %eax
	orl	40(%rdx), %eax
	orl	44(%rdx), %eax
	orl	48(%rdx), %eax
	orl	52(%rdx), %eax
	orl	56(%rdx), %eax
	orl	60(%rdx), %eax
	orl	64(%rdx), %eax
	orl	68(%rdx), %eax
	orl	72(%rdx), %eax
	orl	76(%rdx), %eax
	orl	80(%rdx), %eax
	orl	84(%rdx), %eax
	orl	88(%rdx), %eax
	orl	92(%rdx), %eax
	movq	8(%rcx), %rcx
	orl	(%rcx), %eax
	orl	4(%rcx), %eax
	orl	8(%rcx), %eax
	orl	12(%rcx), %eax
	orl	16(%rcx), %eax
	orl	20(%rcx), %eax
	orl	24(%rcx), %eax
	orl	28(%rcx), %eax
	orl	32(%rcx), %eax
	orl	36(%rcx), %eax
	orl	40(%rcx), %eax
	orl	44(%rcx), %eax
	orl	48(%rcx), %eax
	orl	52(%rcx), %eax
	orl	56(%rcx), %eax
	orl	60(%rcx), %eax
	orl	64(%rcx), %eax
	orl	68(%rcx), %eax
	orl	72(%rcx), %eax
	orl	76(%rcx), %eax
	orl	80(%rcx), %eax
	orl	84(%rcx), %eax
	orl	88(%rcx), %eax
	orl	92(%rcx), %eax
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movq	(%rcx), %rdx
	movl	%eax, 92(%rdx)
	movq	_V4L2_SLICED_VPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rdx)
	jmp	LBB0_19
	.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	_V4L2_BUF_TYPE_SLICED_VBI_OUTPUT,8,3 ## @V4L2_BUF_TYPE_SLICED_VBI_OUTPUT
	.comm	_V4L2_CAP_SLICED_VBI_OUTPUT,4,2 ## @V4L2_CAP_SLICED_VBI_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SLICED_CAPTION_525,8,3    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,4,2        ## @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_VPS,4,2            ## @V4L2_SLICED_VPS
	.no_dead_strip	_ivtv_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 ivtv_g_sliced_vbi_cap
_ivtv_g_sliced_vbi_cap:                 ; @ivtv_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, #16]
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]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	mov	x1, x20
	bl	_valid_service_line
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	w22, [x8, x20, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x20, #23
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x21, #16]
	add	x20, x20, #1
	b	LBB0_2
LBB0_6:
Lloh7:
	adrp	x8, _V4L2_BUF_TYPE_SLICED_VBI_OUTPUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_BUF_TYPE_SLICED_VBI_OUTPUT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.7:
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _V4L2_CAP_SLICED_VBI_OUTPUT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_CAP_SLICED_VBI_OUTPUT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.8:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.9:
Lloh13:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x8]
	ldr	x8, [x19, #8]
	ldp	x9, x11, [x8]
	str	w10, [x9, #84]
	str	w10, [x11, #84]
	b	LBB0_15
LBB0_10:
	mov	x20, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x20, x20, #1
	cmp	x20, #24
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21, #16]
	mov	w0, #1
	mov	x1, x20
	bl	_valid_service_line
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	str	w22, [x8, x20, lsl #2]
	b	LBB0_11
LBB0_14:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
LBB0_15:
	mov	w0, #0
	ldp	w10, w11, [x9]
	orr	w10, w11, w10
	ldp	w11, w12, [x9, #8]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #16]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #24]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #32]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #40]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #48]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #56]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #64]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #72]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w12, [x9, #80]
	orr	w10, w11, w10
	orr	w10, w12, w10
	ldp	w11, w9, [x9, #88]
	orr	w10, w11, w10
	orr	w9, w9, w10
	ldr	x8, [x8, #8]
	ldp	w10, w11, [x8]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #8]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #16]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #24]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #32]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #40]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #48]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #56]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #64]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #72]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w11, [x8, #80]
	orr	w9, w10, w9
	orr	w9, w11, w9
	ldp	w10, w8, [x8, #88]
	orr	w9, w10, w9
	orr	w8, w8, w9
	str	w8, [x19, #16]
	b	LBB0_17
LBB0_16:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
LBB0_18:
Lloh19:
	adrp	x8, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	str	w10, [x9, #92]
Lloh22:
	adrp	x10, _V4L2_SLICED_VPS@GOTPAGE
Lloh23:
	ldr	x10, [x10, _V4L2_SLICED_VPS@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	str	w10, [x9, #64]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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	_V4L2_BUF_TYPE_SLICED_VBI_OUTPUT,8,3 ; @V4L2_BUF_TYPE_SLICED_VBI_OUTPUT
	.comm	_V4L2_CAP_SLICED_VBI_OUTPUT,4,2 ; @V4L2_CAP_SLICED_VBI_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SLICED_CAPTION_525,8,3    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_WSS_625,4,2        ; @V4L2_SLICED_WSS_625
	.comm	_V4L2_SLICED_VPS,4,2            ; @V4L2_SLICED_VPS
	.no_dead_strip	_ivtv_g_sliced_vbi_cap
.subsections_via_symbols
