	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_ssl_key_file_permissions ## -- Begin function check_ssl_key_file_permissions
	.p2align	4, 0x90
_check_ssl_key_file_permissions:        ## @check_ssl_key_file_permissions
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	jne	LBB0_1
## %bb.2:
	movq	_LOG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FATAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movq	%rbx, %rsi
	callq	_errmsg
LBB0_16:
	movl	%eax, %esi
	movl	%r14d, %edi
	callq	_ereport
	xorl	%eax, %eax
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-48(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	-40(%rbp), %r12
	xorl	%eax, %eax
	callq	_geteuid
	movq	-40(%rbp), %r15
	cmpq	%rax, %r12
	je	LBB0_11
## %bb.9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	_ERRCODE_CONFIG_FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	movq	_ERRCODE_CONFIG_FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_11:
	xorl	%eax, %eax
	callq	_geteuid
	cmpq	%rax, %r15
	jne	LBB0_13
## %bb.12:
	movq	_S_IRWXG@GOTPCREL(%rip), %rax
	movq	_S_IRWXO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, -48(%rbp)
	jne	LBB0_15
LBB0_13:
	movl	$1, %eax
	cmpq	$0, -40(%rbp)
	jne	LBB0_17
## %bb.14:
	movq	_S_IWGRP@GOTPCREL(%rip), %rcx
	movq	_S_IXGRP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_S_IRWXO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%edx, -48(%rbp)
	je	LBB0_17
LBB0_15:
	movq	_ERRCODE_CONFIG_FILE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	leaq	L_.str.4(%rip), %rdi
	callq	_errdetail
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_FATAL,4,2                      ## @FATAL
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not access private key file \"%s\": %m"

	.comm	_ERRCODE_CONFIG_FILE_ERROR,4,2  ## @ERRCODE_CONFIG_FILE_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"private key file \"%s\" is not a regular file"

L_.str.2:                               ## @.str.2
	.asciz	"private key file \"%s\" must be owned by the database user or root"

	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_S_IRWXO,4,2                    ## @S_IRWXO
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
L_.str.3:                               ## @.str.3
	.asciz	"private key file \"%s\" has group or world access"

L_.str.4:                               ## @.str.4
	.asciz	"File must have permissions u=rw (0600) or less if owned by the database user, or permissions u=rw,g=r (0640) or less if owned by root."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_ssl_key_file_permissions ; -- Begin function check_ssl_key_file_permissions
	.p2align	2
_check_ssl_key_file_permissions:        ; @check_ssl_key_file_permissions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _FATAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LOG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LOG@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w19, [x8]
	mov	x1, sp
	bl	_stat
	cbz	x0, LBB0_5
; %bb.1:
	bl	_errcode_for_file_access
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	mov	x1, x20
	bl	_errmsg
LBB0_3:
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	mov	w0, #0
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w0, [sp]
	bl	_S_ISREG
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x22, [sp, #8]
	bl	_geteuid
	ldr	x21, [sp, #8]
	cmp	x22, x0
	b.eq	LBB0_10
; %bb.7:
	cbz	x21, LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_9:
Lloh11:
	adrp	x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_10:
	bl	_geteuid
	cmp	x21, x0
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [sp]
Lloh16:
	adrp	x9, _S_IRWXG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _S_IRWXG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	adrp	x10, _S_IRWXO@GOTPAGE
Lloh20:
	ldr	x10, [x10, _S_IRWXO@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_15
LBB0_12:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
LBB0_13:
	mov	w0, #1
	b	LBB0_4
LBB0_14:
	ldr	w8, [sp]
Lloh22:
	adrp	x9, _S_IWGRP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _S_IWGRP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _S_IXGRP@GOTPAGE
Lloh26:
	ldr	x10, [x10, _S_IXGRP@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh28:
	adrp	x10, _S_IRWXO@GOTPAGE
Lloh29:
	ldr	x10, [x10, _S_IRWXO@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_13
LBB0_15:
Lloh31:
	adrp	x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERRCODE_CONFIG_FILE_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_errcode
Lloh34:
	adrp	x0, l_.str.3@PAGE
Lloh35:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_errmsg
Lloh36:
	adrp	x0, l_.str.4@PAGE
Lloh37:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errdetail
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_FATAL,4,2                      ; @FATAL
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not access private key file \"%s\": %m"

	.comm	_ERRCODE_CONFIG_FILE_ERROR,4,2  ; @ERRCODE_CONFIG_FILE_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"private key file \"%s\" is not a regular file"

l_.str.2:                               ; @.str.2
	.asciz	"private key file \"%s\" must be owned by the database user or root"

	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_S_IRWXO,4,2                    ; @S_IRWXO
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
l_.str.3:                               ; @.str.3
	.asciz	"private key file \"%s\" has group or world access"

l_.str.4:                               ; @.str.4
	.asciz	"File must have permissions u=rw (0600) or less if owned by the database user, or permissions u=rw,g=r (0640) or less if owned by root."

.subsections_via_symbols
