	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_vmaf
_do_vmaf:                               ## @do_vmaf
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	8(%r14), %rbx
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_ff_framesync_dualinput_get
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.2:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	leaq	8(%rbx), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pthread_cond_wait
	cmpl	$0, (%rbx)
	jne	LBB0_4
LBB0_6:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_10
LBB0_8:
	movl	16(%rbx), %edi
	movq	-48(%rbp), %rsi
	callq	_av_frame_ref
	movl	12(%rbx), %edi
	movq	-40(%rbp), %rsi
	callq	_av_frame_ref
	movl	$1, (%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_pthread_cond_signal
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
LBB0_9:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	-40(%rbp), %rsi
	callq	_ff_filter_frame
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libvmaf encountered an error, check log for details\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_do_vmaf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_vmaf
_do_vmaf:                               ; @do_vmaf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0]
	ldr	x22, [x19, #8]
	add	x1, sp, #8
	mov	x2, sp
	bl	_ff_framesync_dualinput_get
	tbnz	w0, #31, LBB0_10
; %bb.1:
	ldr	x8, [sp]
	cbz	x8, LBB0_9
; %bb.2:
	add	x20, x22, #4
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	w8, [x22]
	cbz	w8, LBB0_6
; %bb.3:
	add	x21, x22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pthread_cond_wait
	ldr	w8, [x22]
	cbnz	w8, LBB0_4
LBB0_6:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	x0, x20
	bl	_pthread_mutex_unlock
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_10
LBB0_8:
	ldr	w0, [x22, #16]
	ldr	x1, [sp]
	bl	_av_frame_ref
	ldr	w0, [x22, #12]
	ldr	x1, [sp, #8]
	bl	_av_frame_ref
	mov	w8, #1
	str	w8, [x22]
	add	x0, x22, #8
	bl	_pthread_cond_signal
	mov	x0, x20
	bl	_pthread_mutex_unlock
LBB0_9:
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	bl	_ff_filter_frame
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libvmaf encountered an error, check log for details\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_do_vmaf
.subsections_via_symbols
