	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thread_event_assert_invariants_debug ## -- Begin function thread_event_assert_invariants_debug
	.p2align	4, 0x90
_thread_event_assert_invariants_debug:  ## @thread_event_assert_invariants_debug
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_thread_allocated_get
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_thread_allocated_last_event_get
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_thread_allocated_next_event_get
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_thread_allocated_next_event_fast_get
	movq	%rax, %r13
	xorl	%edi, %edi
	movq	%rbx, %r15
	subq	%r14, %r15
	setne	%dil
	callq	_assert
	movq	_THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %rbx
	cmovleq	%rbx, %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %r13
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	setl	%dil
	callq	_assert
	movq	%r12, %rdi
	callq	_thread_allocated_next_event_compute
	movq	_thread_event_active@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%cl
	testq	%r14, %r14
	sete	%dl
	movl	$1, %edi
	testb	%dl, %cl
	jne	LBB0_3
## %bb.1:
	cmpq	%rax, %r15
	je	LBB0_3
## %bb.2:
	setl	%al
	movq	_THREAD_EVENT_MAX_INTERVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX,8,3 ## @THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX
	.comm	_thread_event_active,4,2        ## @thread_event_active
	.comm	_THREAD_EVENT_MAX_INTERVAL,8,3  ## @THREAD_EVENT_MAX_INTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thread_event_assert_invariants_debug ; -- Begin function thread_event_assert_invariants_debug
	.p2align	2
_thread_event_assert_invariants_debug:  ; @thread_event_assert_invariants_debug
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_thread_allocated_get
	mov	x20, x0
	mov	x0, x19
	bl	_thread_allocated_last_event_get
	mov	x21, x0
	mov	x0, x19
	bl	_thread_allocated_next_event_get
	mov	x22, x0
	mov	x0, x19
	bl	_thread_allocated_next_event_fast_get
	mov	x23, x0
	subs	x24, x22, x21
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x8, _THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x22, x8
	csel	x8, xzr, x22, gt
	cmp	x23, x8
	cset	w0, eq
	bl	_assert
	cmp	x20, x22
	cset	w0, lt
	bl	_assert
	mov	x0, x19
	bl	_thread_allocated_next_event_compute
Lloh3:
	adrp	x8, _thread_event_active@GOTPAGE
Lloh4:
	ldr	x8, [x8, _thread_event_active@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x21, #0
	ccmp	w8, #0, #0, eq
	ccmp	x24, x0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	cmp	x24, x0
Lloh6:
	adrp	x8, _THREAD_EVENT_MAX_INTERVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THREAD_EVENT_MAX_INTERVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ccmp	x24, x8, #0, lt
	cset	w0, eq
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_assert
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX,8,3 ; @THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX
	.comm	_thread_event_active,4,2        ; @thread_event_active
	.comm	_THREAD_EVENT_MAX_INTERVAL,8,3  ; @THREAD_EVENT_MAX_INTERVAL
.subsections_via_symbols
