	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sc_get_softc                   ## -- Begin function sc_get_softc
	.p2align	4, 0x90
_sc_get_softc:                          ## @sc_get_softc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edi, %edi
	js	LBB0_4
## %bb.1:
	movq	_SC_MD_MAX@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_4
## %bb.2:
	movq	_sc_softcs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%edi, %eax
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rcx,%rdx,8), %rax
	movl	%edi, (%rcx,%rdx,8)
	movq	_SC_INIT_DONE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 4(%rcx,%rdx,8)
	je	LBB0_3
LBB0_4:
	popq	%rbp
	retq
LBB0_3:
	movq	$-1, 8(%rcx,%rdx,8)
	movq	_SC_CURSOR_CHAR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 20(%rcx,%rdx,8)
	movq	_SC_MOUSE_CHAR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 16(%rcx,%rdx,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SC_MD_MAX,4,2                  ## @SC_MD_MAX
	.comm	_sc_softcs,8,3                  ## @sc_softcs
	.comm	_SC_INIT_DONE,4,2               ## @SC_INIT_DONE
	.comm	_SC_CURSOR_CHAR,4,2             ## @SC_CURSOR_CHAR
	.comm	_SC_MOUSE_CHAR,4,2              ## @SC_MOUSE_CHAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sc_get_softc                   ; -- Begin function sc_get_softc
	.p2align	2
_sc_get_softc:                          ; @sc_get_softc
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	x0, #0
	tbnz	w8, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _SC_MD_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SC_MD_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w8
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _sc_softcs@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sc_softcs@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #24
	umaddl	x0, w8, w10, x9
	str	w8, [x0]
	ldr	w10, [x0, #4]
Lloh6:
	adrp	x11, _SC_INIT_DONE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SC_INIT_DONE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
LBB0_3:
	ret
LBB0_4:
	mov	w8, w8
	mov	w10, #24
	madd	x8, x8, x10, x9
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8, #8]
Lloh9:
	adrp	x9, _SC_CURSOR_CHAR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SC_CURSOR_CHAR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x8, #20]
Lloh12:
	adrp	x9, _SC_MOUSE_CHAR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SC_MOUSE_CHAR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SC_MD_MAX,4,2                  ; @SC_MD_MAX
	.comm	_sc_softcs,8,3                  ; @sc_softcs
	.comm	_SC_INIT_DONE,4,2               ; @SC_INIT_DONE
	.comm	_SC_CURSOR_CHAR,4,2             ; @SC_CURSOR_CHAR
	.comm	_SC_MOUSE_CHAR,4,2              ; @SC_MOUSE_CHAR
.subsections_via_symbols
