	.file	"extr_respip.c_respip_rewrite_reply.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	respip_rewrite_reply
	.type	respip_rewrite_reply, @function
respip_rewrite_reply:
.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
	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, 120
	.cfi_def_cfa_offset 176
	mov	r13d, DWORD PTR respip_none[rip]
	mov	QWORD PTR 8[rsp], rdi
	mov	r15, QWORD PTR 184[rsp]
	mov	QWORD PTR 16[rsp], rcx
	mov	QWORD PTR [rsp], r8
	mov	QWORD PTR 24[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 84[rsp], -1
	mov	QWORD PTR 88[rsp], 0
	mov	QWORD PTR 96[rsp], 0
	test	rsi, rsi
	je	.L20
	mov	rax, QWORD PTR 56[rsi]
	mov	rbp, QWORD PTR 32[rsi]
	mov	r12, rdx
	mov	rbx, QWORD PTR 24[rsi]
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR [rsi]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR 48[rsi]
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR 8[rsi]
	mov	QWORD PTR 56[rsp], rax
	mov	rax, QWORD PTR 40[rsi]
	mov	QWORD PTR 64[rsp], rax
	mov	rax, QWORD PTR 16[rsi]
	mov	QWORD PTR 72[rsp], rax
	test	rbp, rbp
	je	.L3
	mov	rdi, rbp
	call	lock_rw_rdlock@PLT
	mov	rsi, QWORD PTR 8[rbp]
	test	rsi, rsi
	je	.L4
	lea	rdx, 88[rsp]
	mov	rdi, r12
	call	respip_addr_lookup@PLT
	mov	r14, rax
	test	rax, rax
	je	.L4
	mov	r13d, DWORD PTR [rax]
	mov	r8d, DWORD PTR 176[rsp]
	mov	edx, r13d
	test	r8d, r8d
	jne	.L6
.L5:
	mov	rax, QWORD PTR 8[rsp]
	cmp	DWORD PTR respip_always_refuse[rip], edx
	mov	rcx, QWORD PTR 88[rsp]
	mov	edi, DWORD PTR [rax]
	je	.L11
	cmp	DWORD PTR respip_always_transparent[rip], edx
	je	.L11
	cmp	DWORD PTR respip_always_nxdomain[rip], edx
	je	.L11
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	mov	r8, rcx
	mov	edx, edi
	mov	rcx, r12
	push	r15
	.cfi_def_cfa_offset 192
	mov	esi, r13d
	mov	rdi, r14
	lea	rax, 112[rsp]
	push	rax
	.cfi_def_cfa_offset 200
	mov	eax, DWORD PTR [rbx]
	push	rax
	.cfi_def_cfa_offset 208
	mov	eax, DWORD PTR 4[rbx]
	push	rax
	.cfi_def_cfa_offset 216
	push	QWORD PTR 112[rsp]
	.cfi_def_cfa_offset 224
	push	QWORD PTR 112[rsp]
	.cfi_def_cfa_offset 232
	mov	eax, DWORD PTR 140[rsp]
	push	rax
	.cfi_def_cfa_offset 240
	mov	r9, QWORD PTR 80[rsp]
	call	respip_data_answer@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 176
	test	eax, eax
	js	.L12
	je	.L40
	.p2align 4,,10
	.p2align 3
.L9:
	test	rbp, rbp
	je	.L14
.L6:
	mov	rdi, rbp
	call	lock_rw_unlock@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L3:
	test	rbx, rbx
	jne	.L18
.L38:
	xor	r14d, r14d
.L14:
	mov	rcx, QWORD PTR 96[rsp]
	mov	r8d, DWORD PTR 84[rsp]
	test	rcx, rcx
	je	.L2
	mov	edi, DWORD PTR LDNS_RR_TYPE_CNAME[rip]
	mov	r12, QWORD PTR [rcx]
	call	ntohs@PLT
	cmp	r12, rax
	je	.L16
	mov	r8d, DWORD PTR 84[rsp]
	mov	rcx, QWORD PTR 96[rsp]
.L2:
	push	r15
	.cfi_def_cfa_offset 184
	mov	eax, DWORD PTR 184[rsp]
	mov	rdx, r14
	mov	r9, rbx
	mov	esi, r13d
	push	rax
	.cfi_def_cfa_offset 192
	mov	rdi, QWORD PTR 16[rsp]
	call	populate_action_info@PLT
	pop	rdx
	.cfi_def_cfa_offset 184
	pop	rcx
	.cfi_def_cfa_offset 176
.L1:
	mov	rsi, QWORD PTR 104[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L41
	add	rsp, 120
	.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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbp]
	test	edi, edi
	je	.L42
	xor	r14d, r14d
	test	rbx, rbx
	je	.L6
.L18:
	lea	rdx, 88[rsp]
	lea	rsi, 8[rbx]
	mov	rdi, r12
	call	respip_addr_lookup@PLT
	mov	r14, rax
	test	rax, rax
	je	.L9
	mov	esi, DWORD PTR 4[rax]
	mov	edi, DWORD PTR 8[rax]
	mov	eax, DWORD PTR [rbx]
	push	rax
	.cfi_def_cfa_offset 184
	mov	eax, DWORD PTR 4[rbx]
	push	rax
	.cfi_def_cfa_offset 192
	lea	rax, 100[rsp]
	push	rax
	.cfi_def_cfa_offset 200
	mov	eax, DWORD PTR [r14]
	push	rax
	.cfi_def_cfa_offset 208
	mov	rdx, QWORD PTR 64[rsp]
	mov	r9, QWORD PTR 88[rsp]
	mov	r8, QWORD PTR 80[rsp]
	mov	rcx, QWORD PTR 72[rsp]
	call	local_data_find_tag_action@PLT
	mov	esi, DWORD PTR 208[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 176
	mov	r13, rax
	mov	edx, eax
	test	esi, esi
	je	.L5
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, rbp
	call	lock_rw_unlock@PLT
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 96[rsp]
	mov	r8d, DWORD PTR 84[rsp]
	mov	edx, DWORD PTR LDNS_RR_TYPE_ANY[rip]
	cmp	DWORD PTR [rax], edx
	je	.L2
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax], rcx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR 88[rsp]
	mov	edi, DWORD PTR [rax]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r8, QWORD PTR 16[rsp]
	mov	r9, r15
	mov	rdx, r12
	mov	esi, r13d
	call	respip_nodata_answer@PLT
	test	eax, eax
	jne	.L9
.L12:
	xor	eax, eax
	test	rbp, rbp
	je	.L1
	mov	rdi, rbp
	call	lock_rw_unlock@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	xor	ecx, ecx
	xor	r14d, r14d
	mov	r8d, -1
	jmp	.L2
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	respip_rewrite_reply, .-respip_rewrite_reply
	.comm	respip_none,4,4
	.comm	respip_always_transparent,4,4
	.comm	respip_always_refuse,4,4
	.comm	respip_always_nxdomain,4,4
	.comm	LDNS_RR_TYPE_CNAME,4,4
	.comm	LDNS_RR_TYPE_ANY,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_respip.c_respip_rewrite_reply.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	respip_rewrite_reply
	.syntax unified
	.arm
	.fpu softvfp
	.type	respip_rewrite_reply, %function
respip_rewrite_reply:
	@ args = 16, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mvn	ip, #0
	mov	lr, #0
	sub	sp, sp, #92
	str	r3, [sp, #40]
	ldr	r3, .L41
	ldr	r5, .L41+4
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	ldr	r3, [sp, #132]
	subs	r4, r1, #0
	ldr	r8, [r5]
	ldr	r10, [sp, #128]
	ldr	r9, [sp, #140]
	str	lr, [sp, #72]
	str	lr, [sp, #80]
	str	ip, [sp, #76]
	str	r3, [sp, #44]
	beq	.L19
	ldr	r3, [r4, #28]
	ldr	r5, [r4, #16]
	str	r3, [sp, #48]
	ldr	r3, [r4]
	cmp	r5, lr
	str	r3, [sp, #52]
	ldr	r3, [r4, #24]
	mov	fp, r0
	str	r3, [sp, #56]
	ldr	r3, [r4, #4]
	mov	r7, r2
	str	r3, [sp, #60]
	ldr	r3, [r4, #20]
	str	r3, [sp, #64]
	ldr	r3, [r4, #8]
	ldr	r4, [r4, #12]
	str	r3, [sp, #68]
	beq	.L3
	mov	r0, r5
	bl	lock_rw_rdlock
	ldr	r1, [r5, #8]
	cmp	r1, #0
	beq	.L4
	mov	r0, r7
	add	r2, sp, #72
	bl	respip_addr_lookup
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, [sp, #136]
	ldr	r8, [r6]
	cmp	r3, #0
	bne	.L7
.L5:
	ldr	r3, .L41+8
	ldr	r0, [fp]
	ldr	r2, [r3]
	ldr	r3, [sp, #72]
	cmp	r2, r8
	beq	.L10
	ldr	r2, .L41+12
	ldr	r2, [r2]
	cmp	r2, r8
	beq	.L10
	ldr	r2, .L41+16
	ldr	r2, [r2]
	cmp	r2, r8
	beq	.L10
	add	r2, sp, #80
	str	r2, [sp, #28]
	str	r9, [sp, #32]
	ldr	r1, [r4]
	mov	r2, r0
	str	r1, [sp, #24]
	ldr	r0, [r4, #4]
	ldr	r1, [sp, #76]
	str	r0, [sp, #20]
	ldr	r0, [sp, #68]
	str	r3, [sp]
	str	r0, [sp, #16]
	ldr	r0, [sp, #64]
	str	r1, [sp, #8]
	str	r0, [sp, #12]
	ldr	r0, [sp, #40]
	mov	r3, r7
	str	r0, [sp, #4]
	mov	r1, r8
	mov	r0, r6
	bl	respip_data_answer
	cmp	r0, #0
	blt	.L11
	bne	.L9
	ldr	r0, [fp]
	ldr	r3, [sp, #72]
.L10:
	ldr	r2, [sp, #40]
	mov	r1, r8
	str	r2, [sp]
	str	r9, [sp, #4]
	mov	r2, r7
	bl	respip_nodata_answer
	cmp	r0, #0
	bne	.L9
.L11:
	subs	r0, r5, #0
	beq	.L1
	bl	lock_rw_unlock
	mov	r0, #0
	b	.L1
.L3:
	cmp	r4, #0
	moveq	r6, r4
	bne	.L17
.L13:
	ldr	r3, [sp, #80]
	cmp	r3, #0
	beq	.L37
	ldr	r2, .L41+20
	ldr	r5, [r3]
	ldr	r0, [r2]
	bl	ntohs
	cmp	r5, r0
	beq	.L15
	ldr	r3, [sp, #80]
.L37:
	ldr	ip, [sp, #76]
.L2:
	ldr	r2, [sp, #136]
	mov	r1, r8
	str	r2, [sp, #8]
	mov	r0, r10
	mov	r2, r6
	str	r9, [sp, #12]
	str	r4, [sp, #4]
	str	ip, [sp]
	bl	populate_action_info
.L1:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r6, [r5, #4]
	cmp	r6, #0
	beq	.L7
	cmp	r4, #0
	moveq	r6, r4
	bne	.L17
.L7:
	mov	r0, r5
	bl	lock_rw_unlock
	b	.L13
.L17:
	mov	r0, r7
	add	r2, sp, #72
	add	r1, r4, #8
	bl	respip_addr_lookup
	subs	r6, r0, #0
	beq	.L9
	ldr	r3, [r4]
	ldr	r1, [r6, #4]
	ldr	r0, [r6, #8]
	str	r3, [sp, #20]
	ldr	r2, [r4, #4]
	add	r3, sp, #76
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	ldr	ip, [r6]
	ldr	r3, [sp, #52]
	str	ip, [sp, #8]
	ldr	ip, [sp, #60]
	ldr	r2, [sp, #48]
	str	ip, [sp, #4]
	ldr	ip, [sp, #56]
	str	ip, [sp]
	bl	local_data_find_tag_action
	ldr	r3, [sp, #136]
	mov	r8, r0
	cmp	r3, #0
	beq	.L5
.L9:
	cmp	r5, #0
	beq	.L13
	mov	r0, r5
	bl	lock_rw_unlock
	b	.L13
.L15:
	ldr	r3, .L41+24
	ldr	r1, [fp]
	ldr	r2, [r3]
	ldr	ip, [sp, #76]
	cmp	r1, r2
	ldr	r3, [sp, #80]
	ldrne	r2, [sp, #44]
	strne	r3, [r2]
	b	.L2
.L19:
	mov	r3, r4
	mov	r6, r4
	b	.L2
.L40:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	.LC0
	.word	respip_none
	.word	respip_always_refuse
	.word	respip_always_transparent
	.word	respip_always_nxdomain
	.word	LDNS_RR_TYPE_CNAME
	.word	LDNS_RR_TYPE_ANY
	.size	respip_rewrite_reply, .-respip_rewrite_reply
	.comm	respip_none,4,4
	.comm	respip_always_transparent,4,4
	.comm	respip_always_refuse,4,4
	.comm	respip_always_nxdomain,4,4
	.comm	LDNS_RR_TYPE_CNAME,4,4
	.comm	LDNS_RR_TYPE_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
