	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_vbi_work_handler          ## -- Begin function ivtv_vbi_work_handler
	.p2align	4, 0x90
_ivtv_vbi_work_handler:                 ## @ivtv_vbi_work_handler
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movups	L___const.ivtv_vbi_work_handler.cc(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%rdi), %rax
	movq	_OUT_PASSTHROUGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.2:
	movq	_V4L2_SLICED_WSS_625@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -64(%rbp)
	movl	12(%rbx), %edi
	movq	_vbi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_vbi_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	callq	_v4l2_subdev_call
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	24(%rbx), %eax
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_ivtv_set_wss
	jmp	LBB0_29
LBB0_17:
	movq	_IVTV_F_I_UPDATE_WSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	32(%rbx), %edx
	andl	$15, %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ivtv_set_wss
LBB0_19:
	movq	_IVTV_F_I_UPDATE_CC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_27
## %bb.20:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_ivtv_set_cc
	movq	40(%rbx), %rax
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	48(%rbx), %rdi
	movups	(%rdi), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	16(%rdi), %rsi
	movl	$-8, %edx
	callq	_memmove
	decq	40(%rbx)
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-80(%rbp), %rcx
	cmpl	$128, (%rcx)
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$1, %eax
	cmpl	$128, 4(%rcx)
	je	LBB0_22
LBB0_26:
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_ivtv_set_cc
LBB0_27:
	movq	_IVTV_F_I_UPDATE_VPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ivtv_set_vps
	jmp	LBB0_29
LBB0_7:
	movq	_V4L2_SLICED_CAPTION_525@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -64(%rbp)
	movl	12(%rbx), %edi
	movq	_vbi@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_g_vbi_data@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-64(%rbp), %rcx
	callq	_v4l2_subdev_call
	movq	%rax, %r15
	movl	$2, %r14d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, 128
	movl	4(%rax), %eax
	movl	%eax, 132
	movl	$3, %r14d
LBB0_9:
	movl	$1, -64(%rbp)
	movl	12(%rbx), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	-64(%rbp), %rcx
	callq	_v4l2_subdev_call
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	testq	%r15, %r15
	je	LBB0_12
## %bb.14:
	movl	28(%rbx), %eax
	cmpl	$4, %eax
	jne	LBB0_16
## %bb.15:
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ivtv_set_cc
	jmp	LBB0_29
LBB0_3:
	movq	-56(%rbp), %rax
	movl	(%rax), %edx
	andl	$15, %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ivtv_set_wss
	movl	$0, 24(%rbx)
	jmp	LBB0_29
LBB0_6:
	incl	%eax
	movl	%eax, 24(%rbx)
	jmp	LBB0_29
LBB0_10:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, 128
	movl	4(%rax), %eax
	movl	%eax, 132
	jmp	LBB0_13
LBB0_12:
	movl	$1, %r14d
LBB0_13:
	movl	$0, 28(%rbx)
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ivtv_set_cc
	jmp	LBB0_29
LBB0_16:
	incl	%eax
	movl	%eax, 28(%rbx)
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3                               ## @__const.ivtv_vbi_work_handler.cc
L___const.ivtv_vbi_work_handler.cc:
	.quad	128
	.quad	128

	.comm	_OUT_PASSTHROUGH,8,3            ## @OUT_PASSTHROUGH
	.comm	_V4L2_SLICED_WSS_625,4,2        ## @V4L2_SLICED_WSS_625
	.comm	_vbi,4,2                        ## @vbi
	.comm	_g_vbi_data,4,2                 ## @g_vbi_data
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ## @V4L2_SLICED_CAPTION_525
	.comm	_IVTV_F_I_UPDATE_WSS,4,2        ## @IVTV_F_I_UPDATE_WSS
	.comm	_IVTV_F_I_UPDATE_CC,4,2         ## @IVTV_F_I_UPDATE_CC
	.comm	_IVTV_F_I_UPDATE_VPS,4,2        ## @IVTV_F_I_UPDATE_VPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_vbi_work_handler          ; -- Begin function ivtv_vbi_work_handler
	.p2align	2
_ivtv_vbi_work_handler:                 ; @ivtv_vbi_work_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
Lloh0:
	adrp	x8, l___const.ivtv_vbi_work_handler.cc@PAGE
