	.file	"extr_socrates_fpga_pic.c_socrates_fpga_pic_unmask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	socrates_fpga_pic_unmask, @function
socrates_fpga_pic_unmask:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	socrates_fpga_irq_to_hw@PLT
	mov	rsi, r12
	lea	rdi, socrates_fpga_pic_lock[rip]
	mov	edx, eax
	mov	rax, QWORD PTR fpga_irqs[rip]
	mov	rbx, rdx
	mov	r13d, DWORD PTR [rax+rdx*4]
	call	spin_lock_irqsave@PLT
	mov	edi, r13d
	call	FPGA_PIC_IRQMASK@PLT
	mov	edi, eax
	call	socrates_fpga_pic_read@PLT
	and	eax, DWORD PTR SOCRATES_FPGA_IRQ_MASK[rip]
	mov	edi, r13d
	mov	ebp, eax
	call	FPGA_PIC_IRQMASK@PLT
	bts	ebp, ebx
	mov	esi, ebp
	mov	edi, eax
	call	socrates_fpga_pic_write@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, r12
	lea	rdi, socrates_fpga_pic_lock[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	socrates_fpga_pic_unmask, .-socrates_fpga_pic_unmask
	.comm	socrates_fpga_pic_lock,4,4
	.comm	fpga_irqs,8,8
	.comm	SOCRATES_FPGA_IRQ_MASK,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_socrates_fpga_pic.c_socrates_fpga_pic_unmask.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	socrates_fpga_pic_unmask, %function
socrates_fpga_pic_unmask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	socrates_fpga_irq_to_hw
	mov	r7, #0
	ldr	r3, .L4
	ldr	r6, .L4+4
	ldr	r3, [r3]
	mov	r1, r7
	ldr	r8, [r3, r0, lsl #2]
	mov	r5, r0
	mov	r0, r6
	bl	spin_lock_irqsave
	mov	r0, r8
	bl	FPGA_PIC_IRQMASK
	bl	socrates_fpga_pic_read
	mov	r4, r0
	mov	r1, #1
	ldr	r3, .L4+8
	mov	r0, r8
	ldr	r3, [r3]
	and	r4, r4, r3
	orr	r4, r4, r1, lsl r5
	bl	FPGA_PIC_IRQMASK
	mov	r1, r4
	bl	socrates_fpga_pic_write
	mov	r1, r7
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_irqrestore
.L5:
	.align	2
.L4:
	.word	fpga_irqs
	.word	socrates_fpga_pic_lock
	.word	SOCRATES_FPGA_IRQ_MASK
	.size	socrates_fpga_pic_unmask, .-socrates_fpga_pic_unmask
	.comm	socrates_fpga_pic_lock,4,4
	.comm	fpga_irqs,4,4
	.comm	SOCRATES_FPGA_IRQ_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
