	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_processing_deinterlacing_crap  ## -- Begin function processing_deinterlacing_crap
	.p2align	4, 0x90
_processing_deinterlacing_crap:         ## @processing_deinterlacing_crap
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r10d
	movq	%rdi, %r13
	movq	_frame_prev1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r11
	movq	_frame_prev2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r14
	movq	_frame_prev3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r15
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %rdx
	movl	%r10d, %edi
	negl	%edi
	cmpl	%r8d, (%rdx)
	cmovel	%r10d, %edi
	movq	_V4L2_FIELD_BOTTOM@GOTPCREL(%rip), %rdx
	movslq	%r10d, %rax
	cmpl	%r8d, (%rdx)
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.1:
	leaq	(%rsi,%rax,4), %rsi
	cmpl	$1, %r9d
	jne	LBB0_3
## %bb.2:
	leaq	(%r13,%rax,4), %r13
	leaq	(%r11,%rax,4), %r11
	leaq	(%r14,%rax,4), %r14
	leaq	(%r15,%rax,4), %r15
LBB0_3:
	imull	%r10d, %r12d
	testl	%r12d, %r12d
	jle	LBB0_28
## %bb.4:
	movl	%r12d, %eax
	subl	%r10d, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %r13
	addq	$4, %rsi
	addq	$4, %r11
	addq	$4, %r14
	addq	$4, %r15
	cmpl	%r9d, %r12d
	je	LBB0_28
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	movl	%eax, %edx
	andl	$16777215, %edx                 ## imm = 0xFFFFFF
	movzbl	3(%rsi), %r8d
	shll	$24, %r8d
	orl	%r8d, %edx
	movl	%edx, (%rsi)
	cmpl	%r10d, %r9d
	jl	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	-72(%rbp), %r9d                 ## 4-byte Folded Reload
	jg	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%al, %edx
	movl	%ebx, %ecx
	movzbl	%cl, %ebx
	addl	%edx, %ebx
	shrl	%ebx
	movzbl	%ah, %edi
	movzbl	%ch, %edx
	addl	%edi, %edx
	shll	$7, %edx
	andl	$65280, %edx                    ## imm = 0xFF00
	orl	%ebx, %edx
	shrl	$16, %eax
	movzbl	%al, %edi
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	addl	%edi, %ecx
	shll	$15, %ecx
	andl	$16711680, %ecx                 ## imm = 0xFF0000
	leal	(%rcx,%rdx), %ebx
	addl	$-33554432, %ebx                ## imm = 0xFE000000
	cmpl	$-33554432, %r8d                ## imm = 0xFE000000
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	3(%rsi,%rax,4), %eax
	shll	$24, %eax
	cmpl	$-33554432, %eax                ## imm = 0xFE000000
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	orl	%ecx, %edx
	orl	$-16777216, %edx                ## imm = 0xFF000000
	movl	%edx, (%rsi)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rsi,%rax,4)
	jmp	LBB0_24
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %eax
	movzbl	%al, %r8d
	movl	(%r14), %edx
	movzbl	%dl, %ecx
	leal	-9(%rcx), %edi
	cmpl	%edi, %r8d
	jl	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%ah, %ebx
	movzbl	%dh, %edi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	addl	$-9, %edi
	cmpl	%edi, %ebx
	jl	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	shrl	$16, %eax
	movzbl	%al, %ebx
	shrl	$16, %edx
	movzbl	%dl, %eax
	leal	-9(%rax), %edx
	cmpl	%edx, %ebx
	jl	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	$9, %ecx
	cmpl	%ecx, %r8d
	ja	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	$9, %ecx
	cmpl	%ecx, %edi
	ja	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	$9, %eax
	cmpl	%eax, %ebx
	ja	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %eax
	movzbl	%al, %r8d
	movl	(%r11), %edx
	movzbl	%dl, %ecx
	leal	-9(%rcx), %edi
	cmpl	%edi, %r8d
	jl	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%ah, %ebx
	movzbl	%dh, %edi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	addl	$-9, %edi
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	cmpl	%edi, %ebx
	jl	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	shrl	$16, %eax
	movzbl	%al, %eax
	shrl	$16, %edx
	movzbl	%dl, %edx
	leal	-9(%rdx), %edi
	cmpl	%edi, %eax
	jl	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	$9, %ecx
	cmpl	%ecx, %r8d
	ja	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	$9, %ecx
	cmpl	%ecx, -64(%rbp)                 ## 4-byte Folded Reload
	ja	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	$9, %edx
	cmpl	%edx, %eax
	ja	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, (%rsi,%rax,4)
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r9d
	movl	%r9d, %eax
	cltd
	idivl	%r10d
	testl	%edx, %edx
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rsi
	cmpl	$1, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%r13,%rax,4), %r13
	leaq	(%r11,%rax,4), %r11
	leaq	(%r14,%rax,4), %r14
	leaq	(%r15,%rax,4), %r15
	jmp	LBB0_27
LBB0_28:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_frame_prev1,8,3                ## @frame_prev1
	.comm	_frame_prev2,8,3                ## @frame_prev2
	.comm	_frame_prev3,8,3                ## @frame_prev3
	.comm	_V4L2_FIELD_TOP,4,2             ## @V4L2_FIELD_TOP
	.comm	_V4L2_FIELD_BOTTOM,4,2          ## @V4L2_FIELD_BOTTOM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_processing_deinterlacing_crap  ; -- Begin function processing_deinterlacing_crap
	.p2align	2
