	.file	"extr_yp_dnslookup.c_yp_send_dns_query.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"res_mkquery failed for %s type %d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"sendto failed"
	.text
	.p2align 4
	.type	yp_send_dns_query, @function
yp_send_dns_query:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15d, esi
	push	r14
	.cfi_offset 14, -32
	mov	r14, rdi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXPACKET[rip]
	mov	rcx, rsp
	mov	rbx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	mov	rdi, rsp
	mov	esi, ebx
	mov	r12, rsp
	call	bzero@PLT
	sub	rsp, 8
	xor	r9d, r9d
	xor	r8d, r8d
	push	rbx
	mov	edx, DWORD PTR C_IN[rip]
	mov	ecx, r15d
	mov	rsi, r14
	push	r12
	mov	edi, DWORD PTR QUERY[rip]
	push	0
	call	res_mkquery@PLT
	add	rsp, 32
	mov	r13d, eax
	test	eax, eax
	jle	.L18
	mov	edi, DWORD PTR [r12]
	call	ntohs@PLT
	mov	r15, rax
	mov	eax, DWORD PTR _res[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	lea	r14, _res[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jle	.L1
.L8:
	mov	rax, QWORD PTR _res[rip+8]
	xor	ecx, ecx
	mov	edx, r13d
	mov	rsi, r12
	mov	edi, DWORD PTR resfd[rip]
	mov	r9d, 4
	lea	r8, [rax+rbx*4]
	call	sendto@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC1[rip]
	xor	eax, eax
	xor	r15d, r15d
	call	yp_error@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -40[rbp]
	mov	rax, r15
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, r15d
	mov	rsi, r14
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	yp_error@PLT
	xor	r15d, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	yp_send_dns_query, .-yp_send_dns_query
	.comm	resfd,4,4
	.comm	_res,16,16
	.comm	QUERY,4,4
	.comm	MAXPACKET,4,4
	.comm	C_IN,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_yp_dnslookup.c_yp_send_dns_query.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"res_mkquery failed for %s type %d\000"
	.align	2
.LC1:
	.ascii	"sendto failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	yp_send_dns_query, %function
yp_send_dns_query:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	mov	r4, #0
	mov	r5, r0
	mov	r8, r1
	ldr	r3, .L12
	ldr	r2, .L12+4
	ldr	r6, [r3]
	ldr	r2, [r2]
	str	r2, [fp, #-40]
	mov	r2,#0
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r7, sp, #24
	mov	r1, r6
	mov	r0, r7
	bl	bzero
	ldr	r2, .L12+8
	ldr	r0, .L12+12
	str	r6, [sp, #16]
	str	r7, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r3, r8
	mov	r1, r5
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	res_mkquery
	subs	r6, r0, #0
	ble	.L10
	ldr	r0, [sp, #24]
	bl	ntohs
	ldr	r5, .L12+16
	mov	r10, r0
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L1
	mov	r9, #4
	ldr	r8, .L12+20
	b	.L5
.L4:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L1
.L5:
	ldr	r3, [r5, #4]
	str	r9, [sp, #4]
	add	r3, r3, r4, lsl #2
	str	r3, [sp]
	mov	r2, r6
	mov	r3, #0
	mov	r1, r7
	ldr	r0, [r8]
	bl	sendto
	cmn	r0, #1
	bne	.L4
	ldr	r0, .L12+24
	bl	yp_error
	mov	r10, #0
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r10
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r2, r8
	mov	r1, r5
	ldr	r0, .L12+28
	mov	r10, r4
	bl	yp_error
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	MAXPACKET
	.word	.LC2
	.word	C_IN
	.word	QUERY
	.word	_res
	.word	resfd
	.word	.LC1
	.word	.LC0
	.size	yp_send_dns_query, .-yp_send_dns_query
	.comm	resfd,4,4
	.comm	_res,8,4
	.comm	QUERY,4,4
	.comm	MAXPACKET,4,4
	.comm	C_IN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
