	.file	"extr_palmas-regulator.c_palmas_regulators_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ti,tps659038-pmic"
	.text
	.p2align 4
	.type	palmas_regulators_probe, @function
palmas_regulators_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	rbp, 8[rbx]
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	dev_get_drvdata@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	dev_get_platdata@PLT
	mov	edi, DWORD PTR of_palmas_match_tbl[rip]
	pxor	xmm0, xmm0
	mov	QWORD PTR 48[rsp], 0
	mov	r15, QWORD PTR 8[rbx]
	movaps	XMMWORD PTR 32[rsp], xmm0
	call	of_match_ptr@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	of_match_device@PLT
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 4
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	devm_kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L20
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 32
	mov	rdi, rbp
	call	devm_kzalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L20
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	of_device_is_compatible@PLT
	test	rax, rax
	je	.L6
	mov	ecx, DWORD PTR TPS659038_REGEN2_CTRL[rip]
	mov	rdx, QWORD PTR PALMAS_REG_REGEN2[rip]
	mov	rax, QWORD PTR palmas_generic_regs_info[rip]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	DWORD PTR palmas_ddata[rip], 0
.L6:
	mov	QWORD PTR 24[r14], rbp
	mov	rsi, r14
	mov	rdi, rbx
	mov	QWORD PTR 16[r14], r12
	mov	QWORD PTR 16[r12], r14
	call	platform_set_drvdata@PLT
	mov	rax, QWORD PTR 16[r14]
	mov	rdx, r13
	mov	rsi, r15
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 8[rax], rcx
	call	palmas_dt_to_pdata@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR PALMAS_SMPS_CTRL[rip]
	lea	rdx, 28[rsp]
	mov	rdi, r12
	call	palmas_smps_read@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 28[rsp]
	test	DWORD PTR PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN[rip], eax
	je	.L7
	movabs	rdx, 4294967297
	mov	QWORD PTR [r14], rdx
.L7:
	test	DWORD PTR PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN[rip], eax
	je	.L8
	mov	DWORD PTR 8[r14], 1
.L8:
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 40[rsp], rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	rdi, r14
	mov	rdx, QWORD PTR REGULATOR_SLAVE[rip]
	mov	r12, QWORD PTR [rbx]
	mov	QWORD PTR 40[rsp], r14
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	rcx, r12
	mov	rdx, r13
	mov	DWORD PTR 56[rsp], eax
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 144
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 152
	push	r14
	.cfi_def_cfa_offset 160
	mov	rbx, QWORD PTR 40[rsp]
	mov	rsi, rbx
	call	[QWORD PTR [rbx]]
	add	rsp, 32
	.cfi_def_cfa_offset 128
	test	eax, eax
	jne	.L1
	sub	rsp, 8
	.cfi_def_cfa_offset 136
	mov	rcx, r12
	mov	rdx, r13
	mov	rsi, rbx
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 144
	mov	rdi, r14
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 152
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 160
	call	[QWORD PTR 8[rbx]]
	add	rsp, 32
	.cfi_def_cfa_offset 128
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
.L22:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODATA[rip]
	neg	eax
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	palmas_regulators_probe, .-palmas_regulators_probe
	.comm	palmas_generic_regs_info,8,8
	.comm	palmas_ddata,4,4
	.comm	of_palmas_match_tbl,4,4
	.comm	TPS659038_REGEN2_CTRL,4,4
	.comm	REGULATOR_SLAVE,8,8
	.comm	PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN,4,4
	.comm	PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN,4,4
	.comm	PALMAS_SMPS_CTRL,4,4
	.comm	PALMAS_REG_REGEN2,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODATA,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_palmas-regulator.c_palmas_regulators_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ti,tps659038-pmic\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	palmas_regulators_probe, %function
