	.file	"extr_vgic-init.c_kvm_vgic_vcpu_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_vgic_vcpu_init
	.type	kvm_vgic_vcpu_init, @function
kvm_vgic_vcpu_init:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR VGIC_ADDR_UNDEF[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	add	rdi, 20
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR -20[rdi]
	mov	DWORD PTR 4[rdi], eax
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 16[r12]
	call	raw_spin_lock_init@PLT
	mov	eax, DWORD PTR VGIC_NR_PRIVATE_IRQS[rip]
	test	eax, eax
	jle	.L2
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR VGIC_CONFIG_EDGE[rip]
	add	rbp, 1
	cmp	DWORD PTR VGIC_NR_PRIVATE_IRQS[rip], ebp
	mov	DWORD PTR 4[rbx], 1
	mov	DWORD PTR 8[rbx], eax
	jle	.L2
.L5:
	mov	rdx, QWORD PTR 8[r12]
	lea	rax, 0[rbp+rbp*4]
	lea	rbx, [rdx+rax*8]
	lea	rdi, 36[rbx]
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 32[rbx]
	call	raw_spin_lock_init@PLT
	mov	DWORD PTR [rbx], ebp
	lea	rdi, 12[rbx]
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], r12
	call	kref_init@PLT
	mov	edi, ebp
	call	vgic_irq_is_sgi@PLT
	test	rax, rax
	jne	.L14
	mov	eax, DWORD PTR VGIC_CONFIG_LEVEL[rip]
	add	rbp, 1
	cmp	DWORD PTR VGIC_NR_PRIVATE_IRQS[rip], ebp
	mov	DWORD PTR 8[rbx], eax
	jg	.L5
.L2:
	mov	rdi, QWORD PTR [r12]
	call	irqchip_in_kernel@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR KVM_DEV_TYPE_ARM_VGIC_V3[rip]
	xor	r14d, r14d
	cmp	QWORD PTR 8[r13], rax
	je	.L15
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR [r12]
	call	mutex_lock@PLT
	mov	rdi, r12
	call	vgic_register_redist_iodev@PLT
	mov	rdi, QWORD PTR [r12]
	mov	r14d, eax
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	.cfi_endproc
.LFE0:
	.size	kvm_vgic_vcpu_init, .-kvm_vgic_vcpu_init
	.comm	VGIC_NR_PRIVATE_IRQS,4,4
	.comm	VGIC_CONFIG_LEVEL,4,4
	.comm	VGIC_CONFIG_EDGE,4,4
	.comm	VGIC_ADDR_UNDEF,4,4
	.comm	KVM_DEV_TYPE_ARM_VGIC_V3,8,8
	.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_vgic-init.c_kvm_vgic_vcpu_init.c"
	.text
	.align	2
	.global	kvm_vgic_vcpu_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_vgic_vcpu_init, %function
kvm_vgic_vcpu_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	ldr	r3, .L15
	sub	sp, sp, #12
	ldr	r3, [r3]
	ldr	fp, .L15+4
	str	r3, [r6, #16]
	ldr	r3, [r6]
	add	r0, r0, #12
	str	r3, [sp, #4]
	bl	INIT_LIST_HEAD
	add	r0, r6, #8
	bl	raw_spin_lock_init
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	mov	r8, r5
	ldr	r10, .L15+8
	ldr	r9, .L15+12
.L5:
	ldr	r7, [r6, #4]
	add	r4, r7, r5, lsl #5
	add	r0, r4, #28
	bl	INIT_LIST_HEAD
	add	r0, r4, #24
	bl	raw_spin_lock_init
	str	r5, [r7, r5, lsl #5]
	add	r0, r4, #12
	str	r8, [r4, #20]
	str	r6, [r4, #16]
	bl	kref_init
	mov	r0, r5
	bl	vgic_irq_is_sgi
	cmp	r0, #0
	movne	r1, #1
	ldrne	r3, [r9]
	ldreq	r3, [r10]
	stmibne	r4, {r1, r3}
	streq	r3, [r4, #8]
	ldr	r3, [fp]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
.L2:
	ldr	r0, [r6]
	bl	irqchip_in_kernel
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L15+16
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	ldr	r2, [r2, #4]
	cmp	r2, r3
	movne	r4, #0
	beq	.L14
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r0, [r6]
	bl	mutex_lock
	mov	r0, r6
	bl	vgic_register_redist_iodev
	mov	r4, r0
	ldr	r0, [r6]
	bl	mutex_unlock
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	VGIC_ADDR_UNDEF
	.word	VGIC_NR_PRIVATE_IRQS
	.word	VGIC_CONFIG_LEVEL
	.word	VGIC_CONFIG_EDGE
	.word	KVM_DEV_TYPE_ARM_VGIC_V3
	.size	kvm_vgic_vcpu_init, .-kvm_vgic_vcpu_init
	.comm	VGIC_NR_PRIVATE_IRQS,4,4
	.comm	VGIC_CONFIG_LEVEL,4,4
	.comm	VGIC_CONFIG_EDGE,4,4
	.comm	VGIC_ADDR_UNDEF,4,4
	.comm	KVM_DEV_TYPE_ARM_VGIC_V3,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
