	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_SASL_continue
_pg_SASL_continue:                      ## @pg_SASL_continue
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	leal	1(%r12), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_pqGetnchar
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_15
LBB0_4:
	movslq	%r12d, %rax
	movb	$0, (%rbx,%rax)
	movl	4(%r15), %edi
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-36(%rbp), %r9
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_pg_fe_scram_exchange
	movq	%rbx, %rdi
	callq	_free
	movl	-36(%rbp), %eax
	movl	-56(%rbp), %ecx
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printfPQExpBuffer
	jmp	LBB0_15
LBB0_9:
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$112, %esi
	callq	_pqPacketSend
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_free
	movq	_STATUS_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_15
## %bb.11:
	movl	-36(%rbp), %eax
LBB0_12:
	cmpl	$0, -52(%rbp)
	movq	_STATUS_OK@GOTPCREL(%rip), %rdx
	movq	%rdx, %rcx
	jne	LBB0_14
## %bb.13:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rcx
LBB0_14:
	testl	%eax, %eax
	cmoveq	%rdx, %rcx
	jmp	LBB0_16
LBB0_15:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory allocating SASL buffer (%d)\n"

	.comm	_STATUS_ERROR,4,2               ## @STATUS_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"AuthenticationSASLFinal received from server, but SASL authentication was not completed\n"

	.comm	_STATUS_OK,4,2                  ## @STATUS_OK
	.no_dead_strip	_pg_SASL_continue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_SASL_continue
_pg_SASL_continue:                      ; @pg_SASL_continue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	w0, w1, #1
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x1, x20
	mov	x2, x19
	bl	_pqGetnchar
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x22
	bl	_free
	b	LBB0_10
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	str	x20, [sp]
	b	LBB0_9
LBB0_4:
	strb	wzr, [x22, w20, sxtw]
	ldr	w0, [x19, #4]
	add	x3, sp, #24
	add	x4, sp, #20
	add	x5, sp, #16
	add	x6, sp, #12
	mov	x1, x22
	mov	x2, x20
	bl	_pg_fe_scram_exchange
	mov	x0, x22
	bl	_free
	ldp	w8, w3, [sp, #16]
	cbz	w21, LBB0_12
; %bb.5:
	cbnz	w8, LBB0_12
; %bb.6:
	cbz	w3, LBB0_8
; %bb.7:
	ldr	x0, [sp, #24]
	bl	_free
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
LBB0_9:
	mov	x0, x19
	bl	_printfPQExpBuffer
LBB0_10:
Lloh4:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
LBB0_12:
Lloh6:
	adrp	x20, _STATUS_OK@GOTPAGE
Lloh7:
	ldr	x20, [x20, _STATUS_OK@GOTPAGEOFF]
	cbz	w3, LBB0_15
; %bb.13:
	ldr	x2, [sp, #24]
	mov	x0, x19
	mov	w1, #112
	bl	_pqPacketSend
	mov	x19, x0
	ldr	x0, [sp, #24]
	bl	_free
	ldr	w8, [x20]
	cmp	w19, w8
	b.ne	LBB0_10
; %bb.14:
	ldr	w8, [sp, #16]
LBB0_15:
	ldr	w9, [sp, #12]
	cmp	w9, #0
	ccmp	w8, #0, #4, eq
Lloh8:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
	csel	x8, x20, x8, eq
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory allocating SASL buffer (%d)\n"

	.comm	_STATUS_ERROR,4,2               ; @STATUS_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"AuthenticationSASLFinal received from server, but SASL authentication was not completed\n"

	.comm	_STATUS_OK,4,2                  ; @STATUS_OK
	.no_dead_strip	_pg_SASL_continue
.subsections_via_symbols
