	.file	"150139279.c"
	.intel_syntax noprefix
	.text
	.globl	scl
	.bss
	.align 2
	.type	scl, @object
	.size	scl, 2
scl:
	.zero	2
	.globl	ref
	.align 2
	.type	ref, @object
	.size	ref, 2
ref:
	.zero	2
	.text
	.globl	mul_16x16
	.type	mul_16x16, @function
mul_16x16:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -4[rbp], dx
	mov	WORD PTR -8[rbp], ax
	movzx	edx, WORD PTR -4[rbp]
	movzx	eax, WORD PTR -8[rbp]
	imul	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	mul_16x16, .-mul_16x16
	.globl	nr_isqrt
	.type	nr_isqrt, @function
nr_isqrt:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -28[rbp], edi
	mov	eax, esi
	mov	WORD PTR -32[rbp], ax
	jmp	.L4
.L5:
	movsx	eax, WORD PTR -10[rbp]
	movzx	ecx, WORD PTR -32[rbp]
	cdq
	idiv	ecx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	WORD PTR -32[rbp], ax
.L4:
	mov	eax, DWORD PTR -28[rbp]
	mov	ebx, eax
	movzx	edx, WORD PTR -32[rbp]
	movzx	eax, WORD PTR -32[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mul_16x16
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	WORD PTR -10[rbp], ax
	cmp	WORD PTR -10[rbp], 0
	jne	.L5
	movzx	eax, WORD PTR -32[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nr_isqrt, .-nr_isqrt
	.globl	set_resistances
	.type	set_resistances, @function
set_resistances:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, edi
	mov	eax, esi
	mov	WORD PTR -4[rbp], dx
	mov	WORD PTR -8[rbp], ax
	cmp	WORD PTR -4[rbp], 1000
	jne	.L8
	mov	eax, 1731
	jmp	.L9
.L8:
	mov	eax, 17316
.L9:
	mov	WORD PTR scl[rip], ax
	movzx	eax, WORD PTR -8[rbp]
	mov	WORD PTR ref[rip], ax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	set_resistances, .-set_resistances
	.globl	adc_to_ohms
	.type	adc_to_ohms, @function
adc_to_ohms:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR ref[rip]
	movzx	edx, ax
	movzx	eax, WORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mul_16x16
	shr	eax, 15
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	adc_to_ohms, .-adc_to_ohms
	.globl	ohms_to_degreesC
	.type	ohms_to_degreesC, @function
ohms_to_degreesC:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	edx, WORD PTR -4[rbp]
	movzx	eax, WORD PTR scl[rip]
	movzx	eax, ax
	mov	esi, edx
	mov	edi, eax
	call	mul_16x16
	mov	edx, eax
	mov	eax, 13181975
	sub	eax, edx
	mov	esi, 3384
	mov	edi, eax
	call	nr_isqrt
	mov	edx, eax
	mov	eax, 3384
	sub	eax, edx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	ohms_to_degreesC, .-ohms_to_degreesC
	.globl	adc_to_degreesC
	.type	adc_to_degreesC, @function
adc_to_degreesC:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	movzx	eax, WORD PTR -20[rbp]
	mov	edi, eax
	call	adc_to_ohms
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -2[rbp]
	mov	edi, eax
	call	ohms_to_degreesC
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	adc_to_degreesC, .-adc_to_degreesC
	.section	.rodata
.LC0:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	esi, 430
	mov	edi, 100
	call	set_resistances
	mov	WORD PTR -2[rbp], 0
	jmp	.L17
.L18:
	movzx	eax, WORD PTR -2[rbp]
	mov	edi, eax
	call	ohms_to_degreesC
	movsx	edx, ax
	movzx	eax, WORD PTR -2[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
.L17:
	cmp	WORD PTR -2[rbp], 349
	jbe	.L18
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"150139279.c"
	.text
	.comm	scl,2,2
	.comm	ref,2,2
	.align	2
	.global	mul_16x16
	.syntax unified
	.arm
	.fpu softvfp
	.type	mul_16x16, %function
mul_16x16:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-6]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-8]	@ movhi
	ldrh	r3, [fp, #-6]
	ldrh	r2, [fp, #-8]
	mul	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	mul_16x16, .-mul_16x16
	.global	__aeabi_idiv
	.align	2
	.global	nr_isqrt
	.syntax unified
	.arm
	.fpu softvfp
	.type	nr_isqrt, %function
nr_isqrt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r3, r1
	strh	r3, [fp, #-26]	@ movhi
	b	.L4
.L5:
	ldrsh	r3, [fp, #-14]
	ldrh	r2, [fp, #-26]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-26]	@ movhi
	add	r3, r2, r3
	strh	r3, [fp, #-26]	@ movhi
.L4:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	lsr	r4, r3, #16
	ldrh	r2, [fp, #-26]
	ldrh	r3, [fp, #-26]
	mov	r1, r2
	mov	r0, r3
	bl	mul_16x16
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldrsh	r3, [fp, #-14]
	cmp	r3, #0
	bne	.L5
	ldrh	r3, [fp, #-26]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	nr_isqrt, .-nr_isqrt
	.align	2
	.global	set_resistances
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_resistances, %function
set_resistances:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	mov	r2, r1
	strh	r3, [fp, #-6]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-8]	@ movhi
	ldrh	r3, [fp, #-6]
	cmp	r3, #1000
	bne	.L8
	ldr	r3, .L10
	b	.L9
.L8:
	ldr	r3, .L10+4
.L9:
	ldr	r2, .L10+8
	strh	r3, [r2]	@ movhi
	ldr	r2, .L10+12
	ldrh	r3, [fp, #-8]	@ movhi
	strh	r3, [r2]	@ movhi
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	1731
	.word	17316
	.word	scl
	.word	ref
	.size	set_resistances, .-set_resistances
	.align	2
	.global	adc_to_ohms
	.syntax unified
	.arm
	.fpu softvfp
	.type	adc_to_ohms, %function
adc_to_ohms:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, .L14
	ldrh	r2, [r3]
	ldrh	r3, [fp, #-6]
	mov	r1, r2
	mov	r0, r3
	bl	mul_16x16
	mov	r3, r0
	lsr	r3, r3, #15
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	ref
	.size	adc_to_ohms, .-adc_to_ohms
	.align	2
	.global	ohms_to_degreesC
	.syntax unified
	.arm
	.fpu softvfp
	.type	ohms_to_degreesC, %function
ohms_to_degreesC:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, .L18
	ldrh	r3, [r3]
	ldrh	r2, [fp, #-6]
	mov	r1, r2
	mov	r0, r3
	bl	mul_16x16
	mov	r2, r0
	ldr	r3, .L18+4
	sub	r3, r3, r2
	ldr	r1, .L18+8
	mov	r0, r3
	bl	nr_isqrt
	mov	r3, r0
	rsb	r3, r3, #3376
	add	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	scl
	.word	13181975
	.word	3384
	.size	ohms_to_degreesC, .-ohms_to_degreesC
	.align	2
	.global	adc_to_degreesC
	.syntax unified
	.arm
	.fpu softvfp
	.type	adc_to_degreesC, %function
adc_to_degreesC:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-14]	@ movhi
	ldrh	r3, [fp, #-14]
	mov	r0, r3
	bl	adc_to_ohms
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	bl	ohms_to_degreesC
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	adc_to_degreesC, .-adc_to_degreesC
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r1, .L26
	mov	r0, #100
	bl	set_resistances
	mov	r3, #0
	strh	r3, [fp, #-14]	@ movhi
	b	.L23
.L24:
	ldrh	r4, [fp, #-14]
	ldrh	r3, [fp, #-14]
	mov	r0, r3
	bl	ohms_to_degreesC
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L26+4
	bl	printf
	ldrh	r3, [fp, #-14]
	add	r3, r3, #1
	strh	r3, [fp, #-14]	@ movhi
.L23:
	ldrh	r3, [fp, #-14]
	ldr	r2, .L26+8
	cmp	r3, r2
	bls	.L24
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L27:
	.align	2
.L26:
	.word	430
	.word	.LC0
	.word	349
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
