	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cursor
_set_cursor:                            ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_IS_FG
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_console_blanked@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.2:
	movq	(%rbx), %rax
	movq	_KD_GRAPHICS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.3:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.4:
	movq	_sel_cons@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_clear_selection
LBB0_6:
	movq	%rbx, %rdi
	callq	_add_softcursor
	movl	8(%rbx), %eax
	andl	$15, %eax
	cmpl	$1, %eax
	jne	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hide_cursor                    ## TAILCALL
LBB0_7:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_CM_DRAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_console_blanked,8,3            ## @console_blanked
	.comm	_KD_GRAPHICS,8,3                ## @KD_GRAPHICS
	.comm	_sel_cons,8,3                   ## @sel_cons
	.comm	_CM_DRAW,4,2                    ## @CM_DRAW
	.no_dead_strip	_set_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cursor
_set_cursor:                            ; @set_cursor
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_IS_FG
	cbz	w0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _console_blanked@GOTPAGE
Lloh1:
	ldr	x8, [x8, _console_blanked@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _KD_GRAPHICS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KD_GRAPHICS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _sel_cons@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sel_cons@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.5:
	bl	_clear_selection
LBB0_6:
	mov	x0, x19
	bl	_add_softcursor
	ldr	w8, [x19, #8]
	and	w8, w8, #0xf
	cmp	w8, #1
	b.ne	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hide_cursor
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	x2, [x8]
Lloh9:
	adrp	x8, _CM_DRAW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CM_DRAW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_console_blanked,8,3            ; @console_blanked
	.comm	_KD_GRAPHICS,8,3                ; @KD_GRAPHICS
	.comm	_sel_cons,8,3                   ; @sel_cons
	.comm	_CM_DRAW,4,2                    ; @CM_DRAW
	.no_dead_strip	_set_cursor
.subsections_via_symbols
