	.file	"extr_ina209.c_ina209_to_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ina209_to_reg, @function
ina209_to_reg:
.LFB0:
	.cfi_startproc
	endbr64
	add	edi, -128
	cmp	edi, 9
	ja	.L2
	mov	r8, rdx
	lea	rdx, .L4[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, esi
	movsx	rax, DWORD PTR [rdx+rdi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r8
	mov	edx, 32000
	xor	esi, esi
	and	ebx, 7
	call	clamp_val@PLT
	mov	esi, 4
	movsx	rdi, eax
	call	DIV_ROUND_CLOSEST@PLT
	sal	eax, 3
	or	eax, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, 320
	mov	esi, -320
	mov	rdi, r8
	call	clamp_val@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	imul	eax, eax, 100
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, 20000
	mov	rdi, r8
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 8
	jmp	DIV_ROUND_CLOSEST@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, 255
	xor	esi, esi
	mov	rdi, r8
	movzx	ebx, bl
	call	clamp_val@PLT
	sal	eax, 8
	or	eax, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, r8
	mov	edx, 255
	xor	esi, esi
	movzx	ebx, bl
	neg	rdi
	call	clamp_val@PLT
	sal	eax, 8
	or	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore 3
	mov	eax, DWORD PTR EACCES[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ina209_to_reg, .-ina209_to_reg
	.comm	EACCES,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_ina209.c_ina209_to_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ina209_to_reg, %function
ina209_to_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r3, r0, #128
	push	{r4, lr}
	mov	r0, r2
	mov	r4, r1
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
.L5:
	rsb	r0, r2, #0
.L6:
	mov	r2, #255
	mov	r1, #0
	bl	clamp_val
	and	r1, r4, #255
	orr	r0, r1, r0, lsl #8
	pop	{r4, pc}
.L3:
	mov	r2, #32000
	mov	r1, #0
	bl	clamp_val
	mov	r1, #4
	bl	DIV_ROUND_CLOSEST
	and	r1, r4, #7
	orr	r0, r1, r0, lsl #3
	pop	{r4, pc}
.L8:
	mov	r2, #320
	ldr	r1, .L12
	bl	clamp_val
	add	r0, r0, r0, lsl #2
	add	r0, r0, r0, lsl #2
	lsl	r0, r0, #2
	pop	{r4, pc}
.L7:
	ldr	r1, .L12+4
	pop	{r4, lr}
	b	DIV_ROUND_CLOSEST
.L2:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	-320
	.word	20000
	.word	EACCES
	.size	ina209_to_reg, .-ina209_to_reg
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
