	.file	"extr_ctld.c_port_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s-%s"
.LC1:
	.string	"asprintf"
.LC2:
	.string	"duplicate port \"%s\""
.LC3:
	.string	"calloc"
	.text
	.p2align 4
	.globl	port_new
	.type	port_new, @function
port_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	ecx, DWORD PTR 4[rsi]
	mov	edx, DWORD PTR 4[rdx]
	lea	rsi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	call	asprintf@PLT
	test	eax, eax
	jle	.L9
.L2:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r13
	call	port_find@PLT
	test	rax, rax
	jne	.L10
	mov	esi, 40
	mov	edi, 1
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
.L5:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 32[r12], r13
	mov	rsi, r12
	mov	rdi, r13
	mov	QWORD PTR 24[r12], 0
	mov	edx, DWORD PTR p_next[rip]
	mov	QWORD PTR [r12], rax
	call	TAILQ_INSERT_TAIL@PLT
	mov	edx, DWORD PTR p_ts[rip]
	mov	rsi, r12
	mov	rdi, rbp
	call	TAILQ_INSERT_TAIL@PLT
	mov	QWORD PTR 16[r12], rbp
	mov	rsi, r12
	mov	rdi, rbx
	mov	edx, DWORD PTR p_pgs[rip]
	call	TAILQ_INSERT_TAIL@PLT
	mov	QWORD PTR 8[r12], rbx
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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	rsi, QWORD PTR [rsp]
	lea	rdi, .LC2[rip]
	xor	r12d, r12d
	call	log_warnx@PLT
	mov	rdi, QWORD PTR [rsp]
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	log_err@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	log_err@PLT
	jmp	.L5
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	port_new, .-port_new
	.comm	p_ts,4,4
	.comm	p_pgs,4,4
	.comm	p_next,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_ctld.c_port_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s-%s\000"
	.align	2
.LC1:
	.ascii	"asprintf\000"
	.align	2
.LC2:
	.ascii	"duplicate port \"%s\"\000"
	.align	2
.LC3:
	.ascii	"calloc\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	port_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	port_new, %function
port_new:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	ip, .L13
	sub	sp, sp, #12
	ldr	r3, [r1, #4]
	mov	r6, r1
	mov	r5, r2
	mov	r7, r0
	ldr	r2, [r2, #4]
	mov	r0, sp
	ldr	r1, .L13+4
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	asprintf
	cmp	r0, #0
	ble	.L9
.L2:
	mov	r0, r7
	ldr	r1, [sp]
	bl	port_find
	cmp	r0, #0
	bne	.L10
	mov	r1, #20
	mov	r0, #1
	bl	calloc
	subs	r4, r0, #0
	beq	.L11
.L5:
	mov	r1, #0
	ldr	r2, [sp]
	ldr	r3, .L13+8
	str	r1, [r4, #12]
	str	r2, [r4]
	mov	r1, r4
	ldr	r2, [r3]
	mov	r0, r7
	str	r7, [r4, #16]
	bl	TAILQ_INSERT_TAIL
	ldr	r3, .L13+12
	mov	r1, r4
	ldr	r2, [r3]
	mov	r0, r6
	bl	TAILQ_INSERT_TAIL
	ldr	r3, .L13+16
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r3]
	str	r6, [r4, #8]
	bl	TAILQ_INSERT_TAIL
	str	r5, [r4, #4]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r1, [sp]
	ldr	r0, .L13+20
	bl	log_warnx
	ldr	r0, [sp]
	bl	free
	mov	r4, #0
	b	.L1
.L9:
	ldr	r1, .L13+24
	mov	r0, #1
	bl	log_err
	b	.L2
.L12:
	bl	__stack_chk_fail
.L11:
	ldr	r1, .L13+28
	mov	r0, #1
	bl	log_err
	b	.L5
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	.LC0
	.word	p_next
	.word	p_ts
	.word	p_pgs
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	port_new, .-port_new
	.comm	p_ts,4,4
	.comm	p_pgs,4,4
	.comm	p_next,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
