	.file	"extr_cpm2_pic.c_cpm2_end_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cpm2_end_irq, @function
cpm2_end_irq:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	call	virq_to_hw@PLT
	mov	ecx, DWORD PTR IRQ_DISABLED[rip]
	or	ecx, DWORD PTR IRQ_INPROGRESS[rip]
	mov	eax, eax
	mov	rdx, rax
	sal	rdx, 4
	add	rdx, QWORD PTR irq_desc[rip]
	test	DWORD PTR [rdx], ecx
	jne	.L1
	cmp	QWORD PTR 8[rdx], 0
	jne	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdx, QWORD PTR irq_to_siureg[rip]
	mov	rcx, QWORD PTR irq_to_siubit[rip]
	mov	esi, 1
	movsx	rdi, DWORD PTR [rdx+rax*4]
	mov	rdx, QWORD PTR ppc_cached_irq_mask[rip]
	mov	ecx, DWORD PTR [rcx+rax*4]
	sal	rdi, 2
	add	rdx, rdi
	sal	esi, cl
	add	rdi, QWORD PTR cpm2_intctl[rip]
	or	esi, DWORD PTR [rdx]
	mov	DWORD PTR [rdx], esi
	call	out_be32@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	mb@PLT
	.cfi_endproc
.LFE0:
	.size	cpm2_end_irq, .-cpm2_end_irq
	.comm	ppc_cached_irq_mask,8,8
	.comm	irq_to_siureg,8,8
	.comm	irq_to_siubit,8,8
	.comm	irq_desc,8,8
	.comm	cpm2_intctl,8,8
	.comm	IRQ_INPROGRESS,4,4
	.comm	IRQ_DISABLED,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_cpm2_pic.c_cpm2_end_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpm2_end_irq, %function
cpm2_end_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	virq_to_hw
	ldr	r3, .L8
	ldr	r1, .L8+4
	ldr	r2, .L8+8
	ldr	r3, [r3]
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, [r3, r0, lsl #3]
	orr	r2, r2, ip
	tst	r2, r1
	add	r3, r3, r0, lsl #3
	popne	{r4, pc}
	ldr	r3, [r3, #4]
	cmp	r3, #0
	popeq	{r4, pc}
	mov	lr, #1
	ldr	r3, .L8+12
	ldr	r1, .L8+16
	ldr	r3, [r3]
	ldr	r2, .L8+20
	ldr	ip, [r1]
	ldr	r3, [r3, r0, lsl #2]
	ldr	r2, [r2]
	ldr	ip, [ip, r0, lsl #2]
	ldr	r0, .L8+24
	ldr	r1, [r2, r3, lsl #2]
	ldr	r0, [r0]
	orr	r1, r1, lr, lsl ip
	str	r1, [r2, r3, lsl #2]
	add	r0, r0, r3, lsl #2
	bl	out_be32
	pop	{r4, lr}
	b	mb
.L9:
	.align	2
.L8:
	.word	irq_desc
	.word	IRQ_INPROGRESS
	.word	IRQ_DISABLED
	.word	irq_to_siureg
	.word	irq_to_siubit
	.word	ppc_cached_irq_mask
	.word	cpm2_intctl
	.size	cpm2_end_irq, .-cpm2_end_irq
	.comm	ppc_cached_irq_mask,4,4
	.comm	irq_to_siureg,4,4
	.comm	irq_to_siubit,4,4
	.comm	irq_desc,4,4
	.comm	cpm2_intctl,4,4
	.comm	IRQ_INPROGRESS,4,4
	.comm	IRQ_DISABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
