	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_ptrace_setbase
_cpu_ptrace_setbase:                    ## @cpu_ptrace_setbase
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_PCB_FULL_IRET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_pcb_flags
	movq	_PT_SETFSBASE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, 8(%rbx)
	movq	__ufssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_3
LBB0_2:
	movq	%r14, (%rbx)
	movq	__ugssel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCB_FULL_IRET,4,2              ## @PCB_FULL_IRET
	.comm	_PT_SETFSBASE,4,2               ## @PT_SETFSBASE
	.comm	__ufssel,4,2                    ## @_ufssel
	.comm	__ugssel,4,2                    ## @_ugssel
	.no_dead_strip	_cpu_ptrace_setbase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_ptrace_setbase
_cpu_ptrace_setbase:                    ; @cpu_ptrace_setbase
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _PCB_FULL_IRET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCB_FULL_IRET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_set_pcb_flags
Lloh3:
	adrp	x8, _PT_SETFSBASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PT_SETFSBASE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	str	x20, [x21, #8]
Lloh6:
	adrp	x8, __ufssel@GOTPAGE
Lloh7:
	ldr	x8, [x8, __ufssel@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9, #4]
	b	LBB0_3
LBB0_2:
	str	x20, [x21]
Lloh9:
	adrp	x8, __ugssel@GOTPAGE
Lloh10:
	ldr	x8, [x8, __ugssel@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PCB_FULL_IRET,4,2              ; @PCB_FULL_IRET
	.comm	_PT_SETFSBASE,4,2               ; @PT_SETFSBASE
	.comm	__ufssel,4,2                    ; @_ufssel
	.comm	__ugssel,4,2                    ; @_ugssel
	.no_dead_strip	_cpu_ptrace_setbase
.subsections_via_symbols