_processing_deinterlacing_crap:         ; @processing_deinterlacing_crap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _frame_prev1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _frame_prev1@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _frame_prev2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _frame_prev2@GOTPAGEOFF]
Lloh5:
	adrp	x9, _frame_prev3@GOTPAGE
Lloh6:
	ldr	x9, [x9, _frame_prev3@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x8]
Lloh8:
	ldr	x12, [x9]
Lloh9:
	adrp	x8, _V4L2_FIELD_TOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FIELD_TOP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w4
	cneg	w16, w2, ne
Lloh12:
	adrp	x8, _V4L2_FIELD_BOTTOM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_FIELD_BOTTOM@GOTPAGEOFF]
	sxtw	x9, w2
Lloh14:
	ldr	w8, [x8]
	add	x13, x1, w2, sxtw #2
	cmp	w5, #1
	lsl	x9, x9, #2
	add	x14, x0, x9
	add	x15, x10, x9
	add	x17, x11, x9
	add	x9, x12, x9
	csel	x14, x0, x14, ne
	csel	x15, x10, x15, ne
	csel	x17, x11, x17, ne
	csel	x6, x12, x9, ne
	cmp	w8, w4
	csel	x8, x1, x13, ne
	csel	x9, x0, x14, ne
	csel	x10, x10, x15, ne
	csel	x11, x11, x17, ne
	csel	x12, x12, x6, ne
	mul	w13, w3, w2
	cmp	w13, #1
	b.lt	LBB0_23
; %bb.1:
	mov	w17, #0
	mov	w14, #0
	sub	w15, w13, w2
	sxtw	x16, w16
	mov	x0, x2
	sxtw	x0, w0
	mov	w1, #-33554432
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #4
	add	x8, x8, #4
	add	x10, x10, #4
	add	x11, x11, #4
	add	x12, x12, #4
	cmp	w13, w14
	b.eq	LBB0_23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w6, [x9]
	ldrb	w3, [x8, #3]
	mov	x4, x6
	bfi	w4, w3, #24, #8
	str	w4, [x8]
	cmp	w14, w2
	b.lt	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, w15
	b.gt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w4, w6, #0xff
	add	w4, w4, w17, uxtb
	lsr	w4, w4, #1
	ubfx	w7, w6, #8, #8
	lsr	w19, w17, #8
	add	w7, w7, w19, uxtb
	lsr	w7, w7, #1
	bfi	w4, w7, #8, #8
	ubfx	w6, w6, #16, #8
	lsr	w17, w17, #16
	add	w17, w6, w17, uxtb
	lsr	w17, w17, #1
	bfi	w4, w17, #16, #8
	orr	w17, w4, #0xfe000000
	lsl	w3, w3, #24
	cmp	w3, w1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x3, x8, x16, lsl #2
	ldrb	w3, [x3, #3]
	cmp	w3, #254
	b.ne	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	orr	w3, w4, #0xff000000
	str	w3, [x8]
	str	w3, [x8, x16, lsl #2]
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w19, [x9]
	and	w3, w19, #0xff
	ldr	w20, [x11]
	and	w4, w20, #0xff
	sub	w6, w4, #9
	cmp	w3, w6
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w6, w19, #8, #8
	ubfx	w7, w20, #8, #8
	sub	w21, w7, #9
	cmp	w6, w21
	b.ge	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w17, [x8, x16, lsl #2]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w14, w14, #1
	sdiv	w3, w14, w2
	msub	w3, w3, w2, w14
	cbnz	w3, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x0, lsl #2
	cmp	w5, #1
	lsl	x3, x0, #2
	add	x4, x9, x3
	add	x6, x10, x3
	add	x7, x11, x3
	add	x3, x12, x3
	csel	x9, x9, x4, ne
	csel	x10, x10, x6, ne
	csel	x11, x11, x7, ne
	csel	x12, x12, x3, ne
	b	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w19, w19, #16, #8
	ubfx	w20, w20, #16, #8
	sub	w21, w20, #9
	cmp	w19, w21
	b.lt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w4, w4, #9
	cmp	w3, w4
	b.hi	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w3, w7, #9
	cmp	w6, w3
	b.hi	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w3, w20, #9
	cmp	w19, w3
	b.hi	LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w19, [x12]
	and	w3, w19, #0xff
	ldr	w20, [x10]
	and	w4, w20, #0xff
	sub	w6, w4, #9
	cmp	w3, w6
	b.lt	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w6, w19, #8, #8
	ubfx	w7, w20, #8, #8
	sub	w21, w7, #9
	cmp	w6, w21
	b.lt	LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w19, w19, #16, #8
	ubfx	w20, w20, #16, #8
	sub	w21, w20, #9
	cmp	w19, w21
	b.lt	LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w4, w4, #9
	cmp	w3, w4
	b.hi	LBB0_10
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w3, w7, #9
	cmp	w6, w3
	b.hi	LBB0_10
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w3, w20, #9
	cmp	w19, w3
	b.ls	LBB0_11
	b	LBB0_10
LBB0_23:
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_frame_prev1,8,3                ; @frame_prev1
	.comm	_frame_prev2,8,3                ; @frame_prev2
	.comm	_frame_prev3,8,3                ; @frame_prev3
	.comm	_V4L2_FIELD_TOP,4,2             ; @V4L2_FIELD_TOP
	.comm	_V4L2_FIELD_BOTTOM,4,2          ; @V4L2_FIELD_BOTTOM
.subsections_via_symbols
