	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function has_detach_ability
_has_detach_ability:                    ## @has_detach_ability
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_has_detach_ability.kernel32(%rip), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_LoadLibrary
	movq	%rax, %rdi
	movq	%rax, _has_detach_ability.kernel32(%rip)
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:
	movq	_DebugSetProcessKillOnExit@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	callq	_GetProcAddress
	movq	%rax, (%r14)
LBB0_4:
	movq	_DebugActiveProcessStop@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movq	_has_detach_ability.kernel32(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_GetProcAddress
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_has_detach_ability.kernel32,8,3 ## @has_detach_ability.kernel32
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kernel32.dll"

	.comm	_DebugSetProcessKillOnExit,8,3  ## @DebugSetProcessKillOnExit
L_.str.1:                               ## @.str.1
	.asciz	"DebugSetProcessKillOnExit"

	.comm	_DebugActiveProcessStop,8,3     ## @DebugActiveProcessStop
L_.str.2:                               ## @.str.2
	.asciz	"DebugActiveProcessStop"

	.no_dead_strip	_has_detach_ability
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function has_detach_ability
_has_detach_ability:                    ; @has_detach_ability
	.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
	adrp	x19, _has_detach_ability.kernel32@PAGE
	ldr	x8, [x19, _has_detach_ability.kernel32@PAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LoadLibrary
	mov	x8, x0
	str	x0, [x19, _has_detach_ability.kernel32@PAGEOFF]
	cbz	x0, LBB0_7
LBB0_2:
Lloh2:
	adrp	x20, _DebugSetProcessKillOnExit@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DebugSetProcessKillOnExit@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_GetProcAddress
	str	x0, [x20]
LBB0_4:
Lloh6:
	adrp	x21, _DebugActiveProcessStop@GOTPAGE
Lloh7:
	ldr	x21, [x21, _DebugActiveProcessStop@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x19, _has_detach_ability.kernel32@PAGEOFF]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_GetProcAddress
	mov	x8, x0
	str	x0, [x21]
	ldr	x0, [x20]
LBB0_6:
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_has_detach_ability.kernel32,8,3 ; @has_detach_ability.kernel32
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kernel32.dll"

	.comm	_DebugSetProcessKillOnExit,8,3  ; @DebugSetProcessKillOnExit
l_.str.1:                               ; @.str.1
	.asciz	"DebugSetProcessKillOnExit"

	.comm	_DebugActiveProcessStop,8,3     ; @DebugActiveProcessStop
l_.str.2:                               ; @.str.2
	.asciz	"DebugActiveProcessStop"

	.no_dead_strip	_has_detach_ability
.subsections_via_symbols
