	.file	"extr_Cedar.c_AddConnection.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CID-%u"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Connection %s Inserted to Cedar.\n"
	.text
	.p2align 4
	.globl	AddConnection
	.type	AddConnection, @function
AddConnection:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_SIZE[rip]
	mov	rcx, rsp
	mov	r14, rsp
	mov	r13, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	test	r12, r12
	je	.L14
	test	rbx, rbx
	je	.L14
	mov	edi, DWORD PTR 4[r12]
	call	Inc@PLT
	lea	rdx, .LC0[rip]
	mov	esi, r13d
	mov	rdi, rsp
	mov	ecx, eax
	call	Format@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	Lock@PLT
	mov	edi, DWORD PTR [rbx]
	call	Free@PLT
	mov	rdi, rsp
	call	CopyStr@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	DWORD PTR [rbx], eax
	call	Unlock@PLT
	mov	edi, DWORD PTR [r12]
	call	LockList@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbx
	call	Add@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	AddRef@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	call	Debug@PLT
	mov	edi, DWORD PTR [r12]
	call	UnlockList@PLT
.L14:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, r14
	jne	.L18
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	AddConnection, .-AddConnection
	.comm	MAX_SIZE,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_Cedar.c_AddConnection.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CID-%u\000"
	.align	2
.LC1:
	.ascii	"Connection %s Inserted to Cedar.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	AddConnection
	.syntax unified
	.arm
	.fpu softvfp
	.type	AddConnection, %function
AddConnection:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	cmp	r1, #0
	cmpne	r0, #0
	ldr	r3, .L9
	ldr	r2, .L9+4
	ldr	r6, [r3]
	mov	r7, sp
	add	r3, r6, #7
	bic	r3, r3, #7
	ldr	r2, [r2]
	str	r2, [fp, #-24]
	mov	r2,#0
	sub	sp, sp, r3
	beq	.L6
	mov	r5, r0
	ldr	r0, [r0, #4]
	mov	r4, r1
	bl	Inc
	ldr	r2, .L9+8
	mov	r1, r6
	mov	r3, r0
	mov	r0, sp
	bl	Format
	ldr	r0, [r4, #8]
	bl	Lock
	ldr	r0, [r4]
	bl	Free
	mov	r0, sp
	bl	CopyStr
	mov	r3, r0
	ldr	r0, [r4, #8]
	str	r3, [r4]
	bl	Unlock
	ldr	r0, [r5]
	bl	LockList
	mov	r1, r4
	ldr	r0, [r5]
	bl	Add
	ldr	r0, [r4, #4]
	bl	AddRef
	ldr	r1, [r4]
	ldr	r0, .L9+12
	bl	Debug
	ldr	r0, [r5]
	bl	UnlockList
.L6:
	ldr	r3, .L9+4
	mov	sp, r7
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	MAX_SIZE
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	AddConnection, .-AddConnection
	.comm	MAX_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
