	.file	"extr_evutil.c_evutil_getaddrinfo_common_.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	evutil_getaddrinfo_common_
	.type	evutil_getaddrinfo_common_, @function
evutil_getaddrinfo_common_:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rax, rdi
	or	rax, rsi
	je	.L37
	mov	r12, rdx
	mov	rdx, QWORD PTR [rdx]
	cmp	rdx, QWORD PTR PF_UNSPEC[rip]
	mov	rbp, rdi
	mov	r13, rsi
	mov	rbx, rcx
	mov	r14, r8
	je	.L4
	cmp	rdx, QWORD PTR PF_INET[rip]
	je	.L4
	cmp	rdx, QWORD PTR PF_INET6[rip]
	mov	eax, DWORD PTR EVUTIL_EAI_FAMILY[rip]
	jne	.L1
.L4:
	mov	rdi, r12
	call	evutil_getaddrinfo_infer_protocols@PLT
	mov	edi, DWORD PTR 12[r12]
	call	evutil_unparse_protoname@PLT
	mov	rsi, rax
	test	r13, r13
	je	.L27
	mov	rdi, r13
	mov	rdx, r12
	call	evutil_parse_servname@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L37
	mov	rax, QWORD PTR [r12]
	test	rbp, rbp
	je	.L39
.L6:
	cmp	QWORD PTR PF_INET6[rip], rax
	je	.L14
	cmp	QWORD PTR PF_UNSPEC[rip], rax
	je	.L14
	cmp	QWORD PTR PF_INET[rip], rax
	lea	r15, 16[rsp]
	je	.L21
