	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_new_context               ## -- Begin function init_new_context
	.p2align	4, 0x90
_init_new_context:                      ## @init_new_context
	.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
	movq	%rsi, %rbx
	leaq	24(%rsi), %rdi
	callq	_spin_lock_init
	movq	$0, (%rbx)
	movq	_MM_NUM_TSBS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_2:
	movq	_MM_TSB_BASE@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	movq	%rbx, %rdi
	callq	_get_mm_rss
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_tsb_grow
	movq	16(%rbx), %rax
	movq	(%r15), %rcx
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rcx,8)
	sete	%dil
	callq	_unlikely
	movq	_ENOMEM@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovel	%edx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MM_NUM_TSBS,4,2                ## @MM_NUM_TSBS
	.comm	_MM_TSB_BASE,8,3                ## @MM_TSB_BASE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MM_TSB_HUGE,8,3                ## @MM_TSB_HUGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_new_context               ; -- Begin function init_new_context
	.p2align	2
_init_new_context:                      ; @init_new_context
	.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, x1
	add	x0, x1, #24
	bl	_spin_lock_init
	str	xzr, [x19]
Lloh0:
	adrp	x8, _MM_NUM_TSBS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MM_NUM_TSBS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x19, #16]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_2:
Lloh3:
	adrp	x21, _MM_TSB_BASE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MM_TSB_BASE@GOTPAGEOFF]
	ldr	x20, [x21]
	mov	x0, x19
	bl	_get_mm_rss
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_tsb_grow
	ldr	x8, [x19, #16]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MM_NUM_TSBS,4,2                ; @MM_NUM_TSBS
	.comm	_MM_TSB_BASE,8,3                ; @MM_TSB_BASE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MM_TSB_HUGE,8,3                ; @MM_TSB_HUGE
.subsections_via_symbols
