	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deinterlace
_deinterlace:                           ## @deinterlace
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	%eax, %r13d
	shrl	$31, %r13d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addl	%eax, %r13d
	sarl	%r13d
	movslq	4(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	8(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	movl	$5, %edi
	movl	%r13d, %edx
	callq	_PDEBUG
	movl	(%r15), %eax
	cmpl	12(%r15), %eax
	jne	LBB0_1
## %bb.3:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movl	4(%r15), %eax
	leal	(%rax,%rax), %ecx
	cmpl	8(%r15), %ecx
	jne	LBB0_4
## %bb.5:
	movslq	%r13d, %r8
	imulq	%rdx, %r8
	cmpl	$2, %r10d
	jl	LBB0_12
## %bb.6:
	leaq	(%r14,%r8), %rcx
	xorl	%edx, %edx
	movq	%r14, %rsi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	%r12, %rbx
	incl	%edx
	cmpl	%r13d, %edx
	je	LBB0_12
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rcx,%rdi), %eax
	movb	%al, (%rbx)
	movzbl	(%rcx,%rdi), %eax
	movb	%al, 1(%rbx)
	movzbl	(%rsi,%rdi), %eax
	movb	%al, (%rbx,%r12)
	movzbl	(%rsi,%rdi), %eax
	movb	%al, 1(%rbx,%r12)
	addq	$2, %rbx
	movl	4(%r15), %eax
	incq	%rdi
	cmpl	%eax, %edi
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	%rdi, %rsi
	addq	%rdi, %rcx
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_err                            ## TAILCALL
LBB0_12:
	movq	_RAWFMT_YUV420@GOTPCREL(%rip), %rcx
	cmpl	%r9d, (%rcx)
	jne	LBB0_26
## %bb.13:
	leal	3(%r8), %ecx
	testl	%r8d, %r8d
	cmovnsl	%r8d, %ecx
	leal	3(%r10), %r9d
	testl	%r10d, %r10d
	cmovnsl	%r10d, %r9d
	cmpl	$4, %r10d
	jl	LBB0_26
## %bb.14:
	leal	(%r8,%r8), %edx
	movslq	%edx, %rdx
	addq	%rdx, %r14
	sarl	$2, %ecx
	movslq	%ecx, %r11
	sarl	$2, %r9d
	leaq	(%r14,%r11), %r13
	movl	%r12d, %edx
	shrl	$31, %edx
	addl	%r12d, %edx
	sarl	%edx
	movslq	%edx, %rdi
	xorl	%r10d, %r10d
	movq	%r14, %rdx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	%rdi, %rbx
	incl	%r10d
	cmpl	%r9d, %r10d
	je	LBB0_20
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	cmpl	$2, %eax
	jl	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r13,%rsi), %eax
	movb	%al, (%rbx)
	movzbl	(%r13,%rsi), %eax
	movb	%al, 1(%rbx)
	movzbl	(%rdx,%rsi), %eax
	movb	%al, (%rbx,%rdi)
	movzbl	(%rdx,%rsi), %eax
	movb	%al, 1(%rbx,%rdi)
	addq	$2, %rbx
	movl	4(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	incq	%rsi
	cmpl	%ecx, %esi
	jl	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	%rsi, %rdx
	addq	%rsi, %r13
	jmp	LBB0_19
LBB0_20:
	movl	%r8d, %ecx
	shrl	$31, %ecx
	addl	%r8d, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	addq	%rcx, %r14
	addq	%r14, %r11
	xorl	%ecx, %ecx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	addq	%rdi, %rbx
	incl	%ecx
	cmpl	%r9d, %ecx
	je	LBB0_26
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	cmpl	$2, %eax
	jl	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r11,%rdx), %eax
	movb	%al, (%rbx)
	movzbl	(%r11,%rdx), %eax
	movb	%al, 1(%rbx)
	movzbl	(%r14,%rdx), %eax
	movb	%al, (%rbx,%rdi)
	movzbl	(%r14,%rdx), %eax
	movb	%al, 1(%rbx,%rdi)
	addq	$2, %rbx
	movl	4(%r15), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	incq	%rdx
	cmpl	%esi, %edx
	jl	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	addq	%rdx, %r14
	addq	%rdx, %r11
	jmp	LBB0_25
LBB0_26:
	addq	$24, %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	"fieldheight=%d"

