	.file	"extr_getaddrinfo.c_res_queryN.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	";; res_nquery: retry without EDNS0"
	.text
	.p2align 4
	.type	res_queryN, @function
res_queryN:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	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
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 16[rsp], rdi
	mov	edi, DWORD PTR MAXPACKET[rip]
	call	malloc@PLT
	test	rax, rax
	je	.L2
	mov	DWORD PTR 28[rsp], 0
	mov	r13, rax
	mov	r14, r15
	mov	DWORD PTR 24[rsp], 132
	test	rbx, rbx
	je	.L46
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 4[rbx]
	mov	rbp, QWORD PTR 16[rbx]
	mov	r15d, DWORD PTR [rbx]
	mov	r12d, DWORD PTR 8[rbx]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR [r14]
	mov	DWORD PTR 12[rsp], eax
	mov	rax, rbx
	mov	rbx, r13
	mov	r13, rax
.L11:
	mov	eax, DWORD PTR MAXPACKET[rip]
	xor	r9d, r9d
	mov	ecx, r15d
	mov	rdi, r14
	mov	DWORD PTR 0[rbp], 132
	mov	esi, DWORD PTR QUERY[rip]
	push	rax
	.cfi_def_cfa_offset 104
	push	rbx
	.cfi_def_cfa_offset 112
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	mov	r8d, DWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 48[rsp]
	call	res_nmkquery@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	r9d, eax
	test	eax, eax
	jle	.L7
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR RES_F_EDNS0ERR[rip], eax
	jne	.L8
	mov	eax, DWORD PTR RES_USE_EDNS0[rip]
	or	eax, DWORD PTR RES_USE_DNSSEC[rip]
	test	DWORD PTR 4[r14], eax
	jne	.L47
.L8:
	mov	r8d, r12d
	mov	rcx, rbp
	mov	edx, r9d
	mov	rsi, rbx
	mov	rdi, r14
	call	res_nsend@PLT
	test	eax, eax
	jns	.L9
	mov	edx, DWORD PTR 4[r14]
	mov	eax, DWORD PTR RES_USE_EDNS0[rip]
	or	eax, DWORD PTR RES_USE_DNSSEC[rip]
	test	eax, edx
	je	.L10
	mov	eax, DWORD PTR [r14]
	mov	esi, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR RES_F_EDNS0ERR[rip]
	xor	esi, eax
	test	esi, ecx
	je	.L10
	or	eax, ecx
	mov	DWORD PTR [r14], eax
	test	DWORD PTR RES_DEBUG[rip], edx
	je	.L11
.L6:
	endbr64
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, r13
	mov	r13, rbx
	mov	rbx, rax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 24[rsp], eax
.L12:
	mov	rbx, QWORD PTR 24[rbx]
	test	rbx, rbx
	jne	.L3
	mov	rdi, r13
	mov	r15, r14
	call	free@PLT
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	je	.L48
.L1:
	mov	eax, DWORD PTR 28[rsp]
	add	rsp, 40
	.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
.L47:
	.cfi_restore_state
	mov	ecx, DWORD PTR MAXPACKET[rip]
	mov	esi, r9d
	mov	r8d, r12d
	mov	rdx, rbx
	mov	rdi, r14
	call	res_nopt@PLT
	mov	r9d, eax
	test	eax, eax
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbx
	mov	DWORD PTR 8[rsp], r9d
	call	free@PLT
	mov	esi, DWORD PTR NO_RECOVERY[rip]
	mov	rdi, r14
	call	RES_SET_H_ERRNO@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	DWORD PTR 28[rsp], r9d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, eax
	mov	rax, r13
	mov	r13, rbx
	mov	rbx, rax
	cmp	r12d, edx
	jl	.L49
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 8[rsp], edx
	cmp	eax, 132
	jne	.L22
	mov	edi, DWORD PTR 4[rbp]
	call	ntohs@PLT
	mov	edx, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 24[rsp], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L49:
	mov	DWORD PTR 0[rbp], 133
	mov	DWORD PTR 24[rsp], 133
	jmp	.L12
.L15:
	mov	edi, DWORD PTR 4[rbp]
	mov	DWORD PTR 8[rsp], edx
	call	ntohs@PLT
	mov	edx, DWORD PTR 8[rsp]
	add	DWORD PTR 28[rsp], eax
	mov	DWORD PTR 12[rbx], edx
	jmp	.L12
