	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_client_final_message
_read_client_final_message:             ## @read_client_final_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_pstrdup
	movq	%rax, %r12
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdi
	movl	$99, %esi
	callq	_read_attr_value
	cmpq	$0, 40(%r15)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_7
LBB0_2:
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	cmpb	$110, (%r15)
	je	LBB0_7
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpb	$121, (%r15)
	je	LBB0_7
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movl	$114, %esi
	callq	_read_attr_value
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, 24(%r15)
	leaq	-41(%rbp), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_read_any_attr
	cmpb	$112, -41(%rbp)
	jne	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%rax, %rdi
	callq	_pg_b64_dec_len
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_palloc
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	callq	_pg_b64_decode
	movq	_SCRAM_KEY_LEN@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.5(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	(%r14), %eax
LBB0_11:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_pfree
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.6(%rip), %rdi
	callq	_errdetail
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	notq	%r12
	addq	%r15, %r12
	leal	1(%r12), %edi
	callq	_palloc
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_memcpy
	movq	16(%rbx), %rax
	movb	$0, (%rax,%r12)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel binding not supported by this build"

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

L_.str.2:                               ## @.str.2
	.asciz	"eSws"

	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ## @ERRCODE_PROTOCOL_VIOLATION
L_.str.3:                               ## @.str.3
	.asciz	"unexpected SCRAM channel-binding attribute in client-final-message"

	.comm	_SCRAM_KEY_LEN,4,2              ## @SCRAM_KEY_LEN
L_.str.4:                               ## @.str.4
	.asciz	"malformed SCRAM message"

L_.str.5:                               ## @.str.5
	.asciz	"Malformed proof in client-final-message."

L_.str.6:                               ## @.str.6
	.asciz	"Garbage found at the end of client-final-message."

	.comm	_ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION,4,2 ## @ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION
	.no_dead_strip	_read_client_final_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_client_final_message
_read_client_final_message:             ; @read_client_final_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_pstrdup
	mov	x21, x0
	str	x0, [sp]
	mov	x0, sp
	mov	w1, #99
	bl	_read_attr_value
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x25, _ERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
Lloh2:
	adrp	x26, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x25]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	b	LBB0_7
LBB0_2:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_4
; %bb.3:
	ldrb	w8, [x19]
	cmp	w8, #110
	b.eq	LBB0_7
LBB0_4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.5:
	ldrb	w8, [x19]
	cmp	w8, #121
	b.eq	LBB0_7
LBB0_6:
	ldr	w22, [x25]
	ldr	w0, [x26]
	bl	_errcode
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_7:
	mov	x0, sp
	mov	w1, #114
	bl	_read_attr_value
	str	x0, [x19, #24]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [sp]
	mov	x0, sp
	add	x1, sp, #15
	bl	_read_any_attr
	ldrb	w8, [sp, #15]
	cmp	w8, #112
	b.ne	LBB0_8
; %bb.9:
	mov	x23, x0
	bl	_strlen
	bl	_pg_b64_dec_len
	mov	x24, x0
	bl	_palloc
	mov	x22, x0
	mov	x0, x23
	bl	_strlen
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	mov	x3, x24
	bl	_pg_b64_decode
	mov	x2, x0
Lloh12:
	adrp	x24, _SCRAM_KEY_LEN@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SCRAM_KEY_LEN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w23, [x25]
	ldr	w0, [x26]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	ldr	w2, [x24]
LBB0_11:
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_memcpy
	mov	x0, x22
	bl	_pfree
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_13
; %bb.12:
	ldr	w22, [x25]
	ldr	w0, [x26]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_13:
	mvn	x8, x21
	add	x21, x8, x27
	add	w0, w21, #1
	bl	_palloc
	str	x0, [x19, #16]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19, #16]
	strb	wzr, [x8, x21]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel binding not supported by this build"

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

l_.str.2:                               ; @.str.2
	.asciz	"eSws"

	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ; @ERRCODE_PROTOCOL_VIOLATION
l_.str.3:                               ; @.str.3
	.asciz	"unexpected SCRAM channel-binding attribute in client-final-message"

	.comm	_SCRAM_KEY_LEN,4,2              ; @SCRAM_KEY_LEN
l_.str.4:                               ; @.str.4
	.asciz	"malformed SCRAM message"

l_.str.5:                               ; @.str.5
	.asciz	"Malformed proof in client-final-message."

l_.str.6:                               ; @.str.6
	.asciz	"Garbage found at the end of client-final-message."

	.comm	_ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION,4,2 ; @ERRCODE_INVALID_AUTHORIZATION_SPECIFICATION
	.no_dead_strip	_read_client_final_message
.subsections_via_symbols
