	.file	"extr_envctrl.c_envctrl_init_adc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"channels-description"
.LC1:
	.string	"warning-temp"
.LC2:
	.string	"shutdown-temp"
	.text
	.p2align 4
	.type	envctrl_init_adc, @function
envctrl_init_adc:
.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, rsi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	rdi, r13
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	call	of_get_property@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	edx, edx
	jle	.L2
	mov	r14, rax
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r14
	call	strlen@PLT
	mov	edx, ebp
	mov	rsi, r14
	mov	rdi, r12
	lea	ebx, 1[rax]
	add	ebp, 1
	call	envctrl_set_mon@PLT
	mov	eax, DWORD PTR 4[rsp]
	sub	eax, ebx
	movsx	rbx, ebx
	mov	DWORD PTR 4[rsp], eax
	add	r14, rbx
	test	eax, eax
	jg	.L3
.L2:
	xor	edx, edx
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	of_get_property@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR warning_temperature[rip], eax
.L4:
	xor	edx, edx
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	of_get_property@PLT
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR shutdown_temperature[rip], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	envctrl_init_adc, .-envctrl_init_adc
	.comm	warning_temperature,4,4
	.comm	shutdown_temperature,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_envctrl.c_envctrl_init_adc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"channels-description\000"
	.align	2
.LC1:
	.ascii	"warning-temp\000"
	.align	2
.LC2:
	.ascii	"shutdown-temp\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	envctrl_init_adc, %function
envctrl_init_adc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L17
	sub	sp, sp, #8
	mov	r7, r1
	mov	r6, r0
	mov	r2, sp
	mov	r0, r1
	ldr	r1, .L17+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	of_get_property
	ldr	r3, [sp]
	cmp	r3, #0
	ble	.L2
	mov	r5, r0
	mov	r8, #0
.L3:
	mov	r0, r5
	bl	strlen
	mov	r4, r0
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	bl	envctrl_set_mon
	ldr	r3, [sp]
	add	r4, r4, #1
	sub	r3, r3, r4
	cmp	r3, #0
	add	r8, r8, #1
	add	r5, r5, r4
	str	r3, [sp]
	bgt	.L3
.L2:
	mov	r2, #0
	ldr	r1, .L17+8
	mov	r0, r7
	bl	of_get_property
	cmp	r0, #0
	ldrne	r3, .L17+12
	ldrne	r2, [r0]
	ldr	r1, .L17+16
	strne	r2, [r3]
	mov	r0, r7
	mov	r2, #0
	bl	of_get_property
	cmp	r0, #0
	ldrne	r3, .L17+20
	ldrne	r2, [r0]
	strne	r2, [r3]
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	warning_temperature
	.word	.LC2
	.word	shutdown_temperature
	.size	envctrl_init_adc, .-envctrl_init_adc
	.comm	warning_temperature,4,4
	.comm	shutdown_temperature,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