palmas_regulators_probe:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L24
	sub	sp, sp, #52
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	dev_get_drvdata
	mov	r6, #0
	add	r5, r4, #4
	mov	r8, r0
	mov	r0, r5
	bl	dev_get_platdata
	ldr	r3, .L24+4
	ldr	fp, [r4, #4]
	ldr	r0, [r3]
	str	r6, [sp, #32]
	str	r6, [sp, #36]
	str	r6, [sp, #40]
	bl	of_match_ptr
	mov	r1, r5
	bl	of_match_device
	subs	r3, r0, #0
	add	r9, sp, #32
	beq	.L22
	ldr	r7, .L24+8
	mov	r1, #4
	mov	r0, r5
	ldr	r2, [r7]
	ldr	r10, [r3]
	bl	devm_kzalloc
	subs	r3, r0, #0
	str	r3, [sp, #20]
	beq	.L20
	ldr	r2, [r7]
	mov	r1, #20
	mov	r0, r5
	bl	devm_kzalloc
	subs	r7, r0, #0
	beq	.L20
	mov	r0, fp
	ldr	r1, .L24+12
	bl	of_device_is_compatible
	cmp	r0, #0
	beq	.L6
	ldr	r1, .L24+16
	ldr	r2, .L24+20
	ldr	r3, .L24+24
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L24+28
	str	r0, [r2, r1, lsl #2]
	str	r6, [r3]
.L6:
	mov	r1, r7
	str	r5, [r7, #16]
	str	r8, [r7, #12]
	mov	r0, r4
	str	r7, [r8, #8]
	bl	platform_set_drvdata
	ldr	r3, [r7, #12]
	mov	r1, fp
	str	r10, [r3, #4]
	mov	r0, r5
	mov	r3, r10
	ldr	r2, [sp, #20]
	bl	palmas_dt_to_pdata
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L24+32
	mov	r0, r8
	ldr	r1, [r3]
	add	r2, sp, #28
	bl	palmas_smps_read
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L24+36
	ldr	r3, [sp, #28]
	ldr	r2, [r2]
	str	r5, [sp, #36]
	tst	r3, r2
	movne	r2, #1
	strne	r2, [r7]
	strne	r2, [r7, #4]
	ldr	r2, .L24+40
	str	r7, [sp, #32]
	ldr	r2, [r2]
	ldr	r6, [sp, #20]
	tst	r3, r2
	movne	r3, #1
	ldr	r2, .L24+44
	strne	r3, [r7, #8]
	ldr	r2, [r2]
	ldr	r3, [r8]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [sp, #40]
	ldm	r9, {r0, r1, r2}
	stm	sp, {r0, r1, r2}
	ldr	r4, [r4]
	mov	r2, r6
	mov	r3, r4
	mov	r1, r10
	mov	r0, r7
	ldr	r5, [r10]
	blx	r5
	cmp	r0, #0
	bne	.L1
	ldm	r9, {r0, r1, r2}
	stm	sp, {r0, r1, r2}
	mov	r3, r4
	mov	r2, r6
	mov	r0, r7
	mov	r1, r10
	ldr	r4, [r10, #4]
	blx	r4
	b	.L1
.L20:
	ldr	r3, .L24+48
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r3, .L24+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	of_palmas_match_tbl
	.word	GFP_KERNEL
	.word	.LC0
	.word	TPS659038_REGEN2_CTRL
	.word	PALMAS_REG_REGEN2
	.word	palmas_generic_regs_info
	.word	palmas_ddata
	.word	PALMAS_SMPS_CTRL
	.word	PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN
	.word	PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN
	.word	REGULATOR_SLAVE
	.word	ENOMEM
	.word	ENODATA
	.size	palmas_regulators_probe, .-palmas_regulators_probe
	.comm	palmas_generic_regs_info,4,4
	.comm	palmas_ddata,4,4
	.comm	of_palmas_match_tbl,4,4
	.comm	TPS659038_REGEN2_CTRL,4,4
	.comm	REGULATOR_SLAVE,4,4
	.comm	PALMAS_SMPS_CTRL_SMPS45_SMPS457_EN,4,4
	.comm	PALMAS_SMPS_CTRL_SMPS12_SMPS123_EN,4,4
	.comm	PALMAS_SMPS_CTRL,4,4
	.comm	PALMAS_REG_REGEN2,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
