	.file	"extr_ioapic.c_kvm_ioapic_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_ioapic_init
	.type	kvm_ioapic_init, @function
kvm_ioapic_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	lea	rdi, 16[rax]
	call	spin_lock_init@PLT
	mov	QWORD PTR 8[r12], rbp
	mov	rdi, rbp
	call	kvm_ioapic_reset@PLT
	lea	rsi, ioapic_mmio_ops[rip]
	mov	rdi, rbp
	call	kvm_iodevice_init@PLT
	mov	QWORD PTR 8[rbp], r12
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	esi, DWORD PTR KVM_MMIO_BUS[rip]
	mov	rdi, r12
	mov	rdx, rbp
	call	kvm_io_bus_register_dev@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	mutex_unlock@PLT
	test	r13d, r13d
	js	.L6
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kvm_ioapic_init, .-kvm_ioapic_init
	.comm	ioapic_mmio_ops,4,4
	.comm	KVM_MMIO_BUS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_ioapic.c_kvm_ioapic_init.c"
	.text
	.align	2
	.global	kvm_ioapic_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_ioapic_init, %function
kvm_ioapic_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	mov	r0, #12
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L6
	add	r0, r4, #8
	bl	spin_lock_init
	mov	r0, r4
	str	r4, [r5, #4]
	bl	kvm_ioapic_reset
	ldr	r1, .L8+4
	mov	r0, r4
	bl	kvm_iodevice_init
	mov	r0, r5
	str	r5, [r4, #4]
	bl	mutex_lock
	ldr	r3, .L8+8
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r5
	bl	kvm_io_bus_register_dev
	mov	r6, r0
	mov	r0, r5
	bl	mutex_unlock
	cmp	r6, #0
	blt	.L7
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L8+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r4
	bl	kfree
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	GFP_KERNEL
	.word	ioapic_mmio_ops
	.word	KVM_MMIO_BUS
	.word	ENOMEM
	.size	kvm_ioapic_init, .-kvm_ioapic_init
	.comm	ioapic_mmio_ops,4,4
	.comm	KVM_MMIO_BUS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
