	.file	"extr_pm2301_charger.c_pm2xxx_charger_ac_get_property.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pm2xxx_charger_ac_get_property, @function
pm2xxx_charger_ac_get_property:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	psy_to_ux500_charger@PLT
	mov	edi, eax
	call	to_pm2xxx_charger_ac_device_info@PLT
	mov	rbp, rax
	cmp	ebx, 130
	je	.L2
	ja	.L3
	cmp	ebx, 128
	je	.L4
	cmp	ebx, 129
	jne	.L6
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR [r12], eax
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L3:
	.cfi_restore_state
	cmp	ebx, 131
	jne	.L6
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L14
	mov	ecx, DWORD PTR 12[rbp]
	test	ecx, ecx
	je	.L9
	mov	edx, DWORD PTR POWER_SUPPLY_HEALTH_DEAD[rip]
	mov	DWORD PTR [r12], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rax
	call	pm2xxx_charger_get_ac_cv@PLT
	mov	DWORD PTR 0[rbp], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR [r12], eax
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR POWER_SUPPLY_HEALTH_UNSPEC_FAILURE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR 20[rbp]
	test	edx, edx
	jne	.L15
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR POWER_SUPPLY_HEALTH_OVERVOLTAGE[rip]
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR POWER_SUPPLY_HEALTH_OVERHEAT[rip]
	mov	DWORD PTR [r12], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR POWER_SUPPLY_HEALTH_GOOD[rip]
	mov	DWORD PTR [r12], edx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pm2xxx_charger_ac_get_property, .-pm2xxx_charger_ac_get_property
	.comm	POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,4,4
	.comm	POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,4
	.comm	POWER_SUPPLY_HEALTH_OVERHEAT,4,4
	.comm	POWER_SUPPLY_HEALTH_GOOD,4,4
	.comm	POWER_SUPPLY_HEALTH_DEAD,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_pm2301_charger.c_pm2xxx_charger_ac_get_property.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm2xxx_charger_ac_get_property, %function
pm2xxx_charger_ac_get_property:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r2
	bl	psy_to_ux500_charger
	bl	to_pm2xxx_charger_ac_device_info
	sub	r1, r4, #128
	mov	r4, r0
	cmp	r1, #3
	ldrls	pc, [pc, r1, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r0, [r0, #24]
	cmp	r0, #0
	bne	.L15
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, [r0, #8]
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, [r0, #4]
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L7:
	bl	pm2xxx_charger_get_ac_cv
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L16+4
	mov	r0, #0
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L16+8
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, [r4, #16]
	cmp	r0, #0
	ldreq	r3, .L16+12
	ldrne	r2, .L16+16
	movne	r0, r3
	ldreq	r3, [r3]
	ldrne	r3, [r2]
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L16+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	POWER_SUPPLY_HEALTH_DEAD
	.word	POWER_SUPPLY_HEALTH_UNSPEC_FAILURE
	.word	POWER_SUPPLY_HEALTH_OVERHEAT
	.word	POWER_SUPPLY_HEALTH_GOOD
	.word	POWER_SUPPLY_HEALTH_OVERVOLTAGE
	.word	EINVAL
	.size	pm2xxx_charger_ac_get_property, .-pm2xxx_charger_ac_get_property
	.comm	POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,4,4
	.comm	POWER_SUPPLY_HEALTH_OVERVOLTAGE,4,4
	.comm	POWER_SUPPLY_HEALTH_OVERHEAT,4,4
	.comm	POWER_SUPPLY_HEALTH_GOOD,4,4
	.comm	POWER_SUPPLY_HEALTH_DEAD,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
