	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_edit_offset
_compute_edit_offset:                   ## @compute_edit_offset
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_dlg_index_columns
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_dlg_index_wchars
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_dlg_count_wchars
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_dlg_find_index
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	leal	1(%rax), %ecx
	movslq	%ecx, %r8
	movl	%eax, %ecx
	movl	(%r12,%rcx,4), %ebx
	movl	%r8d, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdi
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rcx,4), %edx
	movl	%ebx, %esi
	subl	%edx, %esi
	cmpl	%r14d, %esi
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%r8,4), %esi
	subl	%edx, %esi
	cmpl	%r14d, %esi
	jge	LBB0_5
	jmp	LBB0_7
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	cltq
	movl	(%r12,%rax,4), %eax
	movl	%ecx, %edx
	subl	(%r12,%rdx,4), %eax
	movl	%eax, (%rdi)
LBB0_9:
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movl	%ecx, (%rsi)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_edit_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_edit_offset
_compute_edit_offset:                   ; @compute_edit_offset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	bl	_dlg_index_columns
	mov	x21, x0
	mov	x0, x23
	bl	_dlg_index_wchars
	mov	x25, x0
	mov	x0, x23
	bl	_dlg_count_wchars
	mov	x23, x0
	mov	x0, x25
	mov	x1, x23
	mov	x2, x24
	bl	_dlg_find_index
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x8, #0
	add	w9, w0, #1
	sxtw	x9, w9
	ldr	w10, [x21, w0, uxtw #2]
	and	x11, x9, #0xffffffff
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x11, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x21, x8, lsl #2]
	sub	w13, w10, w12
	cmp	w13, w22
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w23
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x21, x9, lsl #2]
	sub	w12, w13, w12
	cmp	w12, w22
	b.ge	LBB0_2
	b	LBB0_7
LBB0_6:
	mov	w8, #0
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	ldr	w9, [x21, w0, sxtw #2]
	ldr	w10, [x21, w8, uxtw #2]
	sub	w9, w9, w10
	str	w9, [x20]
LBB0_9:
	cbz	x19, LBB0_11
; %bb.10:
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_edit_offset
.subsections_via_symbols
