	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parseServiceInfo
_parseServiceInfo:                      ## @parseServiceInfo
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_conninfo_getval
	movq	%rax, %r12
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	$0, -52(%rbp)
	testq	%r12, %r12
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
LBB0_9:
	leaq	-52(%rbp), %r8
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_parseServiceFile
	movl	%eax, %ecx
	orl	-52(%rbp), %ecx
	je	LBB0_10
	jmp	LBB0_16
LBB0_5:
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pqGetHomeDirectory
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %r8
	movq	%r13, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movl	-56(%rbp), %r14d                ## 4-byte Reload
LBB0_10:
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.6(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_SYSCONFDIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_13
LBB0_14:
	cmpl	$0, -52(%rbp)
	movl	$0, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rdi
	callq	_libpq_gettext
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_printfPQExpBuffer
	movl	$3, %eax
	jmp	LBB0_16
LBB0_13:
	leaq	-52(%rbp), %r8
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_parseServiceFile
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_14
LBB0_2:
	xorl	%eax, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"service"

	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
L_.str.1:                               ## @.str.1
	.asciz	"PGSERVICE"

L_.str.2:                               ## @.str.2
	.asciz	"PGSERVICEFILE"

L_.str.3:                               ## @.str.3
	.asciz	"%s/%s"

L_.str.4:                               ## @.str.4
	.asciz	".pg_service.conf"

L_.str.5:                               ## @.str.5
	.asciz	"%s/pg_service.conf"

L_.str.6:                               ## @.str.6
	.asciz	"PGSYSCONFDIR"

	.comm	_SYSCONFDIR,8,3                 ## @SYSCONFDIR
L_.str.7:                               ## @.str.7
	.asciz	"definition of service \"%s\" not found\n"

	.no_dead_strip	_parseServiceInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parseServiceInfo
_parseServiceInfo:                      ; @parseServiceInfo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_conninfo_getval
	mov	x20, x0
Lloh5:
	adrp	x25, _MAXPGPATH@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MAXPGPATH@GOTPAGEOFF]
	ldr	w23, [x25]
	mov	x9, x23
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	stur	wzr, [x29, #-76]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x20, x0
	cbz	x0, LBB0_13
LBB0_2:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_strlcpy
LBB0_4:
	sub	x4, x29, #76
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_parseServiceFile
	ldur	w8, [x29, #-76]
	orr	w8, w8, w0
	cbz	w8, LBB0_8
	b	LBB0_13
LBB0_5:
	mov	x26, sp
	mov	x9, x23
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	mov	x0, x24
	mov	x1, x23
	bl	_pqGetHomeDirectory
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w1, [x25]
Lloh15:
	adrp	x8, l_.str.4@PAGE
Lloh16:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [sp, #-16]!
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x3, x24
	bl	_snprintf
	add	sp, sp, #16
	sub	x1, x29, #80
	mov	x0, x22
	bl	_stat
	cbz	x0, LBB0_15
LBB0_7:
	mov	sp, x26
LBB0_8:
	ldr	w23, [x25]
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_getenv
Lloh21:
	adrp	x8, _SYSCONFDIR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SYSCONFDIR@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x3, x8, x0, eq
Lloh24:
	adrp	x2, l_.str.5@PAGE
Lloh25:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
	sub	x1, x29, #80
	mov	x0, x22
	bl	_stat
	cbz	x0, LBB0_11
LBB0_9:
	ldur	w8, [x29, #-76]
	cbz	w8, LBB0_12
; %bb.10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	sub	x4, x29, #76
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_parseServiceFile
	cbnz	w0, LBB0_13
	b	LBB0_9
LBB0_12:
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_printfPQExpBuffer
	mov	w0, #3
LBB0_13:
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	sp, x26
	b	LBB0_4
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"service"

	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
l_.str.1:                               ; @.str.1
	.asciz	"PGSERVICE"

l_.str.2:                               ; @.str.2
	.asciz	"PGSERVICEFILE"

l_.str.3:                               ; @.str.3
	.asciz	"%s/%s"

l_.str.4:                               ; @.str.4
	.asciz	".pg_service.conf"

l_.str.5:                               ; @.str.5
	.asciz	"%s/pg_service.conf"

l_.str.6:                               ; @.str.6
	.asciz	"PGSYSCONFDIR"

	.comm	_SYSCONFDIR,8,3                 ; @SYSCONFDIR
l_.str.7:                               ; @.str.7
	.asciz	"definition of service \"%s\" not found\n"

	.no_dead_strip	_parseServiceInfo
.subsections_via_symbols
