	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vdpau_common_end_frame      ## -- Begin function ff_vdpau_common_end_frame
	.p2align	4, 0x90
_ff_vdpau_common_end_frame:             ## @ff_vdpau_common_end_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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	%rsi, %rdi
	callq	_ff_vdpau_get_surface_id
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_ff_vdpau_common_reinit
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:
	cmpl	$0, 8(%r12)
	je	LBB0_3
LBB0_5:
	movl	(%r13), %edi
	leaq	8(%r15), %rdx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	*8(%r13)
LBB0_6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_av_freep
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vdpau_error                    ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	8(%r15), %rdx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_vdpau_common_end_frame      ; -- Begin function ff_vdpau_common_end_frame
	.p2align	2
_ff_vdpau_common_end_frame:             ; @ff_vdpau_common_end_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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x24, x8, [x0]
	ldr	x23, [x8]
	mov	x0, x1
	bl	_ff_vdpau_get_surface_id
	mov	x22, x0
	mov	x0, x21
	bl	_ff_vdpau_common_reinit
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cbz	x24, LBB0_3
; %bb.2:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_6
LBB0_3:
	ldr	x8, [x23, #8]
	ldr	w0, [x23]
	add	x2, x19, #8
	ldp	w4, w3, [x19]
	mov	x1, x22
	blr	x8
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_av_freep
	mov	x0, x20
	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	_vdpau_error
LBB0_5:
	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_6:
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.7:
	add	x2, x19, #8
	ldp	w4, w3, [x19]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
