	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptrace_wrap_func               ## -- Begin function ptrace_wrap_func
	.p2align	4, 0x90
_ptrace_wrap_func:                      ## @ptrace_wrap_func
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	xorl	%eax, %eax
	callq	_pthread_self
	cmpq	%rax, %r15
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	_PTRACE_WRAP_REQUEST_TYPE_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r12, 24(%rbx)
	movq	%r14, 32(%rbx)
	leaq	20(%rbx), %rdi
	callq	_sem_post
	leaq	16(%rbx), %rdi
	callq	_sem_wait
	movq	8(%rbx), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTRACE_WRAP_REQUEST_TYPE_FUNC,4,2 ## @PTRACE_WRAP_REQUEST_TYPE_FUNC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptrace_wrap_func               ; -- Begin function ptrace_wrap_func
	.p2align	2
_ptrace_wrap_func:                      ; @ptrace_wrap_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x0
	ldr	x21, [x0]
	bl	_pthread_self
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x1
LBB0_2:
Lloh0:
	adrp	x8, _PTRACE_WRAP_REQUEST_TYPE_FUNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTRACE_WRAP_REQUEST_TYPE_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	stp	x0, x20, [x19, #24]
	add	x0, x19, #20
	bl	_sem_post
	add	x0, x19, #16
	bl	_sem_wait
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PTRACE_WRAP_REQUEST_TYPE_FUNC,4,2 ; @PTRACE_WRAP_REQUEST_TYPE_FUNC
.subsections_via_symbols