Lloh1:
	add	x8, x8, l___const.ivtv_vbi_work_handler.cc@PAGEOFF
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _OUT_PASSTHROUGH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OUT_PASSTHROUGH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
; %bb.2:
Lloh6:
	adrp	x8, _V4L2_SLICED_WSS_625@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_SLICED_WSS_625@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	wzr, [sp, #24]
	ldr	w0, [x19, #12]
Lloh9:
	adrp	x8, _vbi@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vbi@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _g_vbi_data@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_vbi_data@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #24
	bl	_v4l2_subdev_call
	cbz	x0, LBB0_19
; %bb.3:
	ldr	w8, [x19, #24]
	cmp	w8, #4
	b.ne	LBB0_20
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #8
	bl	_ivtv_set_wss
	b	LBB0_30
LBB0_5:
Lloh15:
	adrp	x8, _IVTV_F_I_UPDATE_WSS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IVTV_F_I_UPDATE_WSS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #32]
	and	w2, w8, #0xf
	mov	x0, x19
	mov	w1, #1
	bl	_ivtv_set_wss
LBB0_7:
Lloh18:
	adrp	x21, _IVTV_F_I_UPDATE_CC@GOTPAGE
Lloh19:
	ldr	x21, [x21, _IVTV_F_I_UPDATE_CC@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_15
; %bb.8:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_clear_bit
	mov	x2, sp
	mov	x0, x19
	mov	w1, #3
	bl	_ivtv_set_cc
	ldr	x8, [x19, #40]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x19, #48]
	ldr	q0, [x0]
	str	q0, [sp]
	add	x1, x0, #16
	mov	w2, #-8
	bl	_memmove
	ldr	x8, [x19, #40]
	subs	x8, x8, #1
	str	x8, [x19, #40]
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp]
	ldr	w9, [x8]
	cmp	w9, #128
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x8, #4]
	mov	w8, #1
	cmp	w9, #128
	b.eq	LBB0_10
LBB0_14:
	mov	x2, sp
	mov	x0, x19
	mov	w1, #3
	bl	_ivtv_set_cc
LBB0_15:
Lloh20:
	adrp	x8, _IVTV_F_I_UPDATE_VPS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IVTV_F_I_UPDATE_VPS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_30
; %bb.16:
	mov	x0, x19
	mov	w1, #1
	bl	_ivtv_set_vps
	b	LBB0_30
LBB0_17:
Lloh23:
	adrp	x8, _V4L2_SLICED_CAPTION_525@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_SLICED_CAPTION_525@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	wzr, [sp, #24]
	ldr	w0, [x19, #12]
Lloh26:
	adrp	x22, _vbi@GOTPAGE
Lloh27:
	ldr	x22, [x22, _vbi@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh28:
	adrp	x23, _g_vbi_data@GOTPAGE
Lloh29:
	ldr	x23, [x23, _g_vbi_data@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x3, sp, #24
	bl	_v4l2_subdev_call
	mov	x21, x0
	cbz	x0, LBB0_21
; %bb.18:
	mov	w20, #2
	b	LBB0_22
LBB0_19:
	ldr	x8, [sp, #32]
	ldr	w8, [x8]
	and	w2, w8, #0xf
	mov	x0, x19
	mov	w1, #1
	bl	_ivtv_set_wss
	str	wzr, [x19, #24]
	b	LBB0_30
LBB0_20:
	add	w8, w8, #1
	str	w8, [x19, #24]
	b	LBB0_30
LBB0_21:
	ldr	x8, [sp, #32]
	ldr	w9, [x8]
	mov	w10, #128
	str	w9, [x10]
	ldr	w8, [x8, #4]
	mov	w9, #132
	str	w8, [x9]
	mov	w20, #3
LBB0_22:
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	w0, [x19, #12]
	ldr	w1, [x22]
	ldr	w2, [x23]
	add	x3, sp, #24
	bl	_v4l2_subdev_call
	cbz	x0, LBB0_26
; %bb.23:
	cbz	x21, LBB0_27
; %bb.24:
	ldr	w8, [x19, #28]
	cmp	w8, #4
	b.ne	LBB0_29
; %bb.25:
	mov	x2, sp
	mov	x0, x19
	mov	w1, #0
	bl	_ivtv_set_cc
	b	LBB0_30
LBB0_26:
	ldr	x8, [sp, #32]
	ldr	w9, [x8]
	mov	w10, #128
	str	w9, [x10]
	ldr	w8, [x8, #4]
	mov	w9, #132
	str	w8, [x9]
	b	LBB0_28
LBB0_27:
	mov	w20, #1
LBB0_28:
	str	wzr, [x19, #28]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_ivtv_set_cc
	b	LBB0_30
LBB0_29:
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_30:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAddLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3                               ; @__const.ivtv_vbi_work_handler.cc
l___const.ivtv_vbi_work_handler.cc:
	.quad	128
	.quad	128

	.comm	_OUT_PASSTHROUGH,8,3            ; @OUT_PASSTHROUGH
	.comm	_V4L2_SLICED_WSS_625,4,2        ; @V4L2_SLICED_WSS_625
	.comm	_vbi,4,2                        ; @vbi
	.comm	_g_vbi_data,4,2                 ; @g_vbi_data
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ; @V4L2_SLICED_CAPTION_525
	.comm	_IVTV_F_I_UPDATE_WSS,4,2        ; @IVTV_F_I_UPDATE_WSS
	.comm	_IVTV_F_I_UPDATE_CC,4,2         ; @IVTV_F_I_UPDATE_CC
	.comm	_IVTV_F_I_UPDATE_VPS,4,2        ; @IVTV_F_I_UPDATE_VPS
.subsections_via_symbols
