	.file	"extr_vector.c_vector_configure_legacy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vector_configure_legacy, @function
vector_configure_legacy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	ISA_IRQ_VECTOR@PLT
	mov	QWORD PTR 8[rbx], 0
	xor	esi, esi
	lea	rdi, vector_lock[rip]
	mov	DWORD PTR 16[rbx], eax
	call	raw_spin_lock_irqsave@PLT
	mov	rdi, rbp
	call	irqd_is_activated@PLT
	test	rax, rax
	je	.L2
	mov	edi, r12d
	xor	edx, edx
	mov	esi, 1
	xor	r12d, r12d
	call	trace_vector_setup@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	apic_update_irq_cfg@PLT
.L3:
	xor	esi, esi
	lea	rdi, vector_lock[rip]
	call	raw_spin_unlock_irqrestore@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
.L2:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 1
	mov	rdi, rbp
	mov	r12d, 1
	call	irqd_set_can_reserve@PLT
	mov	rdi, rbp
	call	clear_irq_vector@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	vector_configure_legacy, .-vector_configure_legacy
	.comm	vector_lock,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_vector.c_vector_configure_legacy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vector_configure_legacy, %function
vector_configure_legacy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r6, r1
	mov	r4, #0
	mov	r7, r0
	bl	ISA_IRQ_VECTOR
	mov	r1, r4
	str	r0, [r5, #8]
	str	r4, [r5, #4]
	ldr	r0, .L6
	bl	raw_spin_lock_irqsave
	mov	r0, r6
	bl	irqd_is_activated
	cmp	r0, r4
	beq	.L2
	mov	r2, r4
	mov	r1, #1
	mov	r0, r7
	bl	trace_vector_setup
	mov	r0, r6
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #8]
	bl	apic_update_irq_cfg
.L3:
	mov	r1, #0
	ldr	r0, .L6
	bl	raw_spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, #1
	mov	r0, r6
	str	r4, [r5]
	bl	irqd_set_can_reserve
	mov	r0, r6
	bl	clear_irq_vector
	b	.L3
.L7:
	.align	2
.L6:
	.word	vector_lock
	.size	vector_configure_legacy, .-vector_configure_legacy
	.comm	vector_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
