	.file	"extr_lwlocks.c_ts_lwlocks_shmem_startup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ts_lwlocks_shmem_startup
	.type	ts_lwlocks_shmem_startup, @function
ts_lwlocks_shmem_startup:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR LW_EXCLUSIVE[rip]
	mov	edi, DWORD PTR AddinShmemInitLock[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	LWLockAcquire@PLT
	mov	edi, DWORD PTR TS_LWLOCKS_SHMEM_NAME[rip]
	lea	rdx, 4[rsp]
	mov	esi, 4
	call	ShmemInitStruct@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	QWORD PTR ts_lwlocks[rip], rax
	test	edx, edx
	je	.L6
.L2:
	mov	edi, DWORD PTR AddinShmemInitLock[rip]
	call	LWLockRelease@PLT
	mov	edi, DWORD PTR RENDEZVOUS_CHUNK_APPEND_LWLOCK[rip]
	call	find_rendezvous_variable@PLT
	mov	rdx, QWORD PTR ts_lwlocks[rip]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, 4
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	edi, DWORD PTR CHUNK_APPEND_LWLOCK_TRANCHE_NAME[rip]
	call	GetNamedLWLockTranche@PLT
	mov	rdx, QWORD PTR ts_lwlocks[rip]
	mov	QWORD PTR [rdx], rax
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ts_lwlocks_shmem_startup, .-ts_lwlocks_shmem_startup
	.comm	ts_lwlocks,8,8
	.comm	TS_LWLOCKS_SHMEM_NAME,4,4
	.comm	RENDEZVOUS_CHUNK_APPEND_LWLOCK,4,4
	.comm	LW_EXCLUSIVE,4,4
	.comm	CHUNK_APPEND_LWLOCK_TRANCHE_NAME,4,4
	.comm	AddinShmemInitLock,4,4
	.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_lwlocks.c_ts_lwlocks_shmem_startup.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ts_lwlocks_shmem_startup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ts_lwlocks_shmem_startup, %function
ts_lwlocks_shmem_startup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L8
	ldr	r5, .L8+4
	ldr	r1, [r3]
	ldr	r3, .L8+8
	sub	sp, sp, #12
	ldr	r0, [r5]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	LWLockAcquire
	ldr	r3, .L8+12
	mov	r2, sp
	ldr	r0, [r3]
	mov	r1, #4
	bl	ShmemInitStruct
	ldr	r3, [sp]
	ldr	r4, .L8+16
	cmp	r3, #0
	str	r0, [r4]
	beq	.L6
.L2:
	ldr	r0, [r5]
	bl	LWLockRelease
	ldr	r3, .L8+20
	ldr	r0, [r3]
	bl	find_rendezvous_variable
	ldr	r3, [r4]
	ldr	r3, [r3]
	str	r3, [r0]
	ldr	r3, .L8+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r2, .L8+24
	strb	r3, [r0]
	strb	r3, [r0, #1]
	strb	r3, [r0, #2]
	strb	r3, [r0, #3]
	ldr	r0, [r2]
	bl	GetNamedLWLockTranche
	ldr	r3, [r4]
	str	r0, [r3]
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	LW_EXCLUSIVE
	.word	AddinShmemInitLock
	.word	.LC0
	.word	TS_LWLOCKS_SHMEM_NAME
	.word	ts_lwlocks
	.word	RENDEZVOUS_CHUNK_APPEND_LWLOCK
	.word	CHUNK_APPEND_LWLOCK_TRANCHE_NAME
	.size	ts_lwlocks_shmem_startup, .-ts_lwlocks_shmem_startup
	.comm	ts_lwlocks,4,4
	.comm	TS_LWLOCKS_SHMEM_NAME,4,4
	.comm	RENDEZVOUS_CHUNK_APPEND_LWLOCK,4,4
	.comm	LW_EXCLUSIVE,4,4
	.comm	CHUNK_APPEND_LWLOCK_TRANCHE_NAME,4,4
	.comm	AddinShmemInitLock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
