	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_frame
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movq	16(%r14), %r12
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 32(%r12)
	je	LBB0_3
LBB0_5:
	cmpl	$0, 4(%r12)
	je	LBB0_9
## %bb.6:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.7:
	cmpq	$0, 8(%r12)
	jns	LBB0_3
## %bb.8:
	movq	$0, 24(%rbx)
LBB0_3:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	jmp	LBB0_4
LBB0_9:
	leaq	56(%r12), %r13
	movq	%r13, %rdi
	callq	_av_frame_free
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.10:
	cmpq	8(%r15), %rcx
	jne	LBB0_12
## %bb.11:
	movq	16(%rbx), %rdx
	cmpq	16(%r15), %rdx
	je	LBB0_13
LBB0_12:
	movq	16(%rbx), %rdx
	movq	24(%r15), %rsi
	movq	8(%rsi), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, (%rsi)
	movq	%rax, 8(%rsi)
	movq	%rcx, 16(%rsi)
	leaq	24(%r12), %rdi
	callq	_av_frame_free
	leaq	32(%r12), %rdi
	callq	_av_frame_free
LBB0_13:
	movq	24(%r12), %rax
	movq	32(%r12), %rcx
	movq	%rax, 56(%r12)
	movq	%rcx, 24(%r12)
	movq	%rbx, 32(%r12)
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.16:
	testq	%rax, %rax
	je	LBB0_38
