	.file	"extr_88pm80x_onkey.c_pm80x_onkey_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no regmap!\n"
.LC1:
	.string	"Failed to allocate input dev\n"
.LC2:
	.string	"88pm80x_on"
.LC3:
	.string	"88pm80x_on/input0"
.LC4:
	.string	"onkey"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"Failed to request IRQ: #%d: %d\n"
	.align 8
.LC6:
	.string	"Can't register input device: %d\n"
	.text
	.p2align 4
	.type	pm80x_onkey_probe, @function
pm80x_onkey_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	edi, DWORD PTR [rdi]
	call	dev_get_drvdata@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 32
	mov	r13, rax
	call	kzalloc@PLT
	test	rax, rax
	je	.L14
	mov	QWORD PTR 16[rax], r13
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	platform_get_irq@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	js	.L12
	mov	rax, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 24[rbp], eax
	test	eax, eax
	je	.L15
	xor	eax, eax
	call	input_allocate_device@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L16
	mov	edx, DWORD PTR BUS_I2C[rip]
	mov	edi, DWORD PTR EV_KEY[rip]
	mov	QWORD PTR 32[rax], r12
	lea	rcx, .LC2[rip]
	mov	QWORD PTR [rax], rcx
	lea	rcx, .LC3[rip]
	mov	r13, QWORD PTR 24[rax]
	mov	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 40[rax], edx
	call	BIT_MASK@PLT
	mov	DWORD PTR 0[r13], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR KEY_POWER[rip]
	mov	esi, DWORD PTR 16[rax]
	call	__set_bit@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	r9, rbp
	mov	ecx, DWORD PTR IRQF_ONESHOT[rip]
	mov	edx, DWORD PTR pm80x_onkey_handler[rip]
	lea	r8, .LC4[rip]
	call	pm80x_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L17
	mov	rdi, QWORD PTR 8[rbp]
	call	input_register_device@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L18
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	mov	edx, DWORD PTR PM800_LONG_ONKEY_EN[rip]
	mov	edi, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR PM800_RTC_MISC4[rip]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	ecx, DWORD PTR PM800_LONKEY_PRESS_TIME[rip]
	mov	edx, DWORD PTR PM800_LONKEY_PRESS_TIME_MASK[rip]
	mov	esi, DWORD PTR PM800_RTC_MISC3[rip]
	call	regmap_update_bits@PLT
	mov	rdi, r12
	mov	esi, 1
	call	device_init_wakeup@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.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
.L15:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_err@PLT
.L12:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L5:
	mov	rdi, rbp
	call	kfree@PLT
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.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
.L14:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdx, rbp
	call	pm80x_free_irq@PLT
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	call	input_free_device@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, QWORD PTR 0[rbp]
	mov	ecx, eax
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	pm80x_onkey_probe, .-pm80x_onkey_probe
	.comm	pm80x_onkey_handler,4,4
	.comm	PM800_RTC_MISC4,4,4
	.comm	PM800_RTC_MISC3,4,4
	.comm	PM800_LONKEY_PRESS_TIME_MASK,4,4
	.comm	PM800_LONKEY_PRESS_TIME,4,4
	.comm	PM800_LONG_ONKEY_EN,4,4
	.comm	KEY_POWER,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_KEY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	BUS_I2C,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_88pm80x_onkey.c_pm80x_onkey_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no regmap!\012\000"
	.align	2
.LC1:
	.ascii	"Failed to allocate input dev\012\000"
	.align	2
.LC2:
	.ascii	"88pm80x_on\000"
	.align	2
.LC3:
	.ascii	"88pm80x_on/input0\000"
	.align	2
.LC4:
	.ascii	"onkey\000"
	.align	2
.LC5:
	.ascii	"Failed to request IRQ: #%d: %d\012\000"
	.align	2
.LC6:
	.ascii	"Can't register input device: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm80x_onkey_probe, %function
