	.file	"extr_getserv_test.c_clone_servent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clone_servent, @function
clone_servent:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	setne	dil
	movzx	edi, dil
	call	ATF_REQUIRE@PLT
	xor	edi, edi
	test	r12, r12
	setne	dil
	call	ATF_REQUIRE@PLT
	mov	rdi, r13
	mov	edx, 32
	xor	esi, esi
	call	memset@PLT
	mov	rdi, QWORD PTR [r12]
	test	rdi, rdi
	je	.L2
	call	strdup@PLT
	xor	edi, edi
	mov	QWORD PTR 0[r13], rax
	test	rax, rax
	setne	dil
	call	ATF_REQUIRE@PLT
.L2:
	mov	rdi, QWORD PTR 8[r12]
	test	rdi, rdi
	je	.L3
	call	strdup@PLT
	xor	edi, edi
	mov	QWORD PTR 8[r13], rax
	test	rax, rax
	setne	dil
	call	ATF_REQUIRE@PLT
.L3:
	mov	eax, DWORD PTR 24[r12]
	mov	DWORD PTR 24[r13], eax
	mov	rax, QWORD PTR 16[r12]
	test	rax, rax
	je	.L1
	cmp	QWORD PTR [rax], 0
	je	.L8
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L6:
	add	rax, 8
	mov	edi, edx
	add	edx, 1
	cmp	QWORD PTR [rax], 0
	jne	.L6
	add	edi, 2
.L5:
	mov	esi, 8
	call	calloc@PLT
	xor	edi, edi
	mov	QWORD PTR 16[r13], rax
	test	rax, rax
	setne	dil
	call	ATF_REQUIRE@PLT
	mov	rbx, QWORD PTR 16[r12]
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L1
	mov	rax, rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR 16[r12]
.L7:
	mov	rbp, rbx
	sub	rbp, rax
	add	rbp, QWORD PTR 16[r13]
	call	strdup@PLT
	xor	edi, edi
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	setne	dil
	add	rbx, 8
	call	ATF_REQUIRE@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	jne	.L27
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L8:
	.cfi_restore_state
	mov	edi, 1
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	clone_servent, .-clone_servent
	.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_getserv_test.c_clone_servent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clone_servent, %function
clone_servent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	ATF_REQUIRE
	subs	r0, r6, #0
	movne	r0, #1
	bl	ATF_REQUIRE
	mov	r0, r7
	mov	r2, #16
	mov	r1, #0
	bl	memset
	ldr	r0, [r6]
	cmp	r0, #0
	beq	.L2
	bl	strdup
	str	r0, [r7]
	subs	r0, r0, #0
	movne	r0, #1
	bl	ATF_REQUIRE
.L2:
	ldr	r0, [r6, #4]
	cmp	r0, #0
	beq	.L3
	bl	strdup
	str	r0, [r7, #4]
	subs	r0, r0, #0
	movne	r0, #1
	bl	ATF_REQUIRE
.L3:
	ldr	r2, [r6, #8]
	ldr	r3, [r6, #12]
	cmp	r2, #0
	str	r3, [r7, #12]
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r2]
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
.L6:
	ldr	r1, [r2, #4]!
	mov	r0, r3
	cmp	r1, #0
	add	r3, r3, #1
	bne	.L6
	add	r0, r0, #2
.L5:
	mov	r1, #4
	bl	calloc
	str	r0, [r7, #8]
	subs	r0, r0, #0
	movne	r0, #1
	bl	ATF_REQUIRE
	ldr	r5, [r6, #8]
	ldr	r0, [r5]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r4, r5
.L7:
	ldr	r8, [r7, #8]
	bl	strdup
	sub	r4, r5, r4
	str	r0, [r8, r4]
	subs	r0, r0, #0
	movne	r0, #1
	bl	ATF_REQUIRE
	ldr	r0, [r5, #4]!
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r4, [r6, #8]
	b	.L7
.L8:
	mov	r0, #1
	b	.L5
	.size	clone_servent, .-clone_servent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