LBB0_17:
	movq	48(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	16(%r15), %rdi
	callq	_av_pix_fmt_desc_get
	movq	%rax, 48(%r12)
LBB0_19:
	movq	(%rax), %rax
	cmpl	$9, (%rax)
	jl	LBB0_22
## %bb.20:
	movq	_ff_idet_filter_line_c_16bit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	_ARCH_X86@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ff_idet_init_x86
LBB0_22:
	cmpl	$0, (%r12)
	je	LBB0_35
## %bb.23:
	movq	24(%r12), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_36
## %bb.24:
	movq	$0, 24(%rax)
	movq	%r14, %rdi
	callq	_filter
	movq	16(%r12), %rax
	movq	_PROGRESSIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.25:
	decq	8(%r12)
	jmp	LBB0_26
LBB0_14:
	movq	%rbx, %rdi
	callq	_av_frame_clone
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_39
## %bb.15:
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_17
LBB0_38:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	%r14, %rdi
	callq	_filter
	jmp	LBB0_36
LBB0_39:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_27:
	movq	_UNDETERMINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.29:
	movl	(%r12), %eax
	jmp	LBB0_30
LBB0_28:
	incq	8(%r12)
LBB0_26:
	movl	(%r12), %eax
	decl	%eax
	movl	%eax, (%r12)
LBB0_30:
	cmpl	$1, %eax
	jne	LBB0_36
## %bb.31:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	24(%r12), %rdi
	callq	_av_frame_clone
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_ff_filter_frame
	movq	8(%r12), %rcx
	movq	32(%r12), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_34
## %bb.32:
	testq	%rcx, %rcx
	jns	LBB0_34
## %bb.33:
	movq	$0, 24(%rax)
LBB0_34:
	movl	$1, 4(%r12)
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	32(%r12), %rdi
	jmp	LBB0_37
LBB0_36:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	24(%r12), %rdi
LBB0_37:
	callq	_av_frame_clone
	movl	%ebx, %edi
	movq	%rax, %rsi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_filter_frame                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ff_idet_filter_line_c_16bit,8,3 ## @ff_idet_filter_line_c_16bit
	.comm	_ARCH_X86,8,3                   ## @ARCH_X86
	.comm	_PROGRESSIVE,8,3                ## @PROGRESSIVE
	.comm	_UNDETERMINED,8,3               ## @UNDETERMINED
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Final flag accuracy %d\n"

	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.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	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #24]
	ldr	x20, [x19, #16]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_7
LBB0_3:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
	tbz	x8, #63, LBB0_7
; %bb.6:
	str	xzr, [x22, #24]
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x22
	b	LBB0_39
LBB0_8:
	add	x23, x20, #56
	mov	x0, x23
	bl	_av_frame_free
	ldr	x10, [x21]
	ldp	x9, x8, [x22]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.9:
	ldr	x10, [x21, #8]
	cmp	x8, x10
	b.ne	LBB0_11
; %bb.10:
	ldr	x10, [x22, #16]
	ldr	x11, [x21, #16]
	cmp	x10, x11
	b.eq	LBB0_12
LBB0_11:
	ldr	x10, [x22, #16]
	ldr	x11, [x21, #24]
	ldr	x11, [x11, #8]
	ldr	x11, [x11]
	stp	x10, x9, [x11]
	str	x8, [x11, #16]
	add	x0, x20, #24
	bl	_av_frame_free
	add	x0, x20, #32
	bl	_av_frame_free
LBB0_12:
	ldp	x8, x9, [x20, #24]
	str	x8, [x20, #56]
	stp	x9, x22, [x20, #24]
	cbz	x9, LBB0_23
; %bb.13:
	cbz	x8, LBB0_25
LBB0_14:
	ldr	x0, [x20, #48]
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x0, [x21, #16]
	bl	_av_pix_fmt_desc_get
	str	x0, [x20, #48]
LBB0_16:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #9
	b.lt	LBB0_19
; %bb.17:
Lloh0:
	adrp	x8, _ff_idet_filter_line_c_16bit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_idet_filter_line_c_16bit@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20, #40]
Lloh3:
	adrp	x8, _ARCH_X86@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCH_X86@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x20
	mov	w1, #1
	bl	_ff_idet_init_x86
LBB0_19:
	ldr	w8, [x20]
	cbz	w8, LBB0_26
; %bb.20:
	ldr	x8, [x20, #24]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_37
; %bb.21:
	str	xzr, [x8, #24]
	mov	x0, x19
	bl	_filter
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _PROGRESSIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PROGRESSIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.22:
	ldr	x8, [x20, #8]
	sub	x8, x8, #1
	b	LBB0_31
LBB0_23:
	mov	x0, x22
	bl	_av_frame_clone
	str	x0, [x20, #24]
	cbz	x0, LBB0_27
; %bb.24:
	ldr	x8, [x23]
	cbnz	x8, LBB0_14
LBB0_25:
	mov	w0, #0
	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_26:
	mov	x0, x19
	bl	_filter
	b	LBB0_37
LBB0_27:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_28:
Lloh12:
	adrp	x9, _UNDETERMINED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UNDETERMINED@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.29:
	ldr	w8, [x20]
	b	LBB0_32
LBB0_30:
	ldr	x8, [x20, #8]
	add	x8, x8, #1
LBB0_31:
	str	x8, [x20, #8]
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_32:
	cmp	w8, #1
	b.ne	LBB0_37
; %bb.33:
	ldr	x8, [x19]
	ldr	w21, [x8]
	ldr	x0, [x20, #24]
	bl	_av_frame_clone
	mov	x1, x0
	mov	x0, x21
	bl	_ff_filter_frame
	ldr	x8, [x20, #32]
	ldr	x9, [x8, #24]
	ldr	x3, [x20, #8]
	cbz	x9, LBB0_36
; %bb.34:
	tbz	x3, #63, LBB0_36
; %bb.35:
	str	xzr, [x8, #24]
LBB0_36:
	mov	w8, #1
	str	w8, [x20, #4]
Lloh15:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x8, [x19]
	ldr	w19, [x8]
	ldr	x0, [x20, #32]
	b	LBB0_38
LBB0_37:
	ldr	x8, [x19]
	ldr	w19, [x8]
	ldr	x0, [x20, #24]
LBB0_38:
	bl	_av_frame_clone
	mov	x1, x0
	mov	x0, x19
LBB0_39:
	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
	b	_ff_filter_frame
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ff_idet_filter_line_c_16bit,8,3 ; @ff_idet_filter_line_c_16bit
	.comm	_ARCH_X86,8,3                   ; @ARCH_X86
	.comm	_PROGRESSIVE,8,3                ; @PROGRESSIVE
	.comm	_UNDETERMINED,8,3               ; @UNDETERMINED
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Final flag accuracy %d\n"

	.no_dead_strip	_filter_frame
.subsections_via_symbols
