	.file	"792596.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ingstat called\n"
.LC1:
	.string	"r"
.LC2:
	.string	"found\n"
.LC3:
	.string	"not found\n"
	.text
	.globl	ingstat
	.type	ingstat, @function
ingstat:
.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, 1264
	mov	QWORD PTR -1240[rbp], rdi
	mov	QWORD PTR -1248[rbp], rsi
	mov	QWORD PTR -1256[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1220[rbp], 0
	mov	DWORD PTR -1224[rbp], 0
	mov	QWORD PTR -1104[rbp], 0
	mov	QWORD PTR -1096[rbp], 0
	mov	QWORD PTR -1088[rbp], 0
	mov	QWORD PTR -1080[rbp], 0
	mov	QWORD PTR -1072[rbp], 0
	mov	QWORD PTR -1064[rbp], 0
	mov	QWORD PTR -1056[rbp], 0
	mov	QWORD PTR -1048[rbp], 0
	mov	DWORD PTR -1216[rbp], 0
	mov	DWORD PTR -1212[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	DEBUGMSGTL@PLT
	mov	rax, QWORD PTR -1240[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DEBUGMSGTL@PLT
	mov	rax, QWORD PTR -1248[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DEBUGMSGTL@PLT
	mov	rdx, QWORD PTR -1248[rbp]
	lea	rax, -1104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -1240[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -1208[rbp], rax
	cmp	QWORD PTR -1208[rbp], 0
	jne	.L4
	mov	eax, -1
	jmp	.L7
.L6:
	mov	rdx, QWORD PTR -1256[rbp]
	lea	rcx, -1040[rbp]
	lea	rax, -1104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	getval
	mov	DWORD PTR -1224[rbp], eax
	cmp	DWORD PTR -1224[rbp], 0
	je	.L4
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	DEBUGMSGTL@PLT
	mov	rax, QWORD PTR -1208[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	eax, 1
	jmp	.L7
.L4:
	mov	rdx, QWORD PTR -1208[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L5
	cmp	DWORD PTR -1224[rbp], 0
	je	.L6
.L5:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	DEBUGMSGTL@PLT
	mov	eax, 0
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ingstat, .-ingstat
	.globl	getval
	.type	getval, @function
getval:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	QWORD PTR -120[rbp], rdi
	mov	QWORD PTR -128[rbp], rsi
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
	mov	rcx, QWORD PTR -120[rbp]
	lea	rax, -96[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	regcomp@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L10
	mov	eax, -1
	jmp	.L15
.L10:
	lea	rdx, -32[rbp]
	mov	rsi, QWORD PTR -128[rbp]
	lea	rax, -96[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 3
	mov	rdi, rax
	call	regexec@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	je	.L12
	mov	eax, 0
	jmp	.L15
.L12:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -112[rbp], eax
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -112[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -108[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -136[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -112[rbp], 1
	add	DWORD PTR -108[rbp], 1
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -112[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	regfree@PLT
	mov	eax, 1
.L15:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getval, .-getval
	.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	"792596.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ingstat called\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"found\012\000"
	.align	2
.LC3:
	.ascii	"not found\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ingstat
	.syntax unified
	.arm
	.fpu softvfp
	.type	ingstat, %function
ingstat:
	@ args = 0, pretend = 0, frame = 1184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1184
	str	r0, [fp, #-1176]
	str	r1, [fp, #-1180]
	str	r2, [fp, #-1184]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1168]
	mov	r3, #0
	str	r3, [fp, #-1172]
	mov	r3, #0
	str	r3, [fp, #-1096]
	sub	r3, fp, #1088
	sub	r3, r3, #4
	mov	r2, #60
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1164]
	mov	r3, #0
	str	r3, [fp, #-1160]
	ldr	r0, .L9+4
	bl	DEBUGMSGTL
	ldr	r0, [fp, #-1176]
	bl	DEBUGMSGTL
	ldr	r0, [fp, #-1180]
	bl	DEBUGMSGTL
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-1180]
	mov	r0, r3
	bl	strcpy
	ldr	r1, .L9+8
	ldr	r0, [fp, #-1176]
	bl	popen
	str	r0, [fp, #-1156]
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	bne	.L4
	mvn	r3, #0
	b	.L7
.L6:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1184]
	mov	r0, r3
	bl	getval
	str	r0, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	cmp	r3, #0
	beq	.L4
	ldr	r0, .L9+12
	bl	DEBUGMSGTL
	ldr	r0, [fp, #-1156]
	bl	pclose
	mov	r3, #1
	b	.L7
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1156]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-1172]
	cmp	r3, #0
	beq	.L6
.L5:
	ldr	r0, .L9+16
	bl	DEBUGMSGTL
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	ingstat, .-ingstat
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getval
	.syntax unified
	.arm
	.fpu softvfp
	.type	getval, %function
getval:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	sub	r3, fp, #64
	mov	r2, #1
	ldr	r1, [fp, #-88]
	mov	r0, r3
	bl	regcomp
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L12
	mvn	r3, #0
	b	.L17
.L12:
	sub	r3, fp, #32
	sub	r0, fp, #64
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #3
	ldr	r1, [fp, #-92]
	bl	regexec
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	b	.L17
.L14:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-80]
	b	.L15
.L16:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-92]
	add	r2, r2, r3
	ldr	r3, [fp, #-76]
	ldr	r1, [fp, #-96]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L15:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-76]
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #64
	mov	r0, r3
	bl	regfree
	mov	r3, #1
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.size	getval, .-getval
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
