	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_thread_name_set           ## -- Begin function prof_thread_name_set
	.p2align	4, 0x90
_prof_thread_name_set:                  ## @prof_thread_name_set
	.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	%rsi, %r12
	movq	%rdi, %r15
	callq	_tsd_reentrancy_level_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_prof_tdata_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testq	%r12, %r12
	je	LBB0_13
## %bb.3:
	movq	%rax, %r14
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_8
## %bb.4:
	movl	$1, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	movzbl	(%r12,%rax), %eax
	incl	%ebx
	testb	%al, %al
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %r13d
	movl	%r13d, %edi
	callq	_isgraph
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_isblank
	testl	%eax, %eax
	jne	LBB0_7
LBB0_13:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_prof_thread_name_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%rax, %rbx
	cmpq	$0, (%r14)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movq	(%r14), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_idalloctm
	movq	$0, (%r14)
LBB0_11:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jle	LBB0_15
## %bb.12:
	movq	%rbx, (%r14)
	jmp	LBB0_15
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_thread_name_set           ; -- Begin function prof_thread_name_set
	.p2align	2
_prof_thread_name_set:                  ; @prof_thread_name_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	bl	_tsd_reentrancy_level_get
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	mov	w1, #1
	bl	_prof_tdata_get
	cbz	x0, LBB0_13
; %bb.1:
	cbz	x21, LBB0_7
; %bb.2:
	mov	x19, x0
	ldrb	w8, [x21]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w23, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21, w23, uxtw]
	add	w23, w23, #1
	cbz	w8, LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w22, w8
	mov	x0, x22
	bl	_isgraph
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_isblank
	cbnz	w0, LBB0_4
LBB0_7:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x21
	bl	_prof_thread_name_alloc
	cbz	x0, LBB0_13
; %bb.9:
	mov	x21, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	x1, [x19]
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	mov	w5, #1
	bl	_idalloctm
	str	xzr, [x19]
LBB0_11:
	mov	x0, x21
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.12:
	mov	w0, #0
	str	x21, [x19]
	b	LBB0_15
LBB0_13:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