L_.str.1:                               ## @.str.1
	.asciz	"invalid height"

L_.str.2:                               ## @.str.2
	.asciz	"invalid width"

	.comm	_RAWFMT_YUV420,4,2              ## @RAWFMT_YUV420
	.no_dead_strip	_deinterlace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deinterlace
_deinterlace:                           ; @deinterlace
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldp	w25, w26, [x0]
                                        ; kill: def $w26 killed $w26 def $x26
	sxtw	x26, w26
	cmp	w25, #0
	cinc	w27, w25, lt
	asr	w23, w27, #1
	ldrsw	x24, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #5
	mov	x2, x23
	bl	_PDEBUG
	ldr	w8, [x20]
	ldr	w9, [x20, #12]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.1:
	ldp	w8, w9, [x20, #4]
	cmp	w9, w8, lsl #1
	b.ne	LBB0_10
; %bb.2:
	sbfx	x9, x27, #1, #31
	mul	x9, x9, x26
	cmp	w25, #2
	b.lt	LBB0_12
; %bb.3:
	mov	w10, #0
	add	x11, x21, x9
	mov	x12, x21
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, x24
	add	w10, w10, #1
	cmp	w10, w23
	b.eq	LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x13, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x11, x13]
	strb	w8, [x19]
	ldrb	w8, [x11, x13]
	strb	w8, [x19, #1]
	ldrb	w8, [x12, x13]
	add	x14, x19, x24
	strb	w8, [x14]
	ldrb	w8, [x12, x13]
	strb	w8, [x14, #1]
	add	x19, x19, #2
	ldr	w8, [x20, #4]
	add	x13, x13, #1
	cmp	w13, w8
	b.lt	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, x13
	add	x12, x12, x13
	b	LBB0_4
LBB0_9:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_err
LBB0_12:
Lloh6:
	adrp	x10, _RAWFMT_YUV420@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RAWFMT_YUV420@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, w22
	b.ne	LBB0_26
; %bb.13:
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	add	w11, w25, #3
	cmp	w25, #0
	csel	w11, w11, w25, lt
	cmp	w25, #4
	b.lt	LBB0_26
; %bb.14:
	mov	w14, #0
	lsl	w12, w9, #1
	add	x12, x21, w12, sxtw
	sbfx	x13, x10, #2, #30
	asr	w10, w11, #2
	add	x15, x12, x13
	cmp	w24, #0
	cinc	w11, w24, lt
	sbfx	x11, x11, #1, #31
	mov	x16, x12
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x19, x19, x11
	add	w14, w14, #1
	cmp	w14, w10
	b.eq	LBB0_20
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x17, #0
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x15, x17]
	strb	w8, [x19]
	ldrb	w8, [x15, x17]
	strb	w8, [x19, #1]
	ldrb	w8, [x16, x17]
	add	x0, x19, x11
	strb	w8, [x0]
	ldrb	w8, [x16, x17]
	strb	w8, [x0, #1]
	add	x19, x19, #2
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cinc	w0, w8, lt
	add	x17, x17, #1
	cmp	w17, w0, asr #1
	b.lt	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x15, x15, x17
	add	x16, x16, x17
	b	LBB0_15
LBB0_20:
	mov	w14, #0
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x9, x12, w9, sxtw
	add	x12, x9, x13
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x19, x19, x11
	add	w14, w14, #1
	cmp	w14, w10
	b.eq	LBB0_26
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	cmp	w8, #2
	b.lt	LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x13, #0
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x12, x13]
	strb	w8, [x19]
	ldrb	w8, [x12, x13]
	strb	w8, [x19, #1]
	ldrb	w8, [x9, x13]
	add	x15, x19, x11
	strb	w8, [x15]
	ldrb	w8, [x9, x13]
	strb	w8, [x15, #1]
	add	x19, x19, #2
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cinc	w15, w8, lt
	add	x13, x13, #1
	cmp	w13, w15, asr #1
	b.lt	LBB0_24
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x12, x12, x13
	add	x9, x9, x13
	b	LBB0_21
LBB0_26:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fieldheight=%d"

l_.str.1:                               ; @.str.1
	.asciz	"invalid height"

l_.str.2:                               ; @.str.2
	.asciz	"invalid width"

	.comm	_RAWFMT_YUV420,4,2              ; @RAWFMT_YUV420
	.no_dead_strip	_deinterlace
.subsections_via_symbols
