	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesedit                        ## -- Begin function mesedit
	.p2align	4, 0x90
_mesedit:                               ## @mesedit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_SIGINT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$-1, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_run_editor
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseeko
	movq	_collf@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	%r15, %rdi
	callq	_Fclose
LBB0_2:
	movl	(%r12), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_signal                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_collf,8,3                      ## @collf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesedit                        ; -- Begin function mesedit
	.p2align	2
_mesedit:                               ; @mesedit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SIGINT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_signal
	mov	x20, x0
	mov	x0, x19
	mov	w1, #-1
	mov	x2, x21
	mov	w3, #0
	bl	_run_editor
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseeko
Lloh8:
	adrp	x8, _collf@GOTPAGE
Lloh9:
	ldr	x8, [x8, _collf@GOTPAGEOFF]
Lloh10:
	str	x21, [x8]
	mov	x0, x19
	bl	_Fclose
LBB0_2:
	ldr	w0, [x22]
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_signal
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_collf,8,3                      ; @collf
.subsections_via_symbols
