	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function detach_callback
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_detach_callback:                       ## @detach_callback
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_WIFSTOPPED
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_gdb_assert
	movq	_debug_lin_lwp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_WSTOPSIG
	movl	%eax, %edi
	callq	_strsignal
	movl	%eax, %r15d
	movl	8(%r12), %edi
	callq	_target_pid_to_str
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_fprintf_unfiltered
LBB0_6:
	cmpq	$0, 16(%r12)
	je	LBB0_14
## %bb.7:
	leaq	16(%r12), %r14
	movq	_errno@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movl	$1, %edi
	callq	_gdb_assert
	cmpq	$0, 16(%r12)
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%r12)
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, (%r15)
	movq	_PTRACE_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%r12), %edi
	callq	_GET_LWP
	movq	%rax, %rbx
	movq	(%r12), %rdi
	callq	_WSTOPSIG
	movl	%r13d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_ptrace
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%r12), %edi
	callq	_target_pid_to_str
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_safe_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_debug_lin_lwp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%r12), %edi
	callq	_target_pid_to_str
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_status_to_str
	movl	%r13d, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fprintf_unfiltered
	jmp	LBB0_13
LBB0_14:
	movl	8(%r12), %edi
	callq	_GET_LWP
	movq	%rax, %rbx
	movl	8(%r12), %edi
	callq	_GET_PID
	cmpq	%rax, %rbx
	je	LBB0_20
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	_PTRACE_DETACH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%r12), %edi
	callq	_GET_LWP
	movq	%rax, %rbx
	movq	(%r12), %rdi
	callq	_WSTOPSIG
	movl	%r15d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_ptrace
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movl	8(%r12), %edi
	callq	_target_pid_to_str
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_safe_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_error
LBB0_17:
	movq	_debug_lin_lwp@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.18:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	8(%r12), %edi
	callq	_target_pid_to_str
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_WSTOPSIG
	movl	%eax, %edi
	callq	_strsignal
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fprintf_unfiltered
LBB0_19:
	movl	8(%r12), %edi
	callq	_delete_lwp
LBB0_20:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_lin_lwp,8,3              ## @debug_lin_lwp
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DC:  Pending %s for %s on detach.\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_PTRACE_CONT,4,2                ## @PTRACE_CONT
L_.str.1:                               ## @.str.1
	.asciz	"Can't continue %s: %s"

L_.str.2:                               ## @.str.2
	.asciz	"DC:  PTRACE_CONTINUE (%s, 0, %s) (OK)\n"

	.comm	_PTRACE_DETACH,4,2              ## @PTRACE_DETACH
L_.str.3:                               ## @.str.3
	.asciz	"Can't detach %s: %s"

L_.str.4:                               ## @.str.4
	.asciz	"PTRACE_DETACH (%s, %s, 0) (OK)\n"

	.no_dead_strip	_detach_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detach_callback
_detach_callback:                       ; @detach_callback
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_WIFSTOPPED
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_gdb_assert
Lloh0:
	adrp	x25, _debug_lin_lwp@GOTPAGE
Lloh1:
	ldr	x25, [x25, _debug_lin_lwp@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh2:
	adrp	x24, _gdb_stdlog@GOTPAGE
Lloh3:
	ldr	x24, [x24, _gdb_stdlog@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w20, [x24]
	bl	_WSTOPSIG
	bl	_strsignal
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_target_pid_to_str
	mov	x3, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_fprintf_unfiltered
LBB0_6:
	mov	x27, x19
	ldr	x8, [x27, #16]!
Lloh6:
	adrp	x26, _errno@GOTPAGE
Lloh7:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
	cbz	x8, LBB0_14
; %bb.7:
Lloh8:
	adrp	x28, _PTRACE_CONT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PTRACE_CONT@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str.1@PAGE
Lloh11:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh12:
	adrp	x21, l_.str.2@PAGE
Lloh13:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x19]
	stp	xzr, xzr, [x27]
	mov	w0, #1
	bl	_gdb_assert
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x26]
	ldr	w22, [x28]
	ldr	w0, [x19, #8]
	bl	_GET_LWP
	mov	x23, x0
	ldr	x0, [x19]
	bl	_WSTOPSIG
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_13
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19, #8]
	bl	_target_pid_to_str
	mov	x22, x0
	ldr	x0, [x26]
	bl	_safe_strerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_error
	ldr	x8, [x25]
	cbz	x8, LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w22, [x24]
	ldr	w0, [x19, #8]
	bl	_target_pid_to_str
	mov	x23, x0
	ldr	x0, [x19]
	bl	_status_to_str
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_fprintf_unfiltered
	b	LBB0_8
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_GET_LWP
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_GET_PID
	cmp	x20, x0
	b.eq	LBB0_19
; %bb.15:
	str	xzr, [x26]
Lloh14:
	adrp	x8, _PTRACE_DETACH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PTRACE_DETACH@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	ldr	w0, [x19, #8]
	bl	_GET_LWP
	mov	x21, x0
	ldr	x0, [x19]
	bl	_WSTOPSIG
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_20
; %bb.16:
	ldr	x8, [x25]
	cbz	x8, LBB0_18
LBB0_17:
	ldr	w20, [x24]
	ldr	w0, [x19, #8]
	bl	_target_pid_to_str
	mov	x21, x0
	ldr	x0, [x19]
	bl	_WSTOPSIG
	bl	_strsignal
	mov	x3, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_fprintf_unfiltered
LBB0_18:
	ldr	w0, [x19, #8]
	bl	_delete_lwp
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	ldr	w0, [x19, #8]
	bl	_target_pid_to_str
	mov	x20, x0
	ldr	x0, [x26]
	bl	_safe_strerror
	mov	x2, x0
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_error
	ldr	x8, [x25]
	cbnz	x8, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_lin_lwp,8,3              ; @debug_lin_lwp
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DC:  Pending %s for %s on detach.\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_PTRACE_CONT,4,2                ; @PTRACE_CONT
l_.str.1:                               ; @.str.1
	.asciz	"Can't continue %s: %s"

l_.str.2:                               ; @.str.2
	.asciz	"DC:  PTRACE_CONTINUE (%s, 0, %s) (OK)\n"

	.comm	_PTRACE_DETACH,4,2              ; @PTRACE_DETACH
l_.str.3:                               ; @.str.3
	.asciz	"Can't detach %s: %s"

l_.str.4:                               ; @.str.4
	.asciz	"PTRACE_DETACH (%s, %s, 0) (OK)\n"

	.no_dead_strip	_detach_callback
.subsections_via_symbols
