	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function child_delete_thread
_child_delete_thread:                   ## @child_delete_thread
	.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	%rdi, %r14
	movq	_info_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_target_pid_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_unfiltered
LBB0_2:
	movq	%r14, %rdi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_delete_thread
	movq	_thread_head@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, (%rbx)
	jne	LBB0_3
## %bb.5:
	movq	16(%rbx), %rcx
	movq	%rcx, 16(%rax)
	movl	8(%rbx), %edi
	callq	_CloseHandle
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xfree                          ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_info_verbose,8,3               ## @info_verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Deleting %s]\n"

	.comm	_thread_head,24,3               ## @thread_head
	.no_dead_strip	_child_delete_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function child_delete_thread
_child_delete_thread:                   ; @child_delete_thread
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _info_verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _info_verbose@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pid_to_ptid
	bl	_target_pid_to_str
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_unfiltered
LBB0_2:
	mov	x0, x19
	bl	_pid_to_ptid
	bl	_delete_thread
Lloh5:
	adrp	x20, _thread_head@GOTPAGE
Lloh6:
	ldr	x20, [x20, _thread_head@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x20
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20]
	cmp	x9, x19
	b.ne	LBB0_3
; %bb.5:
	ldr	x9, [x20, #16]
	str	x9, [x8, #16]
	ldr	w0, [x20, #8]
	bl	_CloseHandle
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xfree
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_info_verbose,8,3               ; @info_verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Deleting %s]\n"

	.comm	_thread_head,24,3               ; @thread_head
	.no_dead_strip	_child_delete_thread
.subsections_via_symbols
