	.file	"extr_max1586.c_max1586_pmic_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error: No device match found\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Maxim 1586 regulator driver loaded\n"
	.section	.rodata.str1.1
.LC2:
	.string	"invalid regulator id %d\n"
.LC3:
	.string	"failed to register %s\n"
	.text
	.p2align 4
	.type	max1586_pmic_probe, @function
max1586_pmic_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	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
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	QWORD PTR 48[rsp], 0
	call	dev_get_platdata@PLT
	cmp	QWORD PTR [r14], 0
	mov	rbp, rax
	je	.L2
	test	rax, rax
	je	.L33
.L2:
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 32
	mov	rdi, r14
	call	devm_kzalloc@PLT
	mov	r15, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	r15, r15
	je	.L1
	mov	ecx, DWORD PTR 0[rbp]
	mov	QWORD PTR 24[r15], r14
	test	ecx, ecx
	je	.L31
	movsx	rdx, DWORD PTR MAX1586_V3_MIN_UV[rip]
	mov	DWORD PTR 8[r15], 24
	xor	ebx, ebx
	mov	QWORD PTR 16[r15], 0
	mov	rax, rdx
	imul	rdx, rdx, 274877907
	sar	eax, 31
	sar	rdx, 38
	sub	edx, eax
	imul	edx, ecx
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 274877907
	sar	rax, 38
	sub	eax, edx
	mov	DWORD PTR [r15], eax
	movsx	rax, DWORD PTR MAX1586_V3_MAX_UV[rip]
	mov	rdx, rax
	imul	rax, rax, 274877907
	sar	edx, 31
	sar	rax, 38
	sub	eax, edx
	imul	eax, ecx
	movsx	rdx, eax
	sar	eax, 31
	imul	rdx, rdx, 274877907
	sar	rdx, 38
	sub	edx, eax
	lea	rax, 32[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 4[r15], edx
	test	eax, eax
	jg	.L7
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 8[rax]
	test	rsi, rsi
	je	.L8
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR MAX1586_V3[rip]
	cmp	eax, edx
	jg	.L16
	cmp	ecx, edx
	jl	.L16
	movsx	rcx, edx
	mov	r8, QWORD PTR max1586_reg[rip]
	lea	r13, [rcx+rcx*2]
	sal	r13, 2
	add	r8, r13
	cmp	eax, edx
	jne	.L11
	mov	eax, DWORD PTR [r15]
	mov	edi, DWORD PTR 4[r15]
	sub	edi, eax
	mov	DWORD PTR [r8], eax
	mov	eax, edi
	cdq
	idiv	DWORD PTR MAX1586_V3_MAX_VSEL[rip]
	mov	DWORD PTR 4[r8], eax
.L11:
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR 40[rsp], rsi
	mov	rdi, r14
	mov	rsi, r8
	mov	QWORD PTR 48[rsp], r14
	mov	QWORD PTR 32[rsp], r15
	call	devm_regulator_register@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L34
.L8:
	add	rbx, 1
	cmp	DWORD PTR 4[rbp], ebx
	jle	.L12
.L7:
	mov	ecx, DWORD PTR MAX1586_V6[rip]
	cmp	ecx, ebx
	jge	.L13
.L12:
	mov	rsi, r15
	mov	rdi, r14
	call	i2c_set_clientdata@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	dev_info@PLT
	xor	eax, eax
.L1:
	mov	rdi, QWORD PTR 56[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L35
	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
.L16:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
.L31:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR max1586_of_match[rip]
	call	of_match_ptr@PLT
	mov	rsi, r14
	mov	edi, eax
	call	of_match_device@PLT
	test	rax, rax
	je	.L36
	lea	rbp, 16[rsp]
	mov	rdi, r14
	mov	rsi, rbp
	call	of_get_max1586_platform_data@PLT
	test	eax, eax
	jns	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rax, QWORD PTR max1586_reg[rip]
	mov	rdi, r14
	lea	rsi, .LC3[rip]
	mov	edx, DWORD PTR 8[rax+r13]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	jmp	.L1
.L36:
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_err@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L1
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	max1586_pmic_probe, .-max1586_pmic_probe
	.comm	max1586_reg,8,8
	.comm	max1586_of_match,4,4
	.comm	MAX1586_V6,4,4
	.comm	MAX1586_V3_MIN_UV,4,4
	.comm	MAX1586_V3_MAX_VSEL,4,4
	.comm	MAX1586_V3_MAX_UV,4,4
	.comm	MAX1586_V3,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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_max1586.c_max1586_pmic_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error: No device match found\012\000"
	.align	2
.LC1:
	.ascii	"Maxim 1586 regulator driver loaded\012\000"
	.align	2
.LC2:
	.ascii	"invalid regulator id %d\012\000"
	.global	__aeabi_idiv
	.align	2
.LC3:
	.ascii	"failed to register %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	max1586_pmic_probe, %function
max1586_pmic_probe:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L32
	sub	sp, sp, #44
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	mov	r6, r0
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #32]
	bl	dev_get_platdata
	clz	r3, r0
	ldr	r2, [r6]
	lsr	r3, r3, #5
	cmp	r2, #0
	moveq	r3, #0
	cmp	r3, #0
	moveq	r5, r0
	bne	.L28
.L2:
	ldr	r3, .L32+4
	mov	r1, #20
	mov	r0, r6
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	fp, r0, #0
	beq	.L29
	ldr	r7, [r5]
	str	r6, [fp, #16]
	cmp	r7, #0
	beq	.L26
	mov	r4, #0
	mov	lr, #24
	ldr	r2, .L32+8
	ldr	r1, .L32+12
	ldr	ip, .L32+16
	ldr	r0, [r2]
	ldr	r1, [r1]
	smull	r3, r2, ip, r0
	smull	r3, r8, ip, r1
	asr	r0, r0, #31
	rsb	r0, r0, r2, asr #6
	asr	r2, r1, #31
	rsb	r2, r2, r8, asr #6
	mul	r1, r7, r0
	mul	r2, r7, r2
	smull	r3, r0, ip, r1
	smull	r3, ip, r2, ip
	asr	r2, r2, #31
	rsb	r2, r2, ip, asr #6
	ldr	ip, [r5, #4]
	asr	r1, r1, #31
	rsb	r1, r1, r0, asr #6
	cmp	ip, r4
	stmib	fp, {r2, lr}
	str	r1, [fp]
	str	r4, [fp, #12]
	ble	.L11
	ldr	r8, .L32+20
	ldr	r9, .L32+24
	ldr	r10, .L32+28
	b	.L7
.L9:
	add	r1, r2, r2, lsl #1
	ldr	ip, [r10]
	cmp	r0, r2
	lsl	r3, r1, #2
	str	r3, [sp]
	add	r2, ip, r1, lsl #2
	bne	.L10
	ldm	fp, {r0, lr}
	ldr	r3, .L32+32
	str	r0, [ip, r1, lsl #2]
	ldr	r1, [r3]
	sub	r0, lr, r0
	str	r2, [sp, #4]
	bl	__aeabi_idiv
	ldr	r2, [sp, #4]
	str	r0, [r2, #4]
.L10:
	mov	r1, r2
	mov	r0, r6
	add	r2, sp, #24
	str	r7, [sp, #28]
	str	r6, [sp, #32]
	str	fp, [sp, #24]
	bl	devm_regulator_register
	mov	r7, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L23
	ldr	ip, [r5, #4]
.L8:
	add	r4, r4, #1
	cmp	ip, r4
	ble	.L11
.L7:
	ldr	r1, [r8]
	cmp	r1, r4
	blt	.L11
	ldr	r2, [r5, #8]
	add	r0, r2, r4, lsl #3
	ldr	r7, [r0, #4]
	cmp	r7, #0
	beq	.L8
	ldr	r2, [r2, r4, lsl #3]
	ldr	r0, [r9]
	cmp	r1, r2
	movge	r1, #0
	movlt	r1, #1
	cmp	r0, r2
	orrgt	r1, r1, #1
	cmp	r1, #0
	beq	.L9
	mov	r0, r6
	ldr	r1, .L32+36
	bl	dev_err
.L26:
	ldr	r3, .L32+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r1, fp
	mov	r0, r6
	bl	i2c_set_clientdata
	mov	r0, r6
	ldr	r1, .L32+44
	bl	dev_info
	mov	r0, #0
	b	.L1
.L29:
	ldr	r3, .L32+48
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L28:
	ldr	r3, .L32+52
	ldr	r0, [r3]
	bl	of_match_ptr
	mov	r1, r6
	bl	of_match_device
	cmp	r0, #0
	beq	.L31
	mov	r0, r6
	add	r1, sp, #12
	bl	of_get_max1586_platform_data
	cmp	r0, #0
	addge	r5, sp, #12
	bge	.L2
	b	.L1
.L23:
	ldr	r2, [sp]
	ldr	r3, [r10]
	mov	r0, r6
	add	fp, r3, r2
	ldr	r2, [fp, #8]
	ldr	r1, .L32+56
	bl	dev_err
	mov	r0, r7
	bl	PTR_ERR
	b	.L1
.L31:
	mov	r0, r6
	ldr	r1, .L32+60
	bl	dev_err
	ldr	r3, .L32+64
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC4
	.word	GFP_KERNEL
	.word	MAX1586_V3_MIN_UV
	.word	MAX1586_V3_MAX_UV
	.word	274877907
	.word	MAX1586_V6
	.word	MAX1586_V3
	.word	max1586_reg
	.word	MAX1586_V3_MAX_VSEL
	.word	.LC2
	.word	EINVAL
	.word	.LC1
	.word	ENOMEM
	.word	max1586_of_match
	.word	.LC3
	.word	.LC0
	.word	ENODEV
	.size	max1586_pmic_probe, .-max1586_pmic_probe
	.comm	max1586_reg,4,4
	.comm	max1586_of_match,4,4
	.comm	MAX1586_V6,4,4
	.comm	MAX1586_V3_MIN_UV,4,4
	.comm	MAX1586_V3_MAX_VSEL,4,4
	.comm	MAX1586_V3_MAX_UV,4,4
	.comm	MAX1586_V3,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
