	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_isoc_copy_vbi
_em28xx_isoc_copy_vbi:                  ## @em28xx_isoc_copy_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_86
## %bb.1:
	movq	%rdi, %r13
	movl	(%rdi), %eax
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_86
## %bb.2:
	movq	_DEV_MISCONFIGURED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_86
## %bb.3:
	movq	%rsi, %r15
	movl	(%rsi), %edx
	testl	%edx, %edx
	jns	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_print_err_status
	movl	(%r15), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_86
LBB0_5:
	movq	48(%r13), %rdi
	movq	%rdi, -72(%rbp)
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	addq	$4, %rdi
	callq	_videobuf_to_vmalloc
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	40(%r13), %rdi
	movq	%rdi, -64(%rbp)
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	addq	$4, %rdi
	callq	_videobuf_to_vmalloc
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	cmpl	$0, 4(%r15)
	jle	LBB0_86
## %bb.12:
	leaq	64(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	56(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_15 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_em28xx_isocdbg
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r12
	movslq	4(%r15), %rax
	addq	$12, %r14
	cmpq	%rax, %r12
	jge	LBB0_85
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r14), %edx
	testl	%edx, %edx
	jns	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_print_err_status
	movq	16(%r15), %rax
	movl	(%rax,%r14), %ecx
	movq	_EPROTO@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	jne	LBB0_14
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	4(%rax,%r14), %ebx
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	4(%r13), %ebx
	jg	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%r15), %rcx
	movslq	8(%rax,%r14), %rax
	leaq	(%rcx,%rax), %r8
	movzbl	(%rcx,%rax), %eax
	cmpb	$-120, %al
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$34, %al
	je	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$51, %al
	jne	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$-107, 1(%r8)
	jne	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	$0, 8(%r13)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	callq	_em28xx_isocdbg
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movzbl	2(%r8), %eax
	movb	%al, 16(%r13)
	jmp	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$-120, 1(%r8)
	jne	LBB0_29
## %bb.25:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$-120, 2(%r8)
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$-120, 3(%r8)
	je	LBB0_28
	jmp	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$90, 1(%r8)
	jne	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$4, %r8
	addl	$-4, %ebx
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	8(%r13), %eax
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$1, %eax
	je	LBB0_48
	jmp	LBB0_56
LBB0_31:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	24(%r13), %eax
	imull	20(%r13), %eax
	movl	12(%r13), %ecx
	movl	%eax, %r15d
	subl	%ecx, %r15d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jle	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_15 Depth=1
	leal	(%rcx,%rbx), %edx
	cmpl	%eax, %edx
	jge	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%ecx, %ecx
	je	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_44
LBB0_35:                                ##   in Loop: Header=BB0_15 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_em28xx_isocdbg
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_47
LBB0_36:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, 12(%r13)
	movq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r8, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	%r15d, %r9d
	callq	_em28xx_copy_vbi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movslq	%r15d, %rax
	addq	%rax, %r8
	subl	%eax, %ebx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_48
LBB0_37:                                ##   in Loop: Header=BB0_15 Depth=1
	testb	$1, 16(%r13)
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_44
## %bb.38:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	callq	_vbi_buffer_filled
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_40:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rsi, %rdi
	leaq	-64(%rbp), %rsi
	callq	_vbi_get_next_buf
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$4, %rdi
	callq	_videobuf_to_vmalloc
	jmp	LBB0_43
LBB0_42:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%eax, %eax
LBB0_43:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_44:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	12(%r13), %eax
	testl	%eax, %eax
	je	LBB0_76
## %bb.45:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rdx
LBB0_46:                                ##   in Loop: Header=BB0_15 Depth=1
	addl	%ebx, %eax
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r8, %rcx
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_em28xx_copy_vbi
LBB0_47:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	8(%r13), %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	cmpl	$1, %eax
	jne	LBB0_56
LBB0_48:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$2, 8(%r13)
	cmpq	$0, 32(%r13)
	jne	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_15 Depth=1
	testb	$1, 16(%r13)
	jne	LBB0_54
