	.file	"extr_gpio_keys.c_gpio_keys_attr_store_helper.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gpio_keys_attr_store_helper, @function
gpio_keys_attr_store_helper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	edi, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	get_n_events_by_type@PLT
	mov	edi, DWORD PTR 24[r12]
	mov	esi, r13d
	mov	ebx, eax
	call	get_bm_events_by_type@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, ebx
	mov	rbp, rax
	call	bitmap_zalloc@PLT
	test	rax, rax
	je	.L25
	mov	rdi, r14
	mov	edx, ebx
	mov	rsi, rax
	mov	r15, rax
	call	bitmap_parselist@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L26
.L4:
	mov	rdi, r15
	call	bitmap_free@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L26:
	.cfi_restore_state
	mov	edx, ebx
	mov	rsi, rbp
	mov	rdi, r15
	call	bitmap_subset@PLT
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR 16[r12]
	xor	ebp, ebp
	mov	esi, DWORD PTR [rax]
	test	esi, esi
	jg	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbp, 1
	cmp	DWORD PTR [rax], ebp
	jle	.L7
.L6:
	mov	rbx, rbp
	sal	rbx, 4
	add	rbx, QWORD PTR 8[r12]
	mov	rdx, QWORD PTR 8[rbx]
	cmp	DWORD PTR [rdx], r13d
	jne	.L8
	mov	rax, QWORD PTR [rbx]
	mov	rsi, r15
	mov	edi, DWORD PTR [rax]
	call	test_bit@PLT
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 4[rax]
	test	ecx, ecx
	je	.L21
.L23:
	mov	rax, QWORD PTR 16[r12]
	add	rbp, 1
	cmp	DWORD PTR [rax], ebp
	jg	.L6
.L7:
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 16[r12]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L9
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	add	rbx, 1
	cmp	DWORD PTR [rax], ebx
	jle	.L9
.L12:
	mov	rbp, rbx
	sal	rbp, 4
	add	rbp, QWORD PTR 8[r12]
	mov	rdx, QWORD PTR 8[rbp]
	cmp	DWORD PTR [rdx], r13d
	jne	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, r15
	mov	edi, DWORD PTR [rax]
	call	test_bit@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L11
	call	gpio_keys_disable_button@PLT
	mov	rax, QWORD PTR 16[r12]
	add	rbx, 1
	cmp	DWORD PTR [rax], ebx
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	call	mutex_unlock@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	call	gpio_keys_enable_button@PLT
	mov	rax, QWORD PTR 16[r12]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r14d, DWORD PTR EINVAL[rip]
	neg	r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	gpio_keys_attr_store_helper, .-gpio_keys_attr_store_helper
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_keys.c_gpio_keys_attr_store_helper.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_keys_attr_store_helper, %function
gpio_keys_attr_store_helper:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r0, r2
	mov	r6, r2
	mov	r8, r1
	bl	get_n_events_by_type
	mov	r1, r6
	mov	r4, r0
	ldr	r0, [r5, #12]
	bl	get_bm_events_by_type
	ldr	r3, .L26
	mov	r10, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	bitmap_zalloc
	subs	r7, r0, #0
	beq	.L24
	mov	r0, r8
	mov	r2, r4
	mov	r1, r7
	bl	bitmap_parselist
	subs	r9, r0, #0
	beq	.L25
.L4:
	mov	r0, r7
	bl	bitmap_free
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	mov	r2, r4
	mov	r1, r10
	mov	r0, r7
	bl	bitmap_subset
	cmp	r0, #0
	beq	.L20
	ldr	r2, [r5, #8]
	ldr	r3, [r2]
	cmp	r3, #0
	movgt	r4, r9
	bgt	.L6
	b	.L7
.L8:
	ldr	r3, [r2]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L7
.L6:
	ldr	r3, [r5, #4]
	add	r8, r3, r4, lsl #3
	ldr	r1, [r8, #4]
	ldr	r1, [r1]
	cmp	r1, r6
	bne	.L8
	ldr	r3, [r3, r4, lsl #3]
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L22
	ldr	r3, [r8, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L20
.L22:
	ldr	r2, [r5, #8]
	add	r4, r4, #1
	ldr	r3, [r2]
	cmp	r3, r4
	bgt	.L6
.L7:
	mov	r0, r5
	bl	mutex_lock
	ldr	r2, [r5, #8]
	ldr	r3, [r2]
	cmp	r3, #0
	ble	.L9
	mov	r4, #0
	b	.L12
.L10:
	ldr	r3, [r2]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L9
.L12:
	ldr	r3, [r5, #4]
	add	r8, r3, r4, lsl #3
	ldr	r1, [r8, #4]
	ldr	r1, [r1]
	cmp	r1, r6
	bne	.L10
	ldr	r3, [r3, r4, lsl #3]
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	mov	r0, r8
	beq	.L11
	bl	gpio_keys_disable_button
	ldr	r2, [r5, #8]
	add	r4, r4, #1
	ldr	r3, [r2]
	cmp	r3, r4
	bgt	.L12
.L9:
	mov	r0, r5
	bl	mutex_unlock
	b	.L4
.L24:
	ldr	r3, .L26+4
	ldr	r9, [r3]
	rsb	r9, r9, #0
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	bl	gpio_keys_enable_button
	ldr	r2, [r5, #8]
	b	.L10
.L20:
	ldr	r3, .L26+8
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L4
.L27:
	.align	2
.L26:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	EINVAL
	.size	gpio_keys_attr_store_helper, .-gpio_keys_attr_store_helper
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
