	.file	"extr_kexecdh.c_kex_ecdh_hash.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kex_ecdh_hash
	.type	kex_ecdh_hash, @function
kex_ecdh_hash:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 144[rsp]
	mov	QWORD PTR 8[rsp], rsi
	mov	rbx, QWORD PTR [rax]
	call	ssh_digest_bytes@PLT
	cmp	rbx, rax
	jnb	.L2
	mov	r12d, DWORD PTR SSH_ERR_INVALID_ARGUMENT[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	sshbuf_new@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L10
	mov	rsi, r12
	mov	rdi, rax
	call	sshbuf_put_cstring@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rsi, r13
	mov	rdi, rbx
	call	sshbuf_put_cstring@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L5:
	mov	rdi, rbx
	call	sshbuf_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, 1[r14]
	mov	rdi, rbx
	call	sshbuf_put_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR SSH2_MSG_KEXINIT[rip]
	mov	rdi, rbx
	call	sshbuf_put_u8@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbx
	call	sshbuf_put@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR 88[rsp]
	mov	rdi, rbx
	lea	rsi, 1[rax]
	call	sshbuf_put_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR SSH2_MSG_KEXINIT[rip]
	mov	rdi, rbx
	call	sshbuf_put_u8@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rdx, QWORD PTR 88[rsp]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, rbx
	call	sshbuf_put@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rdx, QWORD PTR 104[rsp]
	mov	rsi, QWORD PTR 96[rsp]
	mov	rdi, rbx
	call	sshbuf_put_string@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	r15, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 112[rsp]
	mov	rdi, rbx
	mov	rdx, r15
	call	sshbuf_put_ec@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rsi, QWORD PTR 120[rsp]
	mov	rdx, r15
	mov	rdi, rbx
	call	sshbuf_put_ec@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rsi, QWORD PTR 128[rsp]
	mov	rdi, rbx
	call	sshbuf_put_bignum2@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR 144[rsp]
	mov	rdx, QWORD PTR 136[rsp]
	mov	edi, ebp
	mov	rsi, rbx
	mov	rcx, QWORD PTR [rax]
	call	ssh_digest_buffer@PLT
	mov	rdi, rbx
	test	rax, rax
	jne	.L12
	call	sshbuf_free@PLT
	mov	edi, ebp
	call	ssh_digest_bytes@PLT
	mov	rcx, QWORD PTR 144[rsp]
	mov	QWORD PTR [rcx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR SSH_ERR_ALLOC_FAIL[rip]
	jmp	.L1
.L12:
	call	sshbuf_free@PLT
	mov	r12d, DWORD PTR SSH_ERR_LIBCRYPTO_ERROR[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	kex_ecdh_hash, .-kex_ecdh_hash
	.comm	stderr,4,4
	.comm	SSH_ERR_LIBCRYPTO_ERROR,4,4
	.comm	SSH_ERR_INVALID_ARGUMENT,4,4
	.comm	SSH_ERR_ALLOC_FAIL,4,4
	.comm	SSH2_MSG_KEXINIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kexecdh.c_kex_ecdh_hash.c"
	.text
	.align	2
	.global	kex_ecdh_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	kex_ecdh_hash, %function
kex_ecdh_hash:
	@ args = 44, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [sp, #72]
	mov	r6, r1
	ldr	r7, [r8]
	mov	r4, r2
	mov	r9, r3
	mov	r5, r0
	bl	ssh_digest_bytes
	cmp	r7, r0
	bcs	.L2
	ldr	r3, .L13
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	bl	sshbuf_new
	subs	r7, r0, #0
	beq	.L10
	mov	r1, r4
	bl	sshbuf_put_cstring
	subs	r4, r0, #0
	bne	.L5
	mov	r1, r9
	mov	r0, r7
	bl	sshbuf_put_cstring
	subs	r4, r0, #0
	beq	.L11
.L5:
	mov	r0, r7
	bl	sshbuf_free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, [sp, #36]
	mov	r0, r7
	add	r1, r3, #1
	bl	sshbuf_put_u32
	subs	r4, r0, #0
	bne	.L5
	ldr	r9, .L13+4
	mov	r0, r7
	ldr	r1, [r9]
	bl	sshbuf_put_u8
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r7
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #32]
	bl	sshbuf_put
	subs	r4, r0, #0
	bne	.L5
	ldr	r3, [sp, #44]
	mov	r0, r7
	add	r1, r3, #1
	bl	sshbuf_put_u32
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r7
	ldr	r1, [r9]
	bl	sshbuf_put_u8
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r7
	ldr	r2, [sp, #44]
	ldr	r1, [sp, #40]
	bl	sshbuf_put
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r7
	ldr	r2, [sp, #52]
	ldr	r1, [sp, #48]
	bl	sshbuf_put_string
	subs	r4, r0, #0
	bne	.L5
	mov	r2, r6
	mov	r0, r7
	ldr	r1, [sp, #56]
	bl	sshbuf_put_ec
	subs	r4, r0, #0
	bne	.L5
	mov	r2, r6
	mov	r0, r7
	ldr	r1, [sp, #60]
	bl	sshbuf_put_ec
	subs	r4, r0, #0
	bne	.L5
	mov	r0, r7
	ldr	r1, [sp, #64]
	bl	sshbuf_put_bignum2
	subs	r4, r0, #0
	bne	.L5
	mov	r1, r7
	mov	r0, r5
	ldr	r3, [r8]
	ldr	r2, [sp, #68]
	bl	ssh_digest_buffer
	subs	r4, r0, #0
	mov	r0, r7
	bne	.L12
	bl	sshbuf_free
	mov	r0, r5
	bl	ssh_digest_bytes
	str	r0, [r8]
	b	.L1
.L10:
	ldr	r3, .L13+8
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	bl	sshbuf_free
	ldr	r3, .L13+12
	ldr	r4, [r3]
	b	.L1
.L14:
	.align	2
.L13:
	.word	SSH_ERR_INVALID_ARGUMENT
	.word	SSH2_MSG_KEXINIT
	.word	SSH_ERR_ALLOC_FAIL
	.word	SSH_ERR_LIBCRYPTO_ERROR
	.size	kex_ecdh_hash, .-kex_ecdh_hash
	.comm	stderr,4,4
	.comm	SSH_ERR_LIBCRYPTO_ERROR,4,4
	.comm	SSH_ERR_INVALID_ARGUMENT,4,4
	.comm	SSH_ERR_ALLOC_FAIL,4,4
	.comm	SSH2_MSG_KEXINIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
