	.file	"extr_hwdec_vdpau.c_mapper_uninit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error when calling vdp_output_surface_destroy"
	.align 8
.LC1:
	.string	"Before uninitializing OpenGL interop"
	.align 8
.LC2:
	.string	"After uninitializing OpenGL interop"
	.text
	.p2align 4
	.type	mapper_uninit, @function
mapper_uninit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 8[rdi]
	xor	edi, edi
	mov	edx, DWORD PTR 32[rbx]
	mov	r12, QWORD PTR 48[rbx]
	mov	r13, QWORD PTR 40[rbx]
	test	edx, edx
	sete	dil
	call	assert@PLT
	mov	rdi, QWORD PTR 24[rbx]
	test	rdi, rdi
	je	.L2
	call	[QWORD PTR 16[r12]]
.L2:
	mov	edi, 4
	mov	QWORD PTR 24[rbx], 0
	mov	esi, DWORD PTR 16[rbx]
	call	[QWORD PTR 8[r12]]
	mov	rdi, QWORD PTR [rbx]
	mov	rax, QWORD PTR VDP_INVALID_HANDLE[rip]
	cmp	rdi, rax
	je	.L3
	call	[QWORD PTR 0[r13]]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	CHECK_VDP_WARNING@PLT
	mov	rax, QWORD PTR VDP_INVALID_HANDLE[rip]
.L3:
	mov	QWORD PTR [rbx], rax
	mov	esi, DWORD PTR 0[rbp]
	lea	rdx, .LC1[rip]
	mov	rdi, r12
	call	gl_check_error@PLT
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	je	.L4
	xor	eax, eax
	call	[QWORD PTR [r12]]
.L4:
	mov	DWORD PTR 8[rbx], 0
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	lea	rdx, .LC2[rip]
	call	gl_check_error@PLT
	mov	edi, DWORD PTR 12[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mp_vdpau_mixer_destroy@PLT
	.cfi_endproc
.LFE0:
	.size	mapper_uninit, .-mapper_uninit
	.comm	VDP_INVALID_HANDLE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hwdec_vdpau.c_mapper_uninit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error when calling vdp_output_surface_destroy\000"
	.align	2
.LC1:
	.ascii	"Before uninitializing OpenGL interop\000"
	.align	2
.LC2:
	.ascii	"After uninitializing OpenGL interop\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mapper_uninit, %function
mapper_uninit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0, #4]
	mov	r5, r0
	ldr	r0, [r4, #20]
	ldr	r6, [r4, #28]
	clz	r0, r0
	lsr	r0, r0, #5
	ldr	r8, [r4, #24]
	bl	assert
	ldr	r0, [r4, #16]
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r6, #8]
	blx	r3
.L2:
	mov	r3, #0
	ldr	r7, .L13
	str	r3, [r4, #16]
	mov	r0, #4
	ldr	r3, [r6, #4]
	ldr	r1, [r4, #12]
	blx	r3
	ldr	r3, [r7]
	ldr	r0, [r4]
	cmp	r0, r3
	beq	.L3
	ldr	r3, [r8]
	blx	r3
	mov	r0, r5
	ldr	r1, .L13+4
	bl	CHECK_VDP_WARNING
	ldr	r3, [r7]
.L3:
	str	r3, [r4]
	mov	r0, r6
	ldr	r2, .L13+8
	ldr	r1, [r5]
	bl	gl_check_error
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r6]
	blx	r3
.L4:
	mov	r3, #0
	ldr	r1, [r5]
	mov	r0, r6
	str	r3, [r4, #4]
	ldr	r2, .L13+12
	bl	gl_check_error
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, lr}
	b	mp_vdpau_mixer_destroy
.L14:
	.align	2
.L13:
	.word	VDP_INVALID_HANDLE
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	mapper_uninit, .-mapper_uninit
	.comm	VDP_INVALID_HANDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
