	.file	"5787.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"do_gethostbyname(): failed inet_aton on %s"
.LC1:
	.string	" "
	.text
	.globl	do_gethostbyname
	.type	do_gethostbyname, @function
do_gethostbyname:
.LFB6:
	.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	QWORD PTR -80[rbp], rsi
	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	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	test	rax, rax
	jne	.L2
	mov	QWORD PTR -120[rbp], 3
	mov	eax, -1
	jmp	.L7
.L2:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 16[rax], 2
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 20[rax], 4
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 33
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L4
.L6:
	lea	rdx, -52[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	inet_aton@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR [rax], edx
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	add	rdx, 4
	mov	QWORD PTR [rax], rdx
.L4:
	lea	rax, -72[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	eax, 1
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	do_gethostbyname, .-do_gethostbyname
	.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	"5787.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"do_gethostbyname(): failed inet_aton on %s\000"
	.align	2
.LC1:
	.ascii	" \000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_gethostbyname
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_gethostbyname, %function
do_gethostbyname:
	@ args = 12, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-60]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L2
	mov	r3, #3
	str	r3, [fp, #-60]
	mvn	r3, #0
	b	.L7
.L2:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	mov	r2, #2
	str	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	mov	r2, #4
	str	r2, [r3, #12]
	ldr	r3, [fp, #-52]
	add	r3, r3, #21
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L4
.L6:
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	inet_aton
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r2, [fp, #-24]
	ldr	r1, .L9+4
	mov	r0, #3
	bl	syslog
	b	.L4
.L5:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	add	r2, r2, #4
	str	r2, [r3]
.L4:
	sub	r3, fp, #40
	ldr	r1, .L9+8
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-52]
	str	r2, [r3, #16]
	mov	r3, #1
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	do_gethostbyname, .-do_gethostbyname
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
