	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_up_term                    ## -- Begin function set_up_term
	.p2align	4, 0x90
_set_up_term:                           ## @set_up_term
	.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	_curses_initialized@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_initscr
	xorl	%eax, %eax
	callq	_savetty
	xorl	%eax, %eax
	callq	_noecho
	xorl	%eax, %eax
	callq	_raw
	xorl	%eax, %eax
	callq	_nonl
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_LINES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_COLS@GOTPCREL(%rip), %r12
	movq	_info_window@GOTPCREL(%rip), %r13
	cmpl	$16, %eax
	jl	LBB0_5
## %bb.3:
	cmpl	$80, (%r12)
	jl	LBB0_5
## %bb.4:
	movl	$-8, %ecx
	cmpq	$0, (%r13)
	jne	LBB0_6
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r13)
	movl	$-2, %ecx
LBB0_6:
	addl	%ecx, %eax
	movq	_last_line@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_stdscr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_TRUE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_idlok
	movl	(%r12), %esi
	movl	(%rbx), %edx
	decl	%edx
	movl	$1, %edi
	xorl	%ecx, %ecx
	callq	_newwin
	movq	_com_win@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_keypad
	movq	(%r15), %rdi
	movq	(%r14), %rsi
	callq	_idlok
	movq	(%r15), %rdi
	movq	%rbx, %r15
	callq	_wrefresh
	movq	(%r13), %rax
	cmpq	$1, %rax
	movl	$0, %edi
	sbbl	%edi, %edi
	orl	$-7, %edi
	testq	%rax, %rax
	movl	$6, %edx
	movl	$0, %eax
	cmovel	%eax, %edx
	addl	(%rbx), %edi
	movl	(%r12), %esi
	xorl	%ecx, %ecx
	callq	_newwin
	movq	_text_win@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_keypad
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_idlok
	movq	(%rbx), %rdi
	callq	_wrefresh
	movl	(%r15), %edi
	decl	%edi
	movl	(%r12), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_newwin
	movq	_help_win@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_keypad
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_idlok
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.7:
	movq	_CONTROL_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_info_type@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %esi
	movl	$6, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_newwin
	movq	_info_win@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	%rax, %rdi
	callq	_werase
	xorl	%eax, %eax
	callq	_paint_info_win
LBB0_8:
	movl	(%r12), %eax
	leal	-1(%rax), %ecx
	movq	_last_col@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	(%r15), %ecx
	movq	_local_LINES@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_local_COLS@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curses_initialized,8,3         ## @curses_initialized
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_LINES,4,2                      ## @LINES
	.comm	_COLS,4,2                       ## @COLS
	.comm	_info_window,8,3                ## @info_window
	.comm	_last_line,4,2                  ## @last_line
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_stdscr,8,3                     ## @stdscr
	.comm	_com_win,8,3                    ## @com_win
	.comm	_text_win,8,3                   ## @text_win
	.comm	_help_win,8,3                   ## @help_win
	.comm	_CONTROL_KEYS,4,2               ## @CONTROL_KEYS
	.comm	_info_type,4,2                  ## @info_type
	.comm	_info_win,8,3                   ## @info_win
	.comm	_last_col,4,2                   ## @last_col
	.comm	_local_LINES,4,2                ## @local_LINES
	.comm	_local_COLS,4,2                 ## @local_COLS
	.comm	_A_NC_BIG5,4,2                  ## @A_NC_BIG5
	.comm	_ee_chinese,8,3                 ## @ee_chinese
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_up_term                    ; -- Begin function set_up_term
	.p2align	2
_set_up_term:                           ; @set_up_term
	.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, _curses_initialized@GOTPAGE
Lloh1:
	ldr	x19, [x19, _curses_initialized@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x21, _TRUE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_initscr
	bl	_savetty
	bl	_noecho
	bl	_raw
	bl	_nonl
	ldr	x8, [x21]
	str	x8, [x19]
LBB0_2:
Lloh4:
	adrp	x19, _LINES@GOTPAGE
Lloh5:
	ldr	x19, [x19, _LINES@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh6:
	adrp	x20, _COLS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _COLS@GOTPAGEOFF]
Lloh8:
	adrp	x22, _info_window@GOTPAGE
Lloh9:
	ldr	x22, [x22, _info_window@GOTPAGEOFF]
	cmp	w8, #16
	b.lt	LBB0_5
; %bb.3:
	ldr	w9, [x20]
	ldr	x10, [x22]
	cmp	w9, #80
	ccmp	x10, #0, #4, ge
	b.eq	LBB0_5
; %bb.4:
	mov	w9, #-8
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x9, _FALSE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x22]
	mov	w9, #-2
