	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DllRegisterServer              ## -- Begin function DllRegisterServer
	.p2align	4, 0x90
_DllRegisterServer:                     ## @DllRegisterServer
	.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	%r12
	pushq	%rbx
	subq	$432, %rsp                      ## imm = 0x1B0
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	__MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_g_module@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_GetModuleFileName
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_event_source@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	leaq	-448(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$400, %esi                      ## imm = 0x190
	callq	__snprintf
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-452(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_RegCreateKey
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movl	-452(%rbp), %ebx
	movq	_REG_EXPAND_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r9d
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_RegSetValueEx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	movq	_EVENTLOG_ERROR_TYPE@GOTPCREL(%rip), %rax
	movq	_EVENTLOG_WARNING_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_EVENTLOG_INFORMATION_TYPE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -456(%rbp)
	movl	-452(%rbp), %edi
	movq	_REG_DWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-456(%rbp), %r8
	leaq	L_.str.6(%rip), %rsi
	xorl	%edx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	$4, %r9d
	callq	_RegSetValueEx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONSTOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	callq	_MessageBox
	movq	_SELFREG_E_TYPELIB@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-452(%rbp), %edi
	callq	_RegCloseKey
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__MAX_PATH,4,2                  ## @_MAX_PATH
	.comm	_g_module,8,3                   ## @g_module
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not retrieve DLL filename"

L_.str.1:                               ## @.str.1
	.asciz	"PostgreSQL error"

	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONSTOP,4,2                ## @MB_ICONSTOP
	.comm	_SELFREG_E_TYPELIB,4,2          ## @SELFREG_E_TYPELIB
L_.str.2:                               ## @.str.2
	.asciz	"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\%s"

	.comm	_event_source,4,2               ## @event_source
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
L_.str.3:                               ## @.str.3
	.asciz	"Could not create the registry key."

L_.str.4:                               ## @.str.4
	.asciz	"EventMessageFile"

	.comm	_REG_EXPAND_SZ,4,2              ## @REG_EXPAND_SZ
L_.str.5:                               ## @.str.5
	.asciz	"Could not set the event message file."

	.comm	_EVENTLOG_ERROR_TYPE,4,2        ## @EVENTLOG_ERROR_TYPE
	.comm	_EVENTLOG_WARNING_TYPE,4,2      ## @EVENTLOG_WARNING_TYPE
	.comm	_EVENTLOG_INFORMATION_TYPE,4,2  ## @EVENTLOG_INFORMATION_TYPE
L_.str.6:                               ## @.str.6
	.asciz	"TypesSupported"

	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
L_.str.7:                               ## @.str.7
	.asciz	"Could not set the supported types."

	.comm	_S_OK,4,2                       ## @S_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DllRegisterServer              ; -- Begin function DllRegisterServer
	.p2align	2
_DllRegisterServer:                     ; @DllRegisterServer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #416
	mov	x19, sp
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, __MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, __MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x9, x2
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x8, _g_module@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_module@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_GetModuleFileName
	cbz	w0, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _event_source@GOTPAGE
Lloh12:
	ldr	x8, [x8, _event_source@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, x19, #8
	mov	w1, #400
	bl	__snprintf
Lloh16:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, x19, #8
	add	x2, x19, #4
	bl	_RegCreateKey
	cbz	x0, LBB0_4
; %bb.2:
Lloh19:
	adrp	x8, _MB_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _MB_ICONSTOP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MB_ICONSTOP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh27:
	adrp	x8, _MB_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _MB_ICONSTOP@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MB_ICONSTOP@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldr	w21, [x19, #4]
Lloh35:
	adrp	x8, _REG_EXPAND_SZ@GOTPAGE
Lloh36:
	ldr	x8, [x8, _REG_EXPAND_SZ@GOTPAGEOFF]
Lloh37:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_strlen
	add	w5, w0, #1
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	mov	x3, x22
	mov	x4, x20
	bl	_RegSetValueEx
	cbz	x0, LBB0_6
; %bb.5:
Lloh40:
	adrp	x8, _MB_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _MB_ICONSTOP@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MB_ICONSTOP@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh48:
	adrp	x8, _EVENTLOG_ERROR_TYPE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EVENTLOG_ERROR_TYPE@GOTPAGEOFF]
Lloh50:
	adrp	x9, _EVENTLOG_WARNING_TYPE@GOTPAGE
Lloh51:
	ldr	x9, [x9, _EVENTLOG_WARNING_TYPE@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh54:
	adrp	x9, _EVENTLOG_INFORMATION_TYPE@GOTPAGE
Lloh55:
	ldr	x9, [x9, _EVENTLOG_INFORMATION_TYPE@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x19, #4]
Lloh57:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh58:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh59:
	ldr	w3, [x8]
Lloh60:
	adrp	x1, l_.str.6@PAGE
Lloh61:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x4, x19, #0
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueEx
	cbz	x0, LBB0_11
; %bb.7:
Lloh62:
	adrp	x8, _MB_OK@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _MB_ICONSTOP@GOTPAGE
Lloh66:
	ldr	x9, [x9, _MB_ICONSTOP@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh68:
	adrp	x1, l_.str.7@PAGE
Lloh69:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_8:
Lloh70:
	adrp	x2, l_.str.1@PAGE
Lloh71:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_MessageBox
Lloh72:
	adrp	x8, _SELFREG_E_TYPELIB@GOTPAGE
Lloh73:
	ldr	x8, [x8, _SELFREG_E_TYPELIB@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh74:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh75:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_RegCloseKey
Lloh77:
	adrp	x8, _S_OK@GOTPAGE
Lloh78:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	__MAX_PATH,4,2                  ; @_MAX_PATH
	.comm	_g_module,8,3                   ; @g_module
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not retrieve DLL filename"

l_.str.1:                               ; @.str.1
	.asciz	"PostgreSQL error"

	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONSTOP,4,2                ; @MB_ICONSTOP
	.comm	_SELFREG_E_TYPELIB,4,2          ; @SELFREG_E_TYPELIB
l_.str.2:                               ; @.str.2
	.asciz	"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\%s"

	.comm	_event_source,4,2               ; @event_source
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
l_.str.3:                               ; @.str.3
	.asciz	"Could not create the registry key."

l_.str.4:                               ; @.str.4
	.asciz	"EventMessageFile"

	.comm	_REG_EXPAND_SZ,4,2              ; @REG_EXPAND_SZ
l_.str.5:                               ; @.str.5
	.asciz	"Could not set the event message file."

	.comm	_EVENTLOG_ERROR_TYPE,4,2        ; @EVENTLOG_ERROR_TYPE
	.comm	_EVENTLOG_WARNING_TYPE,4,2      ; @EVENTLOG_WARNING_TYPE
	.comm	_EVENTLOG_INFORMATION_TYPE,4,2  ; @EVENTLOG_INFORMATION_TYPE
l_.str.6:                               ; @.str.6
	.asciz	"TypesSupported"

	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
l_.str.7:                               ; @.str.7
	.asciz	"Could not set the supported types."

	.comm	_S_OK,4,2                       ; @S_OK
.subsections_via_symbols
