	.file	"extr_fake-rfc2553.c_getaddrinfo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	getaddrinfo
	.type	getaddrinfo, @function
getaddrinfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdx, rdx
	je	.L2
	mov	rax, QWORD PTR [rdx]
	cmp	rax, QWORD PTR AF_UNSPEC[rip]
	je	.L3
	cmp	rax, QWORD PTR AF_INET[rip]
	je	.L3
	mov	eax, DWORD PTR EAI_FAMILY[rip]
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L60
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	rbp, rbp
	je	.L21
.L20:
	mov	rdi, rbp
	mov	rsi, rsp
	mov	edx, 10
	call	strtol@PLT
	mov	rdi, rax
	lea	rax, -1[rax]
	cmp	rax, 65534
	ja	.L5
	mov	rax, QWORD PTR [rsp]
	cmp	BYTE PTR [rax], 0
	je	.L61
.L5:
	mov	rdi, rbp
	xor	esi, esi
	xor	ebp, ebp
	call	getservbyname@PLT
	test	rax, rax
	je	.L6
	mov	rbp, QWORD PTR [rax]
.L6:
	test	r12, r12
	je	.L7
.L21:
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR AI_PASSIVE[rip], eax
	jne	.L62
.L7:
	test	r13, r13
	je	.L63
.L10:
	mov	rsi, rsp
	mov	rdi, r13
	call	inet_aton@PLT
	test	rax, rax
	jne	.L64
	test	r12, r12
	je	.L13
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR AI_NUMERICHOST[rip], eax
	jne	.L65
.L13:
	mov	rdi, r13
	call	gethostbyname@PLT
	mov	r13, rax
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L14
	cmp	QWORD PTR [rax], 0
	je	.L14
	mov	rax, QWORD PTR 0[r13]
	mov	rcx, QWORD PTR [rax]
	test	rcx, rcx
	je	.L14
	mov	QWORD PTR [rbx], 0
	mov	r14d, 8
	xor	eax, eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L67:
	mov	QWORD PTR 16[r15], rax
.L18:
	mov	rdx, QWORD PTR 0[r13]
	mov	rcx, QWORD PTR [rdx+r14]
	add	r14, 8
	test	rcx, rcx
	je	.L11
.L19:
	mov	esi, DWORD PTR [rcx]
	mov	rdx, r12
	mov	rdi, rbp
	mov	r15, rax
	call	malloc_ai@PLT
	test	rax, rax
	je	.L66
	test	r15, r15
	jne	.L67
	mov	QWORD PTR [rbx], rax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L2:
	test	rsi, rsi
	jne	.L20
	test	r13, r13
	jne	.L10
.L63:
	mov	edi, 2130706433
	call	htonl@PLT
	mov	rdx, r12
	mov	esi, eax
.L58:
	mov	rdi, rbp
	call	malloc_ai@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	jne	.L11
