	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidc_text_get_cursor
_vidc_text_get_cursor:                  ## @vidc_text_get_cursor
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_VGA_REG_BASE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_LOC_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vga_get_crtc
	movl	%eax, %ebx
	shll	$8, %ebx
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_LOC_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vga_get_crtc
	movl	%eax, %ecx
	addl	%ebx, %ecx
	movq	_TEXT_COLS@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%eax, (%r15)
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movl	%edx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_REG_BASE,4,2               ## @VGA_REG_BASE
	.comm	_VGA_CRTC_CURSOR_LOC_HIGH,4,2   ## @VGA_CRTC_CURSOR_LOC_HIGH
	.comm	_VGA_CRTC_CURSOR_LOC_LOW,4,2    ## @VGA_CRTC_CURSOR_LOC_LOW
	.comm	_TEXT_COLS,4,2                  ## @TEXT_COLS
	.no_dead_strip	_vidc_text_get_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidc_text_get_cursor
_vidc_text_get_cursor:                  ; @vidc_text_get_cursor
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _VGA_REG_BASE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VGA_REG_BASE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _VGA_CRTC_CURSOR_LOC_HIGH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VGA_CRTC_CURSOR_LOC_HIGH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_vga_get_crtc
	mov	x21, x0
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _VGA_CRTC_CURSOR_LOC_LOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VGA_CRTC_CURSOR_LOC_LOW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_vga_get_crtc
	add	w8, w0, w21, lsl #8
Lloh8:
	adrp	x9, _TEXT_COLS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TEXT_COLS@GOTPAGEOFF]
	ldr	w10, [x9]
	sdiv	w10, w8, w10
	str	w10, [x20]
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_REG_BASE,4,2               ; @VGA_REG_BASE
	.comm	_VGA_CRTC_CURSOR_LOC_HIGH,4,2   ; @VGA_CRTC_CURSOR_LOC_HIGH
	.comm	_VGA_CRTC_CURSOR_LOC_LOW,4,2    ; @VGA_CRTC_CURSOR_LOC_LOW
	.comm	_TEXT_COLS,4,2                  ; @TEXT_COLS
	.no_dead_strip	_vidc_text_get_cursor
.subsections_via_symbols
