	.file	"extr_packet.c_kex_from_blob.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kex_from_blob, @function
kex_from_blob:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	edi, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	mov	esi, 64
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	calloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L2
	xor	eax, eax
	call	sshbuf_new@PLT
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L3
	xor	eax, eax
	call	sshbuf_new@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L3
	lea	rdx, 56[rbp]
	lea	rsi, 60[rbp]
	mov	rdi, r13
	call	sshbuf_get_string@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L19
.L4:
	mov	rdi, QWORD PTR 16[rbp]
	call	sshbuf_free@PLT
	mov	rdi, QWORD PTR 8[rbp]
	call	sshbuf_free@PLT
	mov	rdi, rbp
	call	free@PLT
.L7:
	test	rbx, rbx
	je	.L1
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r12d, DWORD PTR SSH_ERR_ALLOC_FAIL[rip]
	test	rbx, rbx
	je	.L4
	test	r12d, r12d
	jne	.L4
.L5:
	mov	QWORD PTR [rbx], rbp
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR SSH_ERR_ALLOC_FAIL[rip]
	test	rbx, rbx
	je	.L1
	test	r12d, r12d
	jne	.L7
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, 52[rbp]
	mov	rdi, r13
	call	sshbuf_get_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rsi, 48[rbp]
	xor	edx, edx
	mov	rdi, r13
	call	sshbuf_get_cstring@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rsi, 44[rbp]
	mov	rdi, r13
	call	sshbuf_get_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rsi, 40[rbp]
	mov	rdi, r13
	call	sshbuf_get_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rsi, 36[rbp]
	mov	rdi, r13
	call	sshbuf_get_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, r13
	call	sshbuf_get_stringb@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, r13
	call	sshbuf_get_stringb@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rsi, 32[rbp]
	mov	rdi, r13
	call	sshbuf_get_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rsi, 28[rbp]
	xor	edx, edx
	mov	rdi, r13
	call	sshbuf_get_cstring@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	lea	rsi, 24[rbp]
	xor	edx, edx
	mov	rdi, r13
	call	sshbuf_get_cstring@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	movabs	rax, 4294967297
	mov	QWORD PTR 0[rbp], rax
	test	rbx, rbx
	jne	.L5
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	kex_from_blob, .-kex_from_blob
	.comm	SSH_ERR_ALLOC_FAIL,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_packet.c_kex_from_blob.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kex_from_blob, %function
kex_from_blob:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r6, r1
	mov	r0, #1
	mov	r1, #56
	bl	calloc
	subs	r4, r0, #0
	beq	.L2
	bl	sshbuf_new
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L3
	bl	sshbuf_new
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L3
	mov	r0, r7
	add	r2, r4, #48
	add	r1, r4, #52
	bl	sshbuf_get_string
	subs	r5, r0, #0
	bne	.L4
	mov	r0, r7
	add	r1, r4, #44
	bl	sshbuf_get_u32
	subs	r5, r0, #0
	beq	.L19
.L4:
	ldr	r0, [r4, #12]
	bl	sshbuf_free
	ldr	r0, [r4, #8]
	bl	sshbuf_free
	mov	r0, r4
	bl	free
.L7:
	cmp	r6, #0
	beq	.L1
	mov	r3, #0
	mov	r0, r5
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L20
	ldr	r5, [r3]
	subs	r3, r5, #0
	movne	r3, #1
	cmp	r6, #0
	moveq	r3, #1
	cmp	r3, #0
	bne	.L4
.L5:
	mov	r5, #0
	str	r4, [r6]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r2, r5
	mov	r0, r7
	add	r1, r4, #40
	bl	sshbuf_get_cstring
	subs	r5, r0, #0
	bne	.L4
	mov	r0, r7
	add	r1, r4, #36
	bl	sshbuf_get_u32
	subs	r5, r0, #0
	bne	.L4
	mov	r0, r7
	add	r1, r4, #32
	bl	sshbuf_get_u32
	subs	r5, r0, #0
	bne	.L4
	mov	r0, r7
	add	r1, r4, #28
	bl	sshbuf_get_u32
	subs	r5, r0, #0
	bne	.L4
	mov	r0, r7
	ldr	r1, [r4, #12]
	bl	sshbuf_get_stringb
	subs	r5, r0, #0
	bne	.L4
	mov	r0, r7
	ldr	r1, [r4, #8]
	bl	sshbuf_get_stringb
	subs	r5, r0, #0
	bne	.L4
	mov	r0, r7
	add	r1, r4, #24
	bl	sshbuf_get_u32
	subs	r5, r0, #0
	bne	.L4
	mov	r2, r5
	mov	r0, r7
	add	r1, r4, #20
	bl	sshbuf_get_cstring
	subs	r5, r0, #0
	bne	.L4
	mov	r2, r5
	mov	r0, r7
	add	r1, r4, #16
	bl	sshbuf_get_cstring
	subs	r5, r0, #0
	bne	.L4
	mov	r3, #1
	cmp	r6, #0
	str	r3, [r4]
	str	r3, [r4, #4]
	bne	.L5
	b	.L4
.L2:
	ldr	r3, .L20
	ldr	r5, [r3]
	subs	r3, r5, #0
	movne	r3, #1
	cmp	r6, #0
	moveq	r3, #1
	cmp	r3, #0
	bne	.L7
	b	.L5
.L21:
	.align	2
.L20:
	.word	SSH_ERR_ALLOC_FAIL
	.size	kex_from_blob, .-kex_from_blob
	.comm	SSH_ERR_ALLOC_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
