	.file	"extr_handle.c_alloc_msi_remote_handle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%p -> %d\n"
	.text
	.p2align 4
	.globl	alloc_msi_remote_handle
	.type	alloc_msi_remote_handle, @function
alloc_msi_remote_handle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, MSI_handle_cs[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	EnterCriticalSection@PLT
	xor	eax, eax
	call	alloc_handle_table_entry@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
.L2:
	lea	rdi, MSI_handle_cs[rip]
	call	LeaveCriticalSection@PLT
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, QWORD PTR msihandletable[rip]
	cdqe
	mov	rdi, rbp
	sal	rax, 4
	lea	rbx, -16[rdx+rax]
	call	IUnknown_AddRef@PLT
	mov	QWORD PTR 8[rbx], rbp
	xor	eax, eax
	call	GetCurrentThreadId@PLT
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	alloc_msi_remote_handle, .-alloc_msi_remote_handle
	.comm	msihandletable,8,8
	.comm	TRUE,4,4
	.comm	MSI_handle_cs,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_handle.c_alloc_msi_remote_handle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%p -> %d\012\000"
	.text
	.align	2
	.global	alloc_msi_remote_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_msi_remote_handle, %function
alloc_msi_remote_handle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, .L9
	bl	EnterCriticalSection
	bl	alloc_handle_table_entry
	subs	r4, r0, #0
	bne	.L8
.L2:
	ldr	r0, .L9
	bl	LeaveCriticalSection
	mov	r2, r4
	mov	r1, r5
	ldr	r0, .L9+4
	bl	TRACE
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+8
	add	r6, r4, r4, lsl #1
	ldr	r7, [r3]
	lsl	r6, r6, #2
	sub	r6, r6, #12
	add	r8, r7, r6
	mov	r0, r5
	bl	IUnknown_AddRef
	str	r5, [r8, #8]
	bl	GetCurrentThreadId
	ldr	r3, .L9+12
	str	r0, [r8, #4]
	ldr	r3, [r3]
	str	r3, [r7, r6]
	b	.L2
.L10:
	.align	2
.L9:
	.word	MSI_handle_cs
	.word	.LC0
	.word	msihandletable
	.word	TRUE
	.size	alloc_msi_remote_handle, .-alloc_msi_remote_handle
	.comm	msihandletable,4,4
	.comm	TRUE,4,4
	.comm	MSI_handle_cs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
