	.file	"extr_ifx6x60.c_ifx_spi_reset_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ifx_spi_reset_interrupt, @function
ifx_spi_reset_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	r13, 4[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 12[rsi]
	call	gpio_get_value@PLT
	mov	edi, DWORD PTR MR_START[rip]
	mov	rsi, r13
	mov	r12d, eax
	call	test_bit@PLT
	mov	edi, DWORD PTR MR_INPROGRESS[rip]
	mov	rsi, r13
	mov	ebx, eax
	test	r12d, r12d
	jne	.L2
	call	set_bit@PLT
	test	ebx, ebx
	je	.L11
.L4:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L2:
	.cfi_restore_state
	call	clear_bit@PLT
	test	ebx, ebx
	je	.L4
	mov	edi, DWORD PTR MR_COMPLETE[rip]
	mov	rsi, r13
	call	set_bit@PLT
	mov	rdi, rbp
	call	wake_up@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, 8[rbp]
	xor	esi, esi
	call	tty_port_tty_hangup@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ifx_spi_reset_interrupt, .-ifx_spi_reset_interrupt
	.comm	MR_START,4,4
	.comm	MR_INPROGRESS,4,4
	.comm	MR_COMPLETE,4,4
	.comm	IRQ_HANDLED,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_ifx6x60.c_ifx_spi_reset_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ifx_spi_reset_interrupt, %function
ifx_spi_reset_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, [r1, #12]
	mov	r4, r1
	bl	gpio_get_value
	ldr	r3, .L12
	add	r6, r4, #4
	mov	r5, r0
	mov	r1, r6
	ldr	r0, [r3]
	bl	test_bit
	ldr	r3, .L12+4
	cmp	r5, #0
	mov	r1, r6
	mov	r5, r0
	ldr	r0, [r3]
	bne	.L2
	bl	set_bit
	cmp	r5, #0
	beq	.L11
.L4:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	bl	clear_bit
	cmp	r5, #0
	beq	.L4
	ldr	r3, .L12+12
	mov	r1, r6
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, r4
	bl	wake_up
	b	.L4
.L11:
	mov	r1, r5
	add	r0, r4, #8
	bl	tty_port_tty_hangup
	b	.L4
.L13:
	.align	2
.L12:
	.word	MR_START
	.word	MR_INPROGRESS
	.word	IRQ_HANDLED
	.word	MR_COMPLETE
	.size	ifx_spi_reset_interrupt, .-ifx_spi_reset_interrupt
	.comm	MR_START,4,4
	.comm	MR_INPROGRESS,4,4
	.comm	MR_COMPLETE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
