	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_kex_c25519_init
_input_kex_c25519_init:                 ## @input_kex_c25519_init
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, -224(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %r13
	movq	$0, -112(%rbp)
	movq	$0, -120(%rbp)
	movq	_CURVE25519_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	$0, -104(%rbp)
	movl	(%rbx), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_SSH_DIGEST_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %r12
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, -160(%rbp)                ## 8-byte Spill
	movq	%r14, %rsi
	callq	_kexc25519_keygen
	movq	80(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	cmpq	$0, 72(%r13)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %r15
	movl	60(%r13), %esi
	movl	64(%r13), %edi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	*%rcx
	movq	%rax, %r14
	movl	60(%r13), %esi
	movl	64(%r13), %edi
	movq	%rbx, %rdx
	callq	*72(%r13)
	testq	%r14, %r14
	je	LBB0_11
## %bb.3:
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	leaq	-104(%rbp), %rsi
	leaq	-232(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sshpkt_get_string
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_sshpkt_get_end
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movl	%eax, %ecx
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_6:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r13d
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_9:
	shll	$2, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_explicit_bzero
	movq	-216(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,4), %esi
	movq	%r14, %rdi
	callq	_explicit_bzero
	movq	-112(%rbp), %rdi
	callq	_free
	movq	-120(%rbp), %rdi
	callq	_free
	movq	-104(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_sshbuf_free
	movq	-224(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.10:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_SSH_ERR_NO_HOSTKEY_LOADED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_12:
	movq	_CURVE25519_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, -232(%rbp)
	jne	LBB0_17
## %bb.13:
	movq	%r14, -152(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_18
## %bb.14:
	movq	-104(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	callq	_kexc25519_shared_key
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:
	leaq	-112(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_sshkey_to_blob
	testl	%eax, %eax
	je	LBB0_21
## %bb.16:
	movl	%eax, %ebx
LBB0_19:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %r13d
LBB0_20:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_17:
	movq	_SSH_ERR_SIGNATURE_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_18:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_21:
	movq	%r12, -96(%rbp)
	movl	56(%r13), %eax
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	movl	52(%r13), %eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movl	48(%r13), %eax
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	movq	40(%r13), %rdi
	callq	_sshbuf_ptr
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	40(%r13), %rdi
	callq	_sshbuf_len
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movq	32(%r13), %rdi
	callq	_sshbuf_ptr
	movl	%eax, %r12d
	movq	32(%r13), %rdi
	callq	_sshbuf_len
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	-112(%rbp), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	-168(%rbp), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sshbuf_ptr
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_sshbuf_len
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	-96(%rbp), %r10
	movl	-140(%rbp), %edi                ## 4-byte Reload
	movl	-136(%rbp), %esi                ## 4-byte Reload
	movl	-132(%rbp), %edx                ## 4-byte Reload
	movl	-128(%rbp), %ecx                ## 4-byte Reload
	movl	-124(%rbp), %r8d                ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%r10
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	pushq	%rax
	pushq	%r14
	pushq	-160(%rbp)                      ## 8-byte Folded Reload
	pushq	-176(%rbp)                      ## 8-byte Folded Reload
	pushq	-184(%rbp)                      ## 8-byte Folded Reload
	pushq	-192(%rbp)                      ## 8-byte Folded Reload
	pushq	-200(%rbp)                      ## 8-byte Folded Reload
	callq	_kex_c25519_hash
	addq	$80, %rsp
	testl	%eax, %eax
	js	LBB0_30
## %bb.22:
	cmpq	$0, 24(%r13)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_25
## %bb.23:
	movq	-96(%rbp), %r14
	movq	%r14, (%r13)
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_32
## %bb.24:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_memcpy
LBB0_25:
	movq	-96(%rbp), %r9
	movl	16(%r13), %r10d
	movl	(%rbx), %eax
	leaq	-120(%rbp), %rdx
	leaq	-240(%rbp), %rcx
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %r8
	pushq	%rax
	pushq	%r10
	callq	*8(%r13)
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_31
## %bb.26:
	movq	_SSH2_MSG_KEX_ECDH_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sshpkt_start
	testl	%eax, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_29
## %bb.27:
	movq	-112(%rbp), %rsi
	movq	-168(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_sshpkt_put_string
	testl	%eax, %eax
	jne	LBB0_29
## %bb.28:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, %rdx
	callq	_sshpkt_put_string
	testl	%eax, %eax
	je	LBB0_34
LBB0_29:
	movl	%eax, %r13d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_30:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_31:
	movl	%eax, %r13d
	jmp	LBB0_33
LBB0_32:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_33:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_34:
	movq	-120(%rbp), %rsi
	movq	-240(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_sshpkt_put_string
	testl	%eax, %eax
	jne	LBB0_38
## %bb.35:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_sshpkt_send
	testl	%eax, %eax
	jne	LBB0_38
## %bb.36:
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_kex_derive_keys
	testl	%eax, %eax
	jne	LBB0_38
## %bb.37:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_kex_send_newkeys
LBB0_38:
	movl	%eax, %r13d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CURVE25519_SIZE,4,2            ## @CURVE25519_SIZE
	.comm	_SSH_DIGEST_MAX_LENGTH,4,2      ## @SSH_DIGEST_MAX_LENGTH
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_NO_HOSTKEY_LOADED,4,2  ## @SSH_ERR_NO_HOSTKEY_LOADED
	.comm	_SSH_ERR_SIGNATURE_INVALID,4,2  ## @SSH_ERR_SIGNATURE_INVALID
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_MSG_KEX_ECDH_REPLY,4,2    ## @SSH2_MSG_KEX_ECDH_REPLY
	.no_dead_strip	_input_kex_c25519_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_kex_c25519_init
_input_kex_c25519_init:                 ; @input_kex_c25519_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #160
	mov	x22, x2
	mov	x8, sp
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x21, [x2, #8]
	stp	xzr, xzr, [x29, #-112]
Lloh3:
	adrp	x25, _CURVE25519_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CURVE25519_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
	lsl	x8, x8, #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
	stur	xzr, [x29, #-120]
	ldr	w8, [x25]
	lsl	x23, x8, #2
	mov	x9, x23
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x7fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh9:
	adrp	x8, _SSH_DIGEST_MAX_LENGTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_DIGEST_MAX_LENGTH@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
	lsl	x28, x27, #2
	mov	x9, x28
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x28, #15
	and	x9, x9, #0x7fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	x0, x19
	mov	x1, x24
	bl	_kexc25519_keygen
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x9, [x21, #72]
	cbz	x9, LBB0_6
; %bb.2:
	ldp	w1, w0, [x21, #60]
	mov	x2, x22
	blr	x8
	mov	x26, x0
	ldr	x8, [x21, #72]
	ldp	w1, w0, [x21, #60]
	mov	x2, x22
	blr	x8
	cbz	x26, LBB0_10
; %bb.3:
	stp	x0, x26, [x29, #-184]           ; 16-byte Folded Spill
	sub	x1, x29, #120
	sub	x2, x29, #136
	mov	x0, x22
	bl	_sshpkt_get_string
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_sshpkt_get_end
	cbz	w0, LBB0_11
LBB0_5:
	mov	x26, x0
	mov	x25, #0
	b	LBB0_8
LBB0_6:
	mov	x25, #0
Lloh14:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
LBB0_7:
	ldr	w26, [x8]
LBB0_8:
	lsl	w1, w27, #2
	mov	x0, x20
	bl	_explicit_bzero
	ldur	x8, [x29, #-168]                ; 8-byte Folded Reload
	lsl	w1, w8, #2
	mov	x0, x19
	bl	_explicit_bzero
	ldur	x0, [x29, #-104]
	bl	_free
	ldur	x0, [x29, #-112]
	bl	_free
	ldur	x0, [x29, #-120]
	bl	_free
	mov	x0, x25
	bl	_sshbuf_free
	ldur	x8, [x29, #-160]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-96]
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_31
; %bb.9:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x25, #0
Lloh19:
	adrp	x8, _SSH_ERR_NO_HOSTKEY_LOADED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSH_ERR_NO_HOSTKEY_LOADED@GOTPAGEOFF]
	b	LBB0_7
LBB0_11:
	ldur	x8, [x29, #-136]
	ldrsw	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	bl	_sshbuf_new
	mov	x25, x0
	cbz	x0, LBB0_30
; %bb.13:
	ldur	x1, [x29, #-120]
	mov	x0, x19
	mov	x2, x25
	bl	_kexc25519_shared_key
	tbnz	w0, #31, LBB0_15
; %bb.14:
	sub	x1, x29, #104
	sub	x2, x29, #144
	ldur	x0, [x29, #-176]                ; 8-byte Folded Reload
	bl	_sshkey_to_blob
	cbz	w0, LBB0_17
LBB0_15:
	mov	x26, x0
	b	LBB0_8
LBB0_16:
	mov	x25, #0
Lloh21:
	adrp	x8, _SSH_ERR_SIGNATURE_INVALID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SSH_ERR_SIGNATURE_INVALID@GOTPAGEOFF]
	b	LBB0_7
LBB0_17:
	stur	x28, [x29, #-152]
	ldr	w9, [x21, #56]
	ldr	w8, [x21, #52]
	stp	w8, w9, [x29, #-200]            ; 8-byte Folded Spill
	ldr	w8, [x21, #48]
	stur	w8, [x29, #-204]                ; 4-byte Folded Spill
	ldr	x0, [x21, #40]
	bl	_sshbuf_ptr
	stur	w0, [x29, #-208]                ; 4-byte Folded Spill
	ldr	x0, [x21, #40]
	bl	_sshbuf_len
	stur	w0, [x29, #-212]                ; 4-byte Folded Spill
	ldr	x0, [x21, #32]
	bl	_sshbuf_ptr
	stur	w0, [x29, #-216]                ; 4-byte Folded Spill
	ldr	x0, [x21, #32]
	bl	_sshbuf_len
	stur	w0, [x29, #-220]                ; 4-byte Folded Spill
	ldur	x9, [x29, #-104]
	ldur	x8, [x29, #-144]
	stp	x8, x9, [x29, #-240]            ; 16-byte Folded Spill
	ldur	x28, [x29, #-120]
	mov	x0, x25
	bl	_sshbuf_ptr
	mov	x26, x0
	stur	x25, [x29, #-192]               ; 8-byte Folded Spill
	mov	x0, x25
	bl	_sshbuf_len
	sub	sp, sp, #48
	sub	x8, x29, #152
	stp	x20, x8, [sp, #32]
	stp	w26, w0, [sp, #24]
	stp	x28, x24, [sp, #8]
	ldur	x8, [x29, #-240]                ; 8-byte Folded Reload
	str	x8, [sp]
	ldp	w1, w0, [x29, #-200]            ; 8-byte Folded Reload
	ldp	w3, w2, [x29, #-208]            ; 8-byte Folded Reload
	ldp	w5, w4, [x29, #-216]            ; 8-byte Folded Reload
	ldur	w6, [x29, #-220]                ; 4-byte Folded Reload
	ldur	x7, [x29, #-232]                ; 8-byte Folded Reload
	bl	_kex_c25519_hash
	add	sp, sp, #48
	tbnz	w0, #31, LBB0_29
; %bb.18:
	ldr	x8, [x21, #24]
	ldur	x25, [x29, #-192]               ; 8-byte Folded Reload
	cbnz	x8, LBB0_21
; %bb.19:
	ldur	x26, [x29, #-152]
	str	x26, [x21]
	mov	x0, x26
	bl	_malloc
	str	x0, [x21, #24]
	cbz	x0, LBB0_30
; %bb.20:
	mov	x1, x20
	mov	x2, x26
	bl	_memcpy
LBB0_21:
	ldr	x8, [x21, #8]
	ldur	x5, [x29, #-152]
	ldr	w6, [x21, #16]
	ldr	w7, [x22]
	sub	x2, x29, #112
	sub	x3, x29, #128
	ldp	x0, x1, [x29, #-184]            ; 16-byte Folded Reload
	mov	x4, x20
	blr	x8
	tbnz	w0, #31, LBB0_15
; %bb.22:
Lloh23:
	adrp	x8, _SSH2_MSG_KEX_ECDH_REPLY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SSH2_MSG_KEX_ECDH_REPLY@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_sshpkt_start
	cbnz	w0, LBB0_15
; %bb.23:
	ldur	x1, [x29, #-104]
	ldur	x2, [x29, #-144]
	mov	x0, x22
	bl	_sshpkt_put_string
	cbnz	w0, LBB0_15
; %bb.24:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_sshpkt_put_string
	cbnz	w0, LBB0_15
; %bb.25:
	ldur	x1, [x29, #-112]
	ldur	x2, [x29, #-128]
	mov	x0, x22
	bl	_sshpkt_put_string
	cbnz	w0, LBB0_29
; %bb.26:
	mov	x0, x22
	bl	_sshpkt_send
	cbnz	w0, LBB0_29
; %bb.27:
	ldur	x2, [x29, #-152]
	mov	x0, x22
	mov	x1, x20
	ldur	x3, [x29, #-192]                ; 8-byte Folded Reload
	bl	_kex_derive_keys
	cbnz	w0, LBB0_29
; %bb.28:
	mov	x0, x22
	bl	_kex_send_newkeys
LBB0_29:
	mov	x26, x0
	ldur	x25, [x29, #-192]               ; 8-byte Folded Reload
	b	LBB0_8
LBB0_30:
Lloh26:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_7
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_CURVE25519_SIZE,4,2            ; @CURVE25519_SIZE
	.comm	_SSH_DIGEST_MAX_LENGTH,4,2      ; @SSH_DIGEST_MAX_LENGTH
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_NO_HOSTKEY_LOADED,4,2  ; @SSH_ERR_NO_HOSTKEY_LOADED
	.comm	_SSH_ERR_SIGNATURE_INVALID,4,2  ; @SSH_ERR_SIGNATURE_INVALID
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH2_MSG_KEX_ECDH_REPLY,4,2    ; @SSH2_MSG_KEX_ECDH_REPLY
	.no_dead_strip	_input_kex_c25519_init
.subsections_via_symbols
