	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_video_frame
_get_video_frame:                       ## @get_video_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	addq	$32, %rdi
	xorl	%edx, %edx
	callq	_decoder_decode_frame
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	je	LBB0_16
## %bb.3:
	movl	%eax, %r14d
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r12
	ucomisd	(%r12), %xmm0
	jne	LBB0_5
	jnp	LBB0_4
LBB0_5:
	movq	40(%r15), %rax
	movl	(%rax), %edi
	callq	_av_q2d
	mulsd	(%rbx), %xmm0
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_17
LBB0_4:
	movq	_NAN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
LBB0_6:
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movl	48(%r15), %edi
	movq	40(%r15), %rsi
	movq	%rbx, %rdx
	callq	_av_guess_sample_aspect_ratio
	movl	%eax, 8(%rbx)
	movq	_framedrop@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_7
LBB0_9:
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	(%r12), %xmm0
	jne	LBB0_10
	jnp	LBB0_17
LBB0_10:
	movq	%r15, %rdi
	callq	_get_master_clock
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	callq	_isnan
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_fabs
	movq	_AV_NOSYNC_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_17
## %bb.12:
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	(%r15), %xmm1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_17
## %bb.13:
	movq	32(%r15), %rax
	cmpq	24(%r15), %rax
	jne	LBB0_17
## %bb.14:
	cmpq	$0, 16(%r15)
	je	LBB0_17
## %bb.15:
	incl	8(%r15)
	movq	%rbx, %rdi
	callq	_av_frame_unref
LBB0_16:
	xorl	%r14d, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	je	LBB0_17
## %bb.8:
	movq	%r15, %rdi
	callq	_get_master_sync_type
	movq	_AV_SYNC_VIDEO_MASTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NAN,8,3                        ## @NAN
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_framedrop,8,3                  ## @framedrop
	.comm	_AV_SYNC_VIDEO_MASTER,8,3       ## @AV_SYNC_VIDEO_MASTER
	.comm	_AV_NOSYNC_THRESHOLD,8,3        ## @AV_NOSYNC_THRESHOLD
	.no_dead_strip	_get_video_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_video_frame
_get_video_frame:                       ; @get_video_frame
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x1
	mov	x21, x0
	add	x0, x0, #32
	mov	x2, #0
	bl	_decoder_decode_frame
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	cbz	w0, LBB0_16
; %bb.2:
	ldr	d0, [x20]
Lloh0:
	adrp	x22, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	d1, [x22]
	fcmp	d0, d1
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x21, #40]
	ldr	w0, [x8]
	bl	_av_q2d
	ldr	d1, [x20]
	fmul	d8, d0, d1
	b	LBB0_6
LBB0_4:
	mov	w19, #-1
	b	LBB0_16
LBB0_5:
Lloh2:
	adrp	x8, _NAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh4:
	ldr	d8, [x8]
LBB0_6:
	ldr	w0, [x21, #48]
	ldr	x1, [x21, #40]
	mov	x2, x20
	bl	_av_guess_sample_aspect_ratio
	str	w0, [x20, #8]
Lloh5:
	adrp	x8, _framedrop@GOTPAGE
Lloh6:
	ldr	x8, [x8, _framedrop@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, #0
	b.le	LBB0_14
LBB0_7:
	ldr	d0, [x20]
	ldr	d1, [x22]
	fcmp	d0, d1
	b.eq	LBB0_16
; %bb.8:
	mov	x0, x21
	bl	_get_master_clock
	fsub	d8, d8, d0
	fmov	d0, d8
	bl	_isnan
	cbnz	w0, LBB0_16
; %bb.9:
	fmov	d0, d8
	bl	_fabs
Lloh8:
	adrp	x8, _AV_NOSYNC_THRESHOLD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_NOSYNC_THRESHOLD@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_16
; %bb.10:
	ldr	d0, [x21]
	fsub	d0, d8, d0
	fcmp	d0, #0.0
	b.pl	LBB0_16
; %bb.11:
	ldp	x9, x8, [x21, #24]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_16
; %bb.13:
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	mov	x0, x20
	bl	_av_frame_unref
	mov	w19, #0
	b	LBB0_16
LBB0_14:
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_get_master_sync_type
Lloh11:
	adrp	x8, _AV_SYNC_VIDEO_MASTER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_SYNC_VIDEO_MASTER@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_16:
	mov	x0, x19
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NAN,8,3                        ; @NAN
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_framedrop,8,3                  ; @framedrop
	.comm	_AV_SYNC_VIDEO_MASTER,8,3       ; @AV_SYNC_VIDEO_MASTER
	.comm	_AV_NOSYNC_THRESHOLD,8,3        ; @AV_NOSYNC_THRESHOLD
	.no_dead_strip	_get_video_frame
.subsections_via_symbols
