	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidc_text_set_cursor
_vidc_text_set_cursor:                  ## @vidc_text_set_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	%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
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	movq	_VGA_REG_BASE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_VGA_CRTC_MAX_SCAN_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vga_get_crtc
	movl	%eax, %r14d
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vga_get_crtc
	movl	%eax, %ebx
	andl	$192, %ebx
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vga_get_crtc
	cmpl	$1, %r13d
	jne	LBB0_2
## %bb.1:
	andl	$31, %r14d
	movq	_TEXT_COLS@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	addl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_LOC_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	sarl	$8, %edx
	callq	_vga_set_crtc
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_LOC_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r15b, %edx
	callq	_vga_set_crtc
	jmp	LBB0_3
LBB0_2:
	orl	$32, %ebx
	movl	%eax, %r14d
LBB0_3:
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_vga_set_crtc
	movl	(%r12), %edi
	movq	_VGA_CRTC_CURSOR_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vga_set_crtc                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VGA_REG_BASE,4,2               ## @VGA_REG_BASE
	.comm	_VGA_CRTC_MAX_SCAN_LINE,4,2     ## @VGA_CRTC_MAX_SCAN_LINE
	.comm	_VGA_CRTC_CURSOR_START,4,2      ## @VGA_CRTC_CURSOR_START
	.comm	_VGA_CRTC_CURSOR_END,4,2        ## @VGA_CRTC_CURSOR_END
	.comm	_TEXT_COLS,4,2                  ## @TEXT_COLS
	.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
	.no_dead_strip	_vidc_text_set_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_set_cursor
_vidc_text_set_cursor:                  ; @vidc_text_set_cursor
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _VGA_REG_BASE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VGA_REG_BASE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x8, _VGA_CRTC_MAX_SCAN_LINE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VGA_CRTC_MAX_SCAN_LINE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_vga_get_crtc
	mov	x23, x0
	ldr	w0, [x25]
Lloh5:
	adrp	x26, _VGA_CRTC_CURSOR_START@GOTPAGE
Lloh6:
	ldr	x26, [x26, _VGA_CRTC_CURSOR_START@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_vga_get_crtc
	and	w19, w0, #0xc0
	ldr	w0, [x25]
Lloh7:
	adrp	x27, _VGA_CRTC_CURSOR_END@GOTPAGE
Lloh8:
	ldr	x27, [x27, _VGA_CRTC_CURSOR_END@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_vga_get_crtc
	cmp	w24, #1
	b.ne	LBB0_2
; %bb.1:
	and	w20, w23, #0x1f
Lloh9:
	adrp	x8, _TEXT_COLS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TEXT_COLS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	madd	w21, w8, w22, w21
	ldr	w0, [x25]
Lloh12:
	adrp	x8, _VGA_CRTC_CURSOR_LOC_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VGA_CRTC_CURSOR_LOC_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	asr	w2, w21, #8
	bl	_vga_set_crtc
	ldr	w0, [x25]
Lloh15:
	adrp	x8, _VGA_CRTC_CURSOR_LOC_LOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VGA_CRTC_CURSOR_LOC_LOW@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	and	w2, w21, #0xff
	bl	_vga_set_crtc
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	orr	w19, w19, #0x20
LBB0_3:
	ldr	w0, [x25]
	ldr	w1, [x26]
	mov	x2, x19
	bl	_vga_set_crtc
	ldr	w0, [x25]
	ldr	w1, [x27]
	mov	x2, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_vga_set_crtc
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VGA_REG_BASE,4,2               ; @VGA_REG_BASE
	.comm	_VGA_CRTC_MAX_SCAN_LINE,4,2     ; @VGA_CRTC_MAX_SCAN_LINE
	.comm	_VGA_CRTC_CURSOR_START,4,2      ; @VGA_CRTC_CURSOR_START
	.comm	_VGA_CRTC_CURSOR_END,4,2        ; @VGA_CRTC_CURSOR_END
	.comm	_TEXT_COLS,4,2                  ; @TEXT_COLS
	.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
	.no_dead_strip	_vidc_text_set_cursor
.subsections_via_symbols