.L22:
	mov	DWORD PTR 24[rsp], eax
	jmp	.L12
.L46:
	mov	rdi, rax
	call	free@PLT
.L17:
	mov	esi, DWORD PTR NO_DATA[rip]
	mov	rdi, r15
	call	RES_SET_H_ERRNO@PLT
	mov	DWORD PTR 28[rsp], -1
	jmp	.L1
.L48:
	mov	eax, DWORD PTR 24[rsp]
	cmp	eax, 130
	je	.L18
	cmp	eax, 132
	je	.L17
	cmp	eax, 128
	je	.L19
	mov	esi, DWORD PTR NO_RECOVERY[rip]
	mov	rdi, r14
	call	RES_SET_H_ERRNO@PLT
	mov	DWORD PTR 28[rsp], -1
	jmp	.L1
.L2:
	mov	esi, DWORD PTR NETDB_INTERNAL[rip]
	mov	rdi, r15
	call	RES_SET_H_ERRNO@PLT
	mov	DWORD PTR 28[rsp], -1
	jmp	.L1
.L19:
	mov	esi, DWORD PTR TRY_AGAIN[rip]
	mov	rdi, r14
	call	RES_SET_H_ERRNO@PLT
	mov	DWORD PTR 28[rsp], -1
	jmp	.L1
.L18:
	mov	esi, DWORD PTR HOST_NOT_FOUND[rip]
	mov	rdi, r14
	call	RES_SET_H_ERRNO@PLT
	mov	DWORD PTR 28[rsp], -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	res_queryN, .-res_queryN
	.comm	TRY_AGAIN,4,4
	.comm	RES_USE_EDNS0,4,4
	.comm	RES_USE_DNSSEC,4,4
	.comm	RES_F_EDNS0ERR,4,4
	.comm	RES_DEBUG,4,4
	.comm	QUERY,4,4
	.comm	NO_RECOVERY,4,4
	.comm	NO_DATA,4,4
	.comm	NETDB_INTERNAL,4,4
	.comm	MAXPACKET,4,4
	.comm	HOST_NOT_FOUND,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_getaddrinfo.c_res_queryN.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	";; res_nquery: retry without EDNS0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	res_queryN, %function
