	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_pos                       ## -- Begin function find_pos
	.p2align	4, 0x90
_find_pos:                              ## @find_pos
	.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	_scr_horz@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movq	_position@GOTPCREL(%rip), %r13
	movl	$1, (%r13)
	movq	_scr_pos@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%eax, %eax
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.1:
	movl	$1, %edx
	movq	_curr_line@GOTPCREL(%rip), %r12
	movq	_point@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	callq	_tabshift
	addl	(%r14), %eax
	movl	%eax, (%r14)
	movl	(%r13), %edx
	movq	(%r15), %rsi
	movq	_scr_pos@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	movl	%edx, (%r13)
	addq	$4, %rsi
	movq	%rsi, (%r15)
	cmpl	%r8d, %eax
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	movl	(%rsi), %edi
	subl	%edx, %edi
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rsi
	movl	(%rsi), %ebx
	cmpl	$9, %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$31, %ebx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ee_chinese@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %ebx
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %edi
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %eax
	movl	%eax, (%r14)
	addq	$4, %rsi
	incl	%edx
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%r14)
	jmp	LBB0_13
LBB0_14:
	movq	_horiz_offset@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	movq	_last_col@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jle	LBB0_16
## %bb.15:
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	movq	_COLS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	negl	%edx
	addl	%edx, %eax
	addl	$8, %eax
	jmp	LBB0_18
LBB0_16:
	cmpl	%ecx, %eax
	jge	LBB0_19
## %bb.17:
	leal	7(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	andl	$-8, %esi
	xorl	%edi, %edi
	callq	_max
LBB0_18:
	movl	%eax, (%rbx)
	movq	_scr_vert@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_point@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_midscreen
LBB0_19:
	movq	_text_win@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_scr_vert@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	subl	(%rbx), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmove                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_scr_horz,4,2                   ## @scr_horz
	.comm	_position,4,2                   ## @position
	.comm	_scr_pos,4,2                    ## @scr_pos
	.comm	_curr_line,8,3                  ## @curr_line
	.comm	_point,8,3                      ## @point
	.comm	_ee_chinese,8,3                 ## @ee_chinese
	.comm	_horiz_offset,4,2               ## @horiz_offset
	.comm	_last_col,4,2                   ## @last_col
	.comm	_COLS,4,2                       ## @COLS
	.comm	_scr_vert,4,2                   ## @scr_vert
	.comm	_text_win,4,2                   ## @text_win
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_pos                       ; -- Begin function find_pos
	.p2align	2
_find_pos:                              ; @find_pos
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x19, _scr_horz@GOTPAGE
Lloh1:
	ldr	x19, [x19, _scr_horz@GOTPAGEOFF]
	str	wzr, [x19]
Lloh2:
	adrp	x21, _position@GOTPAGE
Lloh3:
	ldr	x21, [x21, _position@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x21]
Lloh4:
	adrp	x22, _scr_pos@GOTPAGE
Lloh5:
	ldr	x22, [x22, _scr_pos@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh6:
	adrp	x20, _point@GOTPAGE
Lloh7:
	ldr	x20, [x20, _point@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w0, #0
	mov	w9, #1
Lloh8:
	adrp	x23, _curr_line@GOTPAGE
Lloh9:
	ldr	x23, [x23, _curr_line@GOTPAGEOFF]
Lloh10:
	adrp	x24, _ee_chinese@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ee_chinese@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_tabshift
	ldr	w8, [x19]
	add	w0, w8, w0
	str	w0, [x19]
	ldr	w9, [x21]
	ldr	x10, [x20]
	ldr	w8, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w9, #1
	str	w9, [x21]
	add	x10, x10, #4
	str	x10, [x20]
	cmp	w0, w8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23]
	ldr	w10, [x10]
	subs	w11, w10, w9
	b.le	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x20]
	ldr	w12, [x10]
	cmp	w12, #9
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w12, #31
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #2
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [x24]
	cbz	x13, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w12, #128
	ccmp	w11, #2, #8, hs
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #2
	str	w0, [x19]
	add	x10, x10, #4
	add	w9, w9, #1
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w0, w0, #1
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x19]
	b	LBB0_3
LBB0_13:
	mov	w0, #0
LBB0_14:
Lloh12:
	adrp	x21, _horiz_offset@GOTPAGE
Lloh13:
	ldr	x21, [x21, _horiz_offset@GOTPAGEOFF]
Lloh14:
	adrp	x9, _last_col@GOTPAGE
Lloh15:
	ldr	x9, [x9, _last_col@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh16:
	ldr	w9, [x9]
	sub	w10, w0, w8
	cmp	w10, w9
Lloh17:
	adrp	x22, _scr_vert@GOTPAGE
Lloh18:
	ldr	x22, [x22, _scr_vert@GOTPAGEOFF]
	b.le	LBB0_16
; %bb.15:
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w8, w9, w8, mi
Lloh19:
	adrp	x9, _COLS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _COLS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w8, w0, w8
	add	w0, w8, #8
	b	LBB0_18
LBB0_16:
	cmp	w0, w8
	b.ge	LBB0_19
; %bb.17:
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w8, w9, w8, mi
	sub	w1, w0, w8
	mov	w0, #0
	bl	_max
LBB0_18:
	str	w0, [x21]
	ldr	w0, [x22]
	ldr	x1, [x20]
	bl	_midscreen
LBB0_19:
Lloh22:
	adrp	x8, _text_win@GOTPAGE
Lloh23:
	ldr	x8, [x8, _text_win@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w1, [x22]
	ldr	w8, [x19]
	ldr	w9, [x21]
	sub	w2, w8, w9
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wmove
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_scr_horz,4,2                   ; @scr_horz
	.comm	_position,4,2                   ; @position
	.comm	_scr_pos,4,2                    ; @scr_pos
	.comm	_curr_line,8,3                  ; @curr_line
	.comm	_point,8,3                      ; @point
	.comm	_ee_chinese,8,3                 ; @ee_chinese
	.comm	_horiz_offset,4,2               ; @horiz_offset
	.comm	_last_col,4,2                   ; @last_col
	.comm	_COLS,4,2                       ; @COLS
	.comm	_scr_vert,4,2                   ; @scr_vert
	.comm	_text_win,4,2                   ; @text_win
.subsections_via_symbols
