	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function capture_CheckNotify
_capture_CheckNotify:                   ## @capture_CheckNotify
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.1:
	movq	%rdi, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$8, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r15
	movq	-8(%r15,%r13), %r14
	movl	(%r15,%r13), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_TRACE
	movq	_DSBPN_OFFSETSTOP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%r15,%r13), %edi
	callq	_SetEvent
	jmp	LBB0_8
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	je	LBB0_4
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15,%r13), %edi
	callq	_SetEvent
	movl	(%r15,%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TRACE                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"checking %d, position %d, event = %p\n"

	.comm	_DSBPN_OFFSETSTOP,8,3           ## @DSBPN_OFFSETSTOP
L_.str.1:                               ## @.str.1
	.asciz	"signalled event %p (%d)\n"

	.no_dead_strip	_capture_CheckNotify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function capture_CheckNotify
_capture_CheckNotify:                   ; @capture_CheckNotify
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	mov	x26, #0
	mov	x19, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x27, x8, x1
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x28, _DSBPN_OFFSETSTOP@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DSBPN_OFFSETSTOP@GOTPAGEOFF]
Lloh4:
	adrp	x24, l_.str.1@PAGE
Lloh5:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #1
	ldrsw	x8, [x22]
	add	x26, x26, #16
	cmp	x19, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x20, x8, x26
	ldr	x25, [x20]
	ldr	w8, [x20, #8]
	str	x8, [sp]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x25
	bl	_TRACE
	ldr	x8, [x28]
	cmp	x25, x8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x25, x21
	ccmp	x25, x27, #0, ge
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, #8]
	mov	x0, x24
	mov	x2, x19
	bl	_TRACE
	ldr	w0, [x20, #8]
	bl	_SetEvent
	b	LBB0_2
LBB0_6:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	orr	x8, x8, x21
	cbz	x8, LBB0_8
LBB0_7:
	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_8:
	ldr	w0, [x20, #8]
	bl	_SetEvent
	ldr	w1, [x20, #8]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	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
	b	_TRACE
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"checking %d, position %d, event = %p\n"

	.comm	_DSBPN_OFFSETSTOP,8,3           ; @DSBPN_OFFSETSTOP
l_.str.1:                               ; @.str.1
	.asciz	"signalled event %p (%d)\n"

	.no_dead_strip	_capture_CheckNotify
.subsections_via_symbols
