	.file	"extr_lock.c_InitLocks.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LOCK hash"
.LC1:
	.string	"PROCLOCK hash"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Fast Path Strong Relation Lock Data"
	.section	.rodata.str1.1
.LC3:
	.string	"LOCALLOCK hash"
	.text
	.p2align 4
	.globl	InitLocks
	.type	InitLocks, @function
InitLocks:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movabs	r13, 17179869188
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 16[rsp]
	call	NLOCKENTS@PLT
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r12
	mov	rbx, rax
	mov	rbp, rax
	shr	rbx, 63
	add	rbx, rax
	call	MemSet@PLT
	sar	rbx
	mov	rcx, r12
	mov	rdx, rbp
	mov	rax, QWORD PTR NUM_LOCK_PARTITIONS[rip]
	mov	rsi, rbx
	mov	r8d, DWORD PTR HASH_ELEM[rip]
	lea	rdi, .LC0[rip]
	or	r8d, DWORD PTR HASH_BLOBS[rip]
	or	r8d, DWORD PTR HASH_PARTITION[rip]
	mov	QWORD PTR 16[rsp], r13
	mov	QWORD PTR 24[rsp], rax
	call	ShmemInitHash@PLT
	mov	r8d, DWORD PTR HASH_ELEM[rip]
	lea	rdx, [rbp+rbp]
	mov	rcx, r12
	or	r8d, DWORD PTR HASH_FUNCTION[rip]
	lea	rsi, [rbx+rbx]
	mov	QWORD PTR LockMethodLockHash[rip], rax
	lea	rdi, .LC1[rip]
	mov	eax, DWORD PTR proclock_hash[rip]
	or	r8d, DWORD PTR HASH_PARTITION[rip]
	mov	QWORD PTR 16[rsp], r13
	mov	DWORD PTR 32[rsp], eax
	mov	rax, QWORD PTR NUM_LOCK_PARTITIONS[rip]
	mov	QWORD PTR 24[rsp], rax
	call	ShmemInitHash@PLT
	lea	rdx, 12[rsp]
	mov	esi, 4
	lea	rdi, .LC2[rip]
	mov	QWORD PTR LockMethodProcLockHash[rip], rax
	call	ShmemInitStruct@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	QWORD PTR FastPathStrongRelationLocks[rip], rax
	test	edx, edx
	je	.L10
	mov	rdi, QWORD PTR LockMethodLocalHash[rip]
	test	rdi, rdi
	jne	.L11
.L3:
	mov	ecx, DWORD PTR HASH_ELEM[rip]
	mov	rdx, r12
	mov	esi, 16
	movabs	rax, 17179869188
	or	ecx, DWORD PTR HASH_BLOBS[rip]
	lea	rdi, .LC3[rip]
	mov	QWORD PTR 16[rsp], rax
	call	hash_create@PLT
	mov	QWORD PTR LockMethodLocalHash[rip], rax
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rax
	call	SpinLockInit@PLT
	mov	rdi, QWORD PTR LockMethodLocalHash[rip]
	test	rdi, rdi
	je	.L3
.L11:
	call	hash_destroy@PLT
	jmp	.L3
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	InitLocks, .-InitLocks
	.comm	proclock_hash,4,4
	.comm	NUM_LOCK_PARTITIONS,8,8
	.comm	LockMethodProcLockHash,8,8
	.comm	LockMethodLockHash,8,8
	.comm	LockMethodLocalHash,8,8
	.comm	HASH_PARTITION,4,4
	.comm	HASH_FUNCTION,4,4
	.comm	HASH_ELEM,4,4
	.comm	HASH_BLOBS,4,4
	.comm	FastPathStrongRelationLocks,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lock.c_InitLocks.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LOCK hash\000"
	.align	2
.LC1:
	.ascii	"PROCLOCK hash\000"
	.align	2
.LC2:
	.ascii	"Fast Path Strong Relation Lock Data\000"
	.align	2
.LC3:
	.ascii	"LOCALLOCK hash\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	InitLocks
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitLocks, %function
InitLocks:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L13
	sub	sp, sp, #32
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	NLOCKENTS
	mov	r4, r0
	mov	r5, #4
	ldr	r7, .L13+4
	ldr	r8, .L13+8
	ldr	r10, .L13+12
	mov	r2, #16
	mov	r1, #0
	add	r6, r0, r0, lsr #31
	add	r0, sp, #12
	bl	MemSet
	ldr	r1, [r8]
	ldr	r3, [r7]
	ldr	r2, [r10]
	ldr	r9, .L13+16
	orr	r3, r3, r1
	ldr	ip, [r9]
	orr	r3, r3, r2
	asr	r6, r6, #1
	mov	r1, r6
	mov	r2, r4
	str	r3, [sp]
	ldr	r0, .L13+20
	add	r3, sp, #12
	str	ip, [sp, #20]
	str	r5, [sp, #12]
	str	r5, [sp, #16]
	bl	ShmemInitHash
	mov	ip, r0
	ldr	r2, .L13+24
	ldr	r3, [r7]
	ldr	r0, [r2]
	ldr	r1, [r10]
	ldr	r2, .L13+28
	orr	r3, r3, r0
	ldr	r10, .L13+32
	ldr	lr, [r2]
	ldr	r9, [r9]
	orr	r3, r3, r1
	str	r3, [sp]
	lsl	r1, r6, #1
	lsl	r2, r4, #1
	add	r3, sp, #12
	str	ip, [r10]
	ldr	r0, .L13+36
	str	lr, [sp, #24]
	str	r9, [sp, #20]
	str	r5, [sp, #12]
	str	r5, [sp, #16]
	bl	ShmemInitHash
	mov	ip, r0
	ldr	r3, .L13+40
	add	r2, sp, #8
	mov	r1, r5
	ldr	r0, .L13+44
	str	ip, [r3]
	bl	ShmemInitStruct
	ldr	r2, [sp, #8]
	ldr	r3, .L13+48
	cmp	r2, #0
	str	r0, [r3]
	beq	.L10
	ldr	r4, .L13+52
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L11
.L3:
	mov	ip, #4
	ldr	r1, [r7]
	ldr	r3, [r8]
	add	r2, sp, #12
	orr	r3, r1, r3
	ldr	r0, .L13+56
	mov	r1, #16
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	bl	hash_create
	ldr	r3, .L13
	str	r0, [r4]
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r4, .L13+52
	bl	SpinLockInit
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L3
.L11:
	bl	hash_destroy
	b	.L3
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	HASH_ELEM
	.word	HASH_BLOBS
	.word	HASH_PARTITION
	.word	NUM_LOCK_PARTITIONS
	.word	.LC0
	.word	HASH_FUNCTION
	.word	proclock_hash
	.word	LockMethodLockHash
	.word	.LC1
	.word	LockMethodProcLockHash
	.word	.LC2
	.word	FastPathStrongRelationLocks
	.word	LockMethodLocalHash
	.word	.LC3
	.size	InitLocks, .-InitLocks
	.comm	proclock_hash,4,4
	.comm	NUM_LOCK_PARTITIONS,4,4
	.comm	LockMethodProcLockHash,4,4
	.comm	LockMethodLockHash,4,4
	.comm	LockMethodLocalHash,4,4
	.comm	HASH_PARTITION,4,4
	.comm	HASH_FUNCTION,4,4
	.comm	HASH_ELEM,4,4
	.comm	HASH_BLOBS,4,4
	.comm	FastPathStrongRelationLocks,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