LBB0_6:
Lloh13:
	adrp	x10, _last_line@GOTPAGE
Lloh14:
	ldr	x10, [x10, _last_line@GOTPAGEOFF]
	add	w8, w8, w9
Lloh15:
	str	w8, [x10]
Lloh16:
	adrp	x8, _stdscr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stdscr@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	ldr	x1, [x21]
	bl	_idlok
	ldr	w1, [x20]
	ldr	w8, [x19]
	sub	w2, w8, #1
	mov	w0, #1
	mov	w3, #0
	bl	_newwin
Lloh19:
	adrp	x23, _com_win@GOTPAGE
Lloh20:
	ldr	x23, [x23, _com_win@GOTPAGEOFF]
	str	x0, [x23]
	ldr	x1, [x21]
	bl	_keypad
	ldr	x0, [x23]
	ldr	x1, [x21]
	bl	_idlok
	ldr	x0, [x23]
	bl	_wrefresh
	ldr	x8, [x22]
	cmp	x8, #0
	mov	w8, #-7
	csinv	w8, w8, wzr, ne
	mov	w9, #6
	csel	w2, wzr, w9, eq
	ldr	w9, [x19]
	add	w0, w9, w8
	ldr	w1, [x20]
	mov	w3, #0
	bl	_newwin
Lloh21:
	adrp	x23, _text_win@GOTPAGE
Lloh22:
	ldr	x23, [x23, _text_win@GOTPAGEOFF]
	str	x0, [x23]
	ldr	x1, [x21]
	bl	_keypad
	ldr	x0, [x23]
	ldr	x1, [x21]
	bl	_idlok
	ldr	x0, [x23]
	bl	_wrefresh
	ldr	w8, [x19]
	sub	w0, w8, #1
	ldr	w1, [x20]
	mov	w2, #0
	mov	w3, #0
	bl	_newwin
Lloh23:
	adrp	x23, _help_win@GOTPAGE
Lloh24:
	ldr	x23, [x23, _help_win@GOTPAGEOFF]
	str	x0, [x23]
	ldr	x1, [x21]
	bl	_keypad
	ldr	x0, [x23]
	ldr	x1, [x21]
	bl	_idlok
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.7:
Lloh25:
	adrp	x8, _CONTROL_KEYS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CONTROL_KEYS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _info_type@GOTPAGE
Lloh29:
	ldr	x9, [x9, _info_type@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
	ldr	w1, [x20]
	mov	w0, #6
	mov	w2, #0
	mov	w3, #0
	bl	_newwin
Lloh31:
	adrp	x8, _info_win@GOTPAGE
Lloh32:
	ldr	x8, [x8, _info_win@GOTPAGEOFF]
Lloh33:
	str	x0, [x8]
	bl	_werase
	bl	_paint_info_win
LBB0_8:
	ldr	w8, [x20]
	sub	w9, w8, #1
Lloh34:
	adrp	x10, _last_col@GOTPAGE
Lloh35:
	ldr	x10, [x10, _last_col@GOTPAGEOFF]
Lloh36:
	str	w9, [x10]
	ldr	w9, [x19]
Lloh37:
	adrp	x10, _local_LINES@GOTPAGE
Lloh38:
	ldr	x10, [x10, _local_LINES@GOTPAGEOFF]
Lloh39:
	str	w9, [x10]
Lloh40:
	adrp	x9, _local_COLS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _local_COLS@GOTPAGEOFF]
Lloh42:
	str	w8, [x9]
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_curses_initialized,8,3         ; @curses_initialized
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_LINES,4,2                      ; @LINES
	.comm	_COLS,4,2                       ; @COLS
	.comm	_info_window,8,3                ; @info_window
	.comm	_last_line,4,2                  ; @last_line
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_stdscr,8,3                     ; @stdscr
	.comm	_com_win,8,3                    ; @com_win
	.comm	_text_win,8,3                   ; @text_win
	.comm	_help_win,8,3                   ; @help_win
	.comm	_CONTROL_KEYS,4,2               ; @CONTROL_KEYS
	.comm	_info_type,4,2                  ; @info_type
	.comm	_info_win,8,3                   ; @info_win
	.comm	_last_col,4,2                   ; @last_col
	.comm	_local_LINES,4,2                ; @local_LINES
	.comm	_local_COLS,4,2                 ; @local_COLS
	.comm	_A_NC_BIG5,4,2                  ; @A_NC_BIG5
	.comm	_ee_chinese,8,3                 ; @ee_chinese
.subsections_via_symbols
