	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_frame_data_em28xx
_process_frame_data_em28xx:             ## @process_frame_data_em28xx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movq	(%rdi), %r13
	movq	8(%rdi), %rsi
	cmpl	$4, %edx
	jb	LBB0_13
## %bb.1:
	movb	(%r14), %al
	cmpb	$51, %al
	je	LBB0_7
## %bb.2:
	cmpb	$34, %al
	je	LBB0_9
## %bb.3:
	cmpb	$-120, %al
	jne	LBB0_13
## %bb.4:
	cmpb	$-120, 1(%r14)
	jne	LBB0_13
## %bb.5:
	cmpb	$-120, 2(%r14)
	jne	LBB0_13
## %bb.6:
	cmpb	$-120, 3(%r14)
	je	LBB0_12
	jmp	LBB0_13
LBB0_7:
	cmpb	$-107, 1(%r14)
	jne	LBB0_13
## %bb.8:
	movq	$0, (%r12)
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_9:
	cmpb	$90, 1(%r14)
	jne	LBB0_13
## %bb.10:
	movl	$2, (%r12)
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_em28xx_isocdbg
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movzbl	2(%r14), %eax
	notl	%eax
	andl	$1, %eax
	movl	%eax, 8(%r12)
LBB0_12:
	addq	$4, %r14
	addl	$-4, %r15d
LBB0_13:
	movl	(%r12), %eax
	cmpl	$1, %eax
	je	LBB0_14
## %bb.15:
	testl	%eax, %eax
	jne	LBB0_21
## %bb.16:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	leaq	16(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_finish_field_prepare_next
	movq	%rax, %rsi
	movq	%rax, 8(%rbx)
	movl	$1, (%r12)
	jmp	LBB0_17
LBB0_14:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
LBB0_17:
	movl	16(%r12), %ecx
	imull	12(%r12), %ecx
	movl	4(%r12), %eax
	leal	(%rax,%r15), %edx
	movl	%ecx, %r14d
	subl	%eax, %r14d
	cmpl	%ecx, %edx
	cmovbel	%r15d, %r14d
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_em28xx_copy_vbi
	movl	4(%r12), %eax
LBB0_19:
	addl	%r14d, %eax
	movl	%eax, 4(%r12)
	movl	%r15d, %eax
	subl	%r14d, %eax
	jbe	LBB0_20
## %bb.22:
	movl	$2, (%r12)
	movslq	%r14d, %rcx
	movq	%r13, %r14
	addq	%rcx, %r14
	movl	%eax, %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_20:
	movl	(%r12), %eax
	movq	%r13, %r14
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_21:
	cmpl	$2, %eax
	jne	LBB0_24
LBB0_23:
	leaq	20(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_finish_field_prepare_next
	movq	%rax, %r13
	movq	%rax, (%rbx)
	movl	$3, (%r12)
	movl	$3, %eax
LBB0_24:
	cmpl	$3, %eax
	jne	LBB0_27
## %bb.25:
	testq	%r13, %r13
	je	LBB0_27
## %bb.26:
	testl	%r15d, %r15d
	je	LBB0_27
## %bb.28:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_em28xx_copy_video              ## TAILCALL
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VBI START HEADER !!!\n"

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

	.no_dead_strip	_process_frame_data_em28xx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_frame_data_em28xx
_process_frame_data_em28xx:             ; @process_frame_data_em28xx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x25, [x0, #24]
	ldp	x21, x23, [x0]
	subs	w24, w2, #4
	b.lo	LBB0_13
; %bb.1:
	ldrb	w8, [x19]
	cmp	w8, #34
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #51
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #136
	b.ne	LBB0_13
; %bb.4:
	ldrb	w8, [x19, #1]
	cmp	w8, #136
	b.ne	LBB0_13
; %bb.5:
	ldrb	w8, [x19, #2]
	cmp	w8, #136
	b.ne	LBB0_13
; %bb.6:
	ldrb	w8, [x19, #3]
	cmp	w8, #136
	b.eq	LBB0_12
	b	LBB0_13
LBB0_7:
	ldrb	w8, [x19, #1]
	cmp	w8, #90
	b.ne	LBB0_13
; %bb.8:
	mov	w8, #2
	str	w8, [x25]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldrb	w8, [x19, #1]
	cmp	w8, #149
	b.ne	LBB0_13
; %bb.10:
	str	xzr, [x25]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_em28xx_isocdbg
	ldrb	w8, [x19, #2]
	mvn	w8, w8
	and	w8, w8, #0x1
	str	w8, [x25, #8]
LBB0_12:
	add	x19, x19, #4
	mov	x22, x24
LBB0_13:
	ldr	w8, [x25]
	cmp	w8, #1
	b.eq	LBB0_16
; %bb.14:
	cbnz	w8, LBB0_21
; %bb.15:
	add	x2, x20, #16
	mov	x0, x20
	mov	x1, x23
	bl	_finish_field_prepare_next
	mov	x23, x0
	str	x0, [x20, #8]
	mov	w8, #1
	str	w8, [x25]
LBB0_16:
	ldp	w8, w9, [x25, #12]
	mul	w9, w9, w8
	ldr	w8, [x25, #4]
	sub	w10, w9, w8
	add	w11, w8, w22
	cmp	w11, w9
	csel	w24, w10, w22, hi
	cbz	x23, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x24
	bl	_em28xx_copy_vbi
	ldr	w8, [x25, #4]
LBB0_18:
	add	w8, w8, w24
	str	w8, [x25, #4]
	subs	w8, w22, w24
	b.ls	LBB0_20
; %bb.19:
	mov	w9, #2
	str	w9, [x25]
	add	x19, x19, w24, sxtw
	mov	x22, x8
	b	LBB0_22
LBB0_20:
	ldr	w8, [x25]
LBB0_21:
	cmp	w8, #2
	b.ne	LBB0_23
LBB0_22:
	add	x2, x20, #20
	mov	x0, x20
	mov	x1, x21
	bl	_finish_field_prepare_next
	mov	x21, x0
	str	x0, [x20]
	mov	w8, #3
	str	w8, [x25]
LBB0_23:
	cmp	w8, #3
	ccmp	x21, #0, #4, eq
	ccmp	w22, #0, #4, ne
	b.ne	LBB0_25
; %bb.24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_em28xx_copy_video
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VBI START HEADER !!!\n"

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

	.no_dead_strip	_process_frame_data_em28xx
.subsections_via_symbols
