	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function child_add_thread
_child_add_thread:                      ## @child_add_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %r14d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_thread_rec
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	$72, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movl	%r14d, 64(%rbx)
	movl	%r15d, 48(%rbx)
	movq	_thread_head@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 56(%rbx)
	movq	%rbx, (%rax)
	movl	%r14d, %edi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_add_thread
	movq	_debug_registers_used@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_CONTEXT_DEBUG_REGISTERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	48(%rbx), %edi
	movq	%rbx, %rsi
	callq	_GetThreadContext
	movl	%eax, %edi
	callq	_CHECK
	movq	_dr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	%rcx, 40(%rbx)
	movq	8(%rax), %rcx
	movq	%rcx, 32(%rbx)
	movq	16(%rax), %rcx
	movq	%rcx, 24(%rbx)
	movq	24(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movq	56(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	48(%rbx), %edi
	movq	%rbx, %rsi
	callq	_SetThreadContext
	movl	%eax, %edi
	callq	_CHECK
	movq	$0, (%rbx)
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_thread_head,8,3                ## @thread_head
	.comm	_debug_registers_used,8,3       ## @debug_registers_used
	.comm	_CONTEXT_DEBUG_REGISTERS,8,3    ## @CONTEXT_DEBUG_REGISTERS
	.comm	_dr,8,3                         ## @dr
	.no_dead_strip	_child_add_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function child_add_thread
_child_add_thread:                      ; @child_add_thread
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_thread_rec
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.1:
	mov	w0, #72
	bl	_xmalloc
	mov	x19, x0
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	str	w20, [x19, #64]
	str	w21, [x19, #48]
Lloh3:
	adrp	x8, _thread_head@GOTPAGE
Lloh4:
	ldr	x8, [x8, _thread_head@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x19, #56]
	str	x19, [x8]
	mov	x0, x20
	bl	_pid_to_ptid
	bl	_add_thread
Lloh5:
	adrp	x8, _debug_registers_used@GOTPAGE
Lloh6:
	ldr	x8, [x8, _debug_registers_used@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _CONTEXT_DEBUG_REGISTERS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONTEXT_DEBUG_REGISTERS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w0, [x19, #48]
	mov	x1, x19
	bl	_GetThreadContext
	bl	_CHECK
Lloh11:
	adrp	x8, _dr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dr@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x8]
	str	x9, [x19, #40]
	ldr	x9, [x8, #8]
	str	x9, [x19, #32]
	ldr	x9, [x8, #16]
	str	x9, [x19, #24]
	ldr	x9, [x8, #24]
	str	x9, [x19, #16]
	ldr	x8, [x8, #56]
	str	x8, [x19, #8]
	ldr	w0, [x19, #48]
	mov	x1, x19
	bl	_SetThreadContext
	bl	_CHECK
	str	xzr, [x19]
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_thread_head,8,3                ; @thread_head
	.comm	_debug_registers_used,8,3       ; @debug_registers_used
	.comm	_CONTEXT_DEBUG_REGISTERS,8,3    ; @CONTEXT_DEBUG_REGISTERS
	.comm	_dr,8,3                         ; @dr
	.no_dead_strip	_child_add_thread
.subsections_via_symbols
