	.file	"extr_evutil.c_evutil_new_addrinfo_.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	evutil_new_addrinfo_
	.type	evutil_new_addrinfo_, @function
evutil_new_addrinfo_:
.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
	mov	r14, rdi
	mov	rdi, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	EVUTIL_ASSERT@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L2
	cmp	QWORD PTR 8[rbp], 0
	je	.L15
.L2:
	lea	esi, 48[r13]
	mov	edi, 1
	call	mm_calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	lea	rdi, 48[rax]
	mov	edx, r13d
	mov	rsi, r14
	mov	QWORD PTR 32[rax], rdi
	call	memcpy@PLT
	mov	eax, DWORD PTR 24[r14]
	mov	DWORD PTR 16[r12], r13d
	mov	DWORD PTR 28[r12], eax
	mov	eax, DWORD PTR EVUTIL_AI_LIBEVENT_ALLOCATED[rip]
	mov	DWORD PTR 20[r12], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[r12], rax
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	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
.L15:
	.cfi_restore_state
	mov	r15, rsp
	mov	edx, 48
	mov	rsi, rbp
	mov	rdi, r15
	call	memcpy@PLT
	mov	rdx, r15
	mov	esi, r13d
	mov	rdi, r14
	mov	rax, QWORD PTR SOCK_STREAM[rip]
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR IPPROTO_TCP[rip]
	mov	QWORD PTR 8[rsp], rax
	call	evutil_new_addrinfo_
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rax, QWORD PTR SOCK_DGRAM[rip]
	mov	rdx, r15
	mov	esi, r13d
	mov	rdi, r14
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR IPPROTO_UDP[rip]
	mov	QWORD PTR 8[rsp], rax
	call	evutil_new_addrinfo_
	test	rax, rax
	je	.L17
	mov	QWORD PTR 40[r12], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r12
	xor	r12d, r12d
	call	evutil_freeaddrinfo@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	evutil_new_addrinfo_, .-evutil_new_addrinfo_
	.comm	SOCK_STREAM,8,8
	.comm	SOCK_DGRAM,8,8
	.comm	IPPROTO_UDP,8,8
	.comm	IPPROTO_TCP,8,8
	.comm	EVUTIL_AI_LIBEVENT_ALLOCATED,4,4
	.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_new_addrinfo_.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	evutil_new_addrinfo_
	.syntax unified
	.arm
	.fpu softvfp
	.type	evutil_new_addrinfo_, %function
evutil_new_addrinfo_:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r2
	ldr	r3, .L17
	sub	sp, sp, #44
	mov	r7, r0
	mov	r0, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r6, r1
	bl	EVUTIL_ASSERT
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L15
.L2:
	mov	r0, #1
	add	r1, r6, #32
	bl	mm_calloc
	subs	r4, r0, #0
	beq	.L1
	add	r0, r4, #32
	mov	r2, r6
	mov	r1, r7
	str	r0, [r4, #24]
	bl	memcpy
	ldr	r3, .L17+4
	ldr	r0, [r7, #16]
	ldr	r1, [r3]
	ldm	r5, {r2, r3}
	stm	r4, {r2, r3}
	str	r0, [r4, #20]
	str	r6, [r4, #8]
	str	r1, [r4, #12]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L15:
	mov	r2, #24
	add	r1, r5, #8
	add	r0, sp, #12
	bl	memcpy
	ldr	r2, .L17+8
	ldr	r3, .L17+12
	ldr	r0, [r2]
	ldr	r3, [r3]
	str	r0, [sp, #4]
	mov	r1, r6
	mov	r0, r7
	add	r2, sp, #4
	str	r3, [sp, #8]
	bl	evutil_new_addrinfo_
	subs	r4, r0, #0
	beq	.L1
	ldr	r2, .L17+16
	ldr	r3, .L17+20
	ldr	ip, [r2]
	ldr	r3, [r3]
	mov	r1, r6
	mov	r0, r7
	add	r2, sp, #4
	str	ip, [sp, #4]
	str	r3, [sp, #8]
	bl	evutil_new_addrinfo_
	subs	r5, r0, #0
	strne	r5, [r4, #28]
	bne	.L1
	mov	r0, r4
	bl	evutil_freeaddrinfo
	mov	r4, r5
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	EVUTIL_AI_LIBEVENT_ALLOCATED
	.word	SOCK_STREAM
	.word	IPPROTO_TCP
	.word	SOCK_DGRAM
	.word	IPPROTO_UDP
	.size	evutil_new_addrinfo_, .-evutil_new_addrinfo_
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	EVUTIL_AI_LIBEVENT_ALLOCATED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