.L24:
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR EVUTIL_AI_NUMERICHOST[rip], eax
	jne	.L37
	mov	DWORD PTR [r14], r13d
	mov	eax, DWORD PTR EVUTIL_EAI_NEED_RESOLVE[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L40
	add	rsp, 88
	.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
.L37:
	.cfi_restore_state
	mov	eax, DWORD PTR EVUTIL_EAI_NONAME[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR [r12]
	xor	r13d, r13d
	test	rbp, rbp
	jne	.L6
.L39:
	xor	r14d, r14d
	cmp	QWORD PTR PF_INET[rip], rax
	je	.L7
	lea	r15, 16[rsp]
	mov	edx, 56
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	mov	rax, QWORD PTR AF_INET6[rip]
	mov	edi, r13d
	mov	QWORD PTR 56[rsp], rax
	call	htons@PLT
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR EVUTIL_AI_PASSIVE[rip], eax
	je	.L41
.L8:
	mov	rdx, r12
	mov	esi, 56
	mov	rdi, r15
	call	evutil_new_addrinfo_@PLT
	mov	r14, rax
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR [r12]
.L7:
	cmp	QWORD PTR PF_INET6[rip], rax
	je	.L10
	lea	r15, 16[rsp]
	mov	edx, 56
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
	mov	rax, QWORD PTR AF_INET[rip]
	mov	edi, r13d
	mov	QWORD PTR 32[rsp], rax
	call	htons@PLT
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR EVUTIL_AI_PASSIVE[rip], eax
	je	.L42
.L11:
	mov	rdx, r12
	mov	esi, 56
	mov	rdi, r15
	call	evutil_new_addrinfo_@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L43
.L10:
	mov	rsi, r14
	mov	rdi, rbp
	call	evutil_addrinfo_append_@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	r15, 16[rsp]
	xor	esi, esi
	mov	edx, 56
	mov	rdi, r15
	call	memset@PLT
	mov	rdi, QWORD PTR AF_INET6[rip]
	lea	rcx, 12[rsp]
	mov	rsi, rbp
	lea	rdx, 64[rsp]
	call	evutil_inet_pton_scope@PLT
	cmp	eax, 1
	je	.L44
	mov	rax, QWORD PTR [r12]
	cmp	rax, QWORD PTR PF_INET[rip]
	je	.L21
	cmp	rax, QWORD PTR PF_UNSPEC[rip]
	jne	.L24
.L21:
	xor	esi, esi
	mov	edx, 56
	mov	rdi, r15
	call	memset@PLT
	mov	rdi, QWORD PTR AF_INET[rip]
	lea	rdx, 40[rsp]
	mov	rsi, rbp
	call	evutil_inet_pton@PLT
	cmp	eax, 1
	jne	.L24
	mov	rax, QWORD PTR AF_INET[rip]
	mov	edi, r13d
	mov	QWORD PTR 32[rsp], rax
	call	htons@PLT
	mov	QWORD PTR 24[rsp], rax
.L36:
	mov	rdx, r12
	mov	esi, 56
	mov	rdi, r15
	call	evutil_new_addrinfo_@PLT
	test	rax, rax
	mov	QWORD PTR [rbx], rax
	mov	eax, 0
	cmove	eax, DWORD PTR EVUTIL_EAI_MEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rax, QWORD PTR 64[rsp]
	mov	DWORD PTR 60[rax], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L43:
	test	r14, r14
	je	.L13
	mov	rdi, r14
	call	evutil_freeaddrinfo@PLT
.L13:
	mov	eax, DWORD PTR EVUTIL_EAI_MEMORY[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edi, 2130706433
	call	htonl@PLT
	mov	DWORD PTR 40[rsp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rax, QWORD PTR AF_INET6[rip]
	mov	edi, r13d
	mov	QWORD PTR 56[rsp], rax
	call	htons@PLT
	mov	QWORD PTR 48[rsp], rax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 16[rsp], eax
	jmp	.L36
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	evutil_getaddrinfo_common_, .-evutil_getaddrinfo_common_
	.comm	PF_UNSPEC,8,8
	.comm	PF_INET6,8,8
	.comm	PF_INET,8,8
	.comm	EVUTIL_EAI_NONAME,4,4
	.comm	EVUTIL_EAI_NEED_RESOLVE,4,4
	.comm	EVUTIL_EAI_MEMORY,4,4
	.comm	EVUTIL_EAI_FAMILY,4,4
	.comm	EVUTIL_AI_PASSIVE,4,4
	.comm	EVUTIL_AI_NUMERICHOST,4,4
	.comm	AF_INET6,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_evutil.c_evutil_getaddrinfo_common_.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	evutil_getaddrinfo_common_
	.syntax unified
	.arm
	.fpu softvfp
	.type	evutil_getaddrinfo_common_, %function
evutil_getaddrinfo_common_:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	fp, r1
	mov	r7, r3
	ldr	r3, .L45
	sub	sp, sp, #44
	orrs	r1, r0, fp
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r10, [sp, #80]
	beq	.L36
	ldr	r9, .L45+4
	ldr	r3, [r2]
	mov	r4, r2
	ldr	r2, [r9]
	mov	r5, r0
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L45+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r2, .L45+12
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L39
.L4:
	mov	r0, r4
	bl	evutil_getaddrinfo_infer_protocols
	ldr	r0, [r4, #8]
	bl	evutil_unparse_protoname
	cmp	fp, #0
	mov	r1, r0
	beq	.L5
	mov	r0, fp
	mov	r2, r4
	bl	evutil_parse_servname
	subs	fp, r0, #0
	blt	.L36
.L5:
	cmp	r5, #0
	ldr	r3, [r4]
	beq	.L40
	ldr	r2, .L45+12
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L14
	ldr	r2, [r9]
	cmp	r2, r3
	beq	.L14
	ldr	r2, .L45+8
	ldr	r2, [r2]
	cmp	r2, r3
	addeq	r8, sp, #8
	beq	.L21
.L24:
	ldr	r3, .L45+16
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	ldreq	r3, .L45+20
	streq	fp, [r10]
	ldreq	r0, [r3]
	beq	.L1
.L36:
	ldr	r3, .L45+24
	ldr	r0, [r3]
.L1:
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	ldr	r3, .L45+28
	ldr	r0, [r3]
	b	.L1
.L14:
	mov	r6, #0
	ldr	r3, .L45+32
	add	r8, sp, #8
	ldr	r0, [r3]
	mov	r1, r5
	add	r3, sp, #4
	add	r2, sp, #32
	str	r6, [sp, #8]
	str	r6, [r8, #4]
	str	r6, [r8, #8]
	str	r6, [r8, #12]
	str	r6, [r8, #16]
	str	r6, [r8, #20]
	str	r6, [r8, #24]
	bl	evutil_inet_pton_scope
	cmp	r0, #1
	beq	.L42
	ldr	r2, .L45+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L21
	ldr	r2, [r9]
	cmp	r3, r2
	bne	.L24
.L21:
	mov	r6, #0
	ldr	r9, .L45+36
	mov	r1, r5
	ldr	r0, [r9]
	add	r2, sp, #20
	str	r6, [sp, #8]
	str	r6, [r8, #4]
	str	r6, [r8, #8]
	str	r6, [r8, #12]
	str	r6, [r8, #16]
	str	r6, [r8, #20]
	str	r6, [r8, #24]
	bl	evutil_inet_pton
	cmp	r0, #1
	bne	.L24
	ldr	r3, [r9]
	mov	r0, fp
	str	r3, [sp, #16]
	bl	htons
	mov	r3, r0
	mov	r2, r4
	mov	r0, r8
	mov	r1, #28
	str	r3, [sp, #12]
	bl	evutil_new_addrinfo_
	cmp	r0, #0
	str	r0, [r7]
	beq	.L37
.L30:
	mov	r0, r6
	b	.L1
.L40:
	ldr	r2, .L45+8
	ldr	r2, [r2]
	cmp	r2, r3
	moveq	r6, r5
	beq	.L7
	ldr	r3, .L45+32
	add	r8, sp, #8
	ldr	r3, [r3]
	mov	r0, fp
	str	r5, [sp, #8]
	str	r5, [r8, #4]
	str	r5, [r8, #8]
	str	r5, [r8, #12]
	str	r5, [r8, #16]
	str	r5, [r8, #24]
	str	r3, [sp, #28]
	bl	htons
	ldr	r3, .L45+40
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	str	r0, [sp, #24]
	tst	r2, r3
	moveq	r2, #1
	ldreq	r3, [sp, #32]
	mov	r0, r8
	streq	r2, [r3, #60]
	mov	r1, #28
	mov	r2, r4
	bl	evutil_new_addrinfo_
	subs	r6, r0, #0
	ldrne	r3, [r4]
	beq	.L37
.L7:
	ldr	r2, .L45+12
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L10
	mov	r3, #0
	ldr	r2, .L45+36
	add	r8, sp, #8
	ldr	r2, [r2]
	mov	r0, fp
	str	r3, [sp, #8]
	str	r3, [r8, #4]
	str	r3, [r8, #12]
	str	r3, [r8, #16]
	str	r3, [r8, #20]
	str	r3, [r8, #24]
	str	r2, [sp, #16]
	bl	htons
	ldr	r3, .L45+40
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	str	r0, [sp, #12]
	tst	r2, r3
	beq	.L43
.L11:
	mov	r2, r4
	mov	r0, r8
	mov	r1, #28
	bl	evutil_new_addrinfo_
	subs	r5, r0, #0
	beq	.L44
.L10:
	mov	r1, r6
	mov	r0, r5
	bl	evutil_addrinfo_append_
	mov	r3, r0
	mov	r0, #0
	str	r3, [r7]
	b	.L1
.L44:
	cmp	r6, #0
	beq	.L37
	mov	r0, r6
	bl	evutil_freeaddrinfo
.L37:
	ldr	r3, .L45+44
	ldr	r0, [r3]
	b	.L1
.L43:
	ldr	r0, .L45+48
	bl	htonl
	str	r0, [sp, #20]
	b	.L11
.L42:
	ldr	r3, .L45+32
	mov	r0, fp
	ldr	r3, [r3]
	str	r3, [sp, #28]
	bl	htons
	mov	ip, r0
	ldr	r3, [sp, #4]
	mov	r2, r4
	mov	r0, r8
	mov	r1, #28
	str	ip, [sp, #24]
	str	r3, [sp, #8]
	bl	evutil_new_addrinfo_
	cmp	r0, r6
	str	r0, [r7]
	bne	.L30
	b	.L37
.L41:
	bl	__stack_chk_fail
.L46:
	.align	2
.L45:
	.word	.LC0
	.word	PF_UNSPEC
	.word	PF_INET
	.word	PF_INET6
	.word	EVUTIL_AI_NUMERICHOST
	.word	EVUTIL_EAI_NEED_RESOLVE
	.word	EVUTIL_EAI_NONAME
	.word	EVUTIL_EAI_FAMILY
	.word	AF_INET6
	.word	AF_INET
	.word	EVUTIL_AI_PASSIVE
	.word	EVUTIL_EAI_MEMORY
	.word	2130706433
	.size	evutil_getaddrinfo_common_, .-evutil_getaddrinfo_common_
	.comm	PF_UNSPEC,4,4
	.comm	PF_INET6,4,4
	.comm	PF_INET,4,4
	.comm	EVUTIL_EAI_NONAME,4,4
	.comm	EVUTIL_EAI_NEED_RESOLVE,4,4
	.comm	EVUTIL_EAI_MEMORY,4,4
	.comm	EVUTIL_EAI_FAMILY,4,4
	.comm	EVUTIL_AI_PASSIVE,4,4
	.comm	EVUTIL_AI_NUMERICHOST,4,4
	.comm	AF_INET6,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