res_queryN:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L45
	mov	fp, r2
	ldr	r2, [r3]
	sub	sp, sp, #60
	str	r0, [sp, #44]
	mov	r0, r2
	mov	r9, r1
	str	r2, [sp, #24]
	bl	malloc
	subs	r10, r0, #0
	beq	.L2
	cmp	r9, #0
	ldr	r2, [sp, #24]
	beq	.L41
	mov	r3, #0
	str	r3, [sp, #52]
	mov	r3, #132
	ldr	r6, .L45+4
	ldr	r7, .L45+8
	ldr	r8, .L45+12
	str	r3, [sp, #48]
.L3:
	ldr	r3, [r9]
	ldr	r5, [r9, #16]
	str	r3, [sp, #28]
	ldr	r3, [r9, #4]
	str	r9, [sp, #36]
	str	r3, [sp, #32]
	ldr	r3, [r9, #8]
	str	r3, [sp, #24]
	ldr	r3, [fp]
	str	r3, [sp, #40]
.L6:
	mov	r9, #132
	mov	r4, #0
.L12:
	str	r9, [r5]
	str	r2, [sp, #20]
	ldr	r2, [sp, #32]
	ldr	r1, .L45+16
	str	r2, [sp]
	str	r10, [sp, #16]
	str	r4, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	ldr	r2, [sp, #44]
	mov	r0, fp
	ldr	r3, [sp, #28]
	ldr	r1, [r1]
	bl	res_nmkquery
	subs	r2, r0, #0
	ble	.L7
	ldr	r1, [fp]
	ldr	r3, [r6]
	tst	r1, r3
	bne	.L8
	ldr	r3, [r7]
	ldr	r0, [r8]
	ldr	r1, [fp, #4]
	orr	r3, r3, r0
	tst	r3, r1
	bne	.L42
.L8:
	ldr	r3, [sp, #24]
	mov	r1, r10
	str	r3, [sp]
	mov	r0, fp
	mov	r3, r5
	bl	res_nsend
	cmp	r0, #0
	bge	.L9
	ldr	r3, [r7]
	ldr	r1, [r8]
	ldr	r2, [fp, #4]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L10
	ldr	r3, [fp]
	ldr	r0, [sp, #40]
	ldr	r1, [r6]
	eor	r0, r3, r0
	tst	r0, r1
	orr	r3, r3, r1
	beq	.L10
	ldr	r1, .L45+20
	ldr	r1, [r1]
	str	r3, [fp]
	tst	r2, r1
	bne	.L11
	ldr	r3, .L45
	ldr	r2, [r3]
	b	.L12
.L10:
	ldr	r3, [r5]
	ldr	r9, [sp, #36]
	str	r3, [sp, #48]
.L13:
	ldr	r9, [r9, #20]
	cmp	r9, #0
	beq	.L17
	ldr	r3, .L45
	ldr	r2, [r3]
	b	.L3
.L42:
	ldr	r3, [sp, #24]
	mov	r1, r2
	str	r3, [sp]
	ldr	r3, .L45
	mov	r2, r10
	mov	r0, fp
	ldr	r3, [r3]
	bl	res_nopt
	subs	r2, r0, #0
	bgt	.L8
.L7:
	mov	r0, r10
	str	r2, [sp, #24]
	bl	free
	ldr	r3, .L45+24
	ldr	r2, [sp, #24]
	mov	r0, fp
	ldr	r1, [r3]
	str	r2, [sp, #52]
	bl	RES_SET_H_ERRNO
	ldr	r0, [sp, #52]
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r0, .L45+28
	bl	puts
	ldr	r3, .L45
	ldr	r2, [r3]
	b	.L6
.L17:
	mov	r0, r10
	bl	free
	ldr	r3, [sp, #52]
	cmp	r3, #0
	beq	.L43
.L1:
	ldr	r0, [sp, #52]
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r2, [sp, #24]
	ldr	r9, [sp, #36]
	cmp	r2, r0
	blt	.L44
	ldr	r2, [r5]
	str	r0, [sp, #24]
	cmp	r2, #132
	strne	r2, [sp, #48]
	bne	.L13
	ldr	r0, [r5, #4]
	bl	ntohs
	cmp	r0, #0
	ldr	r3, [sp, #24]
	bne	.L16
	ldr	r3, [r5]
	str	r3, [sp, #48]
	b	.L13
.L44:
	mov	r3, #133
	str	r3, [r5]
	str	r3, [sp, #48]
	b	.L13
.L16:
	ldr	r0, [r5, #4]
	str	r3, [sp, #24]
	bl	ntohs
	ldr	r3, [sp, #24]
	str	r3, [r9, #12]
	ldr	r3, [sp, #52]
	add	r3, r3, r0
	str	r3, [sp, #52]
	b	.L13
.L41:
	bl	free
.L18:
	ldr	r3, .L45+32
.L39:
	ldr	r1, [r3]
	mov	r0, fp
	bl	RES_SET_H_ERRNO
	mvn	r3, #0
	str	r3, [sp, #52]
	b	.L1
.L43:
	ldr	r3, [sp, #48]
	cmp	r3, #130
	beq	.L19
	cmp	r3, #132
	beq	.L18
	cmp	r3, #128
	beq	.L20
	ldr	r3, .L45+24
	b	.L39
.L19:
	ldr	r3, .L45+36
	b	.L39
.L20:
	ldr	r3, .L45+40
	b	.L39
.L2:
	ldr	r3, .L45+44
	b	.L39
.L46:
	.align	2
.L45:
	.word	MAXPACKET
	.word	RES_F_EDNS0ERR
	.word	RES_USE_EDNS0
	.word	RES_USE_DNSSEC
	.word	QUERY
	.word	RES_DEBUG
	.word	NO_RECOVERY
	.word	.LC0
	.word	NO_DATA
	.word	HOST_NOT_FOUND
	.word	TRY_AGAIN
	.word	NETDB_INTERNAL
	.size	res_queryN, .-res_queryN
	.comm	TRY_AGAIN,4,4
	.comm	RES_USE_EDNS0,4,4
	.comm	RES_USE_DNSSEC,4,4
	.comm	RES_F_EDNS0ERR,4,4
	.comm	RES_DEBUG,4,4
	.comm	QUERY,4,4
	.comm	NO_RECOVERY,4,4
	.comm	NO_DATA,4,4
	.comm	NETDB_INTERNAL,4,4
	.comm	MAXPACKET,4,4
	.comm	HOST_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
