	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_kex_dh
_input_kex_dh:                          ## @input_kex_dh
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdx), %rbx
	movq	$0, -112(%rbp)
	movq	$0, -104(%rbp)
	movq	$0, -120(%rbp)
	movq	_SSH_DIGEST_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shlq	$2, %r14
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	cmpq	$0, (%rbx)
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	-104(%rbp), %rsi
	leaq	-152(%rbp), %rdx
	movq	%r13, %rdi
	callq	_sshpkt_get_string
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movq	-104(%rbp), %rdi
	movq	-152(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	callq	_sshkey_from_blob
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	movl	%eax, %r15d
LBB0_4:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_1:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_39:
	movq	%r14, %rsi
	callq	_explicit_bzero
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%rbx), %rdi
	callq	_DH_free
	movq	$0, 32(%rbx)
	movq	%r13, %rdi
	callq	_BN_clear_free
	testq	%r12, %r12
	je	LBB0_41
## %bb.40:
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_explicit_bzero
	movq	%r12, %rdi
	callq	_free
LBB0_41:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_clear_free
	movq	-112(%rbp), %rdi
	callq	_sshkey_free
	movq	-104(%rbp), %rdi
	callq	_free
	movq	-120(%rbp), %rdi
	callq	_free
	movq	-160(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-112(%rbp), %rdi
	movq	(%rdi), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_9
## %bb.7:
	movq	_KEY_ECDSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movq	8(%rdi), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_9
LBB0_11:
	movq	%r13, %rsi
	callq	*(%rbx)
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.13:
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%r13, %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_sshpkt_get_bignum2
	testl	%eax, %eax
	jne	LBB0_16
## %bb.18:
	leaq	-120(%rbp), %rsi
	leaq	-168(%rbp), %rdx
	movq	%r13, %rdi
	callq	_sshpkt_get_string
	testl	%eax, %eax
	jne	LBB0_16
## %bb.19:
	movq	%r13, %rdi
	callq	_sshpkt_get_end
	testl	%eax, %eax
	je	LBB0_20
LBB0_16:
	movl	%eax, %r15d
LBB0_17:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_38:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_9:
	movq	_SSH_ERR_KEY_TYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_12:
	movq	_SSH_ERR_SIGNATURE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_14:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_20:
	movq	32(%rbx), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_dh_pub_is_valid
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	movq	32(%rbx), %rdi
	callq	_DH_size
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	%rax, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rdx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_DH_compute_key
	testl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	js	LBB0_27
## %bb.26:
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_BN_bin2bn
	testq	%rax, %rax
	je	LBB0_27
## %bb.29:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	32(%rbx), %rdi
	leaq	-176(%rbp), %rsi
	xorl	%edx, %edx
	callq	_DH_get0_key
	movq	%r14, -96(%rbp)
	movl	68(%rbx), %eax
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	movl	64(%rbx), %eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	movl	56(%rbx), %edi
	movl	60(%rbx), %eax
	movl	%eax, -132(%rbp)                ## 4-byte Spill
	callq	_sshbuf_ptr
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movl	56(%rbx), %edi
	callq	_sshbuf_len
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movl	52(%rbx), %edi
	callq	_sshbuf_ptr
	movl	%eax, %r15d
	movl	52(%rbx), %edi
	callq	_sshbuf_len
                                        ## kill: def $eax killed $eax def $rax
	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	%r15d, %r9d
	pushq	%r10
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-176(%rbp)
	pushq	-152(%rbp)
	pushq	-104(%rbp)
	pushq	%rax
	callq	_kex_dh_hash
	addq	$64, %rsp
	testl	%eax, %eax
	jne	LBB0_37
## %bb.30:
	movq	-112(%rbp), %rdi
	movq	-120(%rbp), %rsi
	movq	-168(%rbp), %rdx
	movq	-96(%rbp), %r8
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	48(%rax), %r9d
	movl	(%r13), %eax
	subq	$8, %rsp
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	pushq	%rax
	callq	_sshkey_verify
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_37
## %bb.31:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 40(%rax)
	jne	LBB0_35
## %bb.32:
	movq	-96(%rbp), %r15
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, 24(%rbx)
	movq	%r15, %rdi
	callq	_malloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_33
## %bb.34:
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
LBB0_35:
	movq	-96(%rbp), %rdx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_kex_derive_keys_bn
	testl	%eax, %eax
	jne	LBB0_37
## %bb.36:
	movq	%r13, %rdi
	callq	_kex_send_newkeys
LBB0_37:
	movl	%eax, %r15d
	jmp	LBB0_38
LBB0_24:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_38
LBB0_21:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_sshpkt_disconnect
	movq	_SSH_ERR_MESSAGE_INCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_17
LBB0_27:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_38
LBB0_33:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_38
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_DIGEST_MAX_LENGTH,4,2      ## @SSH_DIGEST_MAX_LENGTH
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_KEY_ECDSA,8,3                  ## @KEY_ECDSA
	.comm	_SSH_ERR_KEY_TYPE_MISMATCH,4,2  ## @SSH_ERR_KEY_TYPE_MISMATCH
	.comm	_SSH_ERR_SIGNATURE_INVALID,4,2  ## @SSH_ERR_SIGNATURE_INVALID
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad server public DH value"

	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ## @SSH_ERR_MESSAGE_INCOMPLETE
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_input_kex_dh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_kex_dh
_input_kex_dh:                          ; @input_kex_dh
	.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, #96
	mov	x25, x2
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x28, [x2, #8]
	stp	xzr, xzr, [x29, #-112]
	stur	xzr, [x29, #-120]
Lloh3:
	adrp	x8, _SSH_DIGEST_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_DIGEST_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x19, x8, #2
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x7fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	x8, [x28]
	cbz	x8, LBB0_4
; %bb.1:
	sub	x1, x29, #112
	sub	x2, x29, #136
	mov	x0, x25
	bl	_sshpkt_get_string
	cbnz	w0, LBB0_3
; %bb.2:
	ldur	x0, [x29, #-112]
	ldur	x1, [x29, #-136]
	sub	x2, x29, #104
	bl	_sshkey_from_blob
	cbz	w0, LBB0_10
LBB0_3:
	mov	x26, x0
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
	b	LBB0_6
LBB0_4:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
Lloh8:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
LBB0_5:
	ldr	w26, [x8]
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_explicit_bzero
	ldr	x0, [x28, #32]
	bl	_DH_free
	str	xzr, [x28, #32]
	mov	x0, x21
	bl	_BN_clear_free
	cbz	x22, LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x24
	bl	_explicit_bzero
	mov	x0, x22
	bl	_free
LBB0_8:
	mov	x0, x23
	bl	_BN_clear_free
	ldur	x0, [x29, #-104]
	bl	_sshkey_free
	ldur	x0, [x29, #-112]
	bl	_free
	ldur	x0, [x29, #-120]
	bl	_free
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_39
; %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:
	ldur	x0, [x29, #-104]
	ldr	x8, [x0]
	ldr	x9, [x28, #8]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.11:
Lloh13:
	adrp	x9, _KEY_ECDSA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _KEY_ECDSA@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x0, #8]
	ldr	x9, [x28, #16]
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_13:
	ldr	x8, [x28]
	mov	x1, x25
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.14:
	bl	_BN_new
	mov	x21, x0
	cbz	x0, LBB0_21
; %bb.15:
	mov	x0, x25
	mov	x1, x21
	bl	_sshpkt_get_bignum2
	cbnz	w0, LBB0_18
; %bb.16:
	sub	x1, x29, #120
	sub	x2, x29, #128
	mov	x0, x25
	bl	_sshpkt_get_string
	cbnz	w0, LBB0_18
; %bb.17:
	mov	x0, x25
	bl	_sshpkt_get_end
	cbz	w0, LBB0_23
LBB0_18:
	mov	x26, x0
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	b	LBB0_6
LBB0_19:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
Lloh16:
	adrp	x8, _SSH_ERR_KEY_TYPE_MISMATCH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSH_ERR_KEY_TYPE_MISMATCH@GOTPAGEOFF]
	b	LBB0_5
LBB0_20:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	x21, #0
Lloh18:
	adrp	x8, _SSH_ERR_SIGNATURE_INVALID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SSH_ERR_SIGNATURE_INVALID@GOTPAGEOFF]
	b	LBB0_5
LBB0_21:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
LBB0_22:
Lloh20:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_5
LBB0_23:
	ldr	x0, [x28, #32]
	mov	x1, x21
	bl	_dh_pub_is_valid
	cbz	w0, LBB0_37
; %bb.24:
	ldr	x0, [x28, #32]
	bl	_DH_size
	mov	x24, x0
	bl	_malloc
	mov	x22, x0
	cbz	x0, LBB0_36
; %bb.25:
	bl	_BN_new
	cbz	x0, LBB0_36
; %bb.26:
	mov	x23, x0
	ldr	x2, [x28, #32]
	mov	x0, x22
	mov	x1, x21
	bl	_DH_compute_key
	tbnz	w0, #31, LBB0_38
; %bb.27:
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_BN_bin2bn
	cbz	x0, LBB0_38
; %bb.28:
	ldr	x0, [x28, #32]
	sub	x1, x29, #96
	mov	x2, #0
	bl	_DH_get0_key
	stur	x19, [x29, #-144]
	ldr	w9, [x28, #68]
	ldr	w8, [x28, #64]
	stp	w8, w9, [x29, #-152]            ; 8-byte Folded Spill
	ldp	w0, w8, [x28, #56]
	stur	w8, [x29, #-156]                ; 4-byte Folded Spill
	bl	_sshbuf_ptr
	stur	w0, [x29, #-160]                ; 4-byte Folded Spill
	ldr	w0, [x28, #56]
	bl	_sshbuf_len
	stur	w0, [x29, #-164]                ; 4-byte Folded Spill
	ldr	w0, [x28, #52]
	bl	_sshbuf_ptr
	mov	x26, x0
	ldr	w0, [x28, #52]
	bl	_sshbuf_len
	mov	x6, x0
	ldur	x7, [x29, #-112]
	ldur	x8, [x29, #-136]
	ldur	x9, [x29, #-96]
	sub	sp, sp, #48
	sub	x10, x29, #144
	stp	x20, x10, [sp, #32]
	stp	x21, x23, [sp, #16]
	stp	x8, x9, [sp]
	ldp	w1, w0, [x29, #-152]            ; 8-byte Folded Reload
	ldp	w3, w2, [x29, #-160]            ; 8-byte Folded Reload
	ldur	w4, [x29, #-164]                ; 4-byte Folded Reload
	mov	x5, x26
	bl	_kex_dh_hash
	add	sp, sp, #48
	cbnz	w0, LBB0_35
; %bb.29:
	ldur	x0, [x29, #-104]
	ldp	x2, x1, [x29, #-128]
	ldur	x4, [x29, #-144]
	ldr	w5, [x28, #48]
	ldr	w6, [x25]
	mov	x3, x20
	bl	_sshkey_verify
	cbnz	w0, LBB0_35
; %bb.30:
	ldr	x8, [x28, #40]
	cbnz	x8, LBB0_33
; %bb.31:
	ldur	x26, [x29, #-144]
	str	x26, [x28, #24]
	mov	x0, x26
	bl	_malloc
	str	x0, [x28, #40]
	cbz	x0, LBB0_22
; %bb.32:
	mov	x1, x20
	mov	x2, x26
	bl	_memcpy
LBB0_33:
	ldur	x2, [x29, #-144]
	mov	x0, x25
	mov	x1, x20
	mov	x3, x23
	bl	_kex_derive_keys_bn
	cbnz	w0, LBB0_35
; %bb.34:
	mov	x0, x25
	bl	_kex_send_newkeys
LBB0_35:
	mov	x26, x0
	b	LBB0_6
LBB0_36:
	mov	x23, #0
	b	LBB0_22
LBB0_37:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_sshpkt_disconnect
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
Lloh24:
	adrp	x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGEOFF]
	b	LBB0_5
LBB0_38:
Lloh26:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_39:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_DIGEST_MAX_LENGTH,4,2      ; @SSH_DIGEST_MAX_LENGTH
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_KEY_ECDSA,8,3                  ; @KEY_ECDSA
	.comm	_SSH_ERR_KEY_TYPE_MISMATCH,4,2  ; @SSH_ERR_KEY_TYPE_MISMATCH
	.comm	_SSH_ERR_SIGNATURE_INVALID,4,2  ; @SSH_ERR_SIGNATURE_INVALID
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad server public DH value"

	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ; @SSH_ERR_MESSAGE_INCOMPLETE
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_input_kex_dh
.subsections_via_symbols
