	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_thread_name_alloc
_prof_thread_name_alloc:                ## @prof_thread_name_alloc
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	incl	%eax
	movslq	%eax, %r14
	movq	%r14, %rdi
	callq	_sz_size2index
	movl	%eax, %r13d
	movq	_TSDN_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_arena_get
                                        ## kill: def $eax killed $eax def $rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	$1
	pushq	%rax
	callq	_iallocztm
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r12, %rbx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_TSDN_NULL,4,2                  ## @TSDN_NULL
	.no_dead_strip	_prof_thread_name_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_thread_name_alloc
_prof_thread_name_alloc:                ; @prof_thread_name_alloc
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
	cbz	w0, LBB0_5
; %bb.2:
	add	w8, w0, #1
	sxtw	x20, w8
	mov	x0, x20
	bl	_sz_size2index
	mov	x22, x0
Lloh0:
	adrp	x8, _TSDN_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TSDN_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #1
	bl	_arena_get
	mov	x6, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	mov	x4, #0
	mov	w5, #1
	mov	w7, #1
	bl	_iallocztm
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	b	LBB0_6
LBB0_4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_TSDN_NULL,4,2                  ; @TSDN_NULL
	.no_dead_strip	_prof_thread_name_alloc
.subsections_via_symbols
