	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apw_init_shmem
_apw_init_shmem:                        ## @apw_init_shmem
	.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	_AddinShmemInitLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	leaq	L_.str(%rip), %rdi
	leaq	-28(%rbp), %rdx
	movl	$4, %esi
	callq	_ShmemInitStruct
	movq	_apw_state@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	cmpl	$0, -28(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_LWLockNewTrancheId
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_LWLockInitialize
	movq	_InvalidPid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	movq	%rax, 8(%rcx)
LBB0_2:
	movl	(%r14), %edi
	callq	_LWLockRelease
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_LWLockRegisterTranche
	movl	-28(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AddinShmemInitLock,4,2         ## @AddinShmemInitLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"autoprewarm"

	.comm	_apw_state,8,3                  ## @apw_state
	.comm	_InvalidPid,8,3                 ## @InvalidPid
	.no_dead_strip	_apw_init_shmem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apw_init_shmem
_apw_init_shmem:                        ; @apw_init_shmem
	.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
Lloh0:
	adrp	x20, _AddinShmemInitLock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AddinShmemInitLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	w1, #4
	bl	_ShmemInitStruct
Lloh7:
	adrp	x21, _apw_state@GOTPAGE
Lloh8:
	ldr	x21, [x21, _apw_state@GOTPAGEOFF]
	str	x0, [x21]
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_LWLockNewTrancheId
	mov	x1, x0
	mov	x0, x19
	bl	_LWLockInitialize
Lloh9:
	adrp	x8, _InvalidPid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidPid@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x21]
	stp	x8, x8, [x9, #8]
LBB0_2:
	ldr	w0, [x20]
	bl	_LWLockRelease
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_LWLockRegisterTranche
	ldr	w0, [sp, #12]
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AddinShmemInitLock,4,2         ; @AddinShmemInitLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"autoprewarm"

	.comm	_apw_state,8,3                  ; @apw_state
	.comm	_InvalidPid,8,3                 ; @InvalidPid
	.no_dead_strip	_apw_init_shmem
.subsections_via_symbols
