	.file	"extr_packet.c_ssh_packet_start_discard.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Packet corrupt"
	.text
	.p2align 4
	.type	ssh_packet_start_discard, @function
ssh_packet_start_discard:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rsi, rsi
	je	.L5
	mov	r14, QWORD PTR [rdi]
	mov	edi, DWORD PTR [rsi]
	mov	rbx, rdx
	mov	r13, rcx
	mov	r12, r8
	call	cipher_is_cbc@PLT
	test	eax, eax
	jne	.L17
.L5:
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	sshpkt_disconnect@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	test	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	cmove	eax, DWORD PTR SSH_ERR_MAC_INVALID[rip]
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	test	rbx, rbx
	je	.L6
	cmp	QWORD PTR 8[rbx], 0
	jne	.L5
	cmp	QWORD PTR [rbx], 0
	je	.L6
	mov	QWORD PTR 24[r14], rbx
	mov	QWORD PTR [r14], r13
.L6:
	mov	edi, DWORD PTR 8[r14]
	call	sshbuf_len@PLT
	cmp	rax, r12
	jge	.L18
	mov	edi, DWORD PTR 8[r14]
	call	sshbuf_len@PLT
	mov	r8, r12
	sub	r8, rax
	xor	eax, eax
	mov	QWORD PTR 16[r14], r8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ssh_packet_stop_discard@PLT
	.cfi_endproc
.LFE0:
	.size	ssh_packet_start_discard, .-ssh_packet_start_discard
	.comm	SSH_ERR_MAC_INVALID,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_ssh_packet_start_discard.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Packet corrupt\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssh_packet_start_discard, %function
ssh_packet_start_discard:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r1, #0
	mov	r4, r0
	ldr	r7, [sp, #24]
	beq	.L5
	ldr	r0, [r1]
	mov	r5, r2
	mov	r6, r3
	ldr	r8, [r4]
	bl	cipher_is_cbc
	cmp	r0, #0
	beq	.L5
	cmp	r5, #0
	beq	.L6
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L22
.L5:
	mov	r0, r4
	ldr	r1, .L24
	bl	sshpkt_disconnect
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L24+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r3, [r5]
	cmp	r3, #0
	strne	r5, [r8, #12]
	strne	r6, [r8]
.L6:
	ldr	r0, [r8, #4]
	bl	sshbuf_len
	cmp	r0, r7
	bge	.L23
	ldr	r0, [r8, #4]
	bl	sshbuf_len
	mov	r3, r0
	sub	r7, r7, r3
	mov	r0, #0
	str	r7, [r8, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	ssh_packet_stop_discard
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	SSH_ERR_MAC_INVALID
	.size	ssh_packet_start_discard, .-ssh_packet_start_discard
	.comm	SSH_ERR_MAC_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