.L16:
	mov	eax, DWORD PTR EAI_MEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L61:
	call	htons@PLT
	mov	rbp, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L65:
	mov	eax, DWORD PTR EAI_NONAME[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR EAI_NODATA[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L62:
	xor	edi, edi
	call	htonl@PLT
	mov	r14d, eax
	test	r13, r13
	je	.L8
	mov	rsi, rsp
	mov	rdi, r13
	call	inet_aton@PLT
	test	rax, rax
	cmovne	r14d, DWORD PTR [rsp]
.L8:
	mov	rdx, r12
	mov	esi, r14d
	mov	rdi, rbp
	call	malloc_ai@PLT
	mov	rdx, rax
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR EAI_MEMORY[rip]
	test	rdx, rdx
	je	.L1
.L11:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L64:
	mov	esi, DWORD PTR [rsp]
	mov	rdx, r12
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L66:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L16
	call	freeaddrinfo@PLT
	jmp	.L16
.L60:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	getaddrinfo, .-getaddrinfo
	.comm	EAI_NONAME,4,4
	.comm	EAI_NODATA,4,4
	.comm	EAI_MEMORY,4,4
	.comm	EAI_FAMILY,4,4
	.comm	AI_PASSIVE,4,4
	.comm	AI_NUMERICHOST,4,4
	.comm	AF_UNSPEC,8,8
	.comm	AF_INET,8,8
	.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_fake-rfc2553.c_getaddrinfo.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getaddrinfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	getaddrinfo, %function
getaddrinfo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r3
	ldr	r3, .L68
	sub	sp, sp, #12
	subs	r5, r2, #0
	mov	r6, r0
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	ldr	r2, .L68+4
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L68+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r3, .L68+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L62
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	cmp	r4, #0
	beq	.L21
.L20:
	mov	r2, #10
	mov	r1, sp
	mov	r0, r4
	bl	strtol
	ldr	r2, .L68+16
	sub	r3, r0, #1
	cmp	r3, r2
	bhi	.L5
	ldr	r3, [sp]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L63
.L5:
	mov	r0, r4
	mov	r1, #0
	bl	getservbyname
	subs	r4, r0, #0
	ldrne	r4, [r4]
.L6:
	cmp	r5, #0
	beq	.L7
.L21:
	ldr	r3, .L68+20
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L64
.L7:
	cmp	r6, #0
	beq	.L65
.L10:
	mov	r1, sp
	mov	r0, r6
	bl	inet_aton
	cmp	r0, #0
	bne	.L66
	cmp	r5, #0
	beq	.L13
	ldr	r3, .L68+24
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L67
.L13:
	mov	r0, r6
	bl	gethostbyname
	subs	r8, r0, #0
	beq	.L14
	ldr	r3, [r8, #4]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [r8]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L14
	mov	r1, #0
	mov	r6, #4
	mov	r3, r1
	str	r1, [r7]
	b	.L19
.L15:
	ldr	r2, [r8]
	cmp	r9, #0
	ldr	r2, [r2, r6]
	strne	r3, [r9, #8]
	streq	r3, [r7]
	cmp	r2, #0
	add	r6, r6, #4
	beq	.L11
.L19:
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r5
	mov	r9, r3
	bl	malloc_ai
	subs	r3, r0, #0
	bne	.L15
	ldr	r0, [r7]
	cmp	r0, #0
	beq	.L16
	bl	freeaddrinfo
.L16:
	ldr	r3, .L68+28
	ldr	r0, [r3]
	b	.L1
.L2:
	cmp	r1, #0
	moveq	r4, r5
	bne	.L20
	cmp	r6, #0
	bne	.L10
.L65:
	ldr	r0, .L68+32
	bl	htonl
	mov	r2, r5
	mov	r1, r0
	b	.L59
.L63:
	bl	htons
	mov	r4, r0
	b	.L6
.L67:
	ldr	r3, .L68+36
	ldr	r0, [r3]
	b	.L1
.L14:
	ldr	r3, .L68+40
	ldr	r0, [r3]
	b	.L1
.L64:
	mov	r0, #0
	bl	htonl
	cmp	r6, #0
	mov	r8, r0
	beq	.L8
	mov	r0, r6
	mov	r1, sp
	bl	inet_aton
	cmp	r0, #0
	ldrne	r8, [sp]
.L8:
	mov	r2, r5
	mov	r1, r8
.L59:
	mov	r0, r4
	bl	malloc_ai
	cmp	r0, #0
	str	r0, [r7]
	beq	.L16
.L11:
	mov	r0, #0
	b	.L1
.L66:
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [sp]
	bl	malloc_ai
	cmp	r0, #0
	str	r0, [r7]
	bne	.L11
	b	.L16
.L62:
	bl	__stack_chk_fail
.L69:
	.align	2
.L68:
	.word	.LC0
	.word	AF_UNSPEC
	.word	AF_INET
	.word	EAI_FAMILY
	.word	65534
	.word	AI_PASSIVE
	.word	AI_NUMERICHOST
	.word	EAI_MEMORY
	.word	2130706433
	.word	EAI_NONAME
	.word	EAI_NODATA
	.size	getaddrinfo, .-getaddrinfo
	.comm	EAI_NONAME,4,4
	.comm	EAI_NODATA,4,4
	.comm	EAI_MEMORY,4,4
	.comm	EAI_FAMILY,4,4
	.comm	AI_PASSIVE,4,4
	.comm	AI_NUMERICHOST,4,4
	.comm	AF_UNSPEC,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
