	.file	"extr_picture.c_vlc_vdp_output_surface_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vlc_vdp_output_surface_create, @function
vlc_vdp_output_surface_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	edi, 24
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	malloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	xor	r14d, r14d
	call	unlikely@PLT
	test	rax, rax
	jne	.L1
	lea	rsi, 4[rbp]
	mov	rdi, r13
	call	vdp_hold_x11@PLT
	mov	ecx, DWORD PTR 4[r12]
	mov	esi, DWORD PTR 4[rbp]
	mov	r9, rbp
	mov	DWORD PTR 16[rbp], eax
	mov	r8d, DWORD PTR [r12]
	mov	edx, r15d
	mov	rdi, r13
	mov	QWORD PTR 8[rbp], 0
	call	vdp_output_surface_create@PLT
	cmp	QWORD PTR VDP_STATUS_OK[rip], rax
	jne	.L4
	mov	eax, DWORD PTR vlc_vdp_output_surface_destroy[rip]
	mov	rdi, r12
	mov	rsi, rsp
	mov	QWORD PTR 8[rsp], rbp
	mov	DWORD PTR [rsp], eax
	call	picture_NewFromResource@PLT
	xor	edi, edi
	test	rax, rax
	mov	r14, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L12
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r14
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r13
	call	vdp_output_surface_destroy@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r13
	xor	r14d, r14d
	call	vdp_release_x11@PLT
	mov	rdi, rbp
	call	free@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vlc_vdp_output_surface_create, .-vlc_vdp_output_surface_create
	.comm	vlc_vdp_output_surface_destroy,4,4
	.comm	VDP_STATUS_OK,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_picture.c_vlc_vdp_output_surface_create.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlc_vdp_output_surface_create, %function
vlc_vdp_output_surface_create:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L14
	sub	sp, sp, #24
	mov	r7, r0
	mov	r0, #16
	mov	r5, r2
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	malloc
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r6, r0, #0
	movne	r5, #0
	bne	.L1
	add	r1, r4, #4
	mov	r0, r7
	bl	vdp_hold_x11
	ldr	r3, [r5]
	str	r0, [r4, #12]
	str	r6, [r4, #8]
	stm	sp, {r3, r4}
	mov	r2, r8
	ldr	r3, [r5, #4]
	mov	r0, r7
	ldr	r1, [r4, #4]
	bl	vdp_output_surface_create
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L4
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r3, [r3]
	add	r1, sp, #12
	str	r3, [sp, #12]
	str	r4, [sp, #16]
	bl	picture_NewFromResource
	mov	r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L12
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r7
	ldr	r1, [r4]
	bl	vdp_output_surface_destroy
.L4:
	mov	r0, r7
	bl	vdp_release_x11
	mov	r0, r4
	bl	free
	mov	r5, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	VDP_STATUS_OK
	.word	vlc_vdp_output_surface_destroy
	.size	vlc_vdp_output_surface_create, .-vlc_vdp_output_surface_create
	.comm	vlc_vdp_output_surface_destroy,4,4
	.comm	VDP_STATUS_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
