	.file	"extr_adp5061.c_adp5061_set_input_current_limit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adp5061_set_input_current_limit, @function
adp5061_set_input_current_limit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR adp5061_in_current_lim[rip]
	call	ARRAY_SIZE@PLT
	movsx	rdx, ebx
	mov	edi, DWORD PTR adp5061_in_current_lim[rip]
	sar	ebx, 31
	imul	rdx, rdx, 274877907
	mov	esi, eax
	sar	rdx, 38
	sub	edx, ebx
	call	adp5061_get_array_index@PLT
	test	eax, eax
	js	.L1
	mov	edi, eax
	call	ADP5061_VINX_SET_ILIM_MODE@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR ADP5061_VINX_SET_ILIM_MSK[rip]
	mov	esi, DWORD PTR ADP5061_VINX_SET[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	ecx, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	regmap_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	adp5061_set_input_current_limit, .-adp5061_set_input_current_limit
	.comm	adp5061_in_current_lim,4,4
	.comm	ADP5061_VINX_SET_ILIM_MSK,4,4
	.comm	ADP5061_VINX_SET,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_adp5061.c_adp5061_set_input_current_limit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adp5061_set_input_current_limit, %function
adp5061_set_input_current_limit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r5, [r3]
	mov	r6, r0
	mov	r0, r5
	bl	ARRAY_SIZE
	ldr	r2, .L5+4
	mov	r1, r0
	smull	r3, r2, r4, r2
	asr	r4, r4, #31
	mov	r0, r5
	rsb	r2, r4, r2, asr #6
	bl	adp5061_get_array_index
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r2, .L5+8
	ldr	r3, .L5+12
	ldr	r4, [r6]
	ldr	r5, [r2]
	ldr	r6, [r3]
	bl	ADP5061_VINX_SET_ILIM_MODE
	mov	r2, r6
	mov	r3, r0
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	regmap_update_bits
.L6:
	.align	2
.L5:
	.word	adp5061_in_current_lim
	.word	274877907
	.word	ADP5061_VINX_SET
	.word	ADP5061_VINX_SET_ILIM_MSK
	.size	adp5061_set_input_current_limit, .-adp5061_set_input_current_limit
	.comm	adp5061_in_current_lim,4,4
	.comm	ADP5061_VINX_SET_ILIM_MSK,4,4
	.comm	ADP5061_VINX_SET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
