	.file	"extr_act8945a_charger.c_act8945a_charger_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Parent did not provide regmap\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed to find IRQ number\n"
.LC2:
	.string	"act8945a_interrupt"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"failed to request nIRQ pin IRQ\n"
	.section	.rodata.str1.1
.LC4:
	.string	"act8945a-charger"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"failed to register power supply\n"
	.text
	.p2align 4
	.type	act8945a_charger_probe, @function
act8945a_charger_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pxor	xmm0, xmm0
	mov	esi, 48
	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
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 4[rbp]
	xor	esi, esi
	mov	rbx, rax
	call	dev_get_regmap@PLT
	mov	DWORD PTR 40[rbx], eax
	test	eax, eax
	je	.L13
	mov	rsi, rbx
	mov	rdi, rbp
	call	act8945a_charger_config@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 0[rbp]
	xor	esi, esi
	call	of_irq_get@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L14
	mov	ecx, DWORD PTR IRQF_TRIGGER_FALLING[rip]
	mov	r9, rbx
	mov	esi, eax
	mov	rdi, rbp
	mov	edx, DWORD PTR act8945a_status_changed[rip]
	lea	r8, .LC2[rip]
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	lea	rax, .LC4[rip]
	mov	edi, DWORD PTR act8945a_charger_props[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR act8945a_charger_get_property[rip]
	mov	DWORD PTR 32[rbx], edi
	mov	DWORD PTR 36[rbx], eax
	call	ARRAY_SIZE@PLT
	lea	rsi, 24[rbx]
	mov	rdi, rbx
	mov	DWORD PTR 28[rbx], eax
	call	act8945a_set_supply_type@PLT
	test	eax, eax
	je	.L7
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	test	r12d, r12d
	jne	.L1
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	rdx, rsp
	lea	rsi, 16[rbx]
	mov	QWORD PTR [rsp], rbx
	mov	DWORD PTR 8[rsp], eax
	call	devm_power_supply_register@PLT
	mov	DWORD PTR 8[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	rsi, rbx
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	mov	esi, DWORD PTR act8945a_work[rip]
	lea	rdi, 4[rbx]
	call	INIT_WORK@PLT
	mov	rdi, rbx
	call	act8945a_enable_interrupt@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	mov	DWORD PTR [rbx], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	act8945a_charger_probe, .-act8945a_charger_probe
	.comm	act8945a_work,4,4
	.comm	act8945a_status_changed,4,4
	.comm	act8945a_charger_props,4,4
	.comm	act8945a_charger_get_property,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_act8945a_charger.c_act8945a_charger_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Parent did not provide regmap\012\000"
	.align	2
.LC1:
	.ascii	"failed to find IRQ number\012\000"
	.align	2
.LC2:
	.ascii	"act8945a_interrupt\000"
	.align	2
.LC3:
	.ascii	"failed to request nIRQ pin IRQ\012\000"
	.align	2
.LC4:
	.ascii	"act8945a-charger\000"
	.align	2
.LC5:
	.ascii	"failed to register power supply\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	act8945a_charger_probe, %function
act8945a_charger_probe:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	ldr	r3, .L19
	sub	sp, sp, #24
	ldr	r2, [r3]
	ldr	r3, .L19+4
	mov	r1, #36
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r6, r0
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	bl	devm_kzalloc
	subs	r5, r0, #0
	beq	.L13
	mov	r1, r4
	ldr	r0, [r6, #4]
	bl	dev_get_regmap
	cmp	r0, #0
	str	r0, [r5, #32]
	beq	.L14
	mov	r1, r5
	mov	r0, r6
	bl	act8945a_charger_config
	subs	r4, r0, #0
	bne	.L1
	mov	r1, r4
	ldr	r0, [r6]
	bl	of_irq_get
	subs	r4, r0, #0
	ble	.L15
	ldr	r0, .L19+8
	ldr	r3, .L19+12
	ldr	r2, .L19+16
	str	r5, [sp, #4]
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r0, [sp]
	mov	r0, r6
	bl	devm_request_irq
	subs	r4, r0, #0
	bne	.L16
	ldr	r3, .L19+20
	ldr	r2, .L19+24
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, .L19+28
	str	r2, [r5, #28]
	str	r3, [r5, #12]
	str	r0, [r5, #24]
	bl	ARRAY_SIZE
	add	r1, r5, #16
	str	r0, [r5, #20]
	mov	r0, r5
	bl	act8945a_set_supply_type
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L19+32
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L14:
	mov	r0, r6
	ldr	r1, .L19+36
	bl	dev_err
	ldr	r3, .L19+32
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L19+40
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L15:
	mov	r0, r6
	ldr	r1, .L19+44
	bl	dev_err
	cmp	r4, #0
	ldreq	r3, .L19+48
	ldreq	r4, [r3]
	rsbeq	r4, r4, #0
	b	.L1
.L16:
	mov	r0, r6
	ldr	r1, .L19+52
	bl	dev_err
	b	.L1
.L7:
	ldr	r3, [r6]
	add	r2, sp, #12
	add	r1, r5, #12
	mov	r0, r6
	str	r3, [sp, #16]
	str	r5, [sp, #12]
	bl	devm_power_supply_register
	str	r0, [r5, #8]
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r6
	bne	.L18
	mov	r1, r5
	bl	platform_set_drvdata
	ldr	r3, .L19+56
	add	r0, r5, #4
	ldr	r1, [r3]
	bl	INIT_WORK
	mov	r0, r5
	bl	act8945a_enable_interrupt
	subs	r4, r0, #0
	moveq	r3, #1
	ldrne	r3, .L19+60
	streq	r3, [r5]
	ldrne	r4, [r3]
	rsbne	r4, r4, #0
	b	.L1
.L18:
	ldr	r1, .L19+64
	bl	dev_err
	ldr	r0, [r5, #8]
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	.LC6
	.word	.LC2
	.word	IRQF_TRIGGER_FALLING
	.word	act8945a_status_changed
	.word	act8945a_charger_props
	.word	act8945a_charger_get_property
	.word	.LC4
	.word	EINVAL
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	ENXIO
	.word	.LC3
	.word	act8945a_work
	.word	EIO
	.word	.LC5
	.size	act8945a_charger_probe, .-act8945a_charger_probe
	.comm	act8945a_work,4,4
	.comm	act8945a_status_changed,4,4
	.comm	act8945a_charger_props,4,4
	.comm	act8945a_charger_get_property,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
