	.file	"extr_channel_mgmt.c_vmbus_prep_negotiate_resp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vmbus_prep_negotiate_resp
	.type	vmbus_prep_negotiate_resp, @function
vmbus_prep_negotiate_resp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	r12, QWORD PTR 64[rsp]
	mov	r9d, DWORD PTR 32[rsi]
	mov	ebp, DWORD PTR 36[rsi]
	mov	DWORD PTR [rdi], 16
	mov	rbx, QWORD PTR 40[rsi]
	test	ecx, ecx
	jle	.L17
	lea	eax, -1[rcx]
	mov	r11, r8
	lea	r8, 8[rbx]
	mov	r13, rdx
	lea	r15, 4[rdx+rax*4]
	lea	eax, -1[r9]
	lea	rdi, [r8+rax*8]
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r10d, DWORD PTR 0[r13]
	mov	ecx, r10d
	movzx	r10d, r10w
	sar	ecx, 16
	test	r9d, r9d
	jle	.L3
	mov	rax, rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	rax, 8
	cmp	rax, rdi
	je	.L3
.L6:
	mov	edx, DWORD PTR [rax]
	cmp	edx, ecx
	jne	.L4
	cmp	DWORD PTR 4[rax], r10d
	jne	.L4
	test	r14d, r14d
	jle	.L31
	lea	eax, -1[r14]
	movsx	rcx, r9d
	lea	r13d, [r9+rbp]
	lea	r15, 4[r11+rax*4]
	lea	eax, -1[rbp]
	add	rax, rcx
	lea	r14, [rbx+rcx*8]
	lea	rdi, [r8+rax*8]
.L14:
	mov	r8d, DWORD PTR [r11]
	mov	ecx, r8d
	movzx	r8d, r8w
	sar	ecx, 16
	cmp	r9d, r13d
	jge	.L7
	mov	rax, r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	add	rax, 8
	cmp	rax, rdi
	je	.L7
.L10:
	cmp	DWORD PTR [rax], ecx
	jne	.L8
	cmp	DWORD PTR 4[rax], r8d
	jne	.L8
	movabs	rax, 4294967297
	mov	r9d, edx
	mov	ebp, ecx
	mov	r11d, 1
	mov	QWORD PTR 32[rsi], rax
.L15:
	cmp	QWORD PTR 56[rsp], 0
	je	.L12
	mov	eax, r9d
	mov	rsi, QWORD PTR 56[rsp]
	sal	eax, 16
	or	eax, r10d
	mov	DWORD PTR [rsi], eax
.L12:
	test	r12, r12
	je	.L13
	mov	eax, ebp
	sal	eax, 16
	or	eax, r8d
	mov	DWORD PTR [r12], eax
.L13:
	mov	DWORD PTR [rbx], r9d
	mov	eax, r11d
	mov	DWORD PTR 4[rbx], r10d
	mov	DWORD PTR 8[rbx], ebp
	mov	DWORD PTR 12[rbx], r8d
	pop	rbx
	.cfi_remember_state
	.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
.L3:
	.cfi_restore_state
	add	r13, 4
	cmp	r13, r15
	jne	.L16
.L17:
	xor	r10d, r10d
.L2:
	mov	QWORD PTR 32[rsi], 0
	xor	r11d, r11d
	xor	r8d, r8d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	add	r11, 4
	cmp	r11, r15
	jne	.L14
	mov	r9d, edx
	jmp	.L2
.L31:
	mov	r9d, ecx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vmbus_prep_negotiate_resp, .-vmbus_prep_negotiate_resp
	.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_channel_mgmt.c_vmbus_prep_negotiate_resp.c"
	.text
	.align	2
	.global	vmbus_prep_negotiate_resp
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmbus_prep_negotiate_resp, %function
vmbus_prep_negotiate_resp:
	@ args = 16, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	str	r1, [sp, #4]
	subs	r8, r3, #0
	mov	r1, #16
	mov	r3, ip
	str	r1, [r0]
	ldr	r1, [r3, #36]
	ldr	ip, [ip, #32]
	str	r1, [sp]
	ldr	lr, [sp, #48]
	ldr	r1, [r3, #40]
	ldr	r10, [sp, #52]
	ble	.L17
	mov	r4, #0
	ldr	r9, .L31
	sub	r7, r2, #4
	add	r6, r1, #4
.L16:
	ldr	r5, [r7, #4]!
	cmp	ip, #0
	asr	r0, r5, #16
	and	r5, r5, r9
	ble	.L3
	mov	r3, #0
	b	.L6
.L4:
	add	r3, r3, #1
	cmp	ip, r3
	beq	.L3
.L6:
	ldr	r2, [r1, r3, lsl #3]
	cmp	r2, r0
	bne	.L4
	ldr	fp, [r6, r3, lsl #3]
	cmp	fp, r5
	bne	.L4
	cmp	r10, #0
	movle	ip, r0
	ble	.L2
	mov	r8, #0
	ldr	r3, [sp]
	ldr	fp, .L31
	sub	r9, lr, #4
	add	lr, ip, r3
.L14:
	ldr	r7, [r9, #4]!
	cmp	ip, lr
	asr	r4, r7, #16
	and	r7, r7, fp
	bge	.L7
	mov	r3, ip
	b	.L10
.L8:
	add	r3, r3, #1
	cmp	r3, lr
	beq	.L7
.L10:
	ldr	r0, [r1, r3, lsl #3]
	cmp	r0, r4
	bne	.L8
	ldr	r0, [r6, r3, lsl #3]
	cmp	r0, r7
	bne	.L8
	mov	r0, #1
	mov	ip, r2
	ldr	r3, [sp, #4]
	str	r4, [sp]
	str	r0, [r3, #32]
	str	r0, [r3, #36]
.L15:
	ldr	r3, [sp, #56]
	cmp	r3, #0
	ldrne	r2, [sp, #56]
	orrne	r3, r5, ip, lsl #16
	strne	r3, [r2]
	ldr	r3, [sp, #60]
	cmp	r3, #0
	ldrne	r3, [sp]
	ldrne	r2, [sp, #60]
	orrne	r3, r7, r3, lsl #16
	strne	r3, [r2]
	ldr	r3, [sp]
	str	ip, [r1]
	str	r5, [r1, #4]
	str	r3, [r1, #8]
	str	r7, [r1, #12]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	add	r4, r4, #1
	cmp	r8, r4
	bne	.L16
.L17:
	mov	r5, #0
.L2:
	mov	r3, #0
	ldr	r2, [sp, #4]
	mov	r0, r3
	mov	r7, r3
	str	r3, [r2, #32]
	str	r3, [r2, #36]
	b	.L15
.L7:
	add	r8, r8, #1
	cmp	r10, r8
	bne	.L14
	mov	ip, r2
	b	.L2
.L32:
	.align	2
.L31:
	.word	65535
	.size	vmbus_prep_negotiate_resp, .-vmbus_prep_negotiate_resp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
