	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getWindowSize                  ## -- Begin function getWindowSize
	.p2align	4, 0x90
_getWindowSize:                         ## @getWindowSize
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_TIOCGWINSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movl	$1, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.1:
	movl	-96(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.7:
	movl	%eax, (%r15)
	movl	-92(%rbp), %eax
	movl	%eax, (%r12)
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	leaq	-88(%rbp), %rdx
	leaq	-84(%rbp), %rcx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_getCursorPosition
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	$12, %edx
	callq	_write
	cmpl	$12, %eax
	jne	LBB0_6
## %bb.4:
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_getCursorPosition
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	movl	-88(%rbp), %ecx
	movl	-84(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCGWINSZ,4,2                 ## @TIOCGWINSZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\033[999C\033[999B"

L_.str.1:                               ## @.str.1
	.asciz	"\033[%d;%dH"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getWindowSize                  ; -- Begin function getWindowSize
	.p2align	2
_getWindowSize:                         ; @getWindowSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _TIOCGWINSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIOCGWINSZ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	w0, #1
	bl	_ioctl
	ldr	w8, [sp, #16]
	cmn	w0, #1
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_5
; %bb.1:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x19
	bl	_getCursorPosition
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #12
	bl	_write
	cmp	w0, #12
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_getCursorPosition
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	ldp	w4, w3, [sp, #8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #32
	bl	_snprintf
	add	x0, sp, #24
	bl	_strlen
	mov	x2, x0
	add	x1, sp, #24
	mov	x0, x19
	bl	_write
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	str	w8, [x21]
	ldr	w8, [sp, #20]
	str	w8, [x20]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCGWINSZ,4,2                 ; @TIOCGWINSZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\033[999C\033[999B"

l_.str.1:                               ; @.str.1
	.asciz	"\033[%d;%dH"

.subsections_via_symbols
