	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_display                   ## -- Begin function init_display
	.p2align	4, 0x90
_init_display:                          ## @init_display
	.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
	xorl	%eax, %eax
	callq	_initscr
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	_SIGTSTP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-48(%rbp), %rbx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_sigaction
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movq	_curses_initialized@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_clear
	xorl	%eax, %eax
	callq	_refresh
	xorl	%eax, %eax
	callq	_noecho
	xorl	%eax, %eax
	callq	_crmode
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sig_sent@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGWINCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sig_winch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_LINES@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	_my_win@GOTPCREL(%rip), %r13
	movl	%edi, (%r13)
	movq	_COLS@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rsi, 8(%r13)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_newwin
	movq	%rax, 16(%r13)
	movq	_TRUE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_idlok
	movq	16(%r13), %rdi
	movl	(%r15), %esi
	callq	_scrollok
	movq	16(%r13), %rdi
	callq	_wclear
	movl	(%r12), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	decl	%edi
	movq	_his_win@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	movq	(%r14), %rsi
	movq	%rsi, 8(%rbx)
	movl	(%r13), %edx
	incl	%edx
	xorl	%ecx, %ecx
	callq	_newwin
	movq	%rax, 16(%rbx)
	movq	16(%r13), %rdi
	movl	(%r15), %esi
	callq	_idlok
	movq	16(%rbx), %rdi
	movl	(%r15), %esi
	callq	_scrollok
	movq	16(%rbx), %rdi
	callq	_wclear
	movq	(%r14), %rsi
	movl	(%r13), %edx
	movl	$1, %edi
	xorl	%ecx, %ecx
	callq	_newwin
	movq	_line_win@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	movl	$45, %esi
	movl	$45, %edx
	callq	_box
	movq	(%rbx), %rdi
	callq	_wrefresh
	leaq	L_.str.1(%rip), %rax
	movq	_current_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Terminal type unset or lacking necessary features."

	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_curses_initialized,4,2         ## @curses_initialized
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_sig_sent,4,2                   ## @sig_sent
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.comm	_SIGWINCH,4,2                   ## @SIGWINCH
	.comm	_sig_winch,4,2                  ## @sig_winch
	.comm	_LINES,4,2                      ## @LINES
	.comm	_my_win,24,3                    ## @my_win
	.comm	_COLS,8,3                       ## @COLS
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_his_win,24,3                   ## @his_win
	.comm	_line_win,8,3                   ## @line_win
L_.str.1:                               ## @.str.1
	.asciz	"No connection yet"

	.comm	_current_state,8,3              ## @current_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_display                   ; -- Begin function init_display
	.p2align	2
_init_display:                          ; @init_display
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_initscr
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x19, _SIGTSTP@GOTPAGE
Lloh3:
	ldr	x19, [x19, _SIGTSTP@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x1, #0
	bl	_sigaction
Lloh4:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_sigaddset
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	x2, #0
	bl	_sigaction
Lloh7:
	adrp	x8, _curses_initialized@GOTPAGE
Lloh8:
	ldr	x8, [x8, _curses_initialized@GOTPAGEOFF]
	mov	w9, #1
Lloh9:
	str	w9, [x8]
	bl	_clear
	bl	_refresh
	bl	_noecho
	bl	_crmode
Lloh10:
	adrp	x8, _SIGINT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x19, _sig_sent@GOTPAGE
Lloh14:
	ldr	x19, [x19, _sig_sent@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_signal
Lloh15:
	adrp	x8, _SIGPIPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGPIPE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_signal
Lloh18:
	adrp	x8, _SIGWINCH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIGWINCH@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _sig_winch@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sig_winch@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_signal
Lloh24:
	adrp	x21, _LINES@GOTPAGE
Lloh25:
	ldr	x21, [x21, _LINES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
Lloh26:
	adrp	x19, _my_win@GOTPAGE
Lloh27:
	ldr	x19, [x19, _my_win@GOTPAGEOFF]
	asr	w0, w8, #1
	str	w0, [x19]
Lloh28:
	adrp	x20, _COLS@GOTPAGE
Lloh29:
	ldr	x20, [x20, _COLS@GOTPAGEOFF]
	ldr	x1, [x20]
	str	x1, [x19, #8]
	mov	w2, #0
	mov	w3, #0
	bl	_newwin
	str	x0, [x19, #16]
Lloh30:
	adrp	x22, _TRUE@GOTPAGE
Lloh31:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_idlok
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
	bl	_scrollok
	ldr	x0, [x19, #16]
	bl	_wclear
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh32:
	adrp	x21, _his_win@GOTPAGE
Lloh33:
	ldr	x21, [x21, _his_win@GOTPAGEOFF]
	sub	w0, w8, #1
	str	w0, [x21]
	ldr	x1, [x20]
	str	x1, [x21, #8]
	ldr	w8, [x19]
	add	w2, w8, #1
	mov	w3, #0
	bl	_newwin
	str	x0, [x21, #16]
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
	bl	_idlok
	ldr	x0, [x21, #16]
	ldr	w1, [x22]
	bl	_scrollok
	ldr	x0, [x21, #16]
	bl	_wclear
	ldr	x1, [x20]
	ldr	w2, [x19]
	mov	w0, #1
	mov	w3, #0
	bl	_newwin
Lloh34:
	adrp	x19, _line_win@GOTPAGE
Lloh35:
	ldr	x19, [x19, _line_win@GOTPAGEOFF]
	str	x0, [x19]
	mov	w1, #45
	mov	w2, #45
	bl	_box
	ldr	x0, [x19]
	bl	_wrefresh
Lloh36:
	adrp	x8, _current_state@GOTPAGE
Lloh37:
	ldr	x8, [x8, _current_state@GOTPAGEOFF]
Lloh38:
	adrp	x9, l_.str.1@PAGE
Lloh39:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh40:
	str	x9, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Terminal type unset or lacking necessary features."

	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_curses_initialized,4,2         ; @curses_initialized
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_sig_sent,4,2                   ; @sig_sent
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.comm	_SIGWINCH,4,2                   ; @SIGWINCH
	.comm	_sig_winch,4,2                  ; @sig_winch
	.comm	_LINES,4,2                      ; @LINES
	.comm	_my_win,24,3                    ; @my_win
	.comm	_COLS,8,3                       ; @COLS
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_his_win,24,3                   ; @his_win
	.comm	_line_win,8,3                   ; @line_win
l_.str.1:                               ; @.str.1
	.asciz	"No connection yet"

	.comm	_current_state,8,3              ; @current_state
.subsections_via_symbols