pm80x_onkey_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	sub	sp, sp, #8
	ldr	r0, [r0]
	bl	dev_get_drvdata
	ldr	r2, .L19
	mov	r6, r0
	ldr	r1, [r2]
	mov	r0, #16
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L14
	mov	r1, #0
	mov	r0, r5
	str	r6, [r4, #8]
	bl	platform_get_irq
	cmp	r0, #0
	str	r0, [r4]
	blt	.L12
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	str	r3, [r4, #12]
	beq	.L15
	bl	input_allocate_device
	cmp	r0, #0
	mov	r3, r0
	str	r0, [r4, #4]
	beq	.L16
	ldr	r2, .L19+4
	ldr	r1, .L19+8
	ldr	ip, [r2]
	ldr	r0, .L19+12
	ldr	r2, .L19+16
	stm	r3, {r0, r1}
	str	ip, [r3, #20]
	ldr	r0, [r2]
	str	r5, [r3, #16]
	ldr	r6, [r3, #12]
	bl	BIT_MASK
	ldr	r2, [r4, #4]
	ldr	r3, .L19+20
	str	r0, [r6]
	ldr	r1, [r2, #8]
	ldr	r0, [r3]
	bl	__set_bit
	ldr	ip, .L19+24
	ldr	r3, .L19+28
	ldr	r2, .L19+32
	ldr	r1, [r4]
	ldr	r0, [r4, #8]
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r4, [sp, #4]
	str	ip, [sp]
	bl	pm80x_request_irq
	subs	r6, r0, #0
	blt	.L17
	ldr	r0, [r4, #4]
	bl	input_register_device
	subs	r6, r0, #0
	bne	.L18
	mov	r1, r4
	mov	r0, r5
	bl	platform_set_drvdata
	ldr	r3, .L19+36
	ldr	r2, .L19+40
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r0, [r4, #12]
	mov	r2, r3
	bl	regmap_update_bits
	ldr	r3, .L19+44
	ldr	r2, .L19+48
	ldr	r1, .L19+52
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #12]
	ldr	r1, [r1]
	bl	regmap_update_bits
	mov	r0, r5
	mov	r1, #1
	bl	device_init_wakeup
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r0, r5
	ldr	r1, .L19+56
	bl	dev_err
.L12:
	ldr	r3, .L19+60
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L5:
	mov	r0, r4
	bl	kfree
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r3, .L19+64
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	mov	r2, r6
	ldr	r1, .L19+68
	mov	r0, r5
	bl	dev_err
	mov	r2, r4
	ldr	r1, [r4]
	ldr	r0, [r4, #8]
	bl	pm80x_free_irq
.L9:
	ldr	r0, [r4, #4]
	bl	input_free_device
	b	.L5
.L17:
	mov	r0, r5
	mov	r3, r6
	ldr	r2, [r4]
	ldr	r1, .L19+72
	bl	dev_err
	b	.L9
.L16:
	mov	r0, r5
	ldr	r1, .L19+76
	bl	dev_err
	ldr	r3, .L19+64
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L5
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	BUS_I2C
	.word	.LC3
	.word	.LC2
	.word	EV_KEY
	.word	KEY_POWER
	.word	.LC4
	.word	IRQF_ONESHOT
	.word	pm80x_onkey_handler
	.word	PM800_LONG_ONKEY_EN
	.word	PM800_RTC_MISC4
	.word	PM800_LONKEY_PRESS_TIME
	.word	PM800_LONKEY_PRESS_TIME_MASK
	.word	PM800_RTC_MISC3
	.word	.LC0
	.word	EINVAL
	.word	ENOMEM
	.word	.LC6
	.word	.LC5
	.word	.LC1
	.size	pm80x_onkey_probe, .-pm80x_onkey_probe
	.comm	pm80x_onkey_handler,4,4
	.comm	PM800_RTC_MISC4,4,4
	.comm	PM800_RTC_MISC3,4,4
	.comm	PM800_LONKEY_PRESS_TIME_MASK,4,4
	.comm	PM800_LONKEY_PRESS_TIME,4,4
	.comm	PM800_LONG_ONKEY_EN,4,4
	.comm	KEY_POWER,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EV_KEY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	BUS_I2C,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
