	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_proc_create                 ## -- Begin function dt_proc_create
	.p2align	4, 0x90
_dt_proc_create:                        ## @dt_proc_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$48, %esi
	callq	_dt_zalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	44(%rax), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	leaq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movl	4(%r15), %edx
	movq	%rbx, %r9
	addq	$8, %r9
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r14, %rcx
	movq	%r13, %r8
	callq	_proc_create
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %edi
	callq	_Pcreate_error
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dt_proc_error                  ## TAILCALL
LBB0_4:
	movq	%r15, 32(%rbx)
	movq	8(%rbx), %rdi
	callq	_proc_getpid
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	movq	_PR_RLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Punsetflags
	movq	8(%rbx), %rdi
	movq	_PR_KLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_Psetflags
	movl	(%r15), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dt_proc_create_thread
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movslq	(%rbx), %rcx
	movslq	(%rdi), %rdx
	decq	%rdx
	andq	%rcx, %rdx
	movq	(%rax,%rdx,8), %rcx
	movq	%rcx, 24(%rbx)
	movq	%rbx, (%rax,%rdx,8)
	addq	$4, %rdi
	movq	%rbx, %rsi
	callq	_dt_list_prepend
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_dt_dprintf
	incl	16(%rbx)
	movq	8(%rbx), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to execute %s: %s\n"

	.comm	_PR_RLC,4,2                     ## @PR_RLC
	.comm	_PR_KLC,4,2                     ## @PR_KLC
L_.str.1:                               ## @.str.1
	.asciz	"created pid %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_proc_create                 ; -- Begin function dt_proc_create
	.p2align	2
_dt_proc_create:                        ; @dt_proc_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x25, [x0, #8]
	mov	w1, #48
	bl	_dt_zalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x0, x0, #44
	mov	x1, #0
	bl	_pthread_mutex_init
	add	x0, x19, #40
	mov	x1, #0
	bl	_pthread_cond_init
	ldr	w2, [x20, #4]
	add	x5, x19, #8
	mov	x0, x21
	mov	x1, x24
	mov	x3, x23
	mov	x4, x22
	bl	_proc_create
	cbz	w0, LBB0_3
; %bb.2:
	bl	_Pcreate_error
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x0
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dt_proc_error
LBB0_3:
	str	x20, [x19, #32]
	ldr	x0, [x19, #8]
	bl	_proc_getpid
	str	w0, [x19]
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _PR_RLC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PR_RLC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_Punsetflags
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, _PR_KLC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PR_KLC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_Psetflags
	ldr	w2, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_dt_proc_create_thread
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
	ldr	x8, [x25, #8]
	ldr	w9, [x19]
	ldr	w10, [x25]
	sub	w10, w10, #1
	and	w9, w10, w9
	sbfiz	x9, x9, #3, #32
	ldr	x10, [x8, x9]
	str	x10, [x19, #24]
	str	x19, [x8, x9]
	add	x0, x25, #4
	mov	x1, x19
	bl	_dt_list_prepend
	ldr	w1, [x19]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dt_dprintf
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	x0, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to execute %s: %s\n"

	.comm	_PR_RLC,4,2                     ; @PR_RLC
	.comm	_PR_KLC,4,2                     ; @PR_KLC
l_.str.1:                               ; @.str.1
	.asciz	"created pid %d\n"

.subsections_via_symbols
