	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_frame_data_em25xx
_process_frame_data_em25xx:             ## @process_frame_data_em25xx
	.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, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	leaq	24(%rdi), %r8
	xorl	%r14d, %r14d
	cmpl	$2, %edx
	jb	LBB0_6
## %bb.1:
	movb	(%r13), %al
	movq	_EM25XX_FRMDATAHDR_BYTE1@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_6
## %bb.2:
	movzbl	1(%r13), %eax
	movq	_EM25XX_FRMDATAHDR_BYTE2_MASK@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	notl	%ecx
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.3:
	movq	_EM25XX_FRMDATAHDR_BYTE2_FRAME_ID@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andb	(%rcx), %al
	movq	16(%rbx), %rax
	sete	%dl
	movl	%edx, (%rax)
	movq	_EM25XX_FRMDATAHDR_BYTE2_FRAME_END@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	andb	1(%r13), %al
	movzbl	%al, %r14d
	addq	$2, %r13
	addl	$-2, %r12d
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	testb	%al, %al
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r8, %rdx
	movq	%r8, %r14
	callq	_finish_field_prepare_next
	movq	%r14, %r8
	movq	%rax, %r15
	movq	%rax, (%rbx)
	movl	$1, %r14d
LBB0_6:
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movq	%r8, %r12
	callq	_em28xx_copy_video
	movq	%r12, %r8
LBB0_9:
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.10:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r8, %rdx
	callq	_finish_field_prepare_next
	movq	%rax, (%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EM25XX_FRMDATAHDR_BYTE1,1,0    ## @EM25XX_FRMDATAHDR_BYTE1
	.comm	_EM25XX_FRMDATAHDR_BYTE2_MASK,1,0 ## @EM25XX_FRMDATAHDR_BYTE2_MASK
	.comm	_EM25XX_FRMDATAHDR_BYTE2_FRAME_ID,1,0 ## @EM25XX_FRMDATAHDR_BYTE2_FRAME_ID
	.comm	_EM25XX_FRMDATAHDR_BYTE2_FRAME_END,1,0 ## @EM25XX_FRMDATAHDR_BYTE2_FRAME_END
	.no_dead_strip	_process_frame_data_em25xx
.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_em25xx
_process_frame_data_em25xx:             ; @process_frame_data_em25xx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x3, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0]
	add	x20, x0, #24
	subs	w23, w2, #2
	b.lo	LBB0_3
; %bb.1:
	ldrb	w8, [x22]
Lloh0:
	adrp	x9, _EM25XX_FRMDATAHDR_BYTE1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EM25XX_FRMDATAHDR_BYTE1@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldrb	w8, [x22, #1]
Lloh2:
	adrp	x9, _EM25XX_FRMDATAHDR_BYTE2_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EM25XX_FRMDATAHDR_BYTE2_MASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_9
LBB0_3:
	mov	w24, #0
LBB0_4:
	cmp	x21, #0
	ccmp	w3, #0, #4, ne
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_em28xx_copy_video
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	w24, #0, #4, eq
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_finish_field_prepare_next
	str	x0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh4:
	adrp	x9, _EM25XX_FRMDATAHDR_BYTE2_FRAME_ID@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EM25XX_FRMDATAHDR_BYTE2_FRAME_ID@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	cset	w8, eq
	ldp	x10, x9, [x19, #8]
	str	w8, [x9]
	ldrb	w8, [x22, #1]
Lloh6:
	adrp	x9, _EM25XX_FRMDATAHDR_BYTE2_FRAME_END@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EM25XX_FRMDATAHDR_BYTE2_FRAME_END@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w24, w9, w8
	add	x22, x22, #2
	cbz	x10, LBB0_12
; %bb.10:
	cbz	w24, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_finish_field_prepare_next
	mov	x21, x0
	str	x0, [x19]
	mov	w24, #1
LBB0_12:
	mov	x3, x23
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EM25XX_FRMDATAHDR_BYTE1,1,0    ; @EM25XX_FRMDATAHDR_BYTE1
	.comm	_EM25XX_FRMDATAHDR_BYTE2_MASK,1,0 ; @EM25XX_FRMDATAHDR_BYTE2_MASK
	.comm	_EM25XX_FRMDATAHDR_BYTE2_FRAME_ID,1,0 ; @EM25XX_FRMDATAHDR_BYTE2_FRAME_ID
	.comm	_EM25XX_FRMDATAHDR_BYTE2_FRAME_END,1,0 ; @EM25XX_FRMDATAHDR_BYTE2_FRAME_END
	.no_dead_strip	_process_frame_data_em25xx
.subsections_via_symbols
