	.file	"309930.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.type	rcsid, @object
	.size	rcsid, 5
rcsid:
	.string	"$Id$"
	.align 8
.LC0:
	.string	"errno = %d, herr = %d, res = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 104
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -72[rbp], 1024
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	jmp	.L2
.L3:
	sal	QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -80[rbp], rax
.L2:
	mov	rdi, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -80[rbp]
	lea	rdx, -64[rbp]
	lea	rax, -100[rbp]
	lea	rcx, -96[rbp]
	push	rcx
	lea	rcx, -88[rbp]
	push	rcx
	mov	r9, rdi
	mov	r8, rsi
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 4
	mov	rdi, rax
	call	gethostbyaddr_r@PLT
	add	rsp, 16
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 34
	je	.L3
	cmp	DWORD PTR -92[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	jne	.L5
.L4:
	mov	ebx, DWORD PTR -96[rbp]
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -92[rbp]
	mov	r8d, ecx
	mov	ecx, ebx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L7
.L5:
	mov	eax, 0
.L7:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"309930.c"
	.text
	.section	.rodata
	.align	2
	.type	rcsid, %object
	.size	rcsid, 5
rcsid:
	.ascii	"$Id$\000"
	.align	2
.LC0:
	.ascii	"errno = %d, herr = %d, res = %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1024
	str	r3, [fp, #-44]
	ldr	r0, .L9+4
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r0, [fp, #-44]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	b	.L2
.L3:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	realloc
	str	r0, [fp, #-48]
.L2:
	sub	r2, fp, #36
	sub	r0, fp, #60
	sub	r3, fp, #52
	str	r3, [sp, #12]
	sub	r3, fp, #56
	str	r3, [sp, #8]
	ldr	r3, [fp, #-44]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #2
	mov	r1, #4
	bl	gethostbyaddr_r
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #34
	beq	.L3
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L5
.L4:
	ldr	r3, .L9+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-40]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L9+12
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L7
.L5:
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	2130706433
	.word	stderr
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
