	.file	"extr_s626.c_s626_handle_dio_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s626_handle_dio_interrupt, @function
s626_handle_dio_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	mov	edx, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	mov	ebx, esi
	mov	esi, ebp
	mov	rax, QWORD PTR [rdi]
	mov	r14, QWORD PTR [rax]
	call	s626_dio_reset_irq@PLT
	cmp	QWORD PTR 8[r13], 0
	je	.L1
	mov	ecx, DWORD PTR [r14]
	sal	ebp, 4
	mov	eax, ebx
	sub	ecx, ebp
	sar	eax, cl
	cmp	eax, 1
	je	.L12
.L4:
	mov	ecx, DWORD PTR 24[r14]
	mov	eax, ebx
	sub	ecx, ebp
	sar	eax, cl
	cmp	eax, 1
	je	.L13
.L5:
	mov	ecx, DWORD PTR 48[r14]
	sub	ecx, ebp
	sar	ebx, cl
	cmp	ebx, 1
	je	.L14
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR TRIG_EXT[rip]
	cmp	QWORD PTR 32[r14], rax
	jne	.L1
	mov	edx, DWORD PTR S626_P_MC2[rip]
	mov	esi, DWORD PTR S626_MC2_ADC_RPS[rip]
	mov	rdi, r12
	call	s626_mc_enable@PLT
	mov	rax, QWORD PTR 0[r13]
	sub	rax, 1
	mov	QWORD PTR 0[r13], rax
	test	rax, rax
	jle	.L1
	mov	esi, DWORD PTR 48[r14]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	s626_dio_set_irq@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR TRIG_EXT[rip]
	cmp	QWORD PTR 8[r14], rax
	jne	.L4
	mov	edx, DWORD PTR S626_P_MC1[rip]
	mov	esi, DWORD PTR S626_MC1_ERPS1[rip]
	mov	rdi, r12
	call	s626_mc_enable@PLT
	mov	rax, QWORD PTR TRIG_EXT[rip]
	cmp	QWORD PTR 16[r14], rax
	jne	.L5
	mov	esi, DWORD PTR 24[r14]
	mov	rdi, r12
	call	s626_dio_set_irq@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR TRIG_EXT[rip]
	cmp	QWORD PTR 16[r14], rax
	jne	.L5
	mov	edx, DWORD PTR S626_P_MC2[rip]
	mov	esi, DWORD PTR S626_MC2_ADC_RPS[rip]
	mov	rdi, r12
	call	s626_mc_enable@PLT
	mov	rax, QWORD PTR 32[r14]
	cmp	rax, QWORD PTR TRIG_EXT[rip]
	je	.L15
.L8:
	cmp	QWORD PTR TRIG_TIMER[rip], rax
	jne	.L5
	mov	rax, QWORD PTR 40[r14]
	mov	edx, DWORD PTR S626_CLKENAB_ALWAYS[rip]
	mov	esi, 5
	mov	rdi, r12
	mov	QWORD PTR 0[r13], rax
	call	s626_set_enable@PLT
	jmp	.L5
.L15:
	mov	rax, QWORD PTR 40[r14]
	mov	esi, DWORD PTR 48[r14]
	mov	rdi, r12
	mov	QWORD PTR 0[r13], rax
	call	s626_dio_set_irq@PLT
	mov	rax, QWORD PTR 32[r14]
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	s626_handle_dio_interrupt, .-s626_handle_dio_interrupt
	.comm	TRIG_TIMER,8,8
	.comm	TRIG_EXT,8,8
	.comm	S626_P_MC2,4,4
	.comm	S626_P_MC1,4,4
	.comm	S626_MC2_ADC_RPS,4,4
	.comm	S626_MC1_ERPS1,4,4
	.comm	S626_CLKENAB_ALWAYS,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_s626.c_s626_handle_dio_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s626_handle_dio_interrupt, %function
s626_handle_dio_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {r3, r8}
	mov	r5, r2
	mov	r4, r1
	mov	r2, r1
	mov	r1, r5
	ldr	r7, [r3]
	mov	r6, r0
	bl	s626_dio_reset_irq
	ldr	r3, [r8, #4]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r7]
	lsl	r9, r5, #4
	sub	r2, r2, r5, lsl #4
	asr	r2, r4, r2
	cmp	r2, #1
	beq	.L12
.L4:
	ldr	r3, [r7, #12]
	sub	r3, r3, r9
	asr	r3, r4, r3
	cmp	r3, #1
	beq	.L13
.L5:
	ldr	r1, [r7, #24]
	sub	r9, r1, r9
	asr	r4, r4, r9
	cmp	r4, #1
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L15
	ldr	r2, [r7, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r2, [r2]
	bl	s626_mc_enable
	ldr	r3, [r8]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r8]
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r0, r6
	ldr	r1, [r7, #24]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	s626_dio_set_irq
.L12:
	ldr	r5, .L15
	ldr	r2, [r7, #4]
	ldr	r3, [r5]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L15+12
	ldr	r2, .L15+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r6
	bl	s626_mc_enable
	ldr	r3, [r5]
	ldr	r2, [r7, #8]
	cmp	r2, r3
	bne	.L5
	mov	r0, r6
	ldr	r1, [r7, #12]
	bl	s626_dio_set_irq
	b	.L4
.L13:
	ldr	r5, .L15
	ldr	r2, [r7, #8]
	ldr	r3, [r5]
	cmp	r2, r3
	bne	.L5
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r6
	bl	s626_mc_enable
	ldr	r2, [r5]
	ldr	r3, [r7, #16]
	cmp	r3, r2
	beq	.L14
.L8:
	ldr	r2, .L15+20
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L5
	ldr	r2, [r7, #20]
	ldr	r3, .L15+24
	str	r2, [r8]
	mov	r1, #5
	mov	r0, r6
	ldr	r2, [r3]
	bl	s626_set_enable
	b	.L5
.L14:
	ldr	r3, [r7, #20]
	ldr	r1, [r7, #24]
	mov	r0, r6
	str	r3, [r8]
	bl	s626_dio_set_irq
	ldr	r3, [r7, #16]
	b	.L8
.L16:
	.align	2
.L15:
	.word	TRIG_EXT
	.word	S626_MC2_ADC_RPS
	.word	S626_P_MC2
	.word	S626_MC1_ERPS1
	.word	S626_P_MC1
	.word	TRIG_TIMER
	.word	S626_CLKENAB_ALWAYS
	.size	s626_handle_dio_interrupt, .-s626_handle_dio_interrupt
	.comm	TRIG_TIMER,4,4
	.comm	TRIG_EXT,4,4
	.comm	S626_P_MC2,4,4
	.comm	S626_P_MC1,4,4
	.comm	S626_MC2_ADC_RPS,4,4
	.comm	S626_MC1_ERPS1,4,4
	.comm	S626_CLKENAB_ALWAYS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
