	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_can_do_skas                    ## -- Begin function can_do_skas
	.p2align	4, 0x90
_can_do_skas:                           ## @can_do_skas
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_non_fatal
	xorl	%eax, %eax
	callq	_check_skas3_proc_mm
	xorl	%eax, %eax
	callq	_check_skas3_ptrace_faultinfo
	xorl	%eax, %eax
	callq	_check_skas3_ptrace_ldt
	movq	_proc_mm@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_ptrace_faultinfo@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_ptrace_ldt@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_3:
	movq	_skas_needs_stub@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Checking for the skas3 patch in the host:\n"

	.comm	_proc_mm,4,2                    ## @proc_mm
	.comm	_ptrace_faultinfo,4,2           ## @ptrace_faultinfo
	.comm	_ptrace_ldt,4,2                 ## @ptrace_ldt
	.comm	_skas_needs_stub,4,2            ## @skas_needs_stub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_can_do_skas                    ; -- Begin function can_do_skas
	.p2align	2
_can_do_skas:                           ; @can_do_skas
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_non_fatal
	bl	_check_skas3_proc_mm
	bl	_check_skas3_ptrace_faultinfo
	bl	_check_skas3_ptrace_ldt
Lloh2:
	adrp	x8, _proc_mm@GOTPAGE
Lloh3:
	ldr	x8, [x8, _proc_mm@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ptrace_faultinfo@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ptrace_faultinfo@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _ptrace_ldt@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ptrace_ldt@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	ccmp	w10, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _skas_needs_stub@GOTPAGE
Lloh12:
	ldr	x8, [x8, _skas_needs_stub@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Checking for the skas3 patch in the host:\n"

	.comm	_proc_mm,4,2                    ; @proc_mm
	.comm	_ptrace_faultinfo,4,2           ; @ptrace_faultinfo
	.comm	_ptrace_ldt,4,2                 ; @ptrace_ldt
	.comm	_skas_needs_stub,4,2            ; @skas_needs_stub
.subsections_via_symbols
