	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetEventSourceByName           ## -- Begin function GetEventSourceByName
	.p2align	4, 0x90
_GetEventSourceByName:                  ## @GetEventSourceByName
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	_EventSourceListCs@GOTPCREL(%rip), %rdi
	callq	_EnterCriticalSection
	movq	_EventSourceListHead@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	cmpq	%r14, %rbx
	je	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EVENTSOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EventSourceListEntry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_CONTAINING_RECORD
	movq	%rax, %r13
	movq	(%rax), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	(%r13), %rdi
	movq	%r15, %rsi
	callq	__wcsicmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rbx
	cmpq	%r14, %rbx
	jne	LBB0_2
## %bb.4:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
LBB0_6:
	movq	_EventSourceListCs@GOTPCREL(%rip), %rdi
	callq	_LeaveCriticalSection
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetEventSourceByName(%S)\n"

	.comm	_EventSourceListCs,4,2          ## @EventSourceListCs
	.comm	_EventSourceListHead,8,3        ## @EventSourceListHead
	.comm	_EVENTSOURCE,4,2                ## @EVENTSOURCE
	.comm	_EventSourceListEntry,4,2       ## @EventSourceListEntry
L_.str.1:                               ## @.str.1
	.asciz	"Item->szName: %S\n"

L_.str.2:                               ## @.str.2
	.asciz	"Found it\n"

L_.str.3:                               ## @.str.3
	.asciz	"Done (Result: %p)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetEventSourceByName           ; -- Begin function GetEventSourceByName
	.p2align	2
_GetEventSourceByName:                  ; @GetEventSourceByName
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
Lloh2:
	adrp	x0, _EventSourceListCs@GOTPAGE
Lloh3:
	ldr	x0, [x0, _EventSourceListCs@GOTPAGEOFF]
	bl	_EnterCriticalSection
Lloh4:
	adrp	x23, _EventSourceListHead@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EventSourceListHead@GOTPAGEOFF]
	ldr	x20, [x23]
	cmp	x20, x23
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x24, _EVENTSOURCE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EVENTSOURCE@GOTPAGEOFF]
Lloh8:
	adrp	x25, _EventSourceListEntry@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EventSourceListEntry@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_CONTAINING_RECORD
	mov	x21, x0
	ldr	x8, [x0]
	str	x8, [sp]
	mov	x0, x22
	bl	_DPRINT
	ldr	x0, [x21]
	mov	x1, x19
	bl	__wcsicmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x20]
	cmp	x20, x23
	b.ne	LBB0_2
LBB0_4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
LBB0_6:
Lloh14:
	adrp	x0, _EventSourceListCs@GOTPAGE
Lloh15:
	ldr	x0, [x0, _EventSourceListCs@GOTPAGEOFF]
	bl	_LeaveCriticalSection
	str	x21, [sp]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINT
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetEventSourceByName(%S)\n"

	.comm	_EventSourceListCs,4,2          ; @EventSourceListCs
	.comm	_EventSourceListHead,8,3        ; @EventSourceListHead
	.comm	_EVENTSOURCE,4,2                ; @EVENTSOURCE
	.comm	_EventSourceListEntry,4,2       ; @EventSourceListEntry
l_.str.1:                               ; @.str.1
	.asciz	"Item->szName: %S\n"

l_.str.2:                               ; @.str.2
	.asciz	"Found it\n"

l_.str.3:                               ; @.str.3
	.asciz	"Done (Result: %p)\n"

.subsections_via_symbols
