	.file	"extr_adm1026.c_set_auto_pwm_min.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_auto_pwm_min, @function
set_auto_pwm_min:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_i2c_client@PLT
	mov	rdi, rax
	mov	r14, rax
	call	i2c_get_clientdata@PLT
	xor	esi, esi
	mov	edx, 10
	mov	rdi, r13
	mov	rbp, rax
	call	simple_strtol@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	mutex_lock@PLT
	xor	esi, esi
	mov	edx, 255
	mov	edi, r13d
	call	SENSORS_LIMIT@PLT
	cmp	DWORD PTR 4[rbp], 2
	mov	DWORD PTR 12[rbp], eax
	je	.L5
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r13d, DWORD PTR 8[rbp]
	mov	edi, eax
	call	PWM_MIN_TO_REG@PLT
	and	r13d, 15
	mov	edi, r13d
	or	edi, eax
	call	PWM_TO_REG@PLT
	mov	esi, DWORD PTR ADM1026_REG_PWM[rip]
	mov	rdi, r14
	mov	DWORD PTR 8[rbp], eax
	mov	edx, eax
	call	adm1026_write_value@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	set_auto_pwm_min, .-set_auto_pwm_min
	.comm	ADM1026_REG_PWM,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_adm1026.c_set_auto_pwm_min.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_auto_pwm_min, %function
set_auto_pwm_min:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	mov	r6, r2
	bl	to_i2c_client
	mov	r7, r0
	bl	i2c_get_clientdata
	mov	r2, #10
	mov	r4, r0
	mov	r1, #0
	mov	r0, r6
	bl	simple_strtol
	mov	r6, r0
	mov	r0, r4
	bl	mutex_lock
	mov	r0, r6
	mov	r2, #255
	mov	r1, #0
	bl	SENSORS_LIMIT
	ldr	r3, [r4, #4]
	str	r0, [r4, #12]
	cmp	r3, #2
	beq	.L5
.L2:
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r6, [r4, #8]
	bl	PWM_MIN_TO_REG
	and	r6, r6, #15
	orr	r0, r6, r0
	bl	PWM_TO_REG
	ldr	r3, .L6
	mov	r2, r0
	str	r0, [r4, #8]
	ldr	r1, [r3]
	mov	r0, r7
	bl	adm1026_write_value
	b	.L2
.L7:
	.align	2
.L6:
	.word	ADM1026_REG_PWM
	.size	set_auto_pwm_min, .-set_auto_pwm_min
	.comm	ADM1026_REG_PWM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
