	.file	"extr_viohs.c_process_ver_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"GOT VERSION INFO maj[%u] min[%u] devclass[%u]\n"
	.align 8
.LC1:
	.string	"SEND VERSION NACK maj[0] min[0]\n"
	.align 8
.LC2:
	.string	"SEND VERSION NACK maj[%u] min[%u]\n"
	.align 8
.LC3:
	.string	"SEND VERSION ACK maj[%u] min[%u]\n"
	.text
	.p2align 4
	.type	process_ver_info, @function
process_ver_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	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
	mov	edi, DWORD PTR HS[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rcx, QWORD PTR 8[rsi]
	mov	rbx, rsi
	mov	r8d, DWORD PTR 32[rsi]
	mov	rdx, QWORD PTR [rsi]
	lea	rsi, .LC0[rip]
	call	viodbg@PLT
	mov	rax, QWORD PTR VIO_HS_INVALID[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L2
	lea	rdi, 8[rbp]
	mov	edx, 16
	xor	esi, esi
	call	memset@PLT
	mov	rax, QWORD PTR VIO_HS_INVALID[rip]
	mov	QWORD PTR 0[rbp], rax
.L2:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	lea	r14, 16[rbx]
	call	find_by_major@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	DWORD PTR 28[rbp], edx
	test	rax, rax
	je	.L10
	mov	r13, QWORD PTR [rax]
	mov	rcx, QWORD PTR 8[rax]
	mov	edi, DWORD PTR HS[rip]
	cmp	r13, QWORD PTR [rbx]
	je	.L5
	mov	rax, QWORD PTR VIO_SUBTYPE_NACK[rip]
	mov	QWORD PTR 8[rbx], rcx
	mov	rdx, r13
	lea	rsi, .LC2[rip]
	mov	QWORD PTR [rbx], r13
	mov	QWORD PTR 16[rbx], rax
	xor	eax, eax
	call	viodbg@PLT
	mov	edx, 40
	mov	rsi, r14
	mov	rdi, rbp
	call	send_ctrl@PLT
.L4:
	test	eax, eax
	js	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR VIO_SUBTYPE_ACK[rip]
	cmp	QWORD PTR 8[rbx], rcx
	mov	rdx, r13
	lea	rsi, .LC3[rip]
	cmovle	rcx, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 24[rbp]
	mov	QWORD PTR 8[rbx], rcx
	mov	r12, rcx
	mov	DWORD PTR 32[rbx], eax
	xor	eax, eax
	call	viodbg@PLT
	mov	edx, 40
	mov	rsi, r14
	mov	rdi, rbp
	call	send_ctrl@PLT
	test	eax, eax
	jle	.L4
	mov	rax, QWORD PTR VIO_HS_GOTVERS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR 8[rbp], r13
	mov	QWORD PTR 16[rbp], r12
	mov	QWORD PTR 0[rbp], rax
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	eax, eax
	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
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR VIO_SUBTYPE_NACK[rip]
	mov	QWORD PTR 8[rbx], 0
	lea	rsi, .LC1[rip]
	mov	QWORD PTR [rbx], 0
	mov	edi, DWORD PTR HS[rip]
	mov	QWORD PTR 16[rbx], rax
	xor	eax, eax
	call	viodbg@PLT
	mov	edx, 40
	mov	rsi, r14
	mov	rdi, rbp
	call	send_ctrl@PLT
	test	eax, eax
	jns	.L1
.L11:
	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	handshake_failure@PLT
	.cfi_endproc
.LFE0:
	.size	process_ver_info, .-process_ver_info
	.comm	VIO_SUBTYPE_NACK,8,8
	.comm	VIO_SUBTYPE_ACK,8,8
	.comm	VIO_HS_INVALID,8,8
	.comm	VIO_HS_GOTVERS,8,8
	.comm	HS,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_viohs.c_process_ver_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GOT VERSION INFO maj[%u] min[%u] devclass[%u]\012\000"
	.align	2
.LC1:
	.ascii	"SEND VERSION NACK maj[0] min[0]\012\000"
	.align	2
.LC2:
	.ascii	"SEND VERSION NACK maj[%u] min[%u]\012\000"
	.align	2
.LC3:
	.ascii	"SEND VERSION ACK maj[%u] min[%u]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_ver_info, %function
process_ver_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	ldr	r3, [r1, #16]
	sub	sp, sp, #12
	ldr	r8, .L12
	str	r3, [sp]
	ldm	r1, {r2, r3}
	mov	r4, r1
	ldr	r0, [r8]
	ldr	r1, .L12+4
	bl	viodbg
	ldr	r2, .L12+8
	ldr	r3, [r5]
	ldr	r6, [r2]
	cmp	r3, r6
	beq	.L2
	mov	r2, #8
	mov	r1, #0
	add	r0, r5, #4
	bl	memset
	str	r6, [r5]
.L2:
	mov	r0, r5
	ldr	r1, [r4]
	bl	find_by_major
	ldr	r2, [r4, #12]
	subs	r3, r0, #0
	str	r2, [r5, #16]
	add	r9, r4, #8
	beq	.L10
	ldr	r7, [r3]
	ldr	r2, [r4]
	ldr	r0, [r8]
	cmp	r7, r2
	ldr	r3, [r3, #4]
	beq	.L5
	ldr	r2, .L12+12
	ldr	r1, .L12+16
	ldr	r2, [r2]
	str	r3, [r4, #4]
	str	r2, [r4, #8]
	str	r7, [r4]
	mov	r2, r7
	bl	viodbg
	mov	r1, r9
	mov	r2, #20
	mov	r0, r5
	bl	send_ctrl
.L4:
	cmp	r0, #0
	blt	.L11
.L1:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	ldr	r6, [r4, #4]
	ldr	r2, .L12+20
	cmp	r3, r6
	movlt	r6, r3
	ldr	r1, [r2]
	ldr	r2, [r5, #12]
	mov	r3, r6
	str	r1, [r4, #8]
	str	r2, [r4, #16]
	ldr	r1, .L12+24
	mov	r2, r7
	str	r6, [r4, #4]
	bl	viodbg
	mov	r1, r9
	mov	r2, #20
	mov	r0, r5
	bl	send_ctrl
	cmp	r0, #0
	ble	.L4
	mov	r0, #0
	ldr	r3, .L12+28
	str	r7, [r5, #4]
	ldr	r3, [r3]
	str	r6, [r5, #8]
	str	r3, [r5]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	ldr	r2, .L12+12
	ldr	r0, [r8]
	ldr	r2, [r2]
	ldr	r1, .L12+32
	str	r3, [r4, #4]
	str	r2, [r4, #8]
	str	r3, [r4]
	bl	viodbg
	mov	r1, r9
	mov	r2, #20
	mov	r0, r5
	bl	send_ctrl
	cmp	r0, #0
	bge	.L1
.L11:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	handshake_failure
.L13:
	.align	2
.L12:
	.word	HS
	.word	.LC0
	.word	VIO_HS_INVALID
	.word	VIO_SUBTYPE_NACK
	.word	.LC2
	.word	VIO_SUBTYPE_ACK
	.word	.LC3
	.word	VIO_HS_GOTVERS
	.word	.LC1
	.size	process_ver_info, .-process_ver_info
	.comm	VIO_SUBTYPE_NACK,4,4
	.comm	VIO_SUBTYPE_ACK,4,4
	.comm	VIO_HS_INVALID,4,4
	.comm	VIO_HS_GOTVERS,4,4
	.comm	HS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
