	.file	"extr_irq-stm32-exti.c_stm32_irq_set_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stm32_irq_set_type, @function
stm32_irq_set_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	irq_data_get_irq_chip_data@PLT
	mov	r13, QWORD PTR [rax]
	mov	rdi, rax
	mov	rbp, rax
	mov	rbx, QWORD PTR 0[r13]
	call	irq_gc_lock@PLT
	mov	rdi, r13
	call	stm32_exti_hwspin_lock@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
.L2:
	mov	rdi, rbp
	call	irq_gc_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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	esi, DWORD PTR 4[rbx]
	mov	rdi, rbp
	call	irq_reg_readl@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	DWORD PTR [rsp], eax
	call	irq_reg_readl@PLT
	lea	rcx, 4[rsp]
	mov	rdx, rsp
	mov	esi, r14d
	mov	rdi, r15
	mov	DWORD PTR 4[rsp], eax
	call	stm32_exti_set_type@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR [rsp]
	mov	rdi, rbp
	call	irq_reg_writel@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	irq_reg_writel@PLT
.L3:
	mov	rdi, r13
	call	stm32_exti_hwspin_unlock@PLT
	jmp	.L2
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stm32_irq_set_type, .-stm32_irq_set_type
	.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-stm32-exti.c_stm32_irq_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	stm32_irq_set_type, %function
stm32_irq_set_type:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L9
	sub	sp, sp, #20
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r9, r0
	bl	irq_data_get_irq_chip_data
	ldr	r6, [r0]
	mov	r5, r0
	ldr	r7, [r6]
	bl	irq_gc_lock
	mov	r0, r6
	bl	stm32_exti_hwspin_lock
	subs	r4, r0, #0
	beq	.L7
.L2:
	mov	r0, r5
	bl	irq_gc_unlock
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	ldr	r1, [r7, #4]
	mov	r0, r5
	bl	irq_reg_readl
	mov	r3, r0
	ldr	r1, [r7]
	mov	r0, r5
	str	r3, [sp, #4]
	bl	irq_reg_readl
	mov	ip, r0
	mov	r1, r8
	mov	r0, r9
	add	r3, sp, #8
	add	r2, sp, #4
	str	ip, [sp, #8]
	bl	stm32_exti_set_type
	subs	r4, r0, #0
	bne	.L3
	ldr	r2, [r7, #4]
	ldr	r1, [sp, #4]
	mov	r0, r5
	bl	irq_reg_writel
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r1, [sp, #8]
	bl	irq_reg_writel
.L3:
	mov	r0, r6
	bl	stm32_exti_hwspin_unlock
	b	.L2
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	stm32_irq_set_type, .-stm32_irq_set_type
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
