	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_exit                       ## -- Begin function dlg_exit
	.p2align	4, 0x90
_dlg_exit:                              ## @dlg_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	leal	-128(%r12), %eax
	cmpl	$6, %eax
	ja	LBB0_16
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cltq
	leaq	l_switch.table.dlg_exit(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	shlq	$4, %rax
	leaq	_dlg_exit.table(%rip), %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	cmpq	%r14, %rcx
	je	LBB0_6
## %bb.4:
	cmpb	$0, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %r12d
LBB0_6:
	cmpl	$129, %r12d
	jne	LBB0_16
## %bb.7:
	testl	%ebx, %ebx
	jne	LBB0_16
## %bb.8:
	leaq	L_.str.4(%rip), %r14
	leaq	-48(%rbp), %r15
	movq	_TRUE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_getenv
	movl	$130, %r12d
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_strtol
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rbx, %rcx
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpb	$0, (%rcx)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_9
LBB0_15:
	movl	%eax, %r12d
LBB0_16:
	movq	_dialog_state@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_stdin@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%rax, %rdi
	jne	LBB0_17
## %bb.23:
	movl	%r12d, %edi
	callq	_exit
LBB0_17:
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_fclose
	movq	$0, (%r14)
	movq	(%rbx), %rax
LBB0_19:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.20:
	cmpq	%rax, %rdi
	je	LBB0_22
## %bb.21:
	callq	_fclose
	movq	$0, 8(%r14)
LBB0_22:
	movl	%r12d, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @dlg_exit.table
_dlg_exit.table:
	.long	134                             ## 0x86
	.space	4
	.quad	L_.str
	.long	133                             ## 0x85
	.space	4
	.quad	L_.str.1
	.long	132                             ## 0x84
	.space	4
	.quad	L_.str.2
	.long	131                             ## 0x83
	.space	4
	.quad	L_.str.3
	.long	130                             ## 0x82
	.space	4
	.quad	L_.str.4
	.long	128                             ## 0x80
	.space	4
	.quad	L_.str.5
	.long	129                             ## 0x81
	.space	4
	.quad	L_.str.6

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIALOG_CANCEL"

L_.str.1:                               ## @.str.1
	.asciz	"DIALOG_ERROR"

L_.str.2:                               ## @.str.2
	.asciz	"DIALOG_ESC"

L_.str.3:                               ## @.str.3
	.asciz	"DIALOG_EXTRA"

L_.str.4:                               ## @.str.4
	.asciz	"DIALOG_HELP"

L_.str.5:                               ## @.str.5
	.asciz	"DIALOG_OK"

L_.str.6:                               ## @.str.6
	.asciz	"DIALOG_ITEM_HELP"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_dialog_state,16,3              ## @dialog_state
	.comm	_stdin,8,3                      ## @stdin
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.dlg_exit
l_switch.table.dlg_exit:
	.quad	5                               ## 0x5
	.quad	6                               ## 0x6
	.quad	4                               ## 0x4
	.quad	3                               ## 0x3
	.quad	2                               ## 0x2
	.quad	1                               ## 0x1
	.quad	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_exit                       ; -- Begin function dlg_exit
	.p2align	2
_dlg_exit:                              ; @dlg_exit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_15
; %bb.1:
Lloh0:
	adrp	x9, _FALSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x9]
Lloh3:
	adrp	x9, l_switch.table.dlg_exit@PAGE
Lloh4:
	add	x9, x9, l_switch.table.dlg_exit@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
Lloh5:
	adrp	x9, _dlg_exit.table@PAGE
Lloh6:
	add	x9, x9, _dlg_exit.table@PAGEOFF
	add	x8, x9, x8, lsl #4
	ldr	x0, [x8, #8]
	bl	_getenv
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.3:
	cmp	x8, x20
	b.eq	LBB0_6
; %bb.4:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x19, x0
LBB0_6:
	cmp	w19, #129
	b.ne	LBB0_15
; %bb.7:
	cbnz	w21, LBB0_15
; %bb.8:
Lloh10:
	adrp	x20, l_.str.4@PAGE
Lloh11:
	add	x20, x20, l_.str.4@PAGEOFF
Lloh12:
	adrp	x22, _TRUE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_getenv
	cbz	x0, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x0
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #8]
	cmp	x8, #0
	ccmp	x8, x21, #4, ne
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x19, x0
	cmp	w19, #129
	b.ne	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x22]
	cbz	w8, LBB0_9
	b	LBB0_15
LBB0_14:
	mov	w19, #130
LBB0_15:
Lloh14:
	adrp	x20, _dialog_state@GOTPAGE
Lloh15:
	ldr	x20, [x20, _dialog_state@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh16:
	adrp	x21, _stdin@GOTPAGE
Lloh17:
	ldr	x21, [x21, _stdin@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_exit
LBB0_17:
	cbz	x0, LBB0_19
; %bb.18:
	bl	_fclose
	str	xzr, [x20]
	ldr	x8, [x21]
LBB0_19:
	ldr	x0, [x20, #8]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_21
; %bb.20:
	bl	_fclose
	str	xzr, [x20, #8]
LBB0_21:
	mov	x0, x19
	bl	__exit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @dlg_exit.table
_dlg_exit.table:
	.long	134                             ; 0x86
	.space	4
	.quad	l_.str
	.long	133                             ; 0x85
	.space	4
	.quad	l_.str.1
	.long	132                             ; 0x84
	.space	4
	.quad	l_.str.2
	.long	131                             ; 0x83
	.space	4
	.quad	l_.str.3
	.long	130                             ; 0x82
	.space	4
	.quad	l_.str.4
	.long	128                             ; 0x80
	.space	4
	.quad	l_.str.5
	.long	129                             ; 0x81
	.space	4
	.quad	l_.str.6

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIALOG_CANCEL"

l_.str.1:                               ; @.str.1
	.asciz	"DIALOG_ERROR"

l_.str.2:                               ; @.str.2
	.asciz	"DIALOG_ESC"

l_.str.3:                               ; @.str.3
	.asciz	"DIALOG_EXTRA"

l_.str.4:                               ; @.str.4
	.asciz	"DIALOG_HELP"

l_.str.5:                               ; @.str.5
	.asciz	"DIALOG_OK"

l_.str.6:                               ; @.str.6
	.asciz	"DIALOG_ITEM_HELP"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_dialog_state,16,3              ; @dialog_state
	.comm	_stdin,8,3                      ; @stdin
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.dlg_exit
l_switch.table.dlg_exit:
	.quad	5                               ; 0x5
	.quad	6                               ; 0x6
	.quad	4                               ; 0x4
	.quad	3                               ; 0x3
	.quad	2                               ; 0x2
	.quad	1                               ; 0x1
	.quad	0                               ; 0x0

.subsections_via_symbols
