	.file	"extr_gpio-dln2.c_dln2_irq_bus_unlock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to set event\n"
	.text
	.p2align 4
	.type	dln2_irq_bus_unlock, @function
dln2_irq_bus_unlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	irq_data_get_irq_chip_data@PLT
	mov	rdi, rax
	call	gpiochip_get_data@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	irqd_to_hwirq@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, eax
	mov	ebp, eax
	call	test_bit@PLT
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, ebp
	mov	r12d, eax
	call	test_bit@PLT
	cmp	r12d, eax
	je	.L3
	mov	esi, DWORD PTR 16[rbx]
	test	eax, eax
	jne	.L12
	mov	edi, ebp
	mov	r12d, DWORD PTR DLN2_GPIO_EVENT_NONE[rip]
	call	clear_bit@PLT
.L5:
	xor	ecx, ecx
	mov	edx, r12d
	mov	esi, ebp
	mov	rdi, rbx
	call	dln2_gpio_set_event_cfg@PLT
	test	eax, eax
	je	.L3
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
.L3:
	lea	rdi, 8[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rbx]
	movsx	rax, ebp
	mov	edi, ebp
	mov	r12d, DWORD PTR [rdx+rax*4]
	and	r12d, DWORD PTR DLN2_GPIO_EVENT_MASK[rip]
	call	set_bit@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	dln2_irq_bus_unlock, .-dln2_irq_bus_unlock
	.comm	DLN2_GPIO_EVENT_NONE,4,4
	.comm	DLN2_GPIO_EVENT_MASK,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-dln2.c_dln2_irq_bus_unlock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to set event\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dln2_irq_bus_unlock, %function
dln2_irq_bus_unlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	irq_data_get_irq_chip_data
	bl	gpiochip_get_data
	mov	r4, r0
	mov	r0, r5
	bl	irqd_to_hwirq
	ldr	r1, [r4, #12]
	mov	r5, r0
	bl	test_bit
	ldr	r1, [r4, #16]
	mov	r6, r0
	mov	r0, r5
	bl	test_bit
	cmp	r6, r0
	beq	.L3
	cmp	r0, #0
	ldr	r1, [r4, #12]
	bne	.L12
	ldr	r3, .L13
	mov	r0, r5
	ldr	r6, [r3]
	bl	clear_bit
.L5:
	mov	r2, r6
	mov	r1, r5
	mov	r3, #0
	mov	r0, r4
	bl	dln2_gpio_set_event_cfg
	cmp	r0, #0
	beq	.L3
	ldr	r1, .L13+4
	ldr	r0, [r4, #8]
	bl	dev_err
.L3:
	add	r0, r4, #4
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L12:
	ldr	r2, [r4]
	ldr	r3, .L13+8
	ldr	r6, [r2, r5, lsl #2]
	ldr	r2, [r3]
	mov	r0, r5
	and	r6, r6, r2
	bl	set_bit
	b	.L5
.L14:
	.align	2
.L13:
	.word	DLN2_GPIO_EVENT_NONE
	.word	.LC0
	.word	DLN2_GPIO_EVENT_MASK
	.size	dln2_irq_bus_unlock, .-dln2_irq_bus_unlock
	.comm	DLN2_GPIO_EVENT_NONE,4,4
	.comm	DLN2_GPIO_EVENT_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
