	.file	"extr_connection.c_vmbus_negotiate_version.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vmbus_negotiate_version, @function
vmbus_negotiate_version:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 12[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, r15
	lea	r14, 8[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	init_completion@PLT
	mov	rbp, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR CHANNELMSG_INITIATE_CONTACT[rip]
	mov	rdi, QWORD PTR vmbus_connection[rip]
	mov	DWORD PTR 24[rbp], r12d
	mov	DWORD PTR 28[rbp], eax
	call	virt_to_phys@PLT
	mov	rdi, QWORD PTR vmbus_connection[rip+8]
	mov	QWORD PTR 16[rbp], rax
	call	virt_to_phys@PLT
	mov	rdi, QWORD PTR PAGE_SIZE[rip]
	add	rdi, QWORD PTR vmbus_connection[rip+8]
	mov	QWORD PTR 8[rbp], rax
	call	virt_to_phys@PLT
	mov	rsi, r13
	lea	rdi, vmbus_connection[rip+20]
	mov	QWORD PTR 0[rbp], rax
	call	spin_lock_irqsave@PLT
	lea	rsi, vmbus_connection[rip+24]
	mov	rdi, r14
	call	list_add_tail@PLT
	mov	rsi, r13
	lea	rdi, vmbus_connection[rip+20]
	call	spin_unlock_irqrestore@PLT
	mov	esi, 32
	mov	rdi, rbp
	call	vmbus_post_msg@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR HZ[rip]
	mov	rdi, r15
	xor	r13d, r13d
	lea	esi, [rax+rax*4]
	call	wait_for_completion_timeout@PLT
	mov	rsi, r13
	lea	rdi, vmbus_connection[rip+20]
	test	eax, eax
	je	.L9
	call	spin_lock_irqsave@PLT
	mov	rdi, r14
	call	list_del@PLT
	mov	rsi, r13
	lea	rdi, vmbus_connection[rip+20]
	call	spin_unlock_irqrestore@PLT
	cmp	QWORD PTR [rbx], 0
	je	.L5
	mov	eax, DWORD PTR CONNECTED[rip]
	mov	DWORD PTR vmbus_connection[rip+16], eax
.L1:
	add	rsp, 8
	.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
.L9:
	.cfi_restore_state
	call	spin_lock_irqsave@PLT
	mov	rdi, r14
	call	list_del@PLT
	mov	rsi, r13
	lea	rdi, vmbus_connection[rip+20]
	call	spin_unlock_irqrestore@PLT
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, r13
	lea	rdi, vmbus_connection[rip+20]
	call	spin_lock_irqsave@PLT
	mov	rdi, r14
	call	list_del@PLT
	mov	rsi, r13
	lea	rdi, vmbus_connection[rip+20]
	call	spin_unlock_irqrestore@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r12d, DWORD PTR ECONNREFUSED[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vmbus_negotiate_version, .-vmbus_negotiate_version
	.comm	vmbus_connection,32,32
	.comm	PAGE_SIZE,8,8
	.comm	HZ,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ECONNREFUSED,4,4
	.comm	CONNECTED,4,4
	.comm	CHANNELMSG_INITIATE_CONTACT,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_connection.c_vmbus_negotiate_version.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmbus_negotiate_version, %function
vmbus_negotiate_version:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r7, r1
	add	r9, r0, #8
	mov	r0, r9
	bl	init_completion
	ldr	r3, .L10
	ldr	r5, [r6, #12]
	ldr	r4, .L10+4
	ldr	r3, [r3]
	str	r7, [r5, #12]
	str	r3, [r5, #16]
	ldr	r0, [r4]
	bl	virt_to_phys
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [r5, #8]
	bl	virt_to_phys
	ldr	r3, .L10+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	str	r0, [r5, #4]
	add	r0, r2, r3
	bl	virt_to_phys
	mov	r7, #0
	str	r0, [r5]
	mov	r1, r7
	add	r0, r4, #12
	add	r8, r6, #4
	bl	spin_lock_irqsave
	add	r1, r4, #16
	mov	r0, r8
	bl	list_add_tail
	mov	r1, r7
	add	r0, r4, #12
	bl	spin_unlock_irqrestore
	mov	r0, r5
	mov	r1, #20
	bl	vmbus_post_msg
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, .L10+12
	mov	r0, r9
	ldr	r1, [r3]
	mov	r7, #0
	add	r1, r1, r1, lsl #2
	bl	wait_for_completion_timeout
	cmp	r0, #0
	mov	r1, r7
	add	r0, r4, #12
	beq	.L9
	bl	spin_lock_irqsave
	mov	r0, r8
	bl	list_del
	mov	r1, r7
	add	r0, r4, #12
	bl	spin_unlock_irqrestore
	ldr	r3, [r6]
	cmp	r3, r7
	ldreq	r3, .L10+16
	ldrne	r3, .L10+20
	ldreq	r0, [r3]
	ldrne	r3, [r3]
	rsbeq	r5, r0, #0
	mov	r0, r5
	strne	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	bl	spin_lock_irqsave
	mov	r0, r8
	bl	list_del
	mov	r1, r7
	add	r0, r4, #12
	bl	spin_unlock_irqrestore
	ldr	r3, .L10+24
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r1, r7
	add	r0, r4, #12
	bl	spin_lock_irqsave
	mov	r0, r8
	bl	list_del
	mov	r1, r7
	add	r0, r4, #12
	bl	spin_unlock_irqrestore
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	CHANNELMSG_INITIATE_CONTACT
	.word	vmbus_connection
	.word	PAGE_SIZE
	.word	HZ
	.word	ECONNREFUSED
	.word	CONNECTED
	.word	ETIMEDOUT
	.size	vmbus_negotiate_version, .-vmbus_negotiate_version
	.comm	vmbus_connection,20,4
	.comm	PAGE_SIZE,4,4
	.comm	HZ,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ECONNREFUSED,4,4
	.comm	CONNECTED,4,4
	.comm	CHANNELMSG_INITIATE_CONTACT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
