	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getCursorPosition              ## -- Begin function getCursorPosition
	.p2align	4, 0x90
_getCursorPosition:                     ## @getCursorPosition
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %eax
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_write
	movl	$-1, %r12d
	cmpl	$4, %eax
	jne	LBB0_9
## %bb.1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbp), %rbx
	addq	$-80, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$82, (%rbx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	$31, %r14
	jne	LBB0_2
## %bb.5:
	movl	$31, %r14d
LBB0_6:
	movl	%r14d, %eax
	movb	$0, -80(%rbp,%rax)
	movq	_ESC@GOTPCREL(%rip), %rax
	movb	-80(%rbp), %cl
	cmpb	(%rax), %cl
	jne	LBB0_9
## %bb.7:
	cmpb	$91, -79(%rbp)
	jne	LBB0_9
## %bb.8:
	leaq	-78(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_sscanf
	xorl	%r12d, %r12d
	cmpl	$2, %eax
	setne	%r12b
	negl	%r12d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\033[6n"

	.comm	_ESC,1,0                        ## @ESC
L_.str.1:                               ## @.str.1
	.asciz	"%d;%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getCursorPosition              ; -- Begin function getCursorPosition
	.p2align	2
_getCursorPosition:                     ; @getCursorPosition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	mov	w2, #4
	bl	_write
	cmp	w0, #4
	b.ne	LBB0_8
; %bb.1:
	mov	x23, #0
	add	x24, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x24, x23
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #82
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x23, #31
	b.ne	LBB0_2
LBB0_5:
	add	x8, sp, #8
	strb	wzr, [x8, w23, uxtw]
	ldrb	w8, [sp, #8]
Lloh5:
	adrp	x9, _ESC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ESC@GOTPAGEOFF]
	ldrb	w9, [x9]
	mov	w0, #-1
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.6:
	ldrb	w8, [sp, #9]
	cmp	w8, #91
	b.ne	LBB0_9
; %bb.7:
	add	x8, sp, #8
	add	x0, x8, #2
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_sscanf
	cmp	w0, #2
	csetm	w0, ne
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\033[6n"

	.comm	_ESC,1,0                        ; @ESC
l_.str.1:                               ; @.str.1
	.asciz	"%d;%d"

.subsections_via_symbols
