	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function LoadEventSources
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_LoadEventSources
	.p2align	4, 0x90
_LoadEventSources:                      ## @LoadEventSources
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rsp)
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	-72(%rbp), %r8
	leaq	-44(%rbp), %r9
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_RegQueryInfoKeyW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	incl	-44(%rbp)
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-44(%rbp), %edx
	shll	$2, %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movl	-44(%rbp), %ebx
	imull	-72(%rbp), %ebx
	movq	(%r15), %rdi
	callq	_wcslen
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %r12d
	addl	%eax, %r12d
	addl	%eax, %ebx
	addl	$2, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	8(,%r12,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movslq	%ebx, %rcx
	movq	%rcx, -56(%rbp)
	movq	%rax, -64(%rbp)
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DPRINT1
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT1
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT1
LBB0_7:
	movl	-44(%rbp), %eax
	movl	%eax, -68(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-68(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.8:
	movl	$1, %ebx
	leaq	-68(%rbp), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, -68(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	incl	%ebx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	%r13, %rsi
	callq	__wcsicmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_AddNewEventSource
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r13, %rdx
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_StringCchCopyExW
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, -64(%rbp)
	movl	$0, 4(%rcx)
	decq	%rax
	movq	%rax, -56(%rbp)
	jmp	LBB0_14
LBB0_15:
	movq	(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	(%r15), %rsi
	movq	%r15, %rdi
	callq	_AddNewEventSource
	movq	-56(%rbp), %rsi
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_21
## %bb.18:
	movq	(%r15), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-56(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_StringCchCopyExW
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.20:
	movq	-64(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, -64(%rbp)
	movl	$0, 4(%rax)
	decq	%rsi
	movq	%rsi, -56(%rbp)
	jmp	LBB0_21
LBB0_16:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_19:
	xorl	%esi, %esi
LBB0_21:
	movq	_REG_MULTI_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	subl	%esi, %eax
	leal	4(,%rax,4), %r9d
	leaq	l_.str.4(%rip), %rsi
	movl	%r14d, %edi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	callq	_RegSetValueExW
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_DPRINT1
LBB0_23:
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_25:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_DumpEventSourceList
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_26:
	movq	(%rax), %rax
	addq	$104, %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	"LoadEventSources\n"

	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"RegQueryInfoKeyW failed: %lu\n"

	.comm	_FALSE,8,3                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"Error: cannot allocate heap!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Event Source: %S\n"

	.section	__TEXT,__const
	.p2align	2                               ## @.str.4
l_.str.4:
	.long	83                              ## 0x53
	.long	111                             ## 0x6f
	.long	117                             ## 0x75
	.long	114                             ## 0x72
	.long	99                              ## 0x63
	.long	101                             ## 0x65
	.long	115                             ## 0x73
	.long	0                               ## 0x0

	.comm	_REG_MULTI_SZ,4,2               ## @REG_MULTI_SZ
	.section	__TEXT,__cstring,cstring_literals
L_.str.5:                               ## @.str.5
	.asciz	"RegSetValueExW failed: %lu\n"

	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadEventSources               ; -- Begin function LoadEventSources
	.p2align	2
_LoadEventSources:                      ; @LoadEventSources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	add	x4, sp, #60
	add	x5, sp, #56
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegQueryInfoKeyW
Lloh2:
	adrp	x25, _ERROR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [sp, #56]
	add	w8, w8, #1
	str	w8, [sp, #56]
	bl	_GetProcessHeap
	ldr	w8, [sp, #56]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldp	w23, w21, [sp, #56]
	ldr	x0, [x22]
	bl	_wcslen
	madd	w8, w23, w21, w0
	add	w26, w8, #2
	bl	_GetProcessHeap
	lsl	w2, w26, #2
	mov	w1, #0
	bl	_HeapAlloc
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.3:
	sxtw	x8, w26
	stp	x8, x21, [sp, #32]
	b	LBB0_8
LBB0_4:
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_DPRINT1
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_26
LBB0_7:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT1
LBB0_8:
	ldr	w8, [sp, #56]
	str	w8, [sp, #52]
	add	x3, sp, #52
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.9:
	mov	w23, #1
Lloh12:
	adrp	x24, l_.str.3@PAGE
Lloh13:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #56]
	str	w8, [sp, #52]
	add	x3, sp, #52
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	ldr	x8, [x25]
	add	w23, w23, #1
	cmp	x0, x8
	b.ne	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22]
	mov	x1, x20
	bl	__wcsicmp
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x20, [sp]
	mov	x0, x24
	bl	_DPRINT
	mov	x0, x22
	mov	x1, x20
	bl	_AddNewEventSource
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x1, [sp, #32]
	add	x3, sp, #40
	add	x4, sp, #32
	mov	x2, x20
	mov	w5, #0
	bl	_StringCchCopyExW
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [sp, #40]
	str	wzr, [x9, #4]!
	sub	x8, x8, #1
	stp	x8, x9, [sp, #32]
	b	LBB0_10
LBB0_16:
	ldr	x8, [x22]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINT
	ldr	x1, [x22]
	mov	x0, x22
	bl	_AddNewEventSource
	ldr	x1, [sp, #32]
	cbz	x0, LBB0_21
; %bb.17:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_21
; %bb.18:
	ldr	x2, [x22]
	add	x3, sp, #40
	add	x4, sp, #32
	mov	w5, #0
	bl	_StringCchCopyExW
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_20
; %bb.19:
	ldr	x9, [sp, #40]
	str	wzr, [x9, #4]!
	sub	x1, x8, #1
	stp	x1, x9, [sp, #32]
	b	LBB0_21
LBB0_20:
	mov	x1, #0
LBB0_21:
Lloh16:
	adrp	x8, _REG_MULTI_SZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _REG_MULTI_SZ@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	sub	w8, w26, w1
	lsl	w8, w8, #2
	add	w5, w8, #4
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x4, x21
	bl	_RegSetValueExW
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_23
; %bb.22:
	str	x0, [sp]
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DPRINT1
LBB0_23:
	cbz	x21, LBB0_25
; %bb.24:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x21
	bl	_HeapFree
LBB0_25:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	bl	_DumpEventSourceList
Lloh23:
	adrp	x8, _TRUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_26:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LoadEventSources\n"

	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"RegQueryInfoKeyW failed: %lu\n"

	.comm	_FALSE,8,3                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"Error: cannot allocate heap!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Event Source: %S\n"

	.section	__TEXT,__const
	.p2align	2                               ; @.str.4
l_.str.4:
	.long	83                              ; 0x53
	.long	111                             ; 0x6f
	.long	117                             ; 0x75
	.long	114                             ; 0x72
	.long	99                              ; 0x63
	.long	101                             ; 0x65
	.long	115                             ; 0x73
	.long	0                               ; 0x0

	.comm	_REG_MULTI_SZ,4,2               ; @REG_MULTI_SZ
	.section	__TEXT,__cstring,cstring_literals
l_.str.5:                               ; @.str.5
	.asciz	"RegSetValueExW failed: %lu\n"

	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
