	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_convert_ivtv_vbi
_ivtv_convert_ivtv_vbi:                 ## @ivtv_convert_ivtv_vbi
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	$0, -48(%rbp)
	jmp	LBB0_5
LBB0_1:
	leaq	16(%r15), %rsi
	leaq	-48(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	addq	$48, %r15
	jmp	LBB0_5
LBB0_3:
	movabsq	$68719476735, %rax              ## imm = 0xFFFFFFFFF
	movq	%rax, -48(%rbp)
	addq	$16, %r15
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %eax
	leal	-32(%rbx), %ecx
	movzbl	%cl, %ecx
	btl	%ecx, %eax
	jae	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	-12(%rbx), %eax
	leal	6(%rbx), %ecx
	xorl	%edx, %edx
	cmpl	$18, %ebx
	cmovael	%eax, %ecx
	movq	(%r14), %rax
	movslq	%r12d, %r12
	leaq	(%r12,%r12,2), %rsi
	movl	%ecx, (%rax,%rsi,8)
	setae	%dl
	movl	%edx, 4(%rax,%rsi,8)
	movl	$0, 8(%rax,%rsi,8)
	movq	16(%rax,%rsi,8), %rdi
	leaq	4(%r15), %rsi
	movl	$42, %edx
	callq	_memcpy
	incl	%r12d
	addq	$172, %r15
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	$36, %ebx
	je	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$31, %ebx
	ja	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %eax
	btl	%ebx, %eax
	jb	LBB0_18
	jmp	LBB0_19
LBB0_8:
	cmpl	$35, %r12d
	jg	LBB0_15
## %bb.9:
	movq	(%r14), %rax
	movslq	%r12d, %rcx
	testb	$1, %r12b
	je	LBB0_11
## %bb.10:
	leaq	(%rcx,%rcx,2), %rdx
	movl	$0, 8(%rax,%rdx,8)
	movq	$0, (%rax,%rdx,8)
	incq	%rcx
LBB0_11:
	cmpl	$35, %r12d
	je	LBB0_14
## %bb.12:
	leal	-36(%rcx), %edx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	$32, %rax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -24(%rax)
	movq	$0, -32(%rax)
	movl	$0, (%rax)
	movq	$0, -8(%rax)
	addq	$48, %rax
	addl	$2, %edx
	jne	LBB0_13
LBB0_14:
	movl	$36, %r12d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.20:
	shll	$3, %r12d
	leal	(%r12,%r12,2), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"itv0"

L_.str.1:                               ## @.str.1
	.asciz	"ITV0"

	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ## @V4L2_SLICED_TELETEXT_B
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ## @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_VPS,4,2            ## @V4L2_SLICED_VPS
	.comm	_V4L2_SLICED_WSS_625,4,2        ## @V4L2_SLICED_WSS_625
	.no_dead_strip	_ivtv_convert_ivtv_vbi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ivtv_convert_ivtv_vbi
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	15                              ; 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ivtv_convert_ivtv_vbi:                 ; @ivtv_convert_ivtv_vbi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_4
; %bb.2:
	str	xzr, [sp, #8]
	b	LBB0_5
LBB0_3:
	add	x1, x20, #16
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy
	add	x20, x20, #48
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	add	x20, x20, #16
LBB0_5:
	mov	w21, #0
	mov	w22, #0
	mov	w23, #-12
	mov	w24, #6
	mov	w25, #24
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	cmp	w22, #36
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #31
	b.hi	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #8]
	lsr	w8, w8, w22
	tbnz	w8, #0, LBB0_10
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	lsr	w8, w8, w22
	tbz	w8, #0, LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, #18
	csel	w8, w24, w23, lo
	add	w8, w8, w22
	ldr	x9, [x19]
	smaddl	x9, w21, w25, x9
	cmp	w22, #17
	cset	w10, hi
	stp	w8, w10, [x9]
	str	wzr, [x9, #8]
	ldr	x0, [x9, #16]
	add	x1, x20, #4
	mov	w2, #42
	bl	_memcpy
	add	w21, w21, #1
	add	x20, x20, #172
	b	LBB0_6
LBB0_11:
	cmp	w21, #35
	b.gt	LBB0_19
; %bb.12:
	ldr	x8, [x19]
	sxtw	x12, w21
	mov	w9, #35
	sub	w10, w9, w21
	mov	x9, x12
	cmp	w10, #3
	b.lo	LBB0_16
; %bb.13:
	add	x10, x10, #1
	and	x11, x10, #0x1fffffffc
	add	x9, x11, x12
	mov	w13, #24
	madd	x12, x12, x13, x8
	add	x12, x12, #48
	movi.2d	v0, #0000000000000000
	mov	x13, x11
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x12, #-40]
	stur	wzr, [x12, #-16]
	str	wzr, [x12, #8]
	str	wzr, [x12, #32]
	stur	d0, [x12, #-48]
	stur	d0, [x12, #-24]
	str	d0, [x12]
	str	d0, [x12, #24]
	add	x12, x12, #96
	subs	x13, x13, #4
	b.ne	LBB0_14
; %bb.15:
	cmp	x10, x11
	b.eq	LBB0_18
LBB0_16:
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x8, x8, #8
	sub	w9, w9, #36
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x8]
	stur	xzr, [x8, #-8]
	add	x8, x8, #24
	adds	w9, w9, #1
	b.lo	LBB0_17
LBB0_18:
	mov	w21, #36
LBB0_19:
	add	w8, w21, w21, lsl #1
	lsl	w0, w8, #3
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"itv0"

l_.str.1:                               ; @.str.1
	.asciz	"ITV0"

	.comm	_V4L2_SLICED_TELETEXT_B,4,2     ; @V4L2_SLICED_TELETEXT_B
	.comm	_V4L2_SLICED_CAPTION_525,4,2    ; @V4L2_SLICED_CAPTION_525
	.comm	_V4L2_SLICED_VPS,4,2            ; @V4L2_SLICED_VPS
	.comm	_V4L2_SLICED_WSS_625,4,2        ; @V4L2_SLICED_WSS_625
	.no_dead_strip	_ivtv_convert_ivtv_vbi
.subsections_via_symbols
