	.file	"extr_evdns.c_evdns_base_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to seed random number generator; DNS can't run."
	.align 8
.LC1:
	.string	"Unrecognized flag passed to evdns_base_new(). Assuming you meant EVDNS_BASE_INITIALIZE_NAMESERVERS."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"/etc/resolv.conf"
	.text
	.p2align 4
	.globl	evdns_base_new
	.type	evdns_base_new, @function
evdns_base_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	evutil_secure_rng_init@PLT
	test	rax, rax
	js	.L21
	mov	edi, DWORD PTR evdns_getaddrinfo[rip]
	call	evutil_set_evdns_getaddrinfo_fn_@PLT
	mov	edi, DWORD PTR evdns_getaddrinfo_cancel[rip]
	call	evutil_set_evdns_getaddrinfo_cancel_fn_@PLT
	mov	edi, 144
	call	mm_malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	edx, 144
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	esi, DWORD PTR EVTHREAD_LOCKTYPE_RECURSIVE[rip]
	mov	QWORD PTR 136[r12], 0
	mov	edi, DWORD PTR 128[r12]
	call	EVTHREAD_ALLOC_LOCK@PLT
	mov	rdi, r12
	call	EVDNS_LOCK@PLT
	mov	rdi, r12
	mov	esi, 64
	mov	QWORD PTR 120[r12], 0
	call	evdns_base_set_max_requests_inflight@PLT
	mov	QWORD PTR 104[r12], rbp
	lea	rdi, 20[r12]
	movabs	rax, 12884901889
	mov	QWORD PTR [r12], rax
	movabs	rax, 4294967299
	mov	QWORD PTR 112[r12], 0
	mov	QWORD PTR 80[r12], 0
	mov	QWORD PTR 88[r12], 0
	mov	QWORD PTR 96[r12], 0
	mov	DWORD PTR 64[r12], 5
	mov	QWORD PTR 72[r12], 0
	mov	QWORD PTR 56[r12], 0
	mov	QWORD PTR 8[r12], rax
	mov	DWORD PTR 40[r12], 3
	mov	QWORD PTR 48[r12], 0
	mov	DWORD PTR 24[r12], 10
	mov	QWORD PTR 32[r12], 0
	call	TAILQ_INIT@PLT
	test	ebx, -32770
	jne	.L22
	test	DWORD PTR EVDNS_BASE_INITIALIZE_NAMESERVERS[rip], ebx
	jne	.L23
.L5:
	test	DWORD PTR EVDNS_BASE_DISABLE_WHEN_INACTIVE[rip], ebx
	jne	.L24
.L6:
	mov	rdi, r12
	call	EVDNS_UNLOCK@PLT
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	DWORD PTR 16[r12], 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, DWORD PTR DNS_OPTIONS_ALL[rip]
	lea	rdx, .LC2[rip]
	mov	rdi, r12
	call	evdns_base_resolv_conf_parse@PLT
	cmp	eax, -1
	jne	.L5
	mov	rdi, r12
	xor	esi, esi
	xor	r12d, r12d
	call	evdns_base_free_and_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR EVDNS_LOG_WARN[rip]
	lea	rsi, .LC1[rip]
	mov	ebx, DWORD PTR EVDNS_BASE_INITIALIZE_NAMESERVERS[rip]
	call	log@PLT
	test	DWORD PTR EVDNS_BASE_INITIALIZE_NAMESERVERS[rip], ebx
	je	.L5
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR EVDNS_LOG_WARN[rip]
	xor	r12d, r12d
	lea	rsi, .LC0[rip]
	call	log@PLT
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	evdns_base_new, .-evdns_base_new
	.comm	evdns_getaddrinfo_cancel,4,4
	.comm	evdns_getaddrinfo,4,4
	.comm	EVTHREAD_LOCKTYPE_RECURSIVE,4,4
	.comm	EVDNS_LOG_WARN,4,4
	.comm	EVDNS_BASE_INITIALIZE_NAMESERVERS,4,4
	.comm	EVDNS_BASE_DISABLE_WHEN_INACTIVE,4,4
	.comm	EVDNS_BASE_ALL_FLAGS,4,4
	.comm	DNS_OPTIONS_ALL,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_evdns.c_evdns_base_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to seed random number generator; DNS can't r"
	.ascii	"un.\000"
	.align	2
