	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_detach
_elf_detach:                            ## @elf_detach
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_g_pid@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.1:
	movq	_g_status@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_WIFSTOPPED
	movq	%rax, %rcx
	xorl	%ebx, %ebx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	callq	_WSTOPSIG
LBB0_3:
	movq	_SIGSTOP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	cmovnel	%eax, %ebx
	movq	_PT_DETACH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	movl	$1, %edx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ptrace                         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_pid,8,3                      ## @g_pid
	.comm	_g_status,4,2                   ## @g_status
	.comm	_SIGSTOP,4,2                    ## @SIGSTOP
	.comm	_PT_DETACH,4,2                  ## @PT_DETACH
	.no_dead_strip	_elf_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_detach
_elf_detach:                            ; @elf_detach
	.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
Lloh0:
	adrp	x19, _g_pid@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_pid@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x20, _g_status@GOTPAGE
Lloh3:
	ldr	x20, [x20, _g_status@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_WIFSTOPPED
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
	bl	_WSTOPSIG
LBB0_3:
Lloh4:
	adrp	x8, _SIGSTOP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIGSTOP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w3, wzr, w0, eq
Lloh7:
	adrp	x8, _PT_DETACH@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PT_DETACH@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x1, [x19]
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ptrace
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_g_pid,8,3                      ; @g_pid
	.comm	_g_status,4,2                   ; @g_status
	.comm	_SIGSTOP,4,2                    ; @SIGSTOP
	.comm	_PT_DETACH,4,2                  ; @PT_DETACH
	.no_dead_strip	_elf_detach
.subsections_via_symbols
