	.file	"extr_chipone_icn8318.c_icn8318_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error no irq specified\n"
.LC1:
	.string	"wake"
.LC2:
	.string	"Error getting wake gpio: %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"Error touchscreen-size-x and/or -y missing\n"
	.section	.rodata.str1.1
.LC4:
	.string	"Error requesting irq: %d\n"
	.text
	.p2align 4
	.type	icn8318_probe, @function
icn8318_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, .LC0[rip]
	lea	r15, 8[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ecx, DWORD PTR 4[rdi]
	test	ecx, ecx
	je	.L14
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rbp, rdi
	mov	esi, 24
	mov	rdi, r15
	call	devm_kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L15
	mov	edx, DWORD PTR GPIOD_OUT_LOW[rip]
	mov	rdi, r15
	lea	rsi, .LC1[rip]
	call	devm_gpiod_get@PLT
	mov	DWORD PTR 20[r13], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	rdi, r15
	call	devm_input_allocate_device@PLT
	mov	r14, rax
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR ABS_MT_POSITION_X[rip]
	mov	rdi, r14
	mov	esi, DWORD PTR EV_ABS[rip]
	mov	DWORD PTR 24[r14], eax
	mov	eax, DWORD PTR BUS_I2C[rip]
	mov	DWORD PTR 20[r14], eax
	mov	eax, DWORD PTR icn8318_start[rip]
	mov	QWORD PTR [r14], r15
	mov	DWORD PTR 16[r14], eax
	mov	rax, QWORD PTR icn8318_stop@GOTPCREL[rip]
	mov	QWORD PTR 8[r14], rax
	call	input_set_capability@PLT
	mov	edx, DWORD PTR ABS_MT_POSITION_Y[rip]
	mov	esi, DWORD PTR EV_ABS[rip]
	mov	rdi, r14
	call	input_set_capability@PLT
	mov	esi, 1
	mov	rdi, r14
	lea	rdx, 16[r13]
	call	touchscreen_parse_properties@PLT
	mov	esi, DWORD PTR ABS_MT_POSITION_X[rip]
	mov	rdi, r14
	call	input_abs_get_max@PLT
	test	eax, eax
	je	.L8
	mov	esi, DWORD PTR ABS_MT_POSITION_Y[rip]
	mov	rdi, r14
	call	input_abs_get_max@PLT
	test	eax, eax
	je	.L8
	mov	esi, DWORD PTR ICN8318_MAX_TOUCHES[rip]
	mov	edx, DWORD PTR INPUT_MT_DIRECT[rip]
	mov	rdi, r14
	or	edx, DWORD PTR INPUT_MT_DROP_UNUSED[rip]
	call	input_mt_init_slots@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	QWORD PTR 8[r13], rbp
	mov	rsi, r13
	mov	rdi, r14
	mov	QWORD PTR 0[r13], r14
	call	input_set_drvdata@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR 4[rbp]
	mov	r9d, DWORD PTR 0[rbp]
	push	r13
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR IRQF_ONESHOT[rip]
	xor	edx, edx
	mov	rdi, r15
	mov	ecx, DWORD PTR icn8318_irq[rip]
	call	devm_request_threaded_irq@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	r12d, r12d
	jne	.L18
	mov	rdi, QWORD PTR 0[r13]
	call	icn8318_stop@PLT
	mov	rdi, r14
	call	input_register_device@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, r13
	mov	rdi, rbp
	call	i2c_set_clientdata@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L8:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
.L14:
	mov	rdi, r15
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	neg	r12d
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 20[r13]
	call	PTR_ERR@PLT
	mov	r12d, eax
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	je	.L1
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, r12d
	lea	rsi, .LC4[rip]
	mov	rdi, r15
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	icn8318_probe, .-icn8318_probe
	.comm	icn8318_start,4,4
	.comm	icn8318_irq,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	INPUT_MT_DROP_UNUSED,4,4
	.comm	INPUT_MT_DIRECT,4,4
	.comm	ICN8318_MAX_TOUCHES,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_ABS,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	BUS_I2C,4,4
	.comm	ABS_MT_POSITION_Y,4,4
	.comm	ABS_MT_POSITION_X,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_chipone_icn8318.c_icn8318_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error no irq specified\012\000"
	.align	2
.LC1:
	.ascii	"wake\000"
	.align	2
.LC2:
	.ascii	"Error getting wake gpio: %d\012\000"
	.align	2
.LC3:
	.ascii	"Error touchscreen-size-x and/or -y missing\012\000"
	.align	2
.LC4:
	.ascii	"Error requesting irq: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	icn8318_probe, %function
icn8318_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r0, #4]
	sub	sp, sp, #16
	cmp	r3, #0
	add	r6, r0, #8
	beq	.L16
	ldr	r3, .L19
	mov	r4, r0
	mov	r1, #16
	mov	r0, r6
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r7, r0, #0
	beq	.L14
	ldr	r3, .L19+4
	ldr	r1, .L19+8
	ldr	r2, [r3]
	mov	r0, r6
	bl	devm_gpiod_get
	str	r0, [r7, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L17
	mov	r0, r6
	bl	devm_input_allocate_device
	subs	r8, r0, #0
	beq	.L14
	ldr	r2, .L19+12
	ldr	r3, .L19+16
	ldr	ip, [r2]
	ldr	r1, [r4]
	ldr	r2, [r3]
	ldr	r5, .L19+20
	ldr	r3, .L19+24
	ldr	r9, .L19+28
	ldr	r10, .L19+32
	str	ip, [r8, #12]
	str	r3, [r8, #4]
	str	r1, [r8, #16]
	str	r2, [r8, #8]
	ldr	r1, [r9]
	ldr	r2, [r5]
	str	r6, [r8]
	bl	input_set_capability
	ldr	r1, [r9]
	ldr	r2, [r10]
	mov	r0, r8
	bl	input_set_capability
	mov	r1, #1
	add	r2, r7, #8
	mov	r0, r8
	bl	touchscreen_parse_properties
	mov	r0, r8
	ldr	r1, [r5]
	bl	input_abs_get_max
	cmp	r0, #0
	beq	.L8
	mov	r0, r8
	ldr	r1, [r10]
	bl	input_abs_get_max
	cmp	r0, #0
	beq	.L8
	ldr	r2, .L19+36
	ldr	r3, .L19+40
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L19+44
	orr	r2, r1, r2
	mov	r0, r8
	ldr	r1, [r3]
	bl	input_mt_init_slots
	subs	r5, r0, #0
	bne	.L1
	mov	r1, r7
	mov	r0, r8
	str	r4, [r7, #4]
	str	r8, [r7]
	bl	input_set_drvdata
	ldr	r2, .L19+48
	ldr	r1, [r4]
	ldr	r0, [r2]
	ldr	r3, .L19+52
	str	r0, [sp]
	str	r7, [sp, #8]
	ldr	r3, [r3]
	str	r1, [sp, #4]
	mov	r2, r5
	mov	r0, r6
	ldr	r1, [r4, #4]
	bl	devm_request_threaded_irq
	subs	r5, r0, #0
	bne	.L18
	ldr	r0, [r7]
	bl	icn8318_stop
	mov	r0, r8
	bl	input_register_device
	subs	r5, r0, #0
	bne	.L1
	mov	r1, r7
	mov	r0, r4
	bl	i2c_set_clientdata
	b	.L1
.L14:
	ldr	r3, .L19+56
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r0, r6
	ldr	r1, .L19+60
	bl	dev_err
	ldr	r3, .L19+64
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r0, r6
	ldr	r1, .L19+68
	bl	dev_err
	ldr	r3, .L19+64
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r0, [r7, #12]
	bl	PTR_ERR
	ldr	r3, .L19+72
	mov	r5, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L1
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L19+76
	bl	dev_err
	b	.L1
.L18:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L19+80
	bl	dev_err
	b	.L1
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	GPIOD_OUT_LOW
	.word	.LC1
	.word	BUS_I2C
	.word	icn8318_start
	.word	ABS_MT_POSITION_X
	.word	icn8318_stop
	.word	EV_ABS
	.word	ABS_MT_POSITION_Y
	.word	INPUT_MT_DIRECT
	.word	INPUT_MT_DROP_UNUSED
	.word	ICN8318_MAX_TOUCHES
	.word	IRQF_ONESHOT
	.word	icn8318_irq
	.word	ENOMEM
	.word	.LC0
	.word	EINVAL
	.word	.LC3
	.word	EPROBE_DEFER
	.word	.LC2
	.word	.LC4
	.size	icn8318_probe, .-icn8318_probe
	.comm	icn8318_start,4,4
	.comm	icn8318_irq,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	INPUT_MT_DROP_UNUSED,4,4
	.comm	INPUT_MT_DIRECT,4,4
	.comm	ICN8318_MAX_TOUCHES,4,4
	.comm	GPIOD_OUT_LOW,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_ABS,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	BUS_I2C,4,4
	.comm	ABS_MT_POSITION_Y,4,4
	.comm	ABS_MT_POSITION_X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
