	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_alloc_rollback            ## -- Begin function prof_alloc_rollback
	.p2align	4, 0x90
_prof_alloc_rollback:                   ## @prof_alloc_rollback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	movq	%r15, %rdi
	callq	_tsd_reentrancy_level_get
	testq	%rax, %rax
	jle	LBB0_1
## %bb.8:
	xorl	%edi, %edi
	cmpq	$1, %r14
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_prof_tdata_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_prof_sample_threshold_update
LBB0_4:
	cmpq	$2, %r14
	jb	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movq	8(%r14), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_malloc_mutex_lock
	movl	$0, (%r14)
	movq	%r15, %rdi
	callq	_tsd_tsdn
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_prof_tctx_should_destroy
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_prof_tctx_destroy              ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_tsd_tsdn
	movq	8(%r14), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malloc_mutex_unlock            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_alloc_rollback            ; -- Begin function prof_alloc_rollback
	.p2align	2
_prof_alloc_rollback:                   ; @prof_alloc_rollback
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
	mov	x0, x20
	bl	_tsd_reentrancy_level_get
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	cmp	x19, #1
	cset	w0, eq
	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
	b	_assert
LBB0_2:
	cbz	w21, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_prof_tdata_get
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_prof_sample_threshold_update
LBB0_5:
	cmp	x19, #2
	b.lo	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	bl	_malloc_mutex_lock
	str	wzr, [x19]
	mov	x0, x20
	bl	_tsd_tsdn
	mov	x1, x19
	bl	_prof_tctx_should_destroy
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	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
	b	_prof_tctx_destroy
LBB0_8:
	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
LBB0_9:
	mov	x0, x20
	bl	_tsd_tsdn
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	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
	b	_malloc_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
.subsections_via_symbols
