	.file	"extr_gpio_mouse.c_gpio_mouse_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"right"
.LC2:
	.string	"middle "
.LC3:
	.string	"left "
.LC4:
	.string	"scan-interval-ms"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"invalid scan time, set to 50 ms\n"
	.section	.rodata.str1.1
.LC6:
	.string	"up"
.LC7:
	.string	"down"
.LC8:
	.string	"left"
.LC9:
	.string	"button-left"
.LC10:
	.string	"button-middle"
.LC11:
	.string	"button-right"
	.section	.rodata.str1.8
	.align 8
.LC12:
	.string	"not enough memory for input device\n"
	.align 8
.LC13:
	.string	"could not register input device\n"
	.align 8
.LC14:
	.string	"%d ms scan time, buttons: %s%s%s\n"
	.text
	.p2align 4
	.type	gpio_mouse_probe, @function
gpio_mouse_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 64
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L25
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	mov	rbx, rax
	call	device_property_read_u32@PLT
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L5
.L4:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	dev_warn@PLT
	mov	DWORD PTR [rbx], 50
.L5:
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC6[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L28
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC7[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L29
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC8[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 40[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L30
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	devm_gpiod_get@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L31
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC9[rip]
	call	devm_gpiod_get_optional@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L32
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC10[rip]
	call	devm_gpiod_get_optional@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L33
	mov	edx, DWORD PTR GPIOD_IN[rip]
	mov	rdi, rbp
	lea	rsi, .LC11[rip]
	call	devm_gpiod_get_optional@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L34
	mov	rdi, rbp
	call	devm_input_allocate_polled_device@PLT
	mov	r12, rax
	test	rax, rax
	je	.L35
	mov	rsi, rax
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	mov	eax, DWORD PTR gpio_mouse_scan[rip]
	mov	r13, QWORD PTR 8[r12]
	mov	QWORD PTR 24[r12], rbx
	mov	edx, DWORD PTR REL_X[rip]
	mov	esi, DWORD PTR EV_REL[rip]
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR [rbx]
	mov	rdi, r13
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 12[r13], eax
	mov	eax, DWORD PTR BUS_HOST[rip]
	mov	QWORD PTR 0[r13], rbp
	mov	DWORD PTR 8[r13], eax
	call	input_set_capability@PLT
	mov	edx, DWORD PTR REL_Y[rip]
	mov	esi, DWORD PTR EV_REL[rip]
	mov	rdi, r13
	call	input_set_capability@PLT
	cmp	QWORD PTR 24[rbx], 0
	je	.L14
	mov	edx, DWORD PTR BTN_LEFT[rip]
	mov	esi, DWORD PTR EV_KEY[rip]
	mov	rdi, r13
	call	input_set_capability@PLT
.L14:
	cmp	QWORD PTR 16[rbx], 0
	je	.L15
	mov	edx, DWORD PTR BTN_MIDDLE[rip]
	mov	esi, DWORD PTR EV_KEY[rip]
	mov	rdi, r13
	call	input_set_capability@PLT
.L15:
	cmp	QWORD PTR 8[rbx], 0
	je	.L16
	mov	edx, DWORD PTR BTN_RIGHT[rip]
	mov	esi, DWORD PTR EV_KEY[rip]
	mov	rdi, r13
	call	input_set_capability@PLT
.L16:
	mov	rdi, r12
	call	input_register_polled_device@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L36
	lea	rcx, .LC0[rip]
	cmp	QWORD PTR 8[rbx], 0
	mov	edx, DWORD PTR [rbx]
	lea	r9, .LC1[rip]
	cmovne	r9, rcx
	cmp	QWORD PTR 16[rbx], 0
	lea	r8, .LC2[rip]
	mov	rdi, rbp
	cmovne	r8, rcx
	lea	rax, .LC3[rip]
	cmp	QWORD PTR 24[rbx], 0
	cmove	rcx, rax
	lea	rsi, .LC14[rip]
	call	dev_dbg@PLT
	jmp	.L1
.L35:
	lea	rsi, .LC12[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L28:
	.cfi_restore_state
	mov	rdi, QWORD PTR 56[rbx]
.L26:
	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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	rdi, QWORD PTR 40[rbx]
	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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rdi, QWORD PTR 48[rbx]
	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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbx]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, QWORD PTR 8[rbx]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, QWORD PTR 24[rbx]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, QWORD PTR 16[rbx]
	jmp	.L26
.L36:
	lea	rsi, .LC13[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	gpio_mouse_probe, .-gpio_mouse_probe
	.comm	gpio_mouse_scan,4,4
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	GPIOD_IN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	ENOMEM,4,4
	.comm	BUS_HOST,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,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_mouse.c_gpio_mouse_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"left \000"
	.align	2
.LC2:
	.ascii	"middle \000"
	.align	2
.LC3:
	.ascii	"right\000"
	.align	2
.LC4:
	.ascii	"scan-interval-ms\000"
	.align	2
.LC5:
	.ascii	"invalid scan time, set to 50 ms\012\000"
	.align	2
.LC6:
	.ascii	"up\000"
	.align	2
.LC7:
	.ascii	"down\000"
	.align	2
.LC8:
	.ascii	"left\000"
	.align	2
.LC9:
	.ascii	"button-left\000"
	.align	2
.LC10:
	.ascii	"button-middle\000"
	.align	2
.LC11:
	.ascii	"button-right\000"
	.align	2
.LC12:
	.ascii	"not enough memory for input device\012\000"
	.align	2
.LC13:
	.ascii	"could not register input device\012\000"
	.align	2
.LC14:
	.ascii	"%d ms scan time, buttons: %s%s%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpio_mouse_probe, %function
gpio_mouse_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L40
	mov	r1, #32
	ldr	r2, [r3]
	sub	sp, sp, #8
	mov	r5, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L34
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L40+4
	bl	device_property_read_u32
	cmp	r0, #0
	bne	.L4
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L5
.L4:
	mov	r0, r5
	ldr	r1, .L40+8
	bl	dev_warn
	mov	r3, #50
	str	r3, [r4]
.L5:
	ldr	r6, .L40+12
	ldr	r1, .L40+16
	ldr	r2, [r6]
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #28]
	bl	IS_ERR
	cmp	r0, #0
	ldrne	r0, [r4, #28]
	bne	.L35
	ldr	r2, [r6]
	ldr	r1, .L40+20
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #24]
	bl	IS_ERR
	cmp	r0, #0
	ldrne	r0, [r4, #24]
	bne	.L35
	ldr	r2, [r6]
	ldr	r1, .L40+24
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #20]
	bl	IS_ERR
	cmp	r0, #0
	ldrne	r0, [r4, #20]
	bne	.L35
	ldr	r2, [r6]
	ldr	r1, .L40+28
	mov	r0, r5
	bl	devm_gpiod_get
	str	r0, [r4, #16]
	bl	IS_ERR
	cmp	r0, #0
	ldrne	r0, [r4, #16]
	bne	.L35
	ldr	r2, [r6]
	ldr	r1, .L40+32
	mov	r0, r5
	bl	devm_gpiod_get_optional
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	ldrne	r0, [r4, #12]
	bne	.L35
	ldr	r2, [r6]
	ldr	r1, .L40+36
	mov	r0, r5
	bl	devm_gpiod_get_optional
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	ldrne	r0, [r4, #8]
	bne	.L35
	ldr	r2, [r6]
	ldr	r1, .L40+40
	mov	r0, r5
	bl	devm_gpiod_get_optional
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L37
	mov	r0, r5
	bl	devm_input_allocate_polled_device
	subs	r6, r0, #0
	beq	.L38
	mov	r1, r6
	mov	r0, r5
	bl	platform_set_drvdata
	ldr	r2, .L40+44
	ldr	r3, .L40+48
	ldr	r0, [r4]
	ldr	ip, [r2]
	ldr	r1, [r3]
	ldr	r7, [r6, #4]
	ldr	r3, [r5, #4]
	ldr	r8, .L40+52
	ldr	r2, .L40+56
	str	ip, [r6, #8]
	str	r0, [r6]
	ldr	r2, [r2]
	str	r4, [r6, #12]
	mov	r0, r7
	stmib	r7, {r1, r3}
	str	r5, [r7]
	ldr	r1, [r8]
	bl	input_set_capability
	ldr	r3, .L40+60
	mov	r0, r7
	ldr	r2, [r3]
	ldr	r1, [r8]
	bl	input_set_capability
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L14
	ldr	r2, .L40+64
	ldr	r3, .L40+68
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	input_set_capability
.L14:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L15
	ldr	r2, .L40+72
	ldr	r3, .L40+68
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	input_set_capability
.L15:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L16
	ldr	r2, .L40+76
	ldr	r3, .L40+68
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	input_set_capability
.L16:
	mov	r0, r6
	bl	input_register_polled_device
	subs	r6, r0, #0
	bne	.L39
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r1, .L40+80
	cmp	r2, #0
	ldr	lr, .L40+84
	movne	lr, r1
	cmp	r3, #0
	ldr	ip, .L40+28
	movne	ip, r1
	ldr	r2, [r4]
	ldr	r4, [r4, #12]
	ldr	r3, .L40+88
	cmp	r4, #0
	movne	r3, r1
	mov	r0, r5
	ldr	r1, .L40+92
	str	lr, [sp]
	str	ip, [sp, #4]
	bl	dev_dbg
	b	.L1
.L37:
	ldr	r0, [r4, #4]
.L35:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L38:
	mov	r0, r5
	ldr	r1, .L40+96
	bl	dev_err
.L34:
	ldr	r3, .L40+100
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L39:
	mov	r0, r5
	ldr	r1, .L40+104
	bl	dev_err
	b	.L1
.L41:
	.align	2
.L40:
	.word	GFP_KERNEL
	.word	.LC4
	.word	.LC5
	.word	GPIOD_IN
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC3
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	gpio_mouse_scan
	.word	BUS_HOST
	.word	EV_REL
	.word	REL_X
	.word	REL_Y
	.word	BTN_LEFT
	.word	EV_KEY
	.word	BTN_MIDDLE
	.word	BTN_RIGHT
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC14
	.word	.LC12
	.word	ENOMEM
	.word	.LC13
	.size	gpio_mouse_probe, .-gpio_mouse_probe
	.comm	gpio_mouse_scan,4,4
	.comm	REL_Y,4,4
	.comm	REL_X,4,4
	.comm	GPIOD_IN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_REL,4,4
	.comm	EV_KEY,4,4
	.comm	ENOMEM,4,4
	.comm	BUS_HOST,4,4
	.comm	BTN_RIGHT,4,4
	.comm	BTN_MIDDLE,4,4
	.comm	BTN_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
