	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malloc_mutex_lock_slow         ## -- Begin function malloc_mutex_lock_slow
	.p2align	4, 0x90
_malloc_mutex_lock_slow:                ## @malloc_mutex_lock_slow
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_NSTIME_ZERO_INITIALIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_ncpus@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_MALLOC_MUTEX_MAX_SPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmovlel	%eax, %ebx
	incl	%ebx
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_spin_cpu_spinwait
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_atomic_load_b
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_malloc_mutex_trylock_final
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	incl	32(%r13)
	jmp	LBB0_13
LBB0_6:
	movq	_config_stats@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
LBB0_7:
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_nstime_update
	leaq	-52(%rbp), %rdi
	movq	%r14, %rsi
	callq	_nstime_copy
	leaq	28(%r13), %r15
	movq	_ATOMIC_RELAXED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_atomic_fetch_add_u32
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_malloc_mutex_trylock_final
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r13, %rdi
	callq	_malloc_mutex_lock_final
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_atomic_fetch_sub_u32
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	callq	_nstime_update
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_nstime_copy
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_nstime_subtract
	incl	24(%r13)
	leaq	20(%r13), %rdi
	movq	%r12, %rsi
	callq	_nstime_add
	leaq	16(%r13), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nstime_compare
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	cmpq	8(%r13), %r14
	jge	LBB0_12
	jmp	LBB0_13
LBB0_8:
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_atomic_fetch_sub_u32
	incl	32(%r13)
	jmp	LBB0_13
LBB0_10:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_nstime_copy
	cmpq	8(%r13), %r14
	jl	LBB0_13
LBB0_12:
	incq	%r14
	movq	%r14, 8(%r13)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malloc_mutex_lock_final        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NSTIME_ZERO_INITIALIZER,4,2    ## @NSTIME_ZERO_INITIALIZER
	.comm	_ncpus,4,2                      ## @ncpus
	.comm	_MALLOC_MUTEX_MAX_SPIN,4,2      ## @MALLOC_MUTEX_MAX_SPIN
	.comm	_ATOMIC_RELAXED,4,2             ## @ATOMIC_RELAXED
	.comm	_config_stats,4,2               ## @config_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malloc_mutex_lock_slow         ; -- Begin function malloc_mutex_lock_slow
	.p2align	2
_malloc_mutex_lock_slow:                ; @malloc_mutex_lock_slow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _NSTIME_ZERO_INITIALIZER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSTIME_ZERO_INITIALIZER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _ncpus@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ncpus@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x22, _ATOMIC_RELAXED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ATOMIC_RELAXED@GOTPAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.1:
Lloh8:
	adrp	x8, _MALLOC_MUTEX_MAX_SPIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MALLOC_MUTEX_MAX_SPIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	add	w20, w8, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w20, w20, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_spin_cpu_spinwait
	ldr	w1, [x22]
	mov	x0, x19
	bl	_atomic_load_b
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_malloc_mutex_trylock_final
	cbnz	w0, LBB0_2
	b	LBB0_12
LBB0_5:
Lloh11:
	adrp	x8, _config_stats@GOTPAGE
Lloh12:
	ldr	x8, [x8, _config_stats@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w8, LBB0_14
LBB0_6:
	add	x0, sp, #12
	bl	_nstime_update
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_nstime_copy
	add	x21, x19, #28
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_fetch_add_u32
	mov	x20, x0
	mov	x0, x19
	bl	_malloc_mutex_trylock_final
	cbz	w0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_malloc_mutex_lock_final
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_fetch_sub_u32
	add	x0, sp, #8
	bl	_nstime_update
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_nstime_copy
	add	x0, sp, #4
	add	x1, sp, #12
	bl	_nstime_subtract
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	add	x0, x19, #20
	add	x1, sp, #4
	bl	_nstime_add
	add	x21, x19, #16
	add	x1, sp, #4
	mov	x0, x21
	bl	_nstime_compare
	tbz	x0, #63, LBB0_9
; %bb.8:
	add	x1, sp, #4
	mov	x0, x21
	bl	_nstime_copy
LBB0_9:
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_13
; %bb.10:
	add	x8, x20, #1
	str	x8, [x19, #8]
	b	LBB0_13
LBB0_11:
	ldr	w2, [x22]
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_fetch_sub_u32
LBB0_12:
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
LBB0_13:
	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
	add	sp, sp, #64
	ret
LBB0_14:
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_malloc_mutex_lock_final
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NSTIME_ZERO_INITIALIZER,4,2    ; @NSTIME_ZERO_INITIALIZER
	.comm	_ncpus,4,2                      ; @ncpus
	.comm	_MALLOC_MUTEX_MAX_SPIN,4,2      ; @MALLOC_MUTEX_MAX_SPIN
	.comm	_ATOMIC_RELAXED,4,2             ; @ATOMIC_RELAXED
	.comm	_config_stats,4,2               ; @config_stats
.subsections_via_symbols
