	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_server_first_message
_read_server_first_message:             ## @read_server_first_message
	.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	%rdi, %r12
	movq	%rsi, -48(%rbp)
	movq	40(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_strdup
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	leaq	-48(%rbp), %rdi
	movl	$114, %esi
	movq	%rbx, %rdx
	callq	_read_attr_value
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_18
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	(%r12), %r13
	movq	%r13, %rdi
	callq	_strlen
	cmpq	%rax, %r14
	jl	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_5:
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	leaq	-48(%rbp), %rdi
	movl	$115, %esi
	movq	%rbx, %r14
	movq	%rbx, %rdx
	callq	_read_attr_value
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %rdi
	callq	_pg_b64_dec_len
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_20
## %bb.8:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_pg_b64_decode
	movl	%eax, 12(%r12)
	testl	%eax, %eax
	js	LBB0_21
## %bb.9:
	leaq	-48(%rbp), %rdi
	movl	$105, %esi
	movq	%r14, %rdx
	callq	_read_attr_value
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, 8(%r12)
	movq	-56(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_23
## %bb.11:
	testl	%eax, %eax
	jle	LBB0_23
## %bb.12:
	movq	-48(%rbp), %rax
	movl	$1, %r13d
	cmpb	$0, (%rax)
	je	LBB0_18
## %bb.13:
	leaq	L_.str.4(%rip), %rdi
	callq	_libpq_gettext
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str(%rip), %rdi
LBB0_15:
	callq	_libpq_gettext
	movq	%rbx, %rdi
LBB0_16:
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_24
LBB0_21:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
LBB0_24:
	callq	_libpq_gettext
	movq	%r14, %rdi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid SCRAM response (nonce mismatch)\n"

L_.str.2:                               ## @.str.2
	.asciz	"malformed SCRAM message (invalid salt)\n"

L_.str.3:                               ## @.str.3
	.asciz	"malformed SCRAM message (invalid iteration count)\n"

L_.str.4:                               ## @.str.4
	.asciz	"malformed SCRAM message (garbage at end of server-first-message)\n"

	.no_dead_strip	_read_server_first_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_server_first_message
_read_server_first_message:             ; @read_server_first_message
	.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	x20, x0
	str	x1, [sp, #8]
	ldr	x19, [x0, #40]
	mov	x0, x1
	bl	_strdup
	str	x0, [x20, #32]
	cbz	x0, LBB0_15
; %bb.1:
	add	x0, sp, #8
	mov	w1, #114
	mov	x2, x19
	bl	_read_attr_value
	cbz	x0, LBB0_17
; %bb.2:
	mov	x21, x0
	bl	_strlen
	mov	x23, x0
	ldr	x22, [x20]
	mov	x0, x22
	bl	_strlen
	cmp	x23, x0
	b.lt	LBB0_4
; %bb.3:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_4:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_5:
	mov	x0, x21
	bl	_strdup
	str	x0, [x20, #24]
	cbz	x0, LBB0_15
; %bb.6:
	add	x0, sp, #8
	mov	w1, #115
	mov	x2, x19
	bl	_read_attr_value
	cbz	x0, LBB0_17
; %bb.7:
	mov	x21, x0
	bl	_strlen
	bl	_pg_b64_dec_len
	mov	x22, x0
	bl	_malloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_15
; %bb.8:
	mov	x23, x0
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	mov	x3, x22
	bl	_pg_b64_decode
	str	w0, [x20, #12]
	tbnz	w0, #31, LBB0_18
; %bb.9:
	add	x0, sp, #8
	mov	w1, #105
	mov	x2, x19
	bl	_read_attr_value
	cbz	x0, LBB0_17
; %bb.10:
	mov	x1, sp
	mov	w2, #10
	bl	_strtol
	str	w0, [x20, #8]
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_19
; %bb.11:
	cmp	w0, #0
	b.le	LBB0_19
; %bb.12:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_14
; %bb.13:
Lloh2:
	adrp	x0, l_.str.4@PAGE
Lloh3:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
LBB0_14:
	mov	w0, #1
	b	LBB0_17
LBB0_15:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_16:
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
	mov	w0, #0
LBB0_17:
	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_18:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_19:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid SCRAM response (nonce mismatch)\n"

l_.str.2:                               ; @.str.2
	.asciz	"malformed SCRAM message (invalid salt)\n"

l_.str.3:                               ; @.str.3
	.asciz	"malformed SCRAM message (invalid iteration count)\n"

l_.str.4:                               ; @.str.4
	.asciz	"malformed SCRAM message (garbage at end of server-first-message)\n"

	.no_dead_strip	_read_server_first_message
.subsections_via_symbols
