	.file	"extr_ab8500_bmdata.c_ab8500_bm_of_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"battery"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"battery node or reference missing\n"
	.section	.rodata.str1.1
.LC2:
	.string	"stericsson,battery-type"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"missing property battery-name/type\n"
	.section	.rodata.str1.1
.LC4:
	.string	"LION"
.LC5:
	.string	"thermistor-on-batctrl"
	.text
	.p2align 4
	.globl	ab8500_bm_of_probe
	.type	ab8500_bm_of_probe, @function
ab8500_bm_of_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	rdi, rsi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	xor	edx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	of_parse_phandle@PLT
	test	rax, rax
	je	.L16
	xor	edx, edx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	of_get_property@PLT
	mov	r12, rax
	test	rax, rax
	je	.L17
	mov	edx, 4
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	rax, rax
	jne	.L5
	movabs	rax, 4294967297
	movabs	rcx, 17824114281000
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR BATTERY_UNKNOWN[rip]
	sal	rax, 5
	add	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR [rax], rcx
	movabs	rcx, 2233382994015
	mov	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 16[rax], 4200
.L5:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	of_property_read_bool@PLT
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR bat_type_ext_thermistor[rip]
	mov	edx, DWORD PTR ABx500_ADC_THERM_BATTEMP[rip]
	mov	DWORD PTR 8[rbx], 4
	mov	esi, 4
	mov	rcx, QWORD PTR temp_to_batres_tbl_ext_thermistor[rip]
	mov	QWORD PTR 16[rbx], rax
	mov	DWORD PTR 24[rbx], edx
.L9:
	add	rax, 24
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L11:
	add	edx, 1
	mov	QWORD PTR [rax], rcx
	add	rax, 32
	cmp	edx, esi
	jl	.L11
.L12:
	mov	rdi, rbp
	call	of_node_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L18:
	.cfi_restore_state
	lea	rsi, .LC4[rip]
	mov	edx, 4
	mov	rdi, r12
	call	strncmp@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rcx, QWORD PTR temp_to_batres_tbl_9100[rip]
	test	rax, rax
	cmovne	rcx, QWORD PTR temp_to_batres_tbl_thermistor[rip]
	test	esi, esi
	jle	.L12
	mov	rax, QWORD PTR 16[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	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
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	call	dev_warn@PLT
	mov	rdi, rbp
	call	of_node_put@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ab8500_bm_of_probe, .-ab8500_bm_of_probe
	.comm	temp_to_batres_tbl_thermistor,8,8
	.comm	temp_to_batres_tbl_ext_thermistor,8,8
	.comm	temp_to_batres_tbl_9100,8,8
	.comm	bat_type_ext_thermistor,8,8
	.comm	EINVAL,4,4
	.comm	BATTERY_UNKNOWN,8,8
	.comm	ABx500_ADC_THERM_BATTEMP,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_ab8500_bmdata.c_ab8500_bm_of_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"battery\000"
	.align	2
.LC1:
	.ascii	"battery node or reference missing\012\000"
	.align	2
.LC2:
	.ascii	"stericsson,battery-type\000"
	.align	2
.LC3:
	.ascii	"missing property battery-name/type\012\000"
	.align	2
.LC4:
	.ascii	"LION\000"
	.align	2
.LC5:
	.ascii	"thermistor-on-batctrl\000"
	.text
	.align	2
	.global	ab8500_bm_of_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	ab8500_bm_of_probe, %function
ab8500_bm_of_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r4, r2
	mov	r0, r1
	mov	r2, #0
	ldr	r1, .L19
	bl	of_parse_phandle
	subs	r5, r0, #0
	beq	.L16
	mov	r2, #0
	ldr	r1, .L19+4
	bl	of_get_property
	subs	r7, r0, #0
	beq	.L17
	mov	r2, #4
	ldr	r1, .L19+8
	bl	strncmp
	cmp	r0, #0
	bne	.L5
	mov	r1, #1
	mov	ip, #95
	mov	r0, #520
	ldr	r2, .L19+12
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	ldr	lr, .L19+16
	add	r2, r2, r2, lsl r1
	str	r1, [r4]
	str	r1, [r4, #4]
	str	lr, [r3, r2, lsl #3]
	ldr	r1, .L19+20
	add	r3, r3, r2, lsl #3
	ldr	r2, .L19+24
	str	r1, [r3, #4]
	str	ip, [r3, #8]
	str	r0, [r3, #12]
	str	r2, [r3, #16]
.L5:
	mov	r0, r5
	ldr	r1, .L19+28
	bl	of_property_read_bool
	cmp	r0, #0
	bne	.L18
	mov	r1, #4
	ldr	r2, .L19+32
	ldr	r3, .L19+36
	ldr	r0, [r2]
	ldr	r2, .L19+40
	ldr	r3, [r3]
	ldr	ip, [r2]
	str	r3, [r4, #12]
	str	r0, [r4, #16]
	str	r1, [r4, #8]
.L9:
	mov	r2, #0
.L11:
	add	r2, r2, #1
	cmp	r2, r1
	str	ip, [r3, #20]
	add	r3, r3, #24
	blt	.L11
.L12:
	mov	r0, r5
	bl	of_node_put
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r1, .L19+8
	mov	r0, r7
	mov	r2, #4
	bl	strncmp
	ldr	r1, [r4, #8]
	cmp	r0, #0
	ldreq	r3, .L19+44
	ldrne	r3, .L19+48
	cmp	r1, #0
	ldr	ip, [r3]
	ldrgt	r3, [r4, #12]
	bgt	.L9
	b	.L12
.L16:
	mov	r0, r6
	ldr	r1, .L19+52
	bl	dev_err
	ldr	r3, .L19+56
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r1, .L19+60
	mov	r0, r6
	bl	dev_warn
	mov	r0, r5
	bl	of_node_put
	ldr	r3, .L19+56
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	.LC2
	.word	.LC4
	.word	BATTERY_UNKNOWN
	.word	2600
	.word	4150
	.word	4200
	.word	.LC5
	.word	ABx500_ADC_THERM_BATTEMP
	.word	bat_type_ext_thermistor
	.word	temp_to_batres_tbl_ext_thermistor
	.word	temp_to_batres_tbl_9100
	.word	temp_to_batres_tbl_thermistor
	.word	.LC1
	.word	EINVAL
	.word	.LC3
	.size	ab8500_bm_of_probe, .-ab8500_bm_of_probe
	.comm	temp_to_batres_tbl_thermistor,4,4
	.comm	temp_to_batres_tbl_ext_thermistor,4,4
	.comm	temp_to_batres_tbl_9100,4,4
	.comm	bat_type_ext_thermistor,4,4
	.comm	EINVAL,4,4
	.comm	BATTERY_UNKNOWN,4,4
	.comm	ABx500_ADC_THERM_BATTEMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
