	.file	"extr_ctld.c_portal_group_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"duplicated portal-group \"%s\""
.LC1:
	.string	"calloc"
	.text
	.p2align 4
	.globl	portal_group_new
	.type	portal_group_new, @function
portal_group_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	portal_group_find@PLT
	test	rax, rax
	jne	.L7
	mov	esi, 32
	mov	edi, 1
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
.L4:
	mov	rdi, r13
	call	checked_strdup@PLT
	lea	rdi, 24[r12]
	mov	DWORD PTR 28[r12], eax
	call	TAILQ_INIT@PLT
	lea	rdi, 20[r12]
	call	TAILQ_INIT@PLT
	lea	rdi, 16[r12]
	call	TAILQ_INIT@PLT
	mov	QWORD PTR 8[r12], rbp
	mov	rsi, r12
	mov	rdi, rbp
	mov	QWORD PTR [r12], 0
	mov	edx, DWORD PTR pg_next[rip]
	call	TAILQ_INSERT_TAIL@PLT
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L7:
	.cfi_restore_state
	mov	rsi, r13
	xor	r12d, r12d
	lea	rdi, .LC0[rip]
	call	log_warnx@PLT
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	log_err@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	portal_group_new, .-portal_group_new
	.comm	pg_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_portal_group_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"duplicated portal-group \"%s\"\000"
	.align	2
.LC1:
	.ascii	"calloc\000"
	.text
	.align	2
	.global	portal_group_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	portal_group_new, %function
portal_group_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r6, r1
	bl	portal_group_find
	cmp	r0, #0
	bne	.L7
	mov	r1, #24
	mov	r0, #1
	bl	calloc
	subs	r4, r0, #0
	beq	.L8
.L4:
	mov	r0, r6
	bl	checked_strdup
	mov	r3, r0
	add	r0, r4, #16
	str	r3, [r4, #20]
	bl	TAILQ_INIT
	add	r0, r4, #12
	bl	TAILQ_INIT
	add	r0, r4, #8
	bl	TAILQ_INIT
	mov	r2, #0
	ldr	r3, .L9
	str	r2, [r4]
	mov	r0, r5
	mov	r1, r4
	ldr	r2, [r3]
	str	r5, [r4, #4]
	bl	TAILQ_INSERT_TAIL
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	mov	r4, #0
	mov	r1, r6
	ldr	r0, .L9+4
	bl	log_warnx
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r1, .L9+8
	mov	r0, #1
	bl	log_err
	b	.L4
.L10:
	.align	2
.L9:
	.word	pg_next
	.word	.LC0
	.word	.LC1
	.size	portal_group_new, .-portal_group_new
	.comm	pg_next,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
