	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_string_intern          ## -- Begin function pmcstat_string_intern
	.p2align	4, 0x90
_pmcstat_string_intern:                 ## @pmcstat_string_intern
	.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	%rdi, %r14
	callq	_pmcstat_string_lookup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_pmcstat_string_compute_hash
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movl	$12, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_3:
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	%r14, %rdi
	callq	_strdup
	movl	%eax, 8(%rbx)
	movq	_pmcstat_string_hash@GOTPCREL(%rip), %rax
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movq	_ps_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Could not intern string"

	.comm	_pmcstat_string_hash,8,3        ## @pmcstat_string_hash
	.comm	_ps_next,4,2                    ## @ps_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcstat_string_intern          ; -- Begin function pmcstat_string_intern
	.p2align	2
_pmcstat_string_intern:                 ; @pmcstat_string_intern
	.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	x19, x0
	bl	_pmcstat_string_lookup
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_pmcstat_string_compute_hash
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	mov	w0, #12
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_3:
	stp	w22, w21, [x20]
	mov	x0, x19
	bl	_strdup
Lloh5:
	adrp	x8, _pmcstat_string_hash@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pmcstat_string_hash@GOTPAGEOFF]
	str	w0, [x20, #8]
Lloh7:
	ldr	x8, [x8]
	add	x0, x8, w21, sxtw #2
Lloh8:
	adrp	x8, _ps_next@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ps_next@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_LIST_INSERT_HEAD
LBB0_4:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Could not intern string"

	.comm	_pmcstat_string_hash,8,3        ; @pmcstat_string_hash
	.comm	_ps_next,4,2                    ; @ps_next
.subsections_via_symbols