LBB0_50:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	callq	_buffer_filled
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_52:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rsi, %rdi
	leaq	-72(%rbp), %rsi
	callq	_get_next_buf
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.53:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$4, %rdi
	callq	_videobuf_to_vmalloc
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_54:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_58
## %bb.55:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	16(%r13), %eax
	notl	%eax
	andl	$1, %eax
	movl	%eax, (%rdx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_56:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-72(%rbp), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testq	%rdx, %rdx
	jne	LBB0_60
	jmp	LBB0_14
LBB0_57:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%edx, %edx
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_59
LBB0_58:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%edx, %edx
LBB0_59:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	$0, (%rsi)
	testq	%rdx, %rdx
	je	LBB0_14
LBB0_60:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$2, 8(%r13)
	jne	LBB0_14
## %bb.61:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$4, %ebx
	jl	LBB0_72
## %bb.62:                              ##   in Loop: Header=BB0_15 Depth=1
	movzbl	(%r8), %eax
	cmpb	$-120, %al
	jne	LBB0_68
## %bb.63:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$-120, 1(%r8)
	jne	LBB0_83
## %bb.64:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$-120, 2(%r8)
	jne	LBB0_83
## %bb.65:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$-120, 3(%r8)
	jne	LBB0_83
## %bb.66:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$4, %r8
	addl	$-4, %ebx
	cmpl	$4, %ebx
	jb	LBB0_71
## %bb.67:                              ##   in Loop: Header=BB0_15 Depth=1
	movzbl	(%r8), %eax
LBB0_68:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$34, %al
	jne	LBB0_83
## %bb.69:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpb	$90, 1(%r8)
	jne	LBB0_83
## %bb.70:                              ##   in Loop: Header=BB0_15 Depth=1
	movzbl	2(%r8), %esi
	testb	$1, %sil
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %rax
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	callq	_em28xx_isocdbg
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	addq	$4, %r8
	addl	$-4, %ebx
LBB0_71:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_72:                                ##   in Loop: Header=BB0_15 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_14
## %bb.73:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-72(%rbp), %rdx
	jmp	LBB0_84
LBB0_83:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_84:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r13, %rdi
	movq	%r8, %rcx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_em28xx_copy_video
	jmp	LBB0_14
LBB0_76:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rcx)
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_81
## %bb.77:                              ##   in Loop: Header=BB0_15 Depth=1
	testb	$1, 16(%r13)
	jne	LBB0_82
## %bb.78:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1, (%rdx)
	jmp	LBB0_46
LBB0_81:                                ##   in Loop: Header=BB0_15 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_46
LBB0_82:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	$0, (%rdx)
	jmp	LBB0_46
LBB0_85:
	movl	$1, %ebx
LBB0_86:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_DISCONNECTED,4,2           ## @DEV_DISCONNECTED
	.comm	_DEV_MISCONFIGURED,4,2          ## @DEV_MISCONFIGURED
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROTO,4,2                     ## @EPROTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet bigger than packet size"

L_.str.1:                               ## @.str.1
	.asciz	"VBI START HEADER!!!\n"

L_.str.2:                               ## @.str.2
	.asciz	"dev->vbi_read > vbi_size\n"

L_.str.3:                               ## @.str.3
	.asciz	"Video frame %d, len=%i, %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"odd"

L_.str.5:                               ## @.str.5
	.asciz	"even"

	.no_dead_strip	_em28xx_isoc_copy_vbi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_isoc_copy_vbi
