	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_ptrace                     ## -- Begin function cpu_ptrace
	.p2align	4, 0x90
_cpu_ptrace:                            ## @cpu_ptrace
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PT_FIRSTMACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %eax
	movl	$132, %ebx
	cmovnel	%esi, %ebx
	incl	%eax
	cmpl	%eax, %ebx
	movl	$128, %r13d
	cmovnel	%ebx, %r13d
	leal	-128(%r13), %eax
	cmpl	$8, %eax
	ja	LBB0_9
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movl	$115, %edx
	btl	%eax, %edx
	jae	LBB0_2
## %bb.11:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_ptrace_xstate              ## TAILCALL
LBB0_2:
	movl	$12, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.6:
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movl	-44(%rbp), %edx
	movq	(%r14), %rax
	movq	(%rax), %rax
	cmpl	(%rax), %edx
	jge	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_cpu_ptrace_setbase
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	8(%r14), %r12
	movq	_curthread@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_update_pcb_bases
LBB0_5:
	leaq	4(%r12), %rdi
	cmpl	$136, %r13d
	cmovneq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copyout                        ## TAILCALL
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_FIRSTMACH,4,2               ## @PT_FIRSTMACH
	.comm	_curthread,8,3                  ## @curthread
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SV_ILP32,4,2                   ## @SV_ILP32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_ptrace                     ; -- Begin function cpu_ptrace
	.p2align	2
_cpu_ptrace:                            ; @cpu_ptrace
	.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
Lloh0:
	adrp	x8, _PT_FIRSTMACH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_FIRSTMACH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #132
	cmp	w8, w1
	csel	w9, w9, w1, eq
	add	w8, w8, #1
	mov	w10, #128
	cmp	w9, w8
	csel	w19, w10, w9, eq
	sub	w8, w19, #128
	cmp	w8, #8
	b.hi	LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x20, x0
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #115
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	b	_cpu_ptrace_xstate
LBB0_3:
	tst	w8, #0xc
	b.eq	LBB0_7
; %bb.4:
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_copyin
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	w2, [sp, #12]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w2, w8
	b.ge	LBB0_10
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_cpu_ptrace_setbase
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	ldr	x22, [x20, #8]
Lloh3:
	adrp	x8, _curthread@GOTPAGE
Lloh4:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_update_pcb_bases
LBB0_9:
	add	x8, x22, #4
	cmp	w19, #136
	csel	x0, x8, x22, eq
	mov	x1, x21
	mov	w2, #4
	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
	b	_copyout
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_FIRSTMACH,4,2               ; @PT_FIRSTMACH
	.comm	_curthread,8,3                  ; @curthread
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SV_ILP32,4,2                   ; @SV_ILP32
.subsections_via_symbols
