	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitLocks                      ## -- Begin function InitLocks
	.p2align	4, 0x90
_InitLocks:                             ## @InitLocks
	.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
	xorl	%eax, %eax
	callq	_NLOCKENTS
	movq	%rax, %r14
	movq	%rax, %rbx
	shrq	$63, %rbx
	addq	%rax, %rbx
	movq	%rbx, %r12
	sarq	%r12
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_MemSet
	movabsq	$17179869188, %r15              ## imm = 0x400000004
	movq	%r15, -72(%rbp)
	movq	_NUM_LOCK_PARTITIONS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HASH_ELEM@GOTPCREL(%rip), %r13
	movq	_HASH_BLOBS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%r13), %r8d
	movq	%rax, -64(%rbp)
	movq	_HASH_PARTITION@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	leaq	-72(%rbp), %r12
	movq	%r12, %rcx
	callq	_ShmemInitHash
	movq	_LockMethodLockHash@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	%r14, %r14
	andq	$-2, %rbx
	movq	%r15, -72(%rbp)
	movq	_proclock_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_NUM_LOCK_PARTITIONS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_HASH_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	orl	(%r13), %r8d
	movq	_HASH_PARTITION@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_ShmemInitHash
	movq	_LockMethodProcLockHash@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.2(%rip), %rdi
	leaq	-44(%rbp), %rdx
	movl	$4, %esi
	callq	_ShmemInitStruct
	movq	_FastPathStrongRelationLocks@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, -44(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_SpinLockInit
LBB0_2:
	movq	_LockMethodLocalHash@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_hash_destroy
LBB0_4:
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, -72(%rbp)
	movq	_HASH_BLOBS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r13), %ecx
	leaq	L_.str.3(%rip), %rdi
	leaq	-72(%rbp), %rdx
	movl	$16, %esi
	callq	_hash_create
	movq	%rax, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_LOCK_PARTITIONS,8,3        ## @NUM_LOCK_PARTITIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LOCK hash"

	.comm	_HASH_ELEM,4,2                  ## @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ## @HASH_BLOBS
	.comm	_HASH_PARTITION,4,2             ## @HASH_PARTITION
	.comm	_LockMethodLockHash,8,3         ## @LockMethodLockHash
	.comm	_proclock_hash,4,2              ## @proclock_hash
L_.str.1:                               ## @.str.1
	.asciz	"PROCLOCK hash"

	.comm	_HASH_FUNCTION,4,2              ## @HASH_FUNCTION
	.comm	_LockMethodProcLockHash,8,3     ## @LockMethodProcLockHash
L_.str.2:                               ## @.str.2
	.asciz	"Fast Path Strong Relation Lock Data"

	.comm	_FastPathStrongRelationLocks,8,3 ## @FastPathStrongRelationLocks
	.comm	_LockMethodLocalHash,8,3        ## @LockMethodLocalHash
L_.str.3:                               ## @.str.3
	.asciz	"LOCALLOCK hash"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitLocks                      ; -- Begin function InitLocks
	.p2align	2
_InitLocks:                             ; @InitLocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	bl	_NLOCKENTS
	mov	x19, x0
	cmp	x0, #0
	cinc	x23, x0, lt
	asr	x20, x23, #1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_MemSet
	movi.2s	v8, #4
	str	d8, [sp, #8]
Lloh0:
	adrp	x24, _NUM_LOCK_PARTITIONS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NUM_LOCK_PARTITIONS@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [sp, #16]
Lloh2:
	adrp	x21, _HASH_ELEM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HASH_ELEM@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x22, _HASH_BLOBS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HASH_BLOBS@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh6:
	adrp	x25, _HASH_PARTITION@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HASH_PARTITION@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w4, w8, w9
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_ShmemInitHash
Lloh10:
	adrp	x8, _LockMethodLockHash@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LockMethodLockHash@GOTPAGEOFF]
Lloh12:
	str	x0, [x8]
	lsl	x2, x19, #1
	and	x1, x23, #0xfffffffffffffffe
Lloh13:
	adrp	x8, _proclock_hash@GOTPAGE
Lloh14:
	ldr	x8, [x8, _proclock_hash@GOTPAGEOFF]
	str	d8, [sp, #8]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x24]
	str	x8, [sp, #16]
	ldr	w8, [x21]
Lloh16:
	adrp	x9, _HASH_FUNCTION@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HASH_FUNCTION@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w4, w8, w9
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x3, sp, #8
	bl	_ShmemInitHash
Lloh21:
	adrp	x8, _LockMethodProcLockHash@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LockMethodProcLockHash@GOTPAGEOFF]
Lloh23:
	str	x0, [x8]
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x2, sp, #4
	mov	w1, #4
	bl	_ShmemInitStruct
Lloh26:
	adrp	x8, _FastPathStrongRelationLocks@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FastPathStrongRelationLocks@GOTPAGEOFF]
Lloh28:
	str	x0, [x8]
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_SpinLockInit
LBB0_2:
Lloh29:
	adrp	x19, _LockMethodLocalHash@GOTPAGE
Lloh30:
	ldr	x19, [x19, _LockMethodLocalHash@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_hash_destroy
LBB0_4:
	movi.2s	v0, #4
	str	d0, [sp, #8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w3, w9, w8
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	w1, #16
	bl	_hash_create
	str	x0, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_LOCK_PARTITIONS,8,3        ; @NUM_LOCK_PARTITIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LOCK hash"

	.comm	_HASH_ELEM,4,2                  ; @HASH_ELEM
	.comm	_HASH_BLOBS,4,2                 ; @HASH_BLOBS
	.comm	_HASH_PARTITION,4,2             ; @HASH_PARTITION
	.comm	_LockMethodLockHash,8,3         ; @LockMethodLockHash
	.comm	_proclock_hash,4,2              ; @proclock_hash
l_.str.1:                               ; @.str.1
	.asciz	"PROCLOCK hash"

	.comm	_HASH_FUNCTION,4,2              ; @HASH_FUNCTION
	.comm	_LockMethodProcLockHash,8,3     ; @LockMethodProcLockHash
l_.str.2:                               ; @.str.2
	.asciz	"Fast Path Strong Relation Lock Data"

	.comm	_FastPathStrongRelationLocks,8,3 ; @FastPathStrongRelationLocks
	.comm	_LockMethodLocalHash,8,3        ; @LockMethodLocalHash
l_.str.3:                               ; @.str.3
	.asciz	"LOCALLOCK hash"

.subsections_via_symbols
