	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptrace_wrap_instance_start     ## -- Begin function ptrace_wrap_instance_start
	.p2align	4, 0x90
_ptrace_wrap_instance_start:            ## @ptrace_wrap_instance_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	movq	%r14, %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	8(%r15), %rdi
	movq	_th_run@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_sem_destroy
	movq	%r15, %rdi
LBB0_5:
	callq	_sem_destroy
	movl	%r12d, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_th_run,8,3                     ## @th_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptrace_wrap_instance_start     ; -- Begin function ptrace_wrap_instance_start
	.p2align	2
_ptrace_wrap_instance_start:            ; @ptrace_wrap_instance_start
	.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	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	b	LBB0_5
LBB0_3:
	add	x0, x19, #8
Lloh0:
	adrp	x8, _th_run@GOTPAGE
Lloh1:
	ldr	x8, [x8, _th_run@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	mov	x1, #0
	mov	x3, x19
	bl	_pthread_create
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_sem_destroy
	mov	x0, x19
LBB0_5:
	bl	_sem_destroy
LBB0_6:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_th_run,8,3                     ; @th_run
.subsections_via_symbols
