	.file	"extr_irq-pic32-evic.c_pic32_set_irq_priority.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pic32_set_irq_priority, @function
pic32_set_irq_priority:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, edi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	cdq
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	shr	edx, 30
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	ebx, 3[rdi]
	lea	ebp, [rdi+rdx]
	and	ebp, 3
	sub	ebp, edx
	sal	ebp, 3
	test	edi, edi
	cmovns	ebx, edi
	mov	rdi, QWORD PTR REG_IPC_OFFSET[rip]
	sar	ebx, 2
	sal	ebx, 4
	movsx	rbx, ebx
	add	rdi, rbx
	call	PIC32_CLR@PLT
	mov	edi, DWORD PTR PRIORITY_MASK[rip]
	mov	ecx, ebp
	add	rax, QWORD PTR evic_base[rip]
	mov	rsi, rax
	sal	edi, cl
	call	writel@PLT
	add	rbx, QWORD PTR REG_IPC_OFFSET[rip]
	mov	rdi, rbx
	call	PIC32_SET@PLT
	mov	edi, r12d
	mov	ecx, ebp
	pop	rbx
	.cfi_def_cfa_offset 24
	add	rax, QWORD PTR evic_base[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	sal	edi, cl
	mov	rsi, rax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.cfi_endproc
.LFE0:
	.size	pic32_set_irq_priority, .-pic32_set_irq_priority
	.comm	evic_base,8,8
	.comm	REG_IPC_OFFSET,8,8
	.comm	PRIORITY_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_irq-pic32-evic.c_pic32_set_irq_priority.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pic32_set_irq_priority, %function
pic32_set_irq_priority:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	rsbs	r2, r0, #0
	and	r2, r2, #3
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	add	r3, r0, #3
	and	r5, r0, #3
	rsbpl	r5, r2, #0
	cmp	r0, #0
	movlt	r0, r3
	ldr	r7, .L4
	ldr	r3, .L4+4
	ldr	r2, [r7]
	ldr	r6, [r3]
	asr	r3, r0, #2
	add	r0, r2, r3, lsl #4
	lsl	r8, r5, #3
	lsl	r4, r3, #4
	mov	r5, r1
	bl	PIC32_CLR
	mov	r1, r0
	ldr	r9, .L4+8
	lsl	r6, r6, r8
	ldr	r3, [r9]
	mov	r0, r6
	add	r1, r1, r3
	bl	writel
	ldr	r0, [r7]
	lsl	r5, r5, r8
	add	r0, r4, r0
	bl	PIC32_SET
	mov	r1, r0
	ldr	r3, [r9]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	add	r1, r1, r3
	b	writel
.L5:
	.align	2
.L4:
	.word	REG_IPC_OFFSET
	.word	PRIORITY_MASK
	.word	evic_base
	.size	pic32_set_irq_priority, .-pic32_set_irq_priority
	.comm	evic_base,4,4
	.comm	REG_IPC_OFFSET,4,4
	.comm	PRIORITY_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
