	.file	"extr_hwcontext_d3d11va.c_d3d11va_device_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to create a mutex\n"
	.text
	.p2align 4
	.type	d3d11va_device_init, @function
d3d11va_device_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, QWORD PTR [rdi]
	cmp	QWORD PTR 32[rbx], 0
	je	.L19
	mov	esi, DWORD PTR 12[rbx]
	test	esi, esi
	je	.L20
.L4:
	mov	edx, DWORD PTR 16[rbx]
	test	edx, edx
	je	.L21
.L6:
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	je	.L7
.L8:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	lea	rdx, 8[rbx]
	lea	rsi, IID_ID3D11VideoContext[rip]
	call	ID3D11DeviceContext_QueryInterface@PLT
	mov	edi, eax
	call	FAILED@PLT
	test	rax, rax
	je	.L8
.L16:
	mov	eax, DWORD PTR AVERROR_UNKNOWN[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	xor	edx, edx
	xor	esi, esi
	xor	edi, edi
	call	CreateMutex@PLT
	cmp	rax, QWORD PTR INVALID_HANDLE_VALUE[rip]
	mov	QWORD PTR [rbx], rax
	je	.L22
	mov	rax, QWORD PTR d3d11va_default_lock[rip]
	mov	esi, DWORD PTR 12[rbx]
	mov	QWORD PTR 32[rbx], rax
	mov	eax, DWORD PTR d3d11va_default_unlock[rip]
	mov	DWORD PTR 24[rbx], eax
	test	esi, esi
	jne	.L4
.L20:
	mov	edi, DWORD PTR 20[rbx]
	lea	rsi, 12[rbx]
	call	ID3D11Device_GetImmediateContext@PLT
	mov	ecx, DWORD PTR 12[rbx]
	test	ecx, ecx
	je	.L16
	mov	edx, DWORD PTR 16[rbx]
	test	edx, edx
	jne	.L6
.L21:
	mov	edi, DWORD PTR 20[rbx]
	lea	rdx, 16[rbx]
	lea	rsi, IID_ID3D11VideoDevice[rip]
	call	ID3D11DeviceContext_QueryInterface@PLT
	mov	edi, eax
	call	FAILED@PLT
	test	rax, rax
	je	.L6
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	xor	edi, edi
	lea	rdx, .LC0[rip]
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	d3d11va_device_init, .-d3d11va_device_init
	.comm	d3d11va_default_unlock,4,4
	.comm	d3d11va_default_lock,8,8
	.comm	INVALID_HANDLE_VALUE,8,8
	.comm	IID_ID3D11VideoDevice,4,4
	.comm	IID_ID3D11VideoContext,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_UNKNOWN,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_hwcontext_d3d11va.c_d3d11va_device_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to create a mutex\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d3d11va_device_init, %function
d3d11va_device_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	ldr	r5, [r4, #24]
	cmp	r5, #0
	beq	.L20
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L21
.L4:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L20:
	mov	r2, r5
	mov	r1, r5
	mov	r0, r5
	bl	CreateMutex
	ldr	r3, .L24
	str	r0, [r4]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L23
	ldr	r3, .L24+4
	ldr	r2, .L24+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [r4, #20]
	ldr	r3, [r4, #8]
	str	r2, [r4, #24]
	cmp	r3, #0
	bne	.L4
.L21:
	ldr	r0, [r4, #16]
	add	r1, r4, #8
	bl	ID3D11Device_GetImmediateContext
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L4
.L16:
	ldr	r3, .L24+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r1, .L24+16
	add	r2, r4, #12
	ldr	r0, [r4, #16]
	bl	ID3D11DeviceContext_QueryInterface
	bl	FAILED
	cmp	r0, #0
	bne	.L16
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L8
.L7:
	ldr	r1, .L24+20
	add	r2, r4, #4
	ldr	r0, [r4, #8]
	bl	ID3D11DeviceContext_QueryInterface
	bl	FAILED
	cmp	r0, #0
	bne	.L16
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r3, .L24+24
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L24+28
	bl	av_log
	pop	{r4, r5, r6, lr}
	ldr	r3, .L24+32
	ldr	r0, [r3]
	b	AVERROR
.L25:
	.align	2
.L24:
	.word	INVALID_HANDLE_VALUE
	.word	d3d11va_default_unlock
	.word	d3d11va_default_lock
	.word	AVERROR_UNKNOWN
	.word	IID_ID3D11VideoDevice
	.word	IID_ID3D11VideoContext
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	EINVAL
	.size	d3d11va_device_init, .-d3d11va_device_init
	.comm	d3d11va_default_unlock,4,4
	.comm	d3d11va_default_lock,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.comm	IID_ID3D11VideoDevice,4,4
	.comm	IID_ID3D11VideoContext,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AVERROR_UNKNOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
