	.file	"15385.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
.LC1:
	.string	"::1"
	.text
	.globl	localtld_fill_hostent
	.type	localtld_fill_hostent, @function
localtld_fill_hostent:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	edi, 8
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rax], 0
	mov	edi, 16
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 24[rax], rdx
	cmp	DWORD PTR -76[rbp], 2
	je	.L2
	cmp	DWORD PTR -76[rbp], 10
	je	.L3
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 16[rax], 2
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 20[rax], 4
	lea	rdi, .LC0[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rbx, QWORD PTR 24[rax]
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 16[rax], 10
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 20[rax], 16
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	lea	rax, -48[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 10
	call	inet_pton@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rbx, QWORD PTR 24[rax]
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	nop
.L4:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	add	rax, 8
	mov	QWORD PTR [rax], 0
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	localtld_fill_hostent, .-localtld_fill_hostent
	.section	.rodata
.LC2:
	.string	"LOCALTLD"
.LC3:
	.string	"dev"
.LC4:
	.string	","
.LC5:
	.string	".%s"
	.text
	.globl	_nss_localtld_gethostbyname2_r
	.type	_nss_localtld_gethostbyname2_r, @function
_nss_localtld_gethostbyname2_r:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	QWORD PTR -88[rbp], rdx
	mov	QWORD PTR -96[rbp], rcx
	mov	QWORD PTR -104[rbp], r8
	mov	QWORD PTR -112[rbp], r9
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 0
	mov	BYTE PTR -9[rbp], 46
	mov	DWORD PTR -60[rbp], 0
	lea	rdi, .LC2[rip]
	call	getenv@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L8
	lea	rdi, .LC3[rip]
	call	strdup@PLT
	mov	QWORD PTR -56[rbp], rax
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -56[rbp], rax
.L9:
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -48[rbp], rax
	jmp	.L10
.L14:
	movzx	eax, BYTE PTR -9[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L12
	mov	DWORD PTR -64[rbp], 1
	mov	rdx, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	localtld_fill_hostent
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
.L11:
	lea	rsi, .LC4[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -48[rbp], rax
	add	DWORD PTR -60[rbp], 1
.L10:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L14
.L13:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_nss_localtld_gethostbyname2_r, .-_nss_localtld_gethostbyname2_r
	.globl	_nss_localtld_gethostbyname_r
	.type	_nss_localtld_gethostbyname_r, @function
_nss_localtld_gethostbyname_r:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	QWORD PTR -48[rbp], r9
	mov	rdi, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	QWORD PTR -48[rbp]
	mov	r9, rdi
	mov	r8, rsi
	mov	esi, 2
	mov	rdi, rax
	call	_nss_localtld_gethostbyname2_r
	add	rsp, 16
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_nss_localtld_gethostbyname_r, .-_nss_localtld_gethostbyname_r
	.globl	_nss_gns_gethostbyaddr_r
	.type	_nss_gns_gethostbyaddr_r, @function
_nss_gns_gethostbyaddr_r:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	mov	QWORD PTR -40[rbp], r9
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_nss_gns_gethostbyaddr_r, .-_nss_gns_gethostbyaddr_r
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"15385.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC1:
	.ascii	"::1\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	localtld_fill_hostent
	.syntax unified
	.arm
	.fpu softvfp
	.type	localtld_fill_hostent, %function
localtld_fill_hostent:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	strcpy
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	mov	r2, #0
	str	r2, [r3]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	beq	.L2
	ldr	r3, [fp, #-44]
	cmp	r3, #10
	beq	.L3
	b	.L4
.L2:
	ldr	r3, [fp, #-48]
	mov	r2, #2
	str	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	mov	r2, #4
	str	r2, [r3, #12]
	ldr	r0, .L7+4
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	ldr	r4, [r3, #16]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	sub	r1, fp, #36
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	b	.L4
.L3:
	ldr	r3, [fp, #-48]
	mov	r2, #10
	str	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	mov	r2, #16
	str	r2, [r3, #12]
	sub	r3, fp, #32
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, .L7+8
	mov	r0, #10
	bl	inet_pton
	ldr	r3, [fp, #-48]
	ldr	r4, [r3, #16]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #16
	mov	r0, r3
	bl	memcpy
	nop
.L4:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	localtld_fill_hostent, .-localtld_fill_hostent
	.section	.rodata
	.align	2
.LC3:
	.ascii	"LOCALTLD\000"
	.align	2
.LC4:
	.ascii	"dev\000"
	.align	2
.LC5:
	.ascii	",\000"
	.align	2
.LC6:
	.ascii	".%s\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_nss_localtld_gethostbyname2_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_nss_localtld_gethostbyname2_r, %function
_nss_localtld_gethostbyname2_r:
	@ args = 12, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-68]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #46
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r0, .L19+4
	bl	getenv
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L19+8
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-32]
	b	.L11
.L10:
	ldr	r0, [fp, #-24]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-32]
.L11:
	ldr	r1, .L19+12
	ldr	r0, [fp, #-32]
	bl	strtok
	str	r0, [fp, #-28]
	b	.L12
.L16:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	strrchr
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r1, .L19+16
	ldr	r0, [fp, #-16]
	bl	sprintf
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	localtld_fill_hostent
	ldr	r0, [fp, #-16]
	bl	free
	b	.L15
.L14:
	ldr	r0, [fp, #-16]
	bl	free
.L13:
	ldr	r1, .L19+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L12:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L16
.L15:
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, [fp, #-40]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	_nss_localtld_gethostbyname2_r, .-_nss_localtld_gethostbyname2_r
	.align	2
	.global	_nss_localtld_gethostbyname_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_nss_localtld_gethostbyname_r, %function
_nss_localtld_gethostbyname_r:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #8]
	str	r3, [sp, #8]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	_nss_localtld_gethostbyname2_r
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_nss_localtld_gethostbyname_r, .-_nss_localtld_gethostbyname_r
	.align	2
	.global	_nss_gns_gethostbyaddr_r
	.syntax unified
	.arm
	.fpu softvfp
	.type	_nss_gns_gethostbyaddr_r, %function
_nss_gns_gethostbyaddr_r:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mvn	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_nss_gns_gethostbyaddr_r, .-_nss_gns_gethostbyaddr_r
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
