	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_frame
_process_frame:                         ## @process_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	movq	_MODE_DECOMB_SELECTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	16(%r14), %rcx
	movq	8(%rcx), %rdi
	movq	(%rdi), %rcx
	movq	_HB_COMB_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	callq	_hb_buffer_dup
	leaq	12(%r14), %rdi
	movq	%rax, %rsi
	callq	_hb_buffer_list_append
	incl	44(%r14)
	incl	40(%r14)
	jmp	LBB0_10
LBB0_3:
	movl	4(%r14), %ecx
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.5:
	notl	%ecx
	andl	$1, %ecx
	jmp	LBB0_6
LBB0_4:
	movq	16(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	_PIC_FLAG_TOP_FIELD_FIRST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	testl	%edx, 8(%rcx)
	setne	%sil
	movl	%esi, %ecx
LBB0_6:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_MODE_DECOMB_BOB@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	cmpl	$1, %eax
	movl	$2, %eax
	sbbl	$0, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	12(%r14), %r13
	xorl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r13d
	xorl	%r15d, %r13d
	xorl	%eax, %eax
	xorl	$1, %r13d
	sete	%al
	movl	%eax, 8(%r14)
	movq	16(%r14), %rax
	movq	8(%rax), %rax
	movl	48(%rax), %edi
	movl	40(%rax), %edx
	movl	44(%rax), %esi
	callq	_hb_frame_buffer_init
	movq	%rax, %rbx
	movups	24(%r14), %xmm0
	movups	%xmm0, 40(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_yadif_filter
	movq	16(%r14), %rax
	movq	8(%rax), %rax
	movq	32(%rax), %rcx
	movq	%rcx, 32(%rbx)
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 16(%rbx)
	movups	%xmm0, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_hb_buffer_list_append
	incl	%r15d
	cmpl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.8:
	movq	_MODE_DECOMB_BOB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_hb_buffer_list_head
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_hb_buffer_list_tail
	movq	16(%rbx), %rcx
	movq	%rcx, %rdx
	subq	24(%rbx), %rdx
	movq	%rdx, %rsi
	shrq	$63, %rsi
	addq	%rdx, %rsi
	sarq	%rsi
	subq	%rsi, %rcx
	movq	%rcx, 16(%rbx)
	movq	%rcx, 24(%rax)
	movq	$0, 32(%rax)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_DECOMB_SELECTIVE,4,2      ## @MODE_DECOMB_SELECTIVE
	.comm	_HB_COMB_NONE,8,3               ## @HB_COMB_NONE
	.comm	_PIC_FLAG_TOP_FIELD_FIRST,4,2   ## @PIC_FLAG_TOP_FIELD_FIRST
	.comm	_MODE_DECOMB_BOB,4,2            ## @MODE_DECOMB_BOB
	.no_dead_strip	_process_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_frame
_process_frame:                         ; @process_frame
	.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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MODE_DECOMB_SELECTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_DECOMB_SELECTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x9, [x19, #16]
	ldr	x0, [x9, #8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _HB_COMB_NONE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HB_COMB_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	bl	_hb_buffer_dup
	mov	x1, x0
	add	x0, x19, #12
	bl	_hb_buffer_list_append
	ldr	d0, [x19, #40]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19, #40]
	b	LBB0_10
LBB0_3:
	ldr	w9, [x19, #4]
	tbnz	w9, #31, LBB0_5
; %bb.4:
	mvn	w9, w9
	and	w20, w9, #0x1
	b	LBB0_6
LBB0_5:
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	ldr	w9, [x9, #8]
Lloh6:
	adrp	x10, _PIC_FLAG_TOP_FIELD_FIRST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PIC_FLAG_TOP_FIELD_FIRST@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w20, ne
LBB0_6:
	mov	w25, #0
Lloh9:
	adrp	x24, _MODE_DECOMB_BOB@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MODE_DECOMB_BOB@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	mov	w8, #1
	cinc	w26, w8, ne
	add	x21, x19, #12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	eor	w8, w20, w25
	eor	w22, w8, #0x1
	cmp	w22, #0
	cset	w8, eq
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldp	w1, w0, [x8, #44]
	ldr	w2, [x8, #40]
	bl	_hb_frame_buffer_init
	mov	x23, x0
	ldur	q0, [x19, #24]
	stur	q0, [x0, #40]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_yadif_filter
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #32]
	ldp	q1, q0, [x8]
	stp	q1, q0, [x23]
	str	x9, [x23, #32]
	mov	x0, x21
	mov	x1, x23
	bl	_hb_buffer_list_append
	add	w25, w25, #1
	cmp	w26, w25
	b.ne	LBB0_7
; %bb.8:
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_hb_buffer_list_head
	mov	x19, x0
	mov	x0, x21
	bl	_hb_buffer_list_tail
	ldp	x8, x9, [x19, #16]
	sub	x9, x8, x9
	cmp	x9, #0
	cinc	x9, x9, lt
	sub	x8, x8, x9, asr #1
	str	x8, [x19, #16]
	stp	x8, xzr, [x0, #24]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_DECOMB_SELECTIVE,4,2      ; @MODE_DECOMB_SELECTIVE
	.comm	_HB_COMB_NONE,8,3               ; @HB_COMB_NONE
	.comm	_PIC_FLAG_TOP_FIELD_FIRST,4,2   ; @PIC_FLAG_TOP_FIELD_FIRST
	.comm	_MODE_DECOMB_BOB,4,2            ; @MODE_DECOMB_BOB
	.no_dead_strip	_process_frame
.subsections_via_symbols
