	.file	"extr_tui.c_handle_input_val.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid Temp %d! %d-%d"
.LC1:
	.string	"Set New Target Temp %d"
.LC2:
	.string	"%s/%s%d"
.LC3:
	.string	"cur_state"
	.text
	.p2align 4
	.type	handle_input_val, @function
handle_input_val:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movsx	rbx, edi
	sub	rsp, 304
	.cfi_def_cfa_offset 336
	mov	r12, QWORD PTR dialogue_window[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 296[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	call	echo@PLT
	mov	esi, DWORD PTR TRUE[rip]
	mov	rdi, r12
	call	keypad@PLT
	mov	rdi, r12
	mov	edx, 31
	mov	rsi, rbp
	call	wgetnstr@PLT
	mov	rdi, rbp
	call	atoi@PLT
	cmp	DWORD PTR ptdata[rip], ebx
	mov	r12d, eax
	je	.L10
	mov	rax, QWORD PTR ptdata[rip+8]
	lea	rbp, 32[rsp]
	mov	r8, QWORD PTR CDEV[rip]
	lea	rdx, .LC2[rip]
	mov	rcx, QWORD PTR THERMAL_SYSFS[rip]
	mov	esi, 256
	mov	rdi, rbp
	mov	r9d, DWORD PTR [rax+rbx*4]
	xor	eax, eax
	call	snprintf@PLT
	mov	edx, r12d
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	sysfs_set_ulong@PLT
.L5:
	xor	eax, eax
	call	noecho@PLT
	xor	eax, eax
	mov	QWORD PTR dialogue_on[rip], 0
	call	show_data_w@PLT
	xor	eax, eax
	call	show_control_w@PLT
	mov	rdi, QWORD PTR top[rip]
	call	panel_userptr@PLT
	mov	rdi, rax
	mov	QWORD PTR top[rip], rax
	call	top_panel@PLT
	mov	rax, QWORD PTR 296[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 304
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r9d, DWORD PTR MAX_CTRL_TEMP[rip]
	mov	r8d, DWORD PTR MIN_CTRL_TEMP[rip]
	mov	ecx, eax
	lea	rdx, .LC0[rip]
	xor	eax, eax
	mov	esi, 31
	mov	rdi, rbp
	call	snprintf@PLT
	cmp	DWORD PTR MIN_CTRL_TEMP[rip], r12d
	jg	.L8
	cmp	DWORD PTR MAX_CTRL_TEMP[rip], r12d
	jge	.L4
.L8:
	mov	rsi, rbp
	mov	edi, 40
	call	write_status_bar@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, r12d
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	mov	esi, 31
	mov	DWORD PTR p_param[rip], r12d
	call	snprintf@PLT
	jmp	.L8
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	handle_input_val, .-handle_input_val
	.comm	top,8,8
	.comm	ptdata,16,16
	.comm	p_param,4,4
	.comm	dialogue_window,8,8
	.comm	dialogue_on,8,8
	.comm	TRUE,4,4
	.comm	THERMAL_SYSFS,8,8
	.comm	MIN_CTRL_TEMP,4,4
	.comm	MAX_CTRL_TEMP,4,4
	.comm	CDEV,8,8
	.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_tui.c_handle_input_val.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid Temp %d! %d-%d\000"
	.align	2
.LC1:
	.ascii	"Set New Target Temp %d\000"
	.align	2
.LC2:
	.ascii	"%s/%s%d\000"
	.align	2
.LC3:
	.ascii	"cur_state\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_input_val, %function
handle_input_val:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L12
	ldr	r3, .L12+4
	sub	sp, sp, #304
	ldr	r4, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #300]
	mov	r2,#0
	mov	r5, r0
	bl	echo
	ldr	r3, .L12+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	keypad
	mov	r2, #31
	mov	r0, r4
	add	r1, sp, #12
	bl	wgetnstr
	add	r0, sp, #12
	bl	atoi
	ldr	r3, .L12+12
	mov	r4, r0
	ldr	r2, [r3]
	cmp	r2, r5
	beq	.L10
	ldr	r2, [r3, #4]
	ldr	r3, .L12+16
	ldr	r1, [r2, r5, lsl #2]
	ldr	r2, [r3]
	ldr	r3, .L12+20
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, #256
	ldr	r2, .L12+24
	ldr	r3, [r3]
	add	r0, sp, #44
	bl	snprintf
	mov	r2, r4
	ldr	r1, .L12+28
	add	r0, sp, #44
	bl	sysfs_set_ulong
.L5:
	bl	noecho
	mov	r2, #0
	ldr	r3, .L12+32
	ldr	r4, .L12+36
	str	r2, [r3]
	bl	show_data_w
	bl	show_control_w
	ldr	r0, [r4]
	bl	panel_userptr
	str	r0, [r4]
	bl	top_panel
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #300]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #304
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r5, .L12+40
	ldr	r6, .L12+44
	ldr	r3, [r5]
	ldr	r2, [r6]
	str	r3, [sp]
	str	r2, [sp, #4]
	mov	r3, r0
	mov	r1, #31
	ldr	r2, .L12+48
	add	r0, sp, #12
	bl	snprintf
	ldr	r3, [r5]
	cmp	r3, r4
	bgt	.L8
	ldr	r3, [r6]
	cmp	r3, r4
	bge	.L4
.L8:
	add	r1, sp, #12
	mov	r0, #40
	bl	write_status_bar
	b	.L5
.L4:
	ldr	r0, .L12+52
	mov	r3, r4
	str	r4, [r0]
	mov	r1, #31
	ldr	r2, .L12+56
	add	r0, sp, #12
	bl	snprintf
	b	.L8
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	dialogue_window
	.word	TRUE
	.word	ptdata
	.word	CDEV
	.word	THERMAL_SYSFS
	.word	.LC2
	.word	.LC3
	.word	dialogue_on
	.word	top
	.word	MIN_CTRL_TEMP
	.word	MAX_CTRL_TEMP
	.word	.LC0
	.word	p_param
	.word	.LC1
	.size	handle_input_val, .-handle_input_val
	.comm	top,4,4
	.comm	ptdata,8,4
	.comm	p_param,4,4
	.comm	dialogue_window,4,4
	.comm	dialogue_on,4,4
	.comm	TRUE,4,4
	.comm	THERMAL_SYSFS,4,4
	.comm	MIN_CTRL_TEMP,4,4
	.comm	MAX_CTRL_TEMP,4,4
	.comm	CDEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
