	.file	"extr_io_apic.c_mp_save_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Int: type %d, pol %d, trig %d, bus %02x, IRQ %02x, APIC ID %x, APIC INT %02x\n"
	.align 8
.LC1:
	.string	"Max # of irq sources exceeded!!\n"
	.text
	.p2align 4
	.globl	mp_save_irq
	.type	mp_save_irq, @function
mp_save_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 16
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR 4[rdi]
	mov	ecx, DWORD PTR [rdi]
	mov	edx, DWORD PTR 20[rdi]
	push	rax
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR 8[rdi]
	mov	r8d, ecx
	and	ecx, 3
	sar	r8d, 2
	push	rax
	.cfi_def_cfa_offset 56
	mov	eax, DWORD PTR 12[rdi]
	and	r8d, 3
	push	rax
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR 16[rdi]
	mov	edi, DWORD PTR APIC_VERBOSE[rip]
	call	apic_printk@PLT
	movsx	rax, DWORD PTR mp_irq_entries[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 32
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	rax, DWORD PTR mp_irq_entries[rip]
	add	rbx, 1
	cmp	eax, ebx
	jle	.L2
.L5:
	mov	rax, QWORD PTR mp_irqs[rip]
	mov	edx, 24
	mov	rsi, rbp
	lea	rdi, [rax+rbx*4]
	call	memcmp@PLT
	test	eax, eax
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdx, QWORD PTR mp_irqs[rip]
	mov	rsi, rbp
	lea	rdi, [rdx+rax*4]
	mov	edx, 24
	call	memcpy@PLT
	mov	eax, DWORD PTR mp_irq_entries[rip]
	add	eax, 1
	cmp	eax, DWORD PTR MAX_IRQ_SOURCES[rip]
	mov	DWORD PTR mp_irq_entries[rip], eax
	jne	.L1
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	panic@PLT
	.cfi_endproc
.LFE0:
	.size	mp_save_irq, .-mp_save_irq
	.comm	mp_irqs,8,8
	.comm	mp_irq_entries,4,4
	.comm	MAX_IRQ_SOURCES,4,4
	.comm	APIC_VERBOSE,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_io_apic.c_mp_save_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Int: type %d, pol %d, trig %d, bus %02x, IRQ %02x, "
	.ascii	"APIC ID %x, APIC INT %02x\012\000"
	.align	2
.LC1:
	.ascii	"Max # of irq sources exceeded!!\012\000"
	.text
	.align	2
	.global	mp_save_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	mp_save_irq, %function
mp_save_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r0
	ldr	r3, [r0]
	sub	sp, sp, #28
	asr	r2, r3, #2
	and	r2, r2, #3
	ldr	r1, [r0, #4]
	ldr	ip, [r0, #8]
	ldr	r0, [r0, #12]
	str	r2, [sp]
	ldr	r2, [r6, #16]
	str	r1, [sp, #16]
	ldr	r1, .L12
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r2, [sp, #4]
	ldr	r8, .L12+4
	ldr	r0, [r1]
	and	r3, r3, #3
	ldr	r2, [r6, #20]
	ldr	r1, .L12+8
	bl	apic_printk
	ldr	r7, [r8]
	ldr	r3, .L12+12
	cmp	r7, #0
	ble	.L2
	ldr	r9, [r3]
	mov	r4, #0
	mov	r5, r9
	b	.L5
.L11:
	cmp	r4, r7
	add	r5, r5, #4
	beq	.L6
.L5:
	mov	r2, #24
	mov	r1, r6
	mov	r0, r5
	bl	memcmp
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L11
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r9, [r3]
.L6:
	mov	r2, #24
	mov	r1, r6
	add	r0, r9, r7, lsl #2
	bl	memcpy
	ldr	r2, .L12+16
	ldr	r3, [r8]
	ldr	r2, [r2]
	add	r3, r3, #1
	cmp	r3, r2
	str	r3, [r8]
	bne	.L1
	ldr	r0, .L12+20
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	panic
.L13:
	.align	2
.L12:
	.word	APIC_VERBOSE
	.word	mp_irq_entries
	.word	.LC0
	.word	mp_irqs
	.word	MAX_IRQ_SOURCES
	.word	.LC1
	.size	mp_save_irq, .-mp_save_irq
	.comm	mp_irqs,4,4
	.comm	mp_irq_entries,4,4
	.comm	MAX_IRQ_SOURCES,4,4
	.comm	APIC_VERBOSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
