	.file	"150312.c"
	.intel_syntax noprefix
	.text
	.globl	gethostbyname2
	.type	gethostbyname2, @function
gethostbyname2:
.LFB6:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 63
.L4:
	mov	rax, QWORD PTR h.0[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rax
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR h.0[rip], rax
	mov	rax, QWORD PTR h.0[rip]
	test	rax, rax
	jne	.L2
	call	__h_errno_location@PLT
	mov	DWORD PTR [rax], 3
	mov	eax, 0
	jmp	.L7
.L2:
	call	__h_errno_location@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	lea	r10, -32[rax]
	mov	rax, QWORD PTR h.0[rip]
	lea	rdi, 32[rax]
	mov	rdx, QWORD PTR h.0[rip]
	lea	r8, -24[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	push	rcx
	mov	r9, r8
	mov	r8, r10
	mov	rcx, rdi
	mov	rdi, rax
	call	gethostbyname2_r@PLT
	add	rsp, 16
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 34
	je	.L4
	cmp	DWORD PTR -28[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR h.0[rip]
	jmp	.L7
.L5:
	mov	eax, 0
.L7:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gethostbyname2, .-gethostbyname2
	.local	h.0
	.comm	h.0,8,8
	.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	"150312.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gethostbyname2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gethostbyname2, %function
gethostbyname2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #63
	str	r3, [fp, #-32]
.L4:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+4
	str	r2, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	bl	__h_errno_location
	mov	r3, r0
	mov	r2, #3
	str	r2, [r3]
	mov	r3, #0
	b	.L7
.L2:
	ldr	r3, .L9+4
	ldr	r5, [r3]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r6, r3, #20
	ldr	r3, [fp, #-32]
	sub	r4, r3, #20
	bl	__h_errno_location
	mov	r3, r0
	str	r3, [sp, #8]
	sub	r3, fp, #36
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	gethostbyname2_r
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #34
	beq	.L4
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L9+4
	ldr	r3, [r3]
	b	.L7
.L5:
	mov	r3, #0
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	h.5813
	.size	gethostbyname2, .-gethostbyname2
	.local	h.5813
	.comm	h.5813,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
