	.file	"extr_notify.c_LsapRegisterNotification.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LsapRegisterNotification(%p)\n"
	.text
	.p2align 4
	.globl	LsapRegisterNotification
	.type	LsapRegisterNotification, @function
LsapRegisterNotification:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rsi, rdi
	mov	r13d, DWORD PTR STATUS_SUCCESS[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	FIXME@PLT
	mov	esi, DWORD PTR TRUE[rip]
	lea	rdi, NotificationListLock[rip]
	call	RtlAcquireResourceExclusive@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L2
	mov	r12d, DWORD PTR HEAP_ZERO_MEMORY[rip]
	xor	eax, eax
	call	RtlGetProcessHeap@PLT
	mov	edx, 4
	mov	esi, r12d
	mov	edi, eax
	call	RtlAllocateHeap@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR [rbx]
	lea	rdi, NotificationListHead[rip]
	mov	DWORD PTR 8[rsi], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[rsi], eax
	call	InsertHeadList@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	call	LsapGetNotificationEntry@PLT
	mov	r12, rax
	test	rax, rax
	je	.L9
	mov	rdi, rax
	call	RemoveEntryList@PLT
	xor	eax, eax
	call	RtlGetProcessHeap@PLT
	mov	rdx, r12
	xor	esi, esi
	mov	edi, eax
	call	RtlFreeHeap@PLT
.L4:
	lea	rdi, NotificationListLock[rip]
	call	RtlReleaseResource@PLT
	mov	eax, r13d
	pop	rbx
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	r13d, DWORD PTR STATUS_INVALID_HANDLE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r13d, DWORD PTR STATUS_INSUFFICIENT_RESOURCES[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	LsapRegisterNotification, .-LsapRegisterNotification
	.comm	TRUE,4,4
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INVALID_HANDLE,4,4
	.comm	STATUS_INSUFFICIENT_RESOURCES,4,4
	.comm	NotificationListLock,4,4
	.comm	NotificationListHead,4,4
	.comm	HEAP_ZERO_MEMORY,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_notify.c_LsapRegisterNotification.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LsapRegisterNotification(%p)\012\000"
	.text
	.align	2
	.global	LsapRegisterNotification
	.syntax unified
	.arm
	.fpu softvfp
	.type	LsapRegisterNotification, %function
LsapRegisterNotification:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L10
	mov	r1, r0
	ldr	r0, .L10+4
	ldr	r6, [r3]
	bl	FIXME
	ldr	r3, .L10+8
	ldr	r0, .L10+12
	ldr	r1, [r3]
	bl	RtlAcquireResourceExclusive
	ldr	r5, [r4, #8]
	cmp	r5, #0
	beq	.L2
	bl	RtlGetProcessHeap
	ldr	r3, .L10+16
	mov	r2, #4
	ldr	r1, [r3]
	bl	RtlAllocateHeap
	subs	r1, r0, #0
	beq	.L8
	ldm	r4, {r2, r3}
	ldr	r0, .L10+20
	str	r2, [r1, #8]
	str	r3, [r1, #4]
	bl	InsertHeadList
	b	.L4
.L2:
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	LsapGetNotificationEntry
	subs	r4, r0, #0
	beq	.L9
	bl	RemoveEntryList
	bl	RtlGetProcessHeap
	mov	r2, r4
	mov	r1, r5
	bl	RtlFreeHeap
.L4:
	ldr	r0, .L10+12
	bl	RtlReleaseResource
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L10+24
	ldr	r6, [r3]
	b	.L4
.L8:
	ldr	r3, .L10+28
	ldr	r6, [r3]
	b	.L4
.L11:
	.align	2
.L10:
	.word	STATUS_SUCCESS
	.word	.LC0
	.word	TRUE
	.word	NotificationListLock
	.word	HEAP_ZERO_MEMORY
	.word	NotificationListHead
	.word	STATUS_INVALID_HANDLE
	.word	STATUS_INSUFFICIENT_RESOURCES
	.size	LsapRegisterNotification, .-LsapRegisterNotification
	.comm	TRUE,4,4
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_INVALID_HANDLE,4,4
	.comm	STATUS_INSUFFICIENT_RESOURCES,4,4
	.comm	NotificationListLock,4,4
	.comm	NotificationListHead,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
