	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c_delfini
_c_delfini:                             ## @c_delfini
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ActionFlag@GOTPCREL(%rip), %rbx
	movq	_TCSHOP_INSERT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_c_alternativ_key_map
LBB0_2:
	movq	_TCSHOP_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_ActionPos@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	movl	(%r14), %eax
	movq	_UndoAction@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_Cursor@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	cmpq	%rbx, %r14
	jle	LBB0_5
## %bb.4:
	subl	%ebx, %r14d
	movl	%r14d, %edi
	callq	_c_delbefore
	xorl	%eax, %eax
	callq	_RefCursor
	jmp	LBB0_8
LBB0_5:
	jge	LBB0_7
## %bb.6:
	subl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_c_delafter
	movl	%ebx, %r14d
	jmp	LBB0_8
LBB0_7:
	movl	$1, %r14d
	movl	$1, %edi
	callq	_c_delafter
LBB0_8:
	movq	(%r15), %rax
	movq	_UndoPtr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_UndoSize@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ActionFlag,4,2                 ## @ActionFlag
	.comm	_TCSHOP_INSERT,4,2              ## @TCSHOP_INSERT
	.comm	_TCSHOP_NOP,4,2                 ## @TCSHOP_NOP
	.comm	_ActionPos,8,3                  ## @ActionPos
	.comm	_UndoAction,4,2                 ## @UndoAction
	.comm	_Cursor,8,3                     ## @Cursor
	.comm	_UndoPtr,8,3                    ## @UndoPtr
	.comm	_UndoSize,4,2                   ## @UndoSize
	.no_dead_strip	_c_delfini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c_delfini
_c_delfini:                             ; @c_delfini
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _ActionFlag@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ActionFlag@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x19, _TCSHOP_INSERT@GOTPAGE
Lloh3:
	ldr	x19, [x19, _TCSHOP_INSERT@GOTPAGEOFF]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_c_alternativ_key_map
LBB0_2:
Lloh4:
	adrp	x8, _TCSHOP_NOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCSHOP_NOP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh7:
	adrp	x8, _ActionPos@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ActionPos@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.3:
Lloh10:
	adrp	x9, _UndoAction@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UndoAction@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh12:
	str	w10, [x9]
Lloh13:
	adrp	x20, _Cursor@GOTPAGE
Lloh14:
	ldr	x20, [x20, _Cursor@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x9, x8
	b.le	LBB0_5
; %bb.4:
	sub	w19, w9, w8
	mov	x0, x19
	bl	_c_delbefore
	bl	_RefCursor
	b	LBB0_9
LBB0_5:
	b.ge	LBB0_7
; %bb.6:
	sub	w19, w8, w9
	mov	x0, x19
	b	LBB0_8
LBB0_7:
	mov	w19, #1
	mov	w0, #1
LBB0_8:
	bl	_c_delafter
LBB0_9:
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _UndoPtr@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UndoPtr@GOTPAGEOFF]
Lloh17:
	str	x8, [x9]
Lloh18:
	adrp	x8, _UndoSize@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UndoSize@GOTPAGEOFF]
Lloh20:
	str	w19, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ActionFlag,4,2                 ; @ActionFlag
	.comm	_TCSHOP_INSERT,4,2              ; @TCSHOP_INSERT
	.comm	_TCSHOP_NOP,4,2                 ; @TCSHOP_NOP
	.comm	_ActionPos,8,3                  ; @ActionPos
	.comm	_UndoAction,4,2                 ; @UndoAction
	.comm	_Cursor,8,3                     ; @Cursor
	.comm	_UndoPtr,8,3                    ; @UndoPtr
	.comm	_UndoSize,4,2                   ; @UndoSize
	.no_dead_strip	_c_delfini
.subsections_via_symbols
