	.file	"extr_socrates_fpga_pic.c_socrates_fpga_pic_host_xlate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"FPGA PIC: invalid irq type, setting default active low\n"
	.align 8
.LC1:
	.string	"FPGA PIC: invalid irq routing\n"
	.text
	.p2align 4
	.type	socrates_fpga_pic_host_xlate, @function
socrates_fpga_pic_host_xlate:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdx]
	mov	rbp, rax
	sal	rbp, 4
	add	rbp, QWORD PTR fpga_irqs[rip]
	mov	QWORD PTR [r8], rax
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, DWORD PTR IRQ_TYPE_NONE[rip]
	je	.L9
.L2:
	mov	DWORD PTR [r9], eax
	mov	rax, QWORD PTR 16[rdx]
	cmp	rax, 2
	ja	.L5
.L10:
	mov	QWORD PTR 8[rbp], rax
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdx]
	cmp	rax, QWORD PTR IRQ_TYPE_LEVEL_LOW[rip]
	je	.L2
	cmp	rax, QWORD PTR IRQ_TYPE_LEVEL_HIGH[rip]
	je	.L2
	lea	rdi, .LC0[rip]
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR [rsp], rdx
	call	pr_warning@PLT
	mov	rax, QWORD PTR IRQ_TYPE_LEVEL_LOW[rip]
	mov	r9, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR [rsp]
	mov	DWORD PTR [r9], eax
	mov	rax, QWORD PTR 16[rdx]
	cmp	rax, 2
	jbe	.L10
.L5:
	lea	rdi, .LC1[rip]
	call	pr_warning@PLT
	add	rsp, 16
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	socrates_fpga_pic_host_xlate, .-socrates_fpga_pic_host_xlate
	.comm	fpga_irqs,8,8
	.comm	IRQ_TYPE_NONE,4,4
	.comm	IRQ_TYPE_LEVEL_LOW,8,8
	.comm	IRQ_TYPE_LEVEL_HIGH,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_socrates_fpga_pic.c_socrates_fpga_pic_host_xlate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FPGA PIC: invalid irq type, setting default active "
	.ascii	"low\012\000"
	.align	2
.LC1:
	.ascii	"FPGA PIC: invalid irq routing\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	socrates_fpga_pic_host_xlate, %function
socrates_fpga_pic_host_xlate:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	ldr	r5, [r2]
	ldr	r1, .L12+4
	mov	r4, r2
	ldr	r0, [r1]
	ldr	r2, [r3, r5, lsl #3]
	ldr	r1, [sp, #16]
	cmp	r2, r0
	str	r5, [r1]
	add	r5, r3, r5, lsl #3
	beq	.L9
	ldr	r3, [sp, #20]
	str	r2, [r3]
.L4:
	ldr	r3, [r4, #8]
	cmp	r3, #2
	strls	r3, [r5, #4]
	bhi	.L10
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r6, .L12+8
	ldr	r3, [r4, #4]
	ldr	r2, [r6]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L12+12
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L11
.L3:
	ldr	r2, [sp, #20]
	str	r3, [r2]
	ldr	r3, [r4, #8]
	cmp	r3, #2
	strls	r3, [r5, #4]
	bls	.L6
.L10:
	ldr	r0, .L12+16
	bl	pr_warning
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, .L12+20
	bl	pr_warning
	ldr	r3, [r6]
	ldr	r2, [sp, #20]
	str	r3, [r2]
	b	.L4
.L13:
	.align	2
.L12:
	.word	fpga_irqs
	.word	IRQ_TYPE_NONE
	.word	IRQ_TYPE_LEVEL_LOW
	.word	IRQ_TYPE_LEVEL_HIGH
	.word	.LC1
	.word	.LC0
	.size	socrates_fpga_pic_host_xlate, .-socrates_fpga_pic_host_xlate
	.comm	fpga_irqs,4,4
	.comm	IRQ_TYPE_NONE,4,4
	.comm	IRQ_TYPE_LEVEL_LOW,4,4
	.comm	IRQ_TYPE_LEVEL_HIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
