	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_window_size              ## -- Begin function check_window_size
	.p2align	4, 0x90
_check_window_size:                     ## @check_window_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_pintr_disabled@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	%edi, %ebx
	movq	_disabled_cleanup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_cleanup_push
	leaq	-16(%rbp), %rdi
	leaq	-12(%rbp), %rsi
	callq	_GetSize
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_GettingInput@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_ClearLines
	xorl	%eax, %eax
	callq	_ClearDisp
	xorl	%edi, %edi
	callq	_MoveToLine
	xorl	%edi, %edi
	callq	_MoveToChar
	movl	-16(%rbp), %edi
	movl	-12(%rbp), %esi
	callq	_ChangeSize
	xorl	%eax, %eax
	callq	_Refresh
	jmp	LBB0_5
LBB0_4:
	movl	-16(%rbp), %edi
	movl	-12(%rbp), %esi
	callq	_ChangeSize
LBB0_5:
	movq	_windowchg@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_pintr_disabled@GOTPCREL(%rip), %rdi
	callq	_cleanup_until
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pintr_disabled,4,2             ## @pintr_disabled
	.comm	_disabled_cleanup,4,2           ## @disabled_cleanup
	.comm	_GettingInput,8,3               ## @GettingInput
	.comm	_windowchg,8,3                  ## @windowchg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_window_size              ; -- Begin function check_window_size
	.p2align	2
_check_window_size:                     ; @check_window_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, _pintr_disabled@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pintr_disabled@GOTPAGEOFF]
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
Lloh2:
	adrp	x8, _disabled_cleanup@GOTPAGE
Lloh3:
	ldr	x8, [x8, _disabled_cleanup@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_cleanup_push
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_GetSize
	cbnz	w19, LBB0_2
; %bb.1:
	cbz	x0, LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _GettingInput@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GettingInput@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_ClearLines
	bl	_ClearDisp
	mov	w0, #0
	bl	_MoveToLine
	mov	w0, #0
	bl	_MoveToChar
	ldp	w1, w0, [sp, #8]
	bl	_ChangeSize
	bl	_Refresh
	b	LBB0_5
LBB0_4:
	ldp	w1, w0, [sp, #8]
	bl	_ChangeSize
LBB0_5:
Lloh8:
	adrp	x8, _windowchg@GOTPAGE
Lloh9:
	ldr	x8, [x8, _windowchg@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	adrp	x0, _pintr_disabled@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pintr_disabled@GOTPAGEOFF]
	bl	_cleanup_until
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_pintr_disabled,4,2             ; @pintr_disabled
	.comm	_disabled_cleanup,4,2           ; @disabled_cleanup
	.comm	_GettingInput,8,3               ; @GettingInput
	.comm	_windowchg,8,3                  ; @windowchg
.subsections_via_symbols
