	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_disconnections
_log_disconnections:                    ## @log_disconnections
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MyProcPort@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_MyStartTimestamp@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	leaq	-40(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TimestampDifference
	movslq	-28(%rbp), %rax
	imulq	$274877907, %rax, %r8           ## imm = 0x10624DD3
	movq	%r8, %rcx
	shrq	$63, %rcx
	sarq	$38, %r8
	movq	-40(%rbp), %rax
	movq	_SECS_PER_HOUR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rsi
	movq	%rax, %rsi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %esi
LBB0_3:
	addl	%ecx, %r8d
	movq	%rdx, -40(%rbp)
	movq	_SECS_PER_MINUTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%rdx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_6
LBB0_4:
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	movq	_LOG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	movl	16(%r14), %r9d
	movl	12(%r14), %r10d
	movl	8(%r14), %r11d
	movq	(%r14), %r14
	cmpq	$0, (%r14)
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rdx, %rbx
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%r14
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_errmsg
	addq	$32, %rsp
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyProcPort,8,3                 ## @MyProcPort
	.comm	_MyStartTimestamp,4,2           ## @MyStartTimestamp
	.comm	_SECS_PER_HOUR,8,3              ## @SECS_PER_HOUR
	.comm	_SECS_PER_MINUTE,8,3            ## @SECS_PER_MINUTE
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnection: session time: %d:%02d:%02d.%03d user=%s database=%s host=%s%s%s"

L_.str.1:                               ## @.str.1
	.asciz	" port="

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_log_disconnections
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_disconnections
_log_disconnections:                    ; @log_disconnections
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _MyProcPort@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyProcPort@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _MyStartTimestamp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MyStartTimestamp@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_GetCurrentTimestamp
	mov	x1, x0
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x19
	bl	_TimestampDifference
	ldrsw	x8, [sp, #20]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w4, w8, w9
Lloh6:
	adrp	x8, _SECS_PER_HOUR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SECS_PER_HOUR@GOTPAGEOFF]
	ldr	x9, [sp, #24]
Lloh8:
	ldr	x8, [x8]
	sdiv	x1, x9, x8
	msub	x8, x1, x8, x9
Lloh9:
	adrp	x9, _SECS_PER_MINUTE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SECS_PER_MINUTE@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh11:
	ldr	x9, [x9]
	sdiv	x2, x8, x9
	msub	w3, w2, w9, w8
Lloh12:
	adrp	x8, _LOG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	ldp	w6, w5, [x20, #12]
	ldr	w7, [x20, #8]
	ldr	x8, [x20]
	ldr	x9, [x8]
Lloh15:
	adrp	x10, l_.str.1@PAGE
Lloh16:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh17:
	adrp	x11, l_.str.2@PAGE
Lloh18:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x9, #0
	csel	x9, x11, x10, eq
	stp	x9, x8, [sp]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MyProcPort,8,3                 ; @MyProcPort
	.comm	_MyStartTimestamp,4,2           ; @MyStartTimestamp
	.comm	_SECS_PER_HOUR,8,3              ; @SECS_PER_HOUR
	.comm	_SECS_PER_MINUTE,8,3            ; @SECS_PER_MINUTE
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnection: session time: %d:%02d:%02d.%03d user=%s database=%s host=%s%s%s"

l_.str.1:                               ; @.str.1
	.asciz	" port="

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_log_disconnections
.subsections_via_symbols
