	.file	"extr_util.c_dlg_exit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dlg_exit
	.type	dlg_exit, @function
dlg_exit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	lea	rbx, table.1947[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR FALSE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rdx, table.1947[rip+16]
	mov	ecx, 134
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L33:
	mov	ecx, DWORD PTR [rdx]
	add	rdx, 16
.L5:
	cmp	ebp, ecx
	je	.L32
	add	eax, 1
	cmp	eax, 7
	jne	.L33
.L4:
	cmp	ebp, 129
	sete	dl
	test	r12d, r12d
	sete	al
	xor	r12d, r12d
	test	dl, al
	je	.L34
	mov	ebp, 130
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L32:
	sal	rax, 4
	mov	rdi, QWORD PTR 8[rbx+rax]
	call	getenv@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
	xor	edx, edx
	mov	rsi, rsp
	mov	rdi, rax
	call	strtol@PLT
	mov	rdx, QWORD PTR [rsp]
	cmp	rdx, r13
	je	.L4
	test	rdx, rdx
	je	.L4
	cmp	BYTE PTR [rdx], 0
	jne	.L4
	mov	r12d, DWORD PTR TRUE[rip]
	mov	ebp, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, QWORD PTR dialog_state[rip]
	cmp	rdi, QWORD PTR stdin[rip]
	je	.L35
	test	rdi, rdi
	jne	.L36
.L8:
	mov	rdi, QWORD PTR dialog_state[rip+8]
	test	rdi, rdi
	jne	.L37
.L9:
	mov	edi, ebp
	call	_exit@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L37:
	.cfi_restore_state
	cmp	rdi, QWORD PTR stdin[rip]
	je	.L9
	call	fclose@PLT
	mov	QWORD PTR dialog_state[rip+8], 0
	jmp	.L9
.L36:
	call	fclose@PLT
	mov	QWORD PTR dialog_state[rip], 0
	jmp	.L8
.L35:
	mov	edi, ebp
	call	exit@PLT
	jmp	.L1
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dlg_exit, .-dlg_exit
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DIALOG_CANCEL"
.LC1:
	.string	"DIALOG_ERROR"
.LC2:
	.string	"DIALOG_ESC"
.LC3:
	.string	"DIALOG_EXTRA"
.LC4:
	.string	"DIALOG_HELP"
.LC5:
	.string	"DIALOG_OK"
.LC6:
	.string	"DIALOG_ITEM_HELP"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	table.1947, @object
	.size	table.1947, 112
table.1947:
	.long	134
	.zero	4
	.quad	.LC0
	.long	133
	.zero	4
	.quad	.LC1
	.long	132
	.zero	4
	.quad	.LC2
	.long	131
	.zero	4
	.quad	.LC3
	.long	130
	.zero	4
	.quad	.LC4
	.long	128
	.zero	4
	.quad	.LC5
	.long	129
	.zero	4
	.quad	.LC6
	.comm	stdin,8,8
	.comm	dialog_state,16,16
	.comm	TRUE,4,4
	.comm	FALSE,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_util.c_dlg_exit.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dlg_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlg_exit, %function
dlg_exit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L37
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r3, .L37+4
	ldr	r5, .L37+8
	ldr	r6, [r3]
	ldr	r7, .L37+12
.L2:
	mov	r2, #134
	mov	r3, #0
	b	.L5
.L31:
	ldr	r2, [r5, r3, lsl #3]
.L5:
	cmp	r4, r2
	beq	.L30
	add	r3, r3, #1
	cmp	r3, #7
	bne	.L31
.L4:
	cmp	r4, #129
	cmpeq	r6, #0
	moveq	r6, #1
	movne	r6, #0
	cmp	r6, #0
	mov	r6, #0
	beq	.L32
	mov	r4, #130
	b	.L2
.L30:
	add	r3, r5, r3, lsl #3
	ldr	r0, [r3, #4]
	bl	getenv
	subs	r8, r0, #0
	beq	.L4
	mov	r2, #0
	mov	r1, sp
	bl	strtol
	ldr	r3, [sp]
	cmp	r3, r8
	cmpne	r3, #0
	beq	.L4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r4, r0
	ldreq	r6, [r7]
	b	.L4
.L32:
	ldr	r5, .L37+16
	ldr	r7, .L37+20
	ldr	r0, [r5]
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L33
	cmp	r0, #0
	bne	.L34
.L8:
	ldr	r0, [r5, #4]
	cmp	r0, #0
	bne	.L35
.L9:
	mov	r0, r4
	bl	_exit
.L1:
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L35:
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L9
	bl	fclose
	mov	r3, #0
	str	r3, [r5, #4]
	b	.L9
.L34:
	bl	fclose
	str	r6, [r5]
	b	.L8
.L33:
	mov	r0, r4
	bl	exit
	b	.L1
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	FALSE
	.word	.LANCHOR0
	.word	TRUE
	.word	dialog_state
	.word	stdin
	.size	dlg_exit, .-dlg_exit
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"DIALOG_CANCEL\000"
	.align	2
.LC2:
	.ascii	"DIALOG_ERROR\000"
	.align	2
.LC3:
	.ascii	"DIALOG_ESC\000"
	.align	2
.LC4:
	.ascii	"DIALOG_EXTRA\000"
	.align	2
.LC5:
	.ascii	"DIALOG_HELP\000"
	.align	2
.LC6:
	.ascii	"DIALOG_OK\000"
	.align	2
.LC7:
	.ascii	"DIALOG_ITEM_HELP\000"
	.comm	stdin,4,4
	.comm	dialog_state,8,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	table.4231, %object
	.size	table.4231, 56
table.4231:
	.word	134
	.word	.LC1
	.word	133
	.word	.LC2
	.word	132
	.word	.LC3
	.word	131
	.word	.LC4
	.word	130
	.word	.LC5
	.word	128
	.word	.LC6
	.word	129
	.word	.LC7
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
