	.file	"extr_irq-atmel-aic5.c_aic5_set_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aic5_set_type, @function
aic5_set_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	irq_get_domain_generic_chip@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	irq_gc_lock@PLT
	mov	edx, DWORD PTR AT91_AIC5_SSR[rip]
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	call	irq_reg_writel@PLT
	mov	esi, DWORD PTR AT91_AIC5_SMR[rip]
	mov	rdi, rbp
	call	irq_reg_readl@PLT
	mov	rdi, r12
	lea	rdx, 4[rsp]
	mov	esi, r13d
	mov	DWORD PTR 4[rsp], eax
	call	aic_common_set_type@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
.L2:
	mov	rdi, rbp
	call	irq_gc_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR AT91_AIC5_SMR[rip]
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	irq_reg_writel@PLT
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aic5_set_type, .-aic5_set_type
	.comm	AT91_AIC5_SSR,4,4
	.comm	AT91_AIC5_SMR,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-atmel-aic5.c_aic5_set_type.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aic5_set_type, %function
aic5_set_type:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L8
	sub	sp, sp, #12
	mov	r5, r0
	mov	r6, r1
	ldr	r0, [r0, #4]
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	irq_get_domain_generic_chip
	mov	r4, r0
	bl	irq_gc_lock
	ldr	r3, .L8+4
	ldr	r7, .L8+8
	ldr	r2, [r3]
	ldr	r1, [r5]
	mov	r0, r4
	bl	irq_reg_writel
	ldr	r1, [r7]
	mov	r0, r4
	bl	irq_reg_readl
	mov	r3, r0
	mov	r1, r6
	mov	r0, r5
	mov	r2, sp
	str	r3, [sp]
	bl	aic_common_set_type
	subs	r5, r0, #0
	beq	.L6
.L2:
	mov	r0, r4
	bl	irq_gc_unlock
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r4
	ldr	r2, [r7]
	ldr	r1, [sp]
	bl	irq_reg_writel
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	AT91_AIC5_SSR
	.word	AT91_AIC5_SMR
	.size	aic5_set_type, .-aic5_set_type
	.comm	AT91_AIC5_SSR,4,4
	.comm	AT91_AIC5_SMR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
