	.file	"extr_vm_compressor.c_c_segment_sv_hash_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	c_segment_sv_hash_insert, @function
c_segment_sv_hash_insert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR FALSE[rip]
	test	edi, edi
	jne	.L2
	lea	rsi, c_segment_svp_zero_compressions[rip]
	mov	edi, 1
	call	OSAddAtomic@PLT
.L3:
	mov	eax, DWORD PTR C_SV_HASH_MAX_MISS[rip]
	and	r12d, DWORD PTR C_SV_HASH_MASK[rip]
	test	eax, eax
	jle	.L12
	mov	rdx, QWORD PTR c_segment_sv_hash_table[rip]
	movsx	rax, r12d
	lea	rbx, 0[0+rax*8]
	mov	rdi, QWORD PTR [rdx+rax*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR c_segment_sv_hash_table[rip]
	mov	rdi, QWORD PTR [rdx+rbx]
.L5:
	add	rdx, rbx
	xor	esi, esi
	call	OSCompareAndSwap64@PLT
	mov	r8, rax
	mov	rax, QWORD PTR TRUE[rip]
	cmp	r8, rax
	jne	.L6
	lea	rsi, c_segment_svp_in_hash[rip]
	mov	edi, 1
	call	OSAddAtomic@PLT
	mov	rax, QWORD PTR TRUE[rip]
.L4:
	cmp	QWORD PTR FALSE[rip], rax
	mov	eax, -1
	cmove	r12d, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	lea	rsi, c_segment_svp_nonzero_compressions[rip]
	mov	edi, 1
	call	OSAddAtomic@PLT
	jmp	.L3
.L12:
	mov	rax, rbx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	c_segment_sv_hash_insert, .-c_segment_sv_hash_insert
	.comm	c_segment_svp_zero_compressions,4,4
	.comm	c_segment_svp_nonzero_compressions,4,4
	.comm	c_segment_svp_in_hash,4,4
	.comm	c_segment_sv_hash_table,8,8
	.comm	TRUE,8,8
	.comm	FALSE,8,8
	.comm	C_SV_HASH_SIZE,4,4
	.comm	C_SV_HASH_MAX_MISS,4,4
	.comm	C_SV_HASH_MASK,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_vm_compressor.c_c_segment_sv_hash_insert.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	c_segment_sv_hash_insert, %function
c_segment_sv_hash_insert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r0, #0
	ldr	r7, .L21
	ldreq	r1, .L21+4
	ldrne	r1, .L21+8
	mov	r0, #1
	ldr	r4, [r7]
	bl	OSAddAtomic
	ldr	r2, .L21+12
	ldr	r3, .L21+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, #0
	and	r6, r6, r3
	ble	.L12
	ldr	r4, .L21+20
	ldr	r8, .L21+24
	ldr	r3, [r4]
	lsl	r5, r6, #2
	ldr	r0, [r3, r6, lsl #2]
	b	.L5
.L6:
	ldr	r3, [r4]
	ldr	r0, [r3, r5]
.L5:
	ldr	r2, [r4]
	mov	r1, #0
	add	r2, r2, r5
	bl	OSCompareAndSwap64
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L6
	mov	r0, #1
	ldr	r1, .L21+28
	bl	OSAddAtomic
	ldr	r3, [r8]
.L4:
	ldr	r2, [r7]
	cmp	r2, r3
	movne	r0, r6
	mvneq	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r3, r4
	b	.L4
.L22:
	.align	2
.L21:
	.word	FALSE
	.word	c_segment_svp_zero_compressions
	.word	c_segment_svp_nonzero_compressions
	.word	C_SV_HASH_MAX_MISS
	.word	C_SV_HASH_MASK
	.word	c_segment_sv_hash_table
	.word	TRUE
	.word	c_segment_svp_in_hash
	.size	c_segment_sv_hash_insert, .-c_segment_sv_hash_insert
	.comm	c_segment_svp_zero_compressions,4,4
	.comm	c_segment_svp_nonzero_compressions,4,4
	.comm	c_segment_svp_in_hash,4,4
	.comm	c_segment_sv_hash_table,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	C_SV_HASH_SIZE,4,4
	.comm	C_SV_HASH_MAX_MISS,4,4
	.comm	C_SV_HASH_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
