	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edit
_edit:                                  ## @edit
	.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
	movq	_tmpfil@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_mkstemp
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_fdopen
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_display
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.2(%rip), %r14
	leaq	-48(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$110, %ebx
	je	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	xorl	%eax, %eax
	callq	_editit
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_getasciilabel
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_fclose
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %eax
	movq	_lab@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_writelabel
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	xorl	%eax, %eax
	callq	_getchar
	movl	%eax, %ebx
	cmpl	$10, %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$10, %eax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_2:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	jmp	LBB0_15
LBB0_6:
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_warnx
LBB0_14:
	movl	(%r15), %edi
	callq	_unlink
LBB0_15:
	movl	$1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r15), %edi
	callq	_unlink
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_tmpfil,4,2                     ## @tmpfil
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

L_.str.1:                               ## @.str.1
	.asciz	"can't create %s"

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

L_.str.3:                               ## @.str.3
	.asciz	"can't reopen %s for reading"

	.comm	_lab,4,2                        ## @lab
L_.str.4:                               ## @.str.4
	.asciz	"re-edit the label? [y]: "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_edit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edit
_edit:                                  ; @edit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x23, _tmpfil@GOTPAGE
Lloh1:
	ldr	x23, [x23, _tmpfil@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_mkstemp
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdopen
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	mov	x1, #0
	bl	_display
	mov	x0, x19
	bl	_fclose
Lloh4:
	adrp	x19, l_.str.2@PAGE
Lloh5:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh6:
	adrp	x24, _stdout@GOTPAGE
Lloh7:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
Lloh8:
	adrp	x25, _EOF@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
Lloh10:
	adrp	x26, _lab@GOTPAGE
Lloh11:
	ldr	x26, [x26, _lab@GOTPAGEOFF]
Lloh12:
	adrp	x20, l_.str.4@PAGE
Lloh13:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #110
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	bl	_editit
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	mov	x1, x19
	bl	_fopen
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #4
	bl	_bzero
	add	x1, sp, #8
	mov	x0, x21
	bl	_getasciilabel
	mov	x22, x0
	mov	x0, x21
	bl	_fclose
	cbz	w22, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	str	w8, [x26]
	bl	_writelabel
	cbz	x0, LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_printf
	ldr	w0, [x24]
	bl	_fflush
	bl	_getchar
	mov	x21, x0
	cmp	w0, #10
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	cmp	w21, w8
	b.eq	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_getchar
	cmp	w0, #10
	b.ne	LBB0_10
	b	LBB0_3
LBB0_11:
	ldr	w1, [x23]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_14
LBB0_12:
	ldr	w1, [x23]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
LBB0_13:
	ldr	w0, [x23]
	bl	_unlink
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	ldr	w0, [x23]
	bl	_unlink
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_tmpfil,4,2                     ; @tmpfil
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

l_.str.1:                               ; @.str.1
	.asciz	"can't create %s"

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

l_.str.3:                               ; @.str.3
	.asciz	"can't reopen %s for reading"

	.comm	_lab,4,2                        ; @lab
l_.str.4:                               ; @.str.4
	.asciz	"re-edit the label? [y]: "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_edit
.subsections_via_symbols
