	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_server_final_message
_build_server_final_message:            ## @build_server_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	$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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SCRAM_KEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	24(%r12), %esi
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_scram_HMAC_init
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_scram_HMAC_update
	leaq	L_.str(%rip), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_scram_HMAC_update
	movq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_scram_HMAC_update
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_scram_HMAC_update
	movq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_scram_HMAC_update
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_scram_HMAC_final
	movq	_SCRAM_KEY_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_pg_b64_enc_len
	movl	%eax, %ebx
	leal	1(%rbx), %edi
	callq	_palloc
	movq	%rax, %r15
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_pg_b64_encode
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_2:
	movslq	%ebx, %rax
	movb	$0, (%r15,%rax)
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_psprintf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCRAM_KEY_LEN,4,2              ## @SCRAM_KEY_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	","

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"could not encode server signature"

L_.str.2:                               ## @.str.2
	.asciz	"v=%s"

	.no_dead_strip	_build_server_final_message
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_server_final_message
_build_server_final_message:            ; @build_server_final_message
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _SCRAM_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SCRAM_KEY_LEN@GOTPAGEOFF]
	ldr	w2, [x23]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w1, [x0, #24]
	sub	x0, x29, #60
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_scram_HMAC_init
	ldr	x21, [x20]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #60
	mov	x1, x21
	bl	_scram_HMAC_update
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
	sub	x0, x29, #60
	mov	x1, x21
	mov	w2, #1
	bl	_scram_HMAC_update
	ldr	x22, [x20, #8]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #60
	mov	x1, x22
	bl	_scram_HMAC_update
	sub	x0, x29, #60
	mov	x1, x21
	mov	w2, #1
	bl	_scram_HMAC_update
	ldr	x20, [x20, #16]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #60
	mov	x1, x20
	bl	_scram_HMAC_update
	sub	x1, x29, #60
	mov	x0, x19
	bl	_scram_HMAC_final
	ldr	w0, [x23]
	bl	_pg_b64_enc_len
	mov	x21, x0
	add	w0, w0, #1
	bl	_palloc
	mov	x20, x0
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_pg_b64_encode
	mov	x19, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_2:
	strb	wzr, [x20, w19, sxtw]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_psprintf
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SCRAM_KEY_LEN,4,2              ; @SCRAM_KEY_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	","

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"could not encode server signature"

l_.str.2:                               ; @.str.2
	.asciz	"v=%s"

	.no_dead_strip	_build_server_final_message
.subsections_via_symbols
