	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stop_postmaster                ## -- Begin function stop_postmaster
	.p2align	4, 0x90
_stop_postmaster:                       ## @stop_postmaster
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_os_info@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_old_cluster@GOTPCREL(%rip), %rdx
	cmpq	%rdx, %rax
	je	LBB0_2
## %bb.1:
	movq	_new_cluster@GOTPCREL(%rip), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_3
LBB0_2:
	movq	_SERVER_STOP_LOG_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rdx), %rcx
	testq	%rcx, %rcx
	leaq	L_.str.1(%rip), %rbx
	cmovneq	%rcx, %rbx
	xorl	%ecx, %ecx
	testl	%edi, %edi
	sete	%cl
	movl	12(%rdx), %r9d
	movl	8(%rdx), %r10d
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rdx, %rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %r8
	movl	%esi, %edi
	xorl	%esi, %esi
	movl	%ecx, %edx
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_exec_prog
	addq	$32, %rsp
	movq	$0, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_os_info,8,3                    ## @os_info
	.comm	_old_cluster,16,3               ## @old_cluster
	.comm	_new_cluster,16,3               ## @new_cluster
	.comm	_SERVER_STOP_LOG_FILE,4,2       ## @SERVER_STOP_LOG_FILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s/pg_ctl\" -w -D \"%s\" -o \"%s\" %s stop"

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

L_.str.2:                               ## @.str.2
	.asciz	"-m fast"

L_.str.3:                               ## @.str.3
	.asciz	"-m smart"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stop_postmaster                ; -- Begin function stop_postmaster
	.p2align	2
_stop_postmaster:                       ; @stop_postmaster
	.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
Lloh0:
	adrp	x19, _os_info@GOTPAGE
Lloh1:
	ldr	x19, [x19, _os_info@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _old_cluster@GOTPAGE
Lloh3:
	ldr	x9, [x9, _old_cluster@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x9, _new_cluster@GOTPAGE
Lloh5:
	ldr	x9, [x9, _new_cluster@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _SERVER_STOP_LOG_FILE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SERVER_STOP_LOG_FILE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, l_.str.1@PAGE
Lloh10:
	add	x10, x10, l_.str.1@PAGEOFF
	ldr	x11, [x9]
	cmp	x11, #0
	csel	x7, x10, x11, eq
	cmp	w0, #0
	cset	w2, eq
	ldp	w6, w5, [x9, #8]
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh13:
	adrp	x10, l_.str.3@PAGE
Lloh14:
	add	x10, x10, l_.str.3@PAGEOFF
	csel	x9, x10, x9, eq
	str	x9, [sp]
Lloh15:
	adrp	x4, l_.str@PAGE
Lloh16:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x8
	mov	x1, #0
	mov	x3, x2
	bl	_exec_prog
	str	xzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_os_info,8,3                    ; @os_info
	.comm	_old_cluster,16,3               ; @old_cluster
	.comm	_new_cluster,16,3               ; @new_cluster
	.comm	_SERVER_STOP_LOG_FILE,4,2       ; @SERVER_STOP_LOG_FILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s/pg_ctl\" -w -D \"%s\" -o \"%s\" %s stop"

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

l_.str.2:                               ; @.str.2
	.asciz	"-m fast"

l_.str.3:                               ; @.str.3
	.asciz	"-m smart"

.subsections_via_symbols
