	.file	"extr_libworker.c_libworker_event_done_cb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	libworker_event_done_cb
	.type	libworker_event_done_cb, @function
libworker_event_done_cb:
.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
	mov	r13, rdx
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 24[rdi]
	mov	r14d, DWORD PTR [rdi]
	mov	r15, QWORD PTR 16[rdi]
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR 8[rdi]
	mov	DWORD PTR 24[rsp], r9d
	mov	rbp, QWORD PTR [rax]
	mov	DWORD PTR 12[rsp], esi
	mov	rdi, rbp
	call	lock_basic_lock@PLT
	mov	esi, DWORD PTR 4[r12]
	lea	rdi, 8[rbp]
	call	rbtree_delete@PLT
	sub	DWORD PTR 4[rbp], 1
	mov	rdi, r12
	call	context_query_delete@PLT
	mov	rdi, rbp
	call	lock_basic_unlock@PLT
	test	r14d, r14d
	jne	.L1
	cmp	DWORD PTR sec_status_bogus[rip], ebx
	mov	r8d, 1
	je	.L3
	xor	r8d, r8d
	cmp	DWORD PTR sec_status_secure[rip], ebx
	sete	r8b
	add	r8d, r8d
.L3:
	test	r13, r13
	je	.L4
	mov	rdi, r13
	mov	DWORD PTR 28[rsp], r8d
	call	sldns_buffer_limit@PLT
	mov	rdi, r13
	mov	r14d, eax
	call	sldns_buffer_begin@PLT
	mov	r8d, DWORD PTR 28[rsp]
	mov	r13, rax
.L4:
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdx, r13
	mov	ecx, r14d
	mov	rdi, r15
	mov	eax, DWORD PTR 32[rsp]
	push	rax
	.cfi_def_cfa_offset 112
	mov	r9, QWORD PTR 32[rsp]
	mov	esi, DWORD PTR 28[rsp]
	mov	rax, QWORD PTR 16[rsp]
	call	rax
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
.L1:
	add	rsp, 40
	.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
	.cfi_endproc
.LFE0:
	.size	libworker_event_done_cb, .-libworker_event_done_cb
	.comm	sec_status_secure,4,4
	.comm	sec_status_bogus,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_libworker.c_libworker_event_done_cb.c"
	.text
	.align	2
	.global	libworker_event_done_cb
	.syntax unified
	.arm
	.fpu softvfp
	.type	libworker_event_done_cb, %function
libworker_event_done_cb:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, [r0, #8]
	sub	sp, sp, #20
	ldr	r5, [r0]
	mov	r7, r3
	mov	r0, r5
	mov	r6, r2
	mov	r8, r1
	ldr	fp, [r4]
	ldr	r9, [r4, #16]
	ldr	r10, [r4, #12]
	bl	lock_basic_lock
	ldr	r1, [r4, #4]
	add	r0, r5, #8
	bl	rbtree_delete
	ldr	r2, [r5, #4]
	mov	r0, r4
	sub	r2, r2, #1
	str	r2, [r5, #4]
	bl	context_query_delete
	mov	r0, r5
	bl	lock_basic_unlock
	cmp	fp, #0
	bne	.L1
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r7
	moveq	r7, #1
	beq	.L3
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r7
	moveq	r7, #2
	movne	r7, #0
.L3:
	cmp	r6, #0
	beq	.L4
	mov	r0, r6
	bl	sldns_buffer_begin
	mov	r2, r0
	mov	r0, r6
	mov	r6, r2
	bl	sldns_buffer_limit
	mov	fp, r0
.L4:
	ldr	r3, [sp, #60]
	mov	r2, r6
	str	r3, [sp, #8]
	ldr	r3, [sp, #56]
	mov	r1, r8
	str	r3, [sp, #4]
	mov	r0, r10
	mov	r3, fp
	str	r7, [sp]
	blx	r9
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	sec_status_bogus
	.word	sec_status_secure
	.size	libworker_event_done_cb, .-libworker_event_done_cb
	.comm	sec_status_secure,4,4
	.comm	sec_status_bogus,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