.LC1:
	.ascii	"Unrecognized flag passed to evdns_base_new(). Assum"
	.ascii	"ing you meant EVDNS_BASE_INITIALIZE_NAMESERVERS.\000"
	.align	2
.LC2:
	.ascii	"/etc/resolv.conf\000"
	.text
	.align	2
	.global	evdns_base_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	evdns_base_new, %function
evdns_base_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r6, r1
	bl	evutil_secure_rng_init
	cmp	r0, #0
	blt	.L21
	ldr	r3, .L23
	ldr	r0, [r3]
	bl	evutil_set_evdns_getaddrinfo_fn_
	ldr	r3, .L23+4
	ldr	r0, [r3]
	bl	evutil_set_evdns_getaddrinfo_cancel_fn_
	mov	r0, #84
	bl	mm_malloc
	subs	r4, r0, #0
	beq	.L1
	mov	r5, #0
	mov	r2, #84
	mov	r1, r5
	bl	memset
	ldr	r3, .L23+8
	mov	r0, r5
	ldr	r1, [r3]
	str	r5, [r4, #80]
	bl	EVTHREAD_ALLOC_LOCK
	mov	r0, r4
	bl	EVDNS_LOCK
	mov	r1, #64
	mov	r0, r4
	str	r5, [r4, #72]
	bl	evdns_base_set_max_requests_inflight
	mov	r3, #3
	mov	r2, #1
	mov	r0, #5
	mov	r1, #10
	str	r0, [r4, #44]
	str	r3, [r4, #4]
	str	r3, [r4, #8]
	str	r3, [r4, #32]
	str	r5, [r4, #68]
	str	r5, [r4, #52]
	str	r5, [r4, #56]
	str	r5, [r4, #60]
	str	r5, [r4, #48]
	str	r5, [r4, #40]
	str	r5, [r4, #36]
	str	r5, [r4, #28]
	str	r7, [r4, #64]
	str	r2, [r4]
	str	r2, [r4, #12]
	str	r1, [r4, #24]
	add	r0, r4, #20
	bl	TAILQ_INIT
	bic	r3, r6, #32768
	bic	r3, r3, #1
	cmp	r3, r5
	bne	.L18
	ldr	r5, .L23+12
	ldr	r3, [r5]
	tst	r6, r3
	bne	.L22
.L5:
	ldr	r3, .L23+16
	mov	r0, r4
	ldr	r3, [r3]
	tst	r6, r3
	movne	r3, #1
	strne	r3, [r4, #16]
	bl	EVDNS_UNLOCK
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L23+20
	ldr	r5, .L23+12
	ldr	r0, [r3]
	ldr	r1, .L23+24
	ldr	r6, [r5]
	bl	log
	ldr	r3, [r5]
	tst	r6, r3
	beq	.L5
.L22:
	ldr	r3, .L23+28
	mov	r0, r4
	ldr	r2, .L23+32
	ldr	r1, [r3]
	bl	evdns_base_resolv_conf_parse
	cmn	r0, #1
	bne	.L5
	mov	r0, r4
	mov	r1, #0
	bl	evdns_base_free_and_unlock
	mov	r4, #0
	b	.L1
.L21:
	mov	r4, #0
	ldr	r3, .L23+20
	ldr	r1, .L23+36
	ldr	r0, [r3]
	bl	log
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	evdns_getaddrinfo
	.word	evdns_getaddrinfo_cancel
	.word	EVTHREAD_LOCKTYPE_RECURSIVE
	.word	EVDNS_BASE_INITIALIZE_NAMESERVERS
	.word	EVDNS_BASE_DISABLE_WHEN_INACTIVE
	.word	EVDNS_LOG_WARN
	.word	.LC1
	.word	DNS_OPTIONS_ALL
	.word	.LC2
	.word	.LC0
	.size	evdns_base_new, .-evdns_base_new
	.comm	evdns_getaddrinfo_cancel,4,4
	.comm	evdns_getaddrinfo,4,4
	.comm	EVTHREAD_LOCKTYPE_RECURSIVE,4,4
	.comm	EVDNS_LOG_WARN,4,4
	.comm	EVDNS_BASE_INITIALIZE_NAMESERVERS,4,4
	.comm	EVDNS_BASE_DISABLE_WHEN_INACTIVE,4,4
	.comm	EVDNS_BASE_ALL_FLAGS,4,4
	.comm	DNS_OPTIONS_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
