	.file	"extr_d3d11_surface.c_assert_staging.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"can't map default staging texture (hr=0x%lX)"
	.align 8
.LC1:
	.string	"Failed to create a %s staging texture to extract surface pixels (hr=0x%lX)"
	.text
	.p2align 4
	.type	assert_staging, @function
assert_staging:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 88
	.cfi_def_cfa_offset 128
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [r12], 0
	je	.L17
.L2:
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 88
	.cfi_remember_state
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsi]
	lea	r13, 16[rsp]
	mov	rbp, rdi
	mov	rbx, rsi
	mov	rdx, QWORD PTR KNOWN_DXGI_INDEX[rip]
	mov	rsi, r13
	mov	edi, DWORD PTR [rax+rdx*4]
	call	ID3D11Texture2D_GetDesc@PLT
	mov	edi, DWORD PTR [rbx]
	movabs	rax, 4294967297
	lea	rsi, 8[rsp]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR D3D11_USAGE_STAGING[rip]
	mov	DWORD PTR 12[rsp], edi
	mov	DWORD PTR 48[rsp], eax
	mov	rax, QWORD PTR D3D11_CPU_ACCESS_READ[rip]
	mov	DWORD PTR 64[rsp], 1
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 40[rsp], rax
	mov	DWORD PTR 32[rsp], 0
	mov	DWORD PTR 8[rsp], 0
	call	ID3D11DeviceContext_GetDevice@PLT
	mov	edi, DWORD PTR 8[rsp]
	xor	edx, edx
	mov	rsi, r13
	mov	QWORD PTR [r12], 0
	mov	rcx, r12
	call	ID3D11Device_CreateTexture2D@PLT
	mov	edi, eax
	mov	r13d, eax
	call	SUCCEEDED@PLT
	test	rax, rax
	jne	.L19
.L3:
	mov	edi, DWORD PTR 8[rsp]
	call	ID3D11Device_Release@PLT
	mov	edi, r13d
	call	FAILED@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR 24[rsp]
	call	DxgiFormatToStr@PLT
	mov	ecx, r13d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	msg_Err@PLT
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	call	can_map@PLT
	mov	edi, eax
	mov	r13d, eax
	call	FAILED@PLT
	test	rax, rax
	je	.L3
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	msg_Dbg@PLT
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	assert_staging, .-assert_staging
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	KNOWN_DXGI_INDEX,8,8
	.comm	E_FAIL,4,4
	.comm	D3D11_USAGE_STAGING,4,4
	.comm	D3D11_USAGE_DEFAULT,4,4
	.comm	D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT,4,4
	.comm	D3D11_FORMAT_SUPPORT_SHADER_LOAD,4,4
	.comm	D3D11_CPU_ACCESS_READ,8,8
	.comm	D3D11_BIND_RENDER_TARGET,4,4
	.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_d3d11_surface.c_assert_staging.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't map default staging texture (hr=0x%lX)\000"
	.align	2
.LC1:
	.ascii	"Failed to create a %s staging texture to extract su"
	.ascii	"rface pixels (hr=0x%lX)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	assert_staging, %function
assert_staging:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, [r0]
	ldr	r3, .L20
	ldr	r5, [r7]
	sub	sp, sp, #52
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L17
.L2:
	ldr	r3, .L20+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L17:
	ldr	r2, .L20+8
	ldr	r3, [r1, #4]
	ldr	r2, [r2]
	mov	r6, r1
	mov	r4, r0
	add	r1, sp, #12
	ldr	r0, [r3, r2, lsl #2]
	bl	ID3D11Texture2D_GetDesc
	mov	r3, #1
	ldr	r1, .L20+12
	ldr	r2, .L20+16
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, [r6]
	str	r1, [sp, #32]
	add	r1, sp, #4
	str	r5, [sp, #36]
	str	r5, [sp, #24]
	str	r5, [sp, #4]
	str	r2, [sp, #28]
	str	r3, [sp, #12]
	str	r3, [sp, #40]
	str	r3, [sp, #16]
	str	r0, [sp, #8]
	bl	ID3D11DeviceContext_GetDevice
	mov	r2, r5
	mov	r3, r7
	add	r1, sp, #12
	str	r5, [r7]
	ldr	r0, [sp, #4]
	bl	ID3D11Device_CreateTexture2D
	mov	r5, r0
	bl	SUCCEEDED
	cmp	r0, #0
	bne	.L19
.L3:
	ldr	r0, [sp, #4]
	bl	ID3D11Device_Release
	mov	r0, r5
	bl	FAILED
	cmp	r0, #0
	beq	.L2
	ldr	r0, [sp, #20]
	bl	DxgiFormatToStr
	mov	r3, r5
	mov	r2, r0
	ldr	r1, .L20+20
	mov	r0, r4
	bl	msg_Err
	ldr	r3, .L20+24
	ldr	r0, [r3]
	b	.L1
.L19:
	ldr	r1, [r6]
	mov	r0, r7
	bl	can_map
	mov	r5, r0
	bl	FAILED
	cmp	r0, #0
	beq	.L3
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L20+28
	bl	msg_Dbg
	b	.L3
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	VLC_SUCCESS
	.word	KNOWN_DXGI_INDEX
	.word	D3D11_USAGE_STAGING
	.word	D3D11_CPU_ACCESS_READ
	.word	.LC1
	.word	VLC_EGENERIC
	.word	.LC0
	.size	assert_staging, .-assert_staging
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	KNOWN_DXGI_INDEX,4,4
	.comm	E_FAIL,4,4
	.comm	D3D11_USAGE_STAGING,4,4
	.comm	D3D11_USAGE_DEFAULT,4,4
	.comm	D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT,4,4
	.comm	D3D11_FORMAT_SUPPORT_SHADER_LOAD,4,4
	.comm	D3D11_CPU_ACCESS_READ,4,4
	.comm	D3D11_BIND_RENDER_TARGET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
