	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_lookup                    ## -- Begin function prof_lookup
	.p2align	4, 0x90
_prof_lookup:                           ## @prof_lookup
	.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
	subq	$40, %rsp
	.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, %r14
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_prof_tdata_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movq	%r13, %r15
	addq	$4, %r15
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ckh_search
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	leaq	-72(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_prof_lookup_global
	testq	%rax, %rax
	je	LBB0_5
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_2:
	movq	-48(%rbp), %rax
	movl	$1, (%rax)
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	(%r13), %esi
LBB0_3:
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	movq	-48(%rbp), %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	%eax, %r12d
	movl	$48, %edi
	callq	_sz_size2index
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_arena_ichoose
                                        ## kill: def $eax killed $eax def $rax
	movl	%r12d, %edi
	movl	$48, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	pushq	$1
	pushq	%rax
	callq	_iallocztm
	addq	$16, %rsp
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%r13, 40(%rax)
	movl	16(%r13), %ecx
	movl	%ecx, 32(%rax)
	movl	12(%r13), %ecx
	movl	%ecx, 28(%rax)
	addq	$24, %rax
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movslq	8(%r13), %rax
	leal	1(%rax), %edx
	movl	%edx, 8(%r13)
	movq	%rax, 8(%rcx)
	movl	$1, (%rcx)
	movq	_prof_tctx_state_initializing@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movq	-72(%rbp), %rdx
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ckh_insert
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.9:
	cmpl	$0, -60(%rbp)
	je	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r13, %rcx
	callq	_prof_gctx_try_destroy
LBB0_11:
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movq	-48(%rbp), %rsi
	movl	%eax, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_idalloctm
	jmp	LBB0_12
LBB0_6:
	cmpl	$0, -60(%rbp)
	je	LBB0_12
## %bb.7:
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r13, %rcx
	callq	_prof_gctx_try_destroy
	jmp	LBB0_12
LBB0_14:
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movq	-56(%rbp), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movq	_prof_tctx_state_nominal@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movq	-56(%rbp), %rdi
	addq	$8, %rdi
	movq	-48(%rbp), %rsi
	callq	_tctx_tree_insert
	movq	-56(%rbp), %rax
	decl	4(%rax)
	movq	%r14, %rdi
	callq	_tsd_tsdn
	movq	-56(%rbp), %rcx
	movl	(%rcx), %esi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
	.comm	_prof_tctx_state_initializing,4,2 ## @prof_tctx_state_initializing
	.comm	_prof_tctx_state_nominal,4,2    ## @prof_tctx_state_nominal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_lookup                    ; -- Begin function prof_lookup
	.p2align	2
_prof_lookup:                           ; @prof_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
	mov	x0, x19
	mov	w1, #0
	bl	_prof_tdata_get
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_tsd_tsdn
	mov	x21, x20
	ldr	w1, [x21], #4
	bl	_malloc_mutex_lock
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	bl	_ckh_search
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	w1, [x20]
	bl	_malloc_mutex_unlock
	add	x3, sp, #16
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_prof_lookup_global
	cbz	x0, LBB0_7
LBB0_3:
	mov	x0, #0
	b	LBB0_6
LBB0_4:
	ldr	x8, [sp, #24]
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	w1, [x20]
LBB0_5:
	bl	_malloc_mutex_unlock
	ldr	x0, [sp, #24]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	x0, x19
	bl	_tsd_tsdn
	mov	x22, x0
	mov	w0, #48
	bl	_sz_size2index
	mov	x23, x0
	mov	x0, x19
	mov	x1, #0
	bl	_arena_ichoose
	mov	x6, x0
	mov	w24, #1
	mov	x0, x22
	mov	w1, #48
	mov	x2, x23
	mov	w3, #0
	mov	x4, #0
	mov	w5, #1
	mov	w7, #1
	bl	_iallocztm
	str	x0, [sp, #24]
	cbz	x0, LBB0_12
; %bb.8:
	str	x20, [x0, #40]
	ldur	d0, [x20, #12]
	stur	d0, [x0, #28]
	add	x0, x0, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #24]
	str	x8, [x9, #16]
	ldrsw	x8, [x20, #8]
	add	w10, w8, #1
	str	w10, [x20, #8]
	str	x8, [x9, #8]
	str	w24, [x9]
Lloh3:
	adrp	x8, _prof_tctx_state_initializing@GOTPAGE
Lloh4:
	ldr	x8, [x8, _prof_tctx_state_initializing@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [sp, #24]
	str	w8, [x9, #4]
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	w1, [x20]
	bl	_malloc_mutex_lock
	ldp	x2, x3, [sp, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_ckh_insert
	mov	x21, x0
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	w1, [x20]
	bl	_malloc_mutex_unlock
	cbz	w21, LBB0_14
; %bb.9:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x20
	bl	_prof_gctx_try_destroy
LBB0_11:
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	x1, [sp, #24]
	mov	x2, #0
	mov	x3, #0
	mov	w4, #1
	mov	w5, #1
	bl	_idalloctm
	b	LBB0_3
LBB0_12:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_3
; %bb.13:
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x20
	bl	_prof_gctx_try_destroy
	mov	x0, #0
	b	LBB0_6
LBB0_14:
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	bl	_malloc_mutex_lock
Lloh6:
	adrp	x8, _prof_tctx_state_nominal@GOTPAGE
Lloh7:
	ldr	x8, [x8, _prof_tctx_state_nominal@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #24]
	str	w8, [x9, #4]
	ldr	x8, [sp, #8]
	add	x0, x8, #8
	ldr	x1, [sp, #24]
	bl	_tctx_tree_insert
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	sub	w9, w9, #1
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_tsd_tsdn
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
	.comm	_prof_tctx_state_initializing,4,2 ; @prof_tctx_state_initializing
	.comm	_prof_tctx_state_nominal,4,2    ; @prof_tctx_state_nominal
.subsections_via_symbols
