	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_password_sendauth
_pg_password_sendauth:                  ## @pg_password_sendauth
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	cmpl	$128, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.3:
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	movq	%r12, %rdx
	callq	_pqGetnchar
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_1:
	xorl	%r13d, %r13d
LBB0_11:
	movl	8(%r12), %edi
	callq	_PG_PROTOCOL_MAJOR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	cmpl	$3, %ebx
	movl	$112, %eax
	cmovgel	%eax, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_pqPacketSend
	movl	%eax, %ebx
	testq	%r13, %r13
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_free
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MD5_PASSWD_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leal	(%rax,%rax), %edi
	addl	$2, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movslq	(%rbx), %rax
	addq	%r13, %rax
	incq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_pg_md5_encrypt
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movq	%r13, %rcx
	callq	_pg_md5_encrypt
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movq	%r13, %r15
	jmp	LBB0_11
LBB0_6:
	addq	$12, %r12
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
	jmp	LBB0_4
LBB0_8:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_ERROR,4,2               ## @STATUS_ERROR
	.comm	_MD5_PASSWD_LEN,4,2             ## @MD5_PASSWD_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

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

	.no_dead_strip	_pg_password_sendauth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_password_sendauth
_pg_password_sendauth:                  ; @pg_password_sendauth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	cmp	w2, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_3
; %bb.2:
	add	x0, sp, #12
	mov	w1, #4
	mov	x2, x19
	bl	_pqGetnchar
	cbz	x0, LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_7
LBB0_4:
	mov	x20, #0
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_PG_PROTOCOL_MAJOR
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	add	w3, w0, #1
	mov	w8, #112
	cmp	w22, #2
	csel	w1, w8, wzr, gt
	mov	x0, x19
	mov	x2, x21
	bl	_pqPacketSend
	mov	x19, x0
	cbz	x20, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_free
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_8:
Lloh3:
	adrp	x22, _MD5_PASSWD_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MD5_PASSWD_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #1
	add	w0, w8, #2
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.9:
	mov	x20, x0
	ldrsw	x8, [x22]
	add	x8, x0, x8
	add	x22, x8, #1
	ldr	x23, [x19]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	mov	x3, x22
	bl	_pg_md5_encrypt
	cbz	w0, LBB0_13
; %bb.10:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strlen
	add	x0, x22, w0, sxtw
	add	x1, sp, #12
	mov	w2, #4
	mov	x3, x20
	bl	_pg_md5_encrypt
	cbz	w0, LBB0_13
; %bb.11:
	mov	x21, x20
	b	LBB0_5
LBB0_12:
	add	x19, x19, #12
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
	b	LBB0_3
LBB0_13:
	mov	x0, x20
	bl	_free
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_ERROR,4,2               ; @STATUS_ERROR
	.comm	_MD5_PASSWD_LEN,4,2             ; @MD5_PASSWD_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

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

	.no_dead_strip	_pg_password_sendauth
.subsections_via_symbols
