	.file	"extr_uic.c_uic_set_irq_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uic_set_irq_type, @function
uic_set_irq_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	irq_data_get_irq_chip_data@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	irqd_to_hwirq@PLT
	and	ebx, DWORD PTR IRQ_TYPE_SENSE_MASK[rip]
	lea	esi, -128[rbx]
	cmp	esi, 4
	ja	.L2
	lea	rdx, .L4[rip]
	mov	ecx, eax
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L10-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r13d, r13d
	xor	edx, edx
.L7:
	xor	r15d, r15d
	mov	r14d, -2147483648
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], edx
	shr	r14d, cl
	mov	rsi, r15
	call	raw_spin_lock_irqsave@PLT
	mov	r12d, r14d
	mov	rdi, QWORD PTR UIC_TR[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	mfdcr@PLT
	not	r12d
	mov	rdi, QWORD PTR UIC_PR[rip]
	add	rdi, QWORD PTR 8[rbp]
	mov	ebx, eax
	call	mfdcr@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, r12d
	and	ebx, r12d
	and	esi, eax
	mov	rdi, QWORD PTR UIC_PR[rip]
	add	rdi, QWORD PTR 8[rbp]
	or	ebx, edx
	or	esi, r13d
	call	mtdcr@PLT
	mov	esi, ebx
	mov	rdi, QWORD PTR UIC_TR[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	mtdcr@PLT
	mov	esi, r14d
	mov	rdi, QWORD PTR UIC_SR[rip]
	add	rdi, QWORD PTR 8[rbp]
	call	mtdcr@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	raw_spin_unlock_irqrestore@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, r12
	call	uic_mask_irq@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, -2147483648
	xor	edx, edx
	shr	esi, cl
	mov	r13d, esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, -2147483648
	xor	r13d, r13d
	shr	edx, cl
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, -2147483648
	shr	edx, cl
	mov	r13d, edx
	jmp	.L7
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	uic_set_irq_type, .-uic_set_irq_type
	.comm	UIC_TR,8,8
	.comm	UIC_SR,8,8
	.comm	UIC_PR,8,8
	.comm	IRQ_TYPE_SENSE_MASK,4,4
	.comm	EINVAL,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_uic.c_uic_set_irq_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uic_set_irq_type, %function
uic_set_irq_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r6, r0
	bl	irq_data_get_irq_chip_data
	mov	r5, r0
	mov	r0, r6
	bl	irqd_to_hwirq
	ldr	r3, .L13
	mov	r2, r0
	ldr	r3, [r3]
	and	r3, r3, r4
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L10
	.word	.L6
	.word	.L5
	.word	.L3
.L10:
	mov	r10, #0
	mov	r7, r10
.L7:
	mov	r8, #0
	mov	r6, #-2147483648
	ldr	r9, .L13+4
	mov	r1, r8
	mov	r0, r5
	lsr	r6, r6, r2
	bl	raw_spin_lock_irqsave
	ldr	r3, [r9]
	ldr	r0, [r5, #4]
	ldr	fp, .L13+8
	add	r0, r0, r3
	bl	mfdcr
	ldr	r2, [fp]
	ldr	r1, [r5, #4]
	mov	r4, r0
	add	r0, r1, r2
	bl	mfdcr
	mvn	r3, r6
	ldr	r2, [fp]
	ldr	ip, [r5, #4]
	and	r1, r3, r0
	orr	r1, r1, r10
	add	r0, ip, r2
	and	r3, r3, r4
	orr	r7, r3, r7
	bl	mtdcr
	ldr	r3, [r9]
	ldr	r0, [r5, #4]
	mov	r1, r7
	add	r0, r0, r3
	bl	mtdcr
	ldr	r3, .L13+12
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	mov	r1, r6
	add	r0, r0, r3
	bl	mtdcr
	mov	r1, r8
	mov	r0, r5
	bl	raw_spin_unlock_irqrestore
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, r6
	bl	uic_mask_irq
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r10, #-2147483648
	mov	r7, #0
	lsr	r10, r10, r0
	b	.L7
.L3:
	mov	r4, #-2147483648
	mov	r10, #0
	lsr	r7, r4, r0
	b	.L7
.L5:
	mov	r4, #-2147483648
	lsr	r7, r4, r0
	mov	r10, r7
	b	.L7
.L2:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	IRQ_TYPE_SENSE_MASK
	.word	UIC_TR
	.word	UIC_PR
	.word	UIC_SR
	.word	EINVAL
	.size	uic_set_irq_type, .-uic_set_irq_type
	.comm	UIC_TR,4,4
	.comm	UIC_SR,4,4
	.comm	UIC_PR,4,4
	.comm	IRQ_TYPE_SENSE_MASK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
