	.file	"extr_lm95245.c_lm95245_set_conversion_rate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lm95245_set_conversion_rate, @function
lm95245_set_conversion_rate:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	rsi, 63
	jg	.L2
	mov	edx, DWORD PTR RATE_CR0063[rip]
	mov	ebp, 63
.L3:
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR LM95245_REG_RW_CONVERS_RATE[rip]
	call	regmap_write@PLT
	test	eax, eax
	js	.L1
	mov	QWORD PTR [rbx], rbp
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	rsi, 364
	jg	.L4
	mov	edx, DWORD PTR RATE_CR0364[rip]
	mov	ebp, 364
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	rsi, 1000
	jg	.L5
	mov	edx, DWORD PTR RATE_CR1000[rip]
	mov	ebp, 1000
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR RATE_CR2500[rip]
	mov	ebp, 2500
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lm95245_set_conversion_rate, .-lm95245_set_conversion_rate
	.comm	RATE_CR2500,4,4
	.comm	RATE_CR1000,4,4
	.comm	RATE_CR0364,4,4
	.comm	RATE_CR0063,4,4
	.comm	LM95245_REG_RW_CONVERS_RATE,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_lm95245.c_lm95245_set_conversion_rate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lm95245_set_conversion_rate, %function
lm95245_set_conversion_rate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #63
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bgt	.L2
	mov	r5, #63
	ldr	r3, .L9
	ldr	r2, [r3]
.L3:
	ldr	r3, .L9+4
	ldr	r0, [r4, #4]
	ldr	r1, [r3]
	bl	regmap_write
	cmp	r0, #0
	strge	r5, [r4]
	movge	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r1, #364
	ldrle	r3, .L9+8
	movle	r5, #364
	ldrle	r2, [r3]
	ble	.L3
.L4:
	cmp	r1, #1000
	ldrle	r3, .L9+12
	ldrgt	r3, .L9+16
	movle	r5, #1000
	ldrgt	r5, .L9+20
	ldr	r2, [r3]
	b	.L3
.L10:
	.align	2
.L9:
	.word	RATE_CR0063
	.word	LM95245_REG_RW_CONVERS_RATE
	.word	RATE_CR0364
	.word	RATE_CR1000
	.word	RATE_CR2500
	.word	2500
	.size	lm95245_set_conversion_rate, .-lm95245_set_conversion_rate
	.comm	RATE_CR2500,4,4
	.comm	RATE_CR1000,4,4
	.comm	RATE_CR0364,4,4
	.comm	RATE_CR0063,4,4
	.comm	LM95245_REG_RW_CONVERS_RATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
