	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptrace_wrap                    ## -- Begin function ptrace_wrap
	.p2align	4, 0x90
_ptrace_wrap:                           ## @ptrace_wrap
	.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, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	xorl	%eax, %eax
	callq	_pthread_self
	cmpq	%rax, %r14
	jne	LBB0_1
## %bb.2:
	movl	%r13d, %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ptrace                         ## TAILCALL
LBB0_1:
	movl	$0, -44(%rbp)
	movq	_PTRACE_WRAP_REQUEST_TYPE_PTRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	%r13d, 52(%rbx)
	movl	%r12d, 48(%rbx)
	movq	%r15, 40(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	leaq	-44(%rbp), %rax
	movq	%rax, 24(%rbx)
	leaq	20(%rbx), %rdi
	callq	_sem_post
	leaq	16(%rbx), %rdi
	callq	_sem_wait
	movl	-44(%rbp), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	8(%rbx), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRACE_WRAP_REQUEST_TYPE_PTRACE,4,2 ## @PTRACE_WRAP_REQUEST_TYPE_PTRACE
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptrace_wrap                    ; -- Begin function ptrace_wrap
	.p2align	2
_ptrace_wrap:                           ; @ptrace_wrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x24, [x0]
	bl	_pthread_self
	cmp	x24, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	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
	add	sp, sp, #80
	b	_ptrace
LBB0_2:
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _PTRACE_WRAP_REQUEST_TYPE_PTRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTRACE_WRAP_REQUEST_TYPE_PTRACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w23, w8, [x19, #52]
	str	w22, [x19, #48]
	stp	x20, x21, [x19, #32]
	add	x8, sp, #12
	str	x8, [x19, #24]
	add	x0, x19, #20
	bl	_sem_post
	add	x0, x19, #16
	bl	_sem_wait
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	ldr	x0, [x19, #8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRACE_WRAP_REQUEST_TYPE_PTRACE,4,2 ; @PTRACE_WRAP_REQUEST_TYPE_PTRACE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
