	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libworker_event_done_cb        ## -- Begin function libworker_event_done_cb
	.p2align	4, 0x90
_libworker_event_done_cb:               ## @libworker_event_done_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	16(%rdi), %r15
	movq	(%rax), %r12
	movl	(%rdi), %r13d
	movq	%r12, %rdi
	callq	_lock_basic_lock
	leaq	8(%r12), %rdi
	movl	4(%rbx), %esi
	callq	_rbtree_delete
	decl	4(%r12)
	movq	%rbx, %rdi
	callq	_context_query_delete
	movq	%r12, %rdi
	callq	_lock_basic_unlock
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	_sec_status_bogus@GOTPCREL(%rip), %rax
	movq	_sec_status_secure@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r14d, (%rcx)
	sete	%dl
	addl	%edx, %edx
	cmpl	%r14d, (%rax)
	movl	$1, %ebx
	cmovnel	%edx, %ebx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_2
## %bb.3:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_sldns_buffer_begin
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_sldns_buffer_limit
	movq	%rax, %rcx
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
LBB0_4:
	movq	%r15, %r9
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r8d
	callq	*%r12
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_status_bogus,4,2           ## @sec_status_bogus
	.comm	_sec_status_secure,4,2          ## @sec_status_secure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libworker_event_done_cb        ; -- Begin function libworker_event_done_cb
	.p2align	2
_libworker_event_done_cb:               ; @libworker_event_done_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x23, x2
	mov	x21, x1
	mov	x25, x0
	ldr	x0, [x0, #24]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w27, [x25]
	ldp	x8, x22, [x25, #8]
	ldr	x26, [x8]
	mov	x0, x26
	bl	_lock_basic_lock
	add	x0, x26, #8
	ldr	w1, [x25, #4]
	bl	_rbtree_delete
	ldr	w8, [x26, #4]
	sub	w8, w8, #1
	str	w8, [x26, #4]
	mov	x0, x25
	bl	_context_query_delete
	mov	x0, x26
	bl	_lock_basic_unlock
	cbz	w27, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh0:
	adrp	x8, _sec_status_bogus@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sec_status_bogus@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _sec_status_secure@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sec_status_secure@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w24
	cset	w9, eq
	lsl	w9, w9, #1
	cmp	w8, w24
	csinc	w24, w9, wzr, ne
	cbz	x23, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_sldns_buffer_begin
	mov	x25, x0
	mov	x0, x23
	bl	_sldns_buffer_limit
	mov	x3, x0
	b	LBB0_5
LBB0_4:
	mov	x25, #0
	mov	w3, #0
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x24
	mov	x5, x20
	mov	x6, x19
	ldr	x7, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	br	x7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_status_bogus,4,2           ; @sec_status_bogus
	.comm	_sec_status_secure,4,2          ; @sec_status_secure
.subsections_via_symbols
