	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQencryptPasswordConn          ## -- Begin function PQencryptPasswordConn
	.p2align	4, 0x90
_PQencryptPasswordConn:                 ## @PQencryptPasswordConn
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rcx, %rcx
	je	LBB0_9
LBB0_2:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.5(%rip), %rbx
LBB0_5:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	leaq	L_.str.7(%rip), %rdi
	callq	_libpq_gettext
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_24
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQexec
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.11:
	movq	%r13, %rdi
	callq	_PQntuples
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.12:
	movq	%r13, %rdi
	callq	_PQnfields
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.13:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	cmpl	$51, %eax
	jl	LBB0_26
## %bb.14:
	movq	%r13, %rdi
	callq	_PQclear
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_23
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_15:
	movq	%r14, %rdi
	callq	_pg_fe_scram_build_secret
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_24
	jmp	LBB0_19
LBB0_16:
	movq	_MD5_PASSWD_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_pg_md5_encrypt
	testl	%eax, %eax
	jne	LBB0_24
## %bb.18:
	movq	%r13, %rdi
	callq	_free
LBB0_19:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_23
LBB0_21:
	movq	%r13, %rdi
	callq	_PQclear
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_22:
	movq	%r13, %rdi
	callq	_PQclear
	leaq	L_.str.1(%rip), %rdi
LBB0_23:
	callq	_libpq_gettext
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_27
## %bb.25:
	movq	%r13, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	%rbx, %rsi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strcpy
	movq	%r13, %rdi
	callq	_PQclear
	jmp	LBB0_2
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"show password_encryption"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
L_.str.1:                               ## @.str.1
	.asciz	"unexpected shape of result set returned for SHOW\n"

L_.str.2:                               ## @.str.2
	.asciz	"password_encryption value too long\n"

L_.str.3:                               ## @.str.3
	.asciz	"on"

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

L_.str.5:                               ## @.str.5
	.asciz	"md5"

L_.str.6:                               ## @.str.6
	.asciz	"scram-sha-256"

	.comm	_MD5_PASSWD_LEN,8,3             ## @MD5_PASSWD_LEN
L_.str.7:                               ## @.str.7
	.asciz	"unrecognized password encryption algorithm \"%s\"\n"

L_.str.8:                               ## @.str.8
	.asciz	"out of memory\n"

	.comm	_MAX_ALGORITHM_NAME_LEN,4,2     ## @MAX_ALGORITHM_NAME_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PQencryptPasswordConn          ; -- Begin function PQencryptPasswordConn
	.p2align	2
_PQencryptPasswordConn:                 ; @PQencryptPasswordConn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x0, LBB0_23
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	x3, LBB0_8
LBB0_2:
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.4@PAGE
Lloh6:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_5
LBB0_4:
Lloh7:
	adrp	x22, l_.str.5@PAGE
Lloh8:
	add	x22, x22, l_.str.5@PAGEOFF
LBB0_5:
Lloh9:
	adrp	x1, l_.str.6@PAGE
Lloh10:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.6:
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.7:
Lloh13:
	adrp	x0, l_.str.7@PAGE
Lloh14:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	str	x22, [sp]
	b	LBB0_22
LBB0_8:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_PQexec
	cbz	x0, LBB0_23
; %bb.9:
	mov	x23, x0
	bl	_PQresultStatus
Lloh17:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.10:
	mov	x0, x23
	bl	_PQntuples
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.11:
	mov	x0, x23
	bl	_PQnfields
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.12:
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	mov	x24, x0
	bl	_strlen
	cmp	w0, #51
	b.lt	LBB0_26
; %bb.13:
	mov	x0, x23
	bl	_PQclear
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_14:
	mov	x0, x20
	bl	_pg_fe_scram_build_secret
	mov	x22, x0
	cbnz	x0, LBB0_24
	b	LBB0_18
LBB0_15:
Lloh22:
	adrp	x8, _MD5_PASSWD_LEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MD5_PASSWD_LEN@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	add	x0, x8, #1
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.16:
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_pg_md5_encrypt
	cbnz	w0, LBB0_24
; %bb.17:
	mov	x0, x22
	bl	_free
LBB0_18:
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_21
LBB0_19:
	mov	x0, x23
	bl	_PQclear
	b	LBB0_23
LBB0_20:
	mov	x0, x23
	bl	_PQclear
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_21:
	bl	_libpq_gettext
	mov	x1, x0
LBB0_22:
	mov	x0, x19
	bl	_printfPQExpBuffer
LBB0_23:
	mov	x22, #0
LBB0_24:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.25:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_26:
	add	x22, sp, #21
	add	x0, sp, #21
	mov	x1, x24
	bl	_strcpy
	mov	x0, x23
	bl	_PQclear
	b	LBB0_2
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"show password_encryption"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
l_.str.1:                               ; @.str.1
	.asciz	"unexpected shape of result set returned for SHOW\n"

l_.str.2:                               ; @.str.2
	.asciz	"password_encryption value too long\n"

l_.str.3:                               ; @.str.3
	.asciz	"on"

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

l_.str.5:                               ; @.str.5
	.asciz	"md5"

l_.str.6:                               ; @.str.6
	.asciz	"scram-sha-256"

	.comm	_MD5_PASSWD_LEN,8,3             ; @MD5_PASSWD_LEN
l_.str.7:                               ; @.str.7
	.asciz	"unrecognized password encryption algorithm \"%s\"\n"

l_.str.8:                               ; @.str.8
	.asciz	"out of memory\n"

	.comm	_MAX_ALGORITHM_NAME_LEN,4,2     ; @MAX_ALGORITHM_NAME_LEN
.subsections_via_symbols
