	.file	"extr_libunbound.c_process_answer_detail.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"error: bad data from bg worker %d"
	.text
	.p2align 4
	.type	process_answer_detail, @function
process_answer_detail:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	esi, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	mov	rbx, r9
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	context_serial_getcmd@PLT
	cmp	rax, QWORD PTR UB_LIBCMD_ANSWER[rip]
	je	.L2
	mov	esi, r15d
	mov	rdi, rbp
	call	context_serial_getcmd@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	call	log_err@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.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
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	lock_basic_lock@PLT
	mov	rsi, rbp
	mov	rcx, rbx
	mov	edx, r15d
	mov	rdi, r12
	call	context_deserialize_answer@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L19
	mov	edi, DWORD PTR 64[rax]
	call	log_assert@PLT
	cmp	QWORD PTR 56[rbp], 0
	je	.L5
	mov	QWORD PTR 0[r13], 0
	mov	QWORD PTR [r14], 0
.L6:
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR 64[rsp]
	mov	QWORD PTR [rax], 0
	mov	rdi, QWORD PTR 8[rbp]
	call	ub_resolve_free@PLT
.L8:
	mov	QWORD PTR 8[rbp], 0
	mov	esi, DWORD PTR 0[rbp]
	lea	rdi, 8[r12]
	call	rbtree_delete@PLT
	sub	DWORD PTR 4[r12], 1
	mov	rdi, rbp
	call	context_query_delete@PLT
	mov	rdi, r12
	call	lock_basic_unlock@PLT
	cmp	QWORD PTR 0[r13], 0
	mov	eax, 2
	jne	.L1
	mov	rax, QWORD PTR 64[rsp]
	mov	rdi, QWORD PTR [rax]
	call	ub_resolve_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	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
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbp]
	call	sldns_buffer_new@PLT
	mov	r14, rax
	xor	eax, eax
	call	regional_create@PLT
	mov	rbx, QWORD PTR 64[rsp]
	mov	edx, DWORD PTR LDNS_RCODE_SERVFAIL[rip]
	mov	r15, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rbx], rax
	mov	DWORD PTR 16[rax], edx
	test	r15, r15
	je	.L9
	test	r14, r14
	je	.L9
	mov	rdi, r14
	call	sldns_buffer_clear@PLT
	mov	rdx, QWORD PTR 24[rbp]
	mov	rsi, QWORD PTR 16[rbp]
	mov	rdi, r14
	call	sldns_buffer_write@PLT
	mov	rdi, r14
	call	sldns_buffer_flip@PLT
	mov	rax, QWORD PTR 64[rsp]
	mov	ecx, DWORD PTR 32[rbp]
	mov	rdx, r15
	mov	rsi, r14
	mov	rdi, QWORD PTR [rax]
	call	libworker_enter_result@PLT
	mov	rax, QWORD PTR 64[rsp]
	mov	rax, QWORD PTR [rax]
.L9:
	mov	rdx, QWORD PTR 16[rbp]
	mov	rdi, r14
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR 24[rbp]
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR 16[rbp], 0
	call	sldns_buffer_free@PLT
	mov	rdi, r15
	call	regional_destroy@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 48[rbp]
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR 40[rbp]
	mov	QWORD PTR [r14], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r12
	call	lock_basic_unlock@PLT
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	process_answer_detail, .-process_answer_detail
	.comm	UB_LIBCMD_ANSWER,8,8
	.comm	LDNS_RCODE_SERVFAIL,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_libunbound.c_process_answer_detail.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error: bad data from bg worker %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_answer_detail, %function
process_answer_detail:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r1, r2
	mov	r0, r4
	mov	r6, r2
	mov	r7, r3
	bl	context_serial_getcmd
	ldr	r2, .L19
	ldr	r2, [r2]
	cmp	r0, r2
	beq	.L2
	mov	r1, r6
	mov	r0, r4
	bl	context_serial_getcmd
	mov	r1, r0
	ldr	r0, .L19+4
	bl	log_err
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	lock_basic_lock
	mov	r1, r4
	mov	r2, r6
	mov	r0, r5
	ldr	r3, [sp, #28]
	bl	context_deserialize_answer
	subs	r4, r0, #0
	beq	.L16
	ldr	r0, [r4, #32]
	bl	log_assert
	ldr	r3, [r4, #28]
	ldr	r2, [sp, #24]
	cmp	r3, #0
	movne	r3, #0
	ldreq	r3, [r4, #24]
	strne	r3, [r7]
	streq	r3, [r7]
	ldreq	r3, [r4, #20]
	str	r3, [r2]
	ldr	r3, [sp, #28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	ldr	r2, [sp, #32]
	str	r3, [r2]
	ldr	r0, [r4, #4]
	bl	ub_resolve_free
.L8:
	mov	r3, #0
	ldr	r1, [r4]
	str	r3, [r4, #4]
	add	r0, r5, #8
	bl	rbtree_delete
	ldr	r3, [r5, #4]
	mov	r0, r4
	sub	r3, r3, #1
	str	r3, [r5, #4]
	bl	context_query_delete
	mov	r0, r5
	bl	lock_basic_unlock
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L17
	mov	r0, #2
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, [r4, #12]
	bl	sldns_buffer_new
	mov	r6, r0
	bl	regional_create
	cmp	r0, #0
	cmpne	r6, #0
	ldr	r2, .L19+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [sp, #32]
	mov	r8, r0
	str	r3, [r1]
	str	r2, [r3, #8]
	bne	.L18
.L9:
	mov	r2, #0
	ldr	ip, [r4, #8]
	ldr	r1, [r4, #12]
	mov	r0, r6
	stm	r3, {r1, ip}
	str	r2, [r4, #8]
	bl	sldns_buffer_free
	mov	r0, r8
	bl	regional_destroy
	b	.L8
.L16:
	mov	r0, r5
	bl	lock_basic_unlock
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r6
	bl	sldns_buffer_clear
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #8]
	mov	r0, r6
	bl	sldns_buffer_write
	mov	r0, r6
	bl	sldns_buffer_flip
	ldr	r0, [sp, #32]
	ldr	r3, [r4, #16]
	mov	r2, r8
	mov	r1, r6
	ldr	r0, [r0]
	bl	libworker_enter_result
	ldr	r3, [sp, #32]
	ldr	r3, [r3]
	b	.L9
.L17:
	ldr	r3, [sp, #32]
	ldr	r0, [r3]
	bl	ub_resolve_free
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	UB_LIBCMD_ANSWER
	.word	.LC0
	.word	LDNS_RCODE_SERVFAIL
	.size	process_answer_detail, .-process_answer_detail
	.comm	UB_LIBCMD_ANSWER,4,4
	.comm	LDNS_RCODE_SERVFAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
