	.file	"extr_vmbus_drv.c_vmbus_acpi_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vmbus_acpi_add, @function
vmbus_acpi_add:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR vmbus_walk_resources[rip]
	mov	esi, DWORD PTR METHOD_NAME__CRS[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	ecx, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	r12d, DWORD PTR ENODEV[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	QWORD PTR hv_acpi_dev[rip], rdi
	mov	edi, DWORD PTR [rdi]
	call	acpi_walk_resources@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L2
	mov	rbx, QWORD PTR 8[rbp]
	test	rbx, rbx
	je	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR [rbx]
	mov	edx, DWORD PTR vmbus_walk_resources[rip]
	xor	ecx, ecx
	mov	esi, DWORD PTR METHOD_NAME__CRS[rip]
	call	acpi_walk_resources@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	jne	.L4
	cmp	QWORD PTR hyperv_mmio[rip], 0
	jne	.L16
.L4:
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	jne	.L6
.L3:
	lea	rdi, probe_event[rip]
	xor	r12d, r12d
	call	complete@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, probe_event[rip]
	call	complete@PLT
	test	r12d, r12d
	je	.L1
	neg	r12d
	mov	rdi, rbp
	call	vmbus_acpi_remove@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	call	vmbus_reserve_fb@PLT
	xor	r12d, r12d
	lea	rdi, probe_event[rip]
	call	complete@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vmbus_acpi_add, .-vmbus_acpi_add
	.comm	vmbus_walk_resources,4,4
	.comm	probe_event,4,4
	.comm	hyperv_mmio,8,8
	.comm	hv_acpi_dev,8,8
	.comm	METHOD_NAME__CRS,4,4
	.comm	ENODEV,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_vmbus_drv.c_vmbus_acpi_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmbus_acpi_add, %function
vmbus_acpi_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r6, .L18
	ldr	r7, .L18+4
	ldr	lr, .L18+8
	ldr	ip, .L18+12
	mov	r3, #0
	ldr	r0, [r0]
	ldr	r2, [r6]
	ldr	r1, [r7]
	ldr	r5, [ip]
	str	r4, [lr]
	bl	acpi_walk_resources
	bl	ACPI_FAILURE
	subs	r8, r0, #0
	bne	.L2
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L3
	ldr	r9, .L18+16
.L6:
	mov	r3, #0
	ldr	r2, [r6]
	ldr	r1, [r7]
	ldr	r0, [r4]
	bl	acpi_walk_resources
	bl	ACPI_FAILURE
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L17
.L4:
	ldr	r4, [r4, #4]
	cmp	r4, #0
	bne	.L6
.L3:
	ldr	r0, .L18+20
	bl	complete
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r0, .L18+20
	bl	complete
	cmp	r5, #0
	beq	.L7
	mov	r0, r4
	rsb	r8, r5, #0
	bl	vmbus_acpi_remove
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r8, r5
	bl	vmbus_reserve_fb
	ldr	r0, .L18+20
	bl	complete
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r8, r5
	b	.L1
.L19:
	.align	2
.L18:
	.word	vmbus_walk_resources
	.word	METHOD_NAME__CRS
	.word	hv_acpi_dev
	.word	ENODEV
	.word	hyperv_mmio
	.word	probe_event
	.size	vmbus_acpi_add, .-vmbus_acpi_add
	.comm	vmbus_walk_resources,4,4
	.comm	probe_event,4,4
	.comm	hyperv_mmio,4,4
	.comm	hv_acpi_dev,4,4
	.comm	METHOD_NAME__CRS,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
