	.file	"extr_eventsource.c_AddNewEventSource.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Insert event source: %S\n"
	.text
	.p2align 4
	.type	AddNewEventSource, @function
AddNewEventSource:
.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
	mov	r12d, edi
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR szName[rip]
	call	wcslen@PLT
	mov	edi, DWORD PTR EVENTSOURCE[rip]
	cdqe
	mov	esi, DWORD PTR 4[rbx+rax*4]
	call	FIELD_OFFSET@PLT
	mov	r13d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, r13d
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR 4[rax]
	mov	esi, ebp
	call	wcscpy@PLT
	mov	DWORD PTR 8[rbx], r12d
	mov	esi, DWORD PTR 4[rbx]
	lea	rdi, .LC0[rip]
	call	DPRINT@PLT
	lea	rdi, EventSourceListCs[rip]
	call	EnterCriticalSection@PLT
	lea	rdi, EventSourceListHead[rip]
	mov	rsi, rbx
	call	InsertTailList@PLT
	lea	rdi, EventSourceListCs[rip]
	call	LeaveCriticalSection@PLT
.L2:
	xor	eax, eax
	test	rbx, rbx
	setne	al
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	AddNewEventSource, .-AddNewEventSource
	.comm	szName,8,8
	.comm	EventSourceListHead,4,4
	.comm	EventSourceListCs,4,4
	.comm	EVENTSOURCE,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_eventsource.c_AddNewEventSource.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Insert event source: %S\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddNewEventSource, %function
AddNewEventSource:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	bl	GetProcessHeap
	ldr	r2, .L8
	ldr	r3, .L8+4
	mov	r4, r0
	mov	r0, r5
	ldr	r8, [r2]
	ldr	r7, [r3]
	bl	wcslen
	add	r3, r0, #1
	ldr	r1, [r7, r3, lsl #2]
	mov	r0, r8
	bl	FIELD_OFFSET
	mov	r1, #0
	mov	r2, r0
	mov	r0, r4
	bl	HeapAlloc
	subs	r4, r0, #0
	beq	.L2
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	wcscpy
	ldr	r1, [r4, #4]
	ldr	r0, .L8+8
	str	r6, [r4, #8]
	bl	DPRINT
	ldr	r0, .L8+12
	bl	EnterCriticalSection
	mov	r1, r4
	ldr	r0, .L8+16
	bl	InsertTailList
	ldr	r0, .L8+12
	bl	LeaveCriticalSection
.L2:
	subs	r0, r4, #0
	movne	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	EVENTSOURCE
	.word	szName
	.word	.LC0
	.word	EventSourceListCs
	.word	EventSourceListHead
	.size	AddNewEventSource, .-AddNewEventSource
	.comm	szName,4,4
	.comm	EventSourceListHead,4,4
	.comm	EventSourceListCs,4,4
	.comm	EVENTSOURCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
