	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AfterTriggerEndQuery           ## -- Begin function AfterTriggerEndQuery
	.p2align	4, 0x90
_AfterTriggerEndQuery:                  ## @AfterTriggerEndQuery
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, %edi
	callq	_Assert
	movq	_afterTriggers@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	cmpq	8(%r15), %rbx
	jae	LBB0_8
## %bb.1:
	shlq	$4, %rbx
	addq	16(%r15), %rbx
	leaq	28(%r15), %rsi
	movq	%rbx, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	callq	_afterTriggerMarkEvents
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_afterTriggerMarkEvents
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %r15
	je	LBB0_7
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	24(%r15), %esi
	leal	1(%rsi), %eax
	movl	%eax, 24(%r15)
	movq	8(%rbx), %r13
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_afterTriggerInvokeEvents
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %r14
	movq	%r15, %r12
	movq	16(%r15), %r15
	shlq	$4, %r14
	leaq	(%r15,%r14), %rbx
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_Assert
	cmpq	%r13, (%r15,%r14)
	je	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_afterTriggerDeleteHeadEventChunk
	cmpq	%r13, (%rbx)
	jne	LBB0_6
	jmp	LBB0_3
LBB0_7:
	movq	(%r15), %rdi
	shlq	$4, %rdi
	addq	16(%r15), %rdi
	callq	_AfterTriggerFreeQuery
	movq	(%r15), %rbx
LBB0_8:
	decq	%rbx
	movq	%rbx, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_afterTriggers,32,3             ## @afterTriggers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AfterTriggerEndQuery           ; -- Begin function AfterTriggerEndQuery
	.p2align	2
_AfterTriggerEndQuery:                  ; @AfterTriggerEndQuery
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w0, #1
	bl	_Assert
Lloh0:
	adrp	x21, _afterTriggers@GOTPAGE
Lloh1:
	ldr	x21, [x21, _afterTriggers@GOTPAGEOFF]
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_8
; %bb.1:
	ldr	x9, [x21, #16]
	add	x20, x9, x8, lsl #4
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x1, x21, #28
	mov	x0, x20
	mov	w2, #1
	bl	_afterTriggerMarkEvents
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x21, #24]
	add	w8, w1, #1
	str	w8, [x21, #24]
	ldr	x22, [x20, #8]
	mov	x0, x20
	mov	x2, x19
	mov	w3, #0
	bl	_afterTriggerInvokeEvents
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	add	x20, x8, x9, lsl #4
	cmp	x22, #0
	cset	w0, ne
	bl	_Assert
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	cmp	x8, x22
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	bl	_afterTriggerDeleteHeadEventChunk
	b	LBB0_5
LBB0_7:
	ldr	x8, [x21, #16]
	ldr	x9, [x21]
	add	x0, x8, x9, lsl #4
	bl	_AfterTriggerFreeQuery
	ldr	x8, [x21]
LBB0_8:
	sub	x8, x8, #1
	str	x8, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_afterTriggers,32,3             ; @afterTriggers
.subsections_via_symbols
