	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LogToEventLog
_LogToEventLog:                         ## @LogToEventLog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	movl	%edi, -20(%rbp)
	movq	_lpEventSource@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_RegisterEventSourceW
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_LOG_ERROR@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	jne	LBB0_2
## %bb.3:
	movq	_EVENTLOG_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_EVENTLOG_ERROR_TYPE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	-20(%rbp), %rax
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_ReportEventW
	addq	$32, %rsp
	movq	%rbx, %rdi
	callq	_CloseEventLog
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lpEventSource,4,2              ## @lpEventSource
	.comm	_LOG_ERROR,4,2                  ## @LOG_ERROR
	.comm	_EVENTLOG_ERROR_TYPE,4,2        ## @EVENTLOG_ERROR_TYPE
	.comm	_EVENTLOG_SUCCESS,4,2           ## @EVENTLOG_SUCCESS
	.no_dead_strip	_LogToEventLog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LogToEventLog
_LogToEventLog:                         ; @LogToEventLog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _lpEventSource@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lpEventSource@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_RegisterEventSourceW
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EVENTLOG_ERROR_TYPE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EVENTLOG_ERROR_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _EVENTLOG_SUCCESS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EVENTLOG_SUCCESS@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	str	xzr, [sp]
	add	x7, sp, #12
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_ReportEventW
	mov	x0, x19
	bl	_CloseEventLog
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_lpEventSource,4,2              ; @lpEventSource
	.comm	_LOG_ERROR,4,2                  ; @LOG_ERROR
	.comm	_EVENTLOG_ERROR_TYPE,4,2        ; @EVENTLOG_ERROR_TYPE
	.comm	_EVENTLOG_SUCCESS,4,2           ; @EVENTLOG_SUCCESS
	.no_dead_strip	_LogToEventLog
.subsections_via_symbols
