	.file	"extr_gpio-vf610.c_vf610_gpio_irq_set_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vf610_gpio_irq_set_type, @function
vf610_gpio_irq_set_type:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	irq_data_get_irq_chip_data@PLT
	mov	edi, eax
	call	gpiochip_get_data@PLT
	lea	edx, -128[r12]
	cmp	edx, 4
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rdx, DWORD PTR [rcx+rdx*4]
	add	rdx, rcx
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ecx, DWORD PTR PORT_INT_FALLING_EDGE[rip]
.L9:
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax+rdx*4], ecx
	and	r12d, DWORD PTR IRQ_TYPE_LEVEL_MASK[rip]
	je	.L11
	mov	esi, DWORD PTR handle_level_irq[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	call	irq_set_handler_locked@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	ecx, DWORD PTR PORT_INT_EITHER_EDGE[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR PORT_INT_LOGIC_ONE[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR PORT_INT_RISING_EDGE[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	ecx, DWORD PTR PORT_INT_LOGIC_ZERO[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR handle_edge_irq[rip]
	mov	rdi, rbp
	call	irq_set_handler_locked@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vf610_gpio_irq_set_type, .-vf610_gpio_irq_set_type
	.comm	handle_level_irq,4,4
	.comm	handle_edge_irq,4,4
	.comm	PORT_INT_RISING_EDGE,4,4
	.comm	PORT_INT_LOGIC_ZERO,4,4
	.comm	PORT_INT_LOGIC_ONE,4,4
	.comm	PORT_INT_FALLING_EDGE,4,4
	.comm	PORT_INT_EITHER_EDGE,4,4
	.comm	IRQ_TYPE_LEVEL_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_gpio-vf610.c_vf610_gpio_irq_set_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vf610_gpio_irq_set_type, %function
vf610_gpio_irq_set_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	irq_data_get_irq_chip_data
	bl	gpiochip_get_data
	sub	r3, r4, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, .L14
	ldr	ip, [r3]
.L9:
	ldr	r1, [r5]
	ldr	r2, [r0]
	ldr	r3, .L14+4
	str	ip, [r2, r1, lsl #2]
	ldr	r1, [r3]
	ands	r4, r4, r1
	beq	.L11
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	irq_set_handler_locked
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L14+12
	ldr	ip, [r3]
	b	.L9
.L6:
	ldr	r3, .L14+16
	ldr	ip, [r3]
	b	.L9
.L5:
	ldr	r3, .L14+20
	ldr	ip, [r3]
	b	.L9
.L7:
	ldr	r3, .L14+24
	ldr	ip, [r3]
	b	.L9
.L11:
	ldr	r3, .L14+28
	mov	r0, r5
	ldr	r1, [r3]
	bl	irq_set_handler_locked
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L14+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L15:
	.align	2
.L14:
	.word	PORT_INT_EITHER_EDGE
	.word	IRQ_TYPE_LEVEL_MASK
	.word	handle_level_irq
	.word	PORT_INT_LOGIC_ZERO
	.word	PORT_INT_RISING_EDGE
	.word	PORT_INT_FALLING_EDGE
	.word	PORT_INT_LOGIC_ONE
	.word	handle_edge_irq
	.word	EINVAL
	.size	vf610_gpio_irq_set_type, .-vf610_gpio_irq_set_type
	.comm	handle_level_irq,4,4
	.comm	handle_edge_irq,4,4
	.comm	PORT_INT_RISING_EDGE,4,4
	.comm	PORT_INT_LOGIC_ZERO,4,4
	.comm	PORT_INT_LOGIC_ONE,4,4
	.comm	PORT_INT_FALLING_EDGE,4,4
	.comm	PORT_INT_EITHER_EDGE,4,4
	.comm	IRQ_TYPE_LEVEL_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