_em28xx_isoc_copy_vbi:                  ; @em28xx_isoc_copy_vbi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DEV_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEV_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _DEV_MISCONFIGURED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEV_MISCONFIGURED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	mov	x19, x1
	ldr	w2, [x1]
	tbz	w2, #31, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #-1
	bl	_print_err_status
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _ENOENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_3
LBB0_7:
	ldr	x8, [x20, #48]
	str	x8, [sp, #56]
	cbz	x8, LBB0_9
; %bb.8:
	add	x0, x8, #4
	bl	_videobuf_to_vmalloc
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_10
LBB0_9:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
LBB0_10:
	ldr	x8, [x20, #40]
	str	x8, [sp, #48]
	cbz	x8, LBB0_12
; %bb.11:
	add	x0, x8, #4
	bl	_videobuf_to_vmalloc
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_13
LBB0_12:
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
LBB0_13:
	ldr	w8, [x19, #4]
	mov	w21, #1
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.14:
	mov	x25, #0
	mov	x23, #0
	add	x24, x20, #64
Lloh9:
	adrp	x28, _EPROTO@GOTPAGE
Lloh10:
	ldr	x28, [x28, _EPROTO@GOTPAGEOFF]
	add	x22, x20, #56
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_em28xx_isocdbg
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	add	x25, x25, #12
	cmp	x23, x8
	b.ge	LBB0_82
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x25]
	tbz	w2, #31, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_print_err_status
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x25]
	ldr	w10, [x28]
	cmn	w9, w10
	b.ne	LBB0_16
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x9, x8, x25
	ldr	w26, [x9, #4]
	cmp	w26, #1
	b.lt	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w9, [x20, #4]
	cmp	w26, w9
	b.gt	LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x9, [x19, #8]
	add	x8, x8, x25
	ldrsw	x8, [x8, #8]
	add	x27, x9, x8
	ldrb	w8, [x27]
	cmp	w8, #34
	b.eq	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w8, #136
	b.eq	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w8, #51
	b.ne	LBB0_31
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #1]
	cmp	w8, #149
	b.ne	LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_17 Depth=1
	str	xzr, [x20, #8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_em28xx_isocdbg
	ldrb	w8, [x27, #2]
	strb	w8, [x20, #16]
	add	x27, x27, #4
	sub	w26, w26, #4
	b	LBB0_31
LBB0_26:                                ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #1]
	add	x9, x27, #4
	sub	w10, w26, #4
	cmp	w8, #90
	b	LBB0_30
LBB0_27:                                ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #1]
	cmp	w8, #136
	b.ne	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #2]
	cmp	w8, #136
	b.ne	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #3]
	add	x9, x27, #4
	sub	w10, w26, #4
	cmp	w8, #136
LBB0_30:                                ;   in Loop: Header=BB0_17 Depth=1
	csel	w26, w26, w10, ne
	csel	x27, x27, x9, ne
LBB0_31:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w8, #1
	b.eq	LBB0_49
	b	LBB0_58
LBB0_33:                                ;   in Loop: Header=BB0_17 Depth=1
	ldp	w8, w9, [x20, #20]
	mul	w8, w9, w8
	ldr	w9, [x20, #12]
	subs	w28, w8, w9
	b.le	LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w10, w9, w26
	cmp	w10, w8
	b.ge	LBB0_38
; %bb.35:                               ;   in Loop: Header=BB0_17 Depth=1
	cbz	w9, LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh15:
	adrp	x28, _EPROTO@GOTPAGE
Lloh16:
	ldr	x28, [x28, _EPROTO@GOTPAGEOFF]
	b	LBB0_45
LBB0_37:                                ;   in Loop: Header=BB0_17 Depth=1
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_em28xx_isocdbg
Lloh19:
	adrp	x28, _EPROTO@GOTPAGE
Lloh20:
	ldr	x28, [x28, _EPROTO@GOTPAGEOFF]
	b	LBB0_48
LBB0_38:                                ;   in Loop: Header=BB0_17 Depth=1
	str	w8, [x20, #12]
	ldr	x2, [sp, #48]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x27
	ldr	x4, [sp, #32]                   ; 8-byte Folded Reload
	mov	x5, x28
	bl	_em28xx_copy_vbi
	add	x27, x27, w28, sxtw
	sub	w26, w26, w28
Lloh21:
	adrp	x28, _EPROTO@GOTPAGE
Lloh22:
	ldr	x28, [x28, _EPROTO@GOTPAGEOFF]
	b	LBB0_49
LBB0_39:                                ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x20, #16]
Lloh23:
	adrp	x28, _EPROTO@GOTPAGE
Lloh24:
	ldr	x28, [x28, _EPROTO@GOTPAGEOFF]
	tbnz	w8, #0, LBB0_45
; %bb.40:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x2, [sp, #48]
	mov	x8, x22
	cbz	x2, LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	bl	_vbi_buffer_filled
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
LBB0_42:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x1, sp, #48
	mov	x0, x8
	bl	_vbi_get_next_buf
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x0, x8, #4
	bl	_videobuf_to_vmalloc
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_17 Depth=1
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
LBB0_45:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_74
; %bb.46:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x2, [sp, #48]
LBB0_47:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w8, w8, w26
	str	w8, [x20, #12]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x27
	ldr	x4, [sp, #32]                   ; 8-byte Folded Reload
	mov	x5, x26
	bl	_em28xx_copy_vbi
LBB0_48:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_58
LBB0_49:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	w8, #2
	str	w8, [x20, #8]
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_51
; %bb.50:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x20, #16]
	tbnz	w8, #0, LBB0_55
LBB0_51:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x2, [sp, #56]
	cbz	x2, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_buffer_filled
LBB0_53:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x1, sp, #56
	mov	x0, x24
	bl	_get_next_buf
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_59
; %bb.54:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x0, x8, #4
	bl	_videobuf_to_vmalloc
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
LBB0_55:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x2, [sp, #56]
	cbz	x2, LBB0_57
; %bb.56:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x20, #16]
	mvn	w8, w8
	and	w8, w8, #0x1
	str	w8, [x2]
LBB0_57:                                ;   in Loop: Header=BB0_17 Depth=1
	str	xzr, [x24]
	cbnz	x2, LBB0_60
	b	LBB0_16
LBB0_58:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x2, [sp, #56]
	cbnz	x2, LBB0_60
	b	LBB0_16
LBB0_59:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x2, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	str	xzr, [x24]
	cbz	x2, LBB0_16
LBB0_60:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x20, #8]
	cmp	w8, #2
	b.ne	LBB0_16
; %bb.61:                               ;   in Loop: Header=BB0_17 Depth=1
	subs	w28, w26, #4
	b.lt	LBB0_79
; %bb.62:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27]
	cmp	w8, #136
	b.ne	LBB0_68
; %bb.63:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #1]
	cmp	w8, #136
	b.ne	LBB0_73
; %bb.64:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #2]
	cmp	w8, #136
	b.ne	LBB0_73
; %bb.65:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #3]
	cmp	w8, #136
	b.ne	LBB0_73
; %bb.66:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x27, x27, #4
	cmp	w28, #4
	b.lo	LBB0_78
; %bb.67:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27]
	b	LBB0_69
LBB0_68:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x28, x26
LBB0_69:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	w8, #34
	b.ne	LBB0_72
; %bb.70:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #1]
	cmp	w8, #90
	b.ne	LBB0_72
; %bb.71:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w8, [x27, #2]
	tst	w8, #0x1
Lloh25:
	adrp	x9, l_.str.4@PAGE
Lloh26:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh27:
	adrp	x10, l_.str.5@PAGE
Lloh28:
	add	x10, x10, l_.str.5@PAGEOFF
	csel	x9, x10, x9, eq
	stp	x8, x28, [sp]
	str	x9, [sp, #16]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_em28xx_isocdbg
	add	x27, x27, #4
	sub	w26, w28, #4
	b	LBB0_79
LBB0_72:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x26, x28
LBB0_73:                                ;   in Loop: Header=BB0_17 Depth=1
Lloh31:
	adrp	x28, _EPROTO@GOTPAGE
Lloh32:
	ldr	x28, [x28, _EPROTO@GOTPAGEOFF]
	b	LBB0_81
LBB0_74:                                ;   in Loop: Header=BB0_17 Depth=1
	str	xzr, [x22]
	ldr	x2, [sp, #48]
	cbz	x2, LBB0_47
; %bb.75:                               ;   in Loop: Header=BB0_17 Depth=1
	ldrb	w9, [x20, #16]
	tbnz	w9, #0, LBB0_77
; %bb.76:                               ;   in Loop: Header=BB0_17 Depth=1
	str	w21, [x2]
	b	LBB0_47
LBB0_77:                                ;   in Loop: Header=BB0_17 Depth=1
	str	wzr, [x2]
	b	LBB0_47
LBB0_78:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x26, x28
LBB0_79:                                ;   in Loop: Header=BB0_17 Depth=1
Lloh33:
	adrp	x28, _EPROTO@GOTPAGE
Lloh34:
	ldr	x28, [x28, _EPROTO@GOTPAGEOFF]
	cmp	w26, #1
	b.lt	LBB0_16
; %bb.80:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x2, [sp, #56]
LBB0_81:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	x3, x27
	ldr	x4, [sp, #40]                   ; 8-byte Folded Reload
	mov	x5, x26
	bl	_em28xx_copy_video
	b	LBB0_16
LBB0_82:
	mov	w21, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.comm	_DEV_MISCONFIGURED,4,2          ; @DEV_MISCONFIGURED
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROTO,4,2                     ; @EPROTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet bigger than packet size"

l_.str.1:                               ; @.str.1
	.asciz	"VBI START HEADER!!!\n"

l_.str.2:                               ; @.str.2
	.asciz	"dev->vbi_read > vbi_size\n"

l_.str.3:                               ; @.str.3
	.asciz	"Video frame %d, len=%i, %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"odd"

l_.str.5:                               ; @.str.5
	.asciz	"even"

	.no_dead_strip	_em28xx_isoc_copy_vbi
.subsections_via_symbols
