	.file	"extr_evdns.c_search_request_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	search_request_new, @function
search_request_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	ASSERT_LOCKED@PLT
	cmp	DWORD PTR TYPE_A[rip], r12d
	mov	edi, 1
	je	.L2
	xor	edi, edi
	cmp	DWORD PTR TYPE_AAAA[rip], r12d
	sete	dil
.L2:
	call	EVUTIL_ASSERT@PLT
	xor	edi, edi
	cmp	QWORD PTR 24[r13], 0
	sete	dil
	call	EVUTIL_ASSERT@PLT
	test	DWORD PTR DNS_QUERY_NO_SEARCH[rip], ebx
	jne	.L3
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L3
	cmp	QWORD PTR 16[rax], 0
	jne	.L29
.L3:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edx, r12d
	mov	r9d, r15d
	mov	r8d, ebx
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 96
	mov	rcx, r14
	mov	rsi, r13
	mov	rdi, rbp
	call	request_new@PLT
	mov	r12, rax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r12, r12
	je	.L1
	mov	rdi, r12
	call	request_submit@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L29:
	.cfi_restore_state
	mov	rdi, r14
	call	string_num_dots@PLT
	mov	rdi, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR [rdi]
	jl	.L4
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8d, ebx
	mov	edx, r12d
	mov	rdi, rbp
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 96
	mov	r9d, r15d
	mov	rcx, r14
	mov	rsi, r13
	call	request_new@PLT
	pop	rdi
	.cfi_def_cfa_offset 88
	pop	r8
	.cfi_def_cfa_offset 80
	mov	r12, rax
	test	rax, rax
	je	.L27
	mov	DWORD PTR 0[r13], -1
.L7:
	xor	edi, edi
	cmp	QWORD PTR 16[r13], 0
	sete	dil
	call	EVUTIL_ASSERT@PLT
	mov	rdi, r14
	call	mm_strdup@PLT
	mov	QWORD PTR 16[r13], rax
	test	rax, rax
	je	.L30
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR 4[r13], ebx
	mov	rdi, r12
	mov	QWORD PTR 8[r13], rax
	add	DWORD PTR 8[rax], 1
	call	request_submit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	xor	esi, esi
	mov	rdx, r14
	call	search_make_new@PLT
	test	rax, rax
	je	.L27
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rcx, rax
	mov	edx, r12d
	mov	rsi, r13
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 96
	mov	r9d, r15d
	mov	r8d, ebx
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], rax
	call	request_new@PLT
	mov	r10, QWORD PTR 24[rsp]
	mov	r12, rax
	mov	rdi, r10
	call	mm_free@PLT
	pop	rcx
	.cfi_def_cfa_offset 88
	pop	rsi
	.cfi_def_cfa_offset 80
	test	r12, r12
	je	.L27
	mov	DWORD PTR 0[r13], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, r12
	call	mm_free@PLT
.L27:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	search_request_new, .-search_request_new
	.comm	TYPE_AAAA,4,4
	.comm	TYPE_A,4,4
	.comm	DNS_QUERY_NO_SEARCH,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_search_request_new.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	search_request_new, %function
search_request_new:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	sub	sp, sp, #16
	mov	r5, r1
	mov	r7, r3
	ldr	r8, [sp, #48]
	mov	r6, r0
	bl	ASSERT_LOCKED
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r3, r4
	ldrne	r3, .L32+4
	moveq	r0, #1
	ldrne	r2, [r3]
	subne	r0, r2, r4
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	EVUTIL_ASSERT
	ldr	r0, [r5, #16]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	EVUTIL_ASSERT
	ldr	r3, .L32+8
	ldr	r1, [r3]
	ands	r9, r8, r1
	bne	.L3
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L30
.L3:
	ldr	r3, [sp, #56]
	mov	r2, r4
	str	r3, [sp, #8]
	ldr	r3, [sp, #52]
	mov	r1, r5
	str	r3, [sp, #4]
	mov	r0, r6
	mov	r3, r7
	str	r8, [sp]
	bl	request_new
	subs	r4, r0, #0
	beq	.L1
	bl	request_submit
.L1:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L30:
	mov	r0, r7
	bl	string_num_dots
	ldr	r3, [r6]
	ldr	r2, [r3]
	cmp	r0, r2
	blt	.L4
	ldr	r3, [sp, #56]
	mov	r2, r4
	str	r3, [sp, #8]
	ldr	r3, [sp, #52]
	mov	r1, r5
	str	r3, [sp, #4]
	mov	r0, r6
	mov	r3, r7
	str	r8, [sp]
	bl	request_new
	subs	r4, r0, #0
	mvnne	r3, #0
	strne	r3, [r5]
	beq	.L8
.L7:
	ldr	r0, [r5, #12]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	EVUTIL_ASSERT
	mov	r0, r7
	bl	mm_strdup
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r5, #12]
	beq	.L31
	ldr	r3, [r6]
	mov	r0, r4
	ldr	r2, [r3, #4]
	str	r3, [r5, #8]
	add	r2, r2, #1
	str	r8, [r5, #4]
	str	r2, [r3, #4]
	bl	request_submit
	b	.L1
.L4:
	mov	r0, r3
	mov	r2, r7
	mov	r1, r9
	bl	search_make_new
	subs	r10, r0, #0
	beq	.L8
	ldr	r3, [sp, #56]
	mov	r2, r4
	str	r3, [sp, #8]
	ldr	r3, [sp, #52]
	mov	r1, r5
	str	r3, [sp, #4]
	mov	r0, r6
	mov	r3, r10
	str	r8, [sp]
	bl	request_new
	mov	r4, r0
	mov	r0, r10
	bl	mm_free
	cmp	r4, #0
	strne	r9, [r5]
	bne	.L7
.L8:
	mov	r4, #0
	b	.L1
.L31:
	mov	r0, r4
	bl	mm_free
	mov	r4, r7
	b	.L1
.L33:
	.align	2
.L32:
	.word	TYPE_A
	.word	TYPE_AAAA
	.word	DNS_QUERY_NO_SEARCH
	.size	search_request_new, .-search_request_new
	.comm	TYPE_AAAA,4,4
	.comm	TYPE_A,4,4
	.comm	DNS_QUERY_NO_SEARCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
