	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thread_event_adjust_thresholds_helper
_thread_event_adjust_thresholds_helper: ## @thread_event_adjust_thresholds_helper
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_THREAD_EVENT_MAX_START_WAIT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rsi, (%rax)
	setge	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_thread_allocated_last_event_get
	movq	_THREAD_EVENT_MAX_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rbx, %rcx
	cmovlq	%rcx, %rbx
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_thread_allocated_next_event_set
	movq	_THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	(%rax), %rbx
	cmovleq	%rbx, %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_thread_allocated_next_event_fast_set ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_THREAD_EVENT_MAX_START_WAIT,8,3 ## @THREAD_EVENT_MAX_START_WAIT
	.comm	_THREAD_EVENT_MAX_INTERVAL,8,3  ## @THREAD_EVENT_MAX_INTERVAL
	.comm	_THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX,8,3 ## @THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX
	.no_dead_strip	_thread_event_adjust_thresholds_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thread_event_adjust_thresholds_helper
_thread_event_adjust_thresholds_helper: ; @thread_event_adjust_thresholds_helper
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _THREAD_EVENT_MAX_START_WAIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THREAD_EVENT_MAX_START_WAIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	cset	w0, ge
	bl	_assert
	mov	x0, x20
	bl	_thread_allocated_last_event_get
Lloh3:
	adrp	x8, _THREAD_EVENT_MAX_INTERVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THREAD_EVENT_MAX_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	csel	x8, x8, x19, lt
	add	x19, x8, x0
	mov	x0, x20
	mov	x1, x19
	bl	_thread_allocated_next_event_set
Lloh6:
	adrp	x8, _THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x19, x8
	csel	x1, xzr, x19, gt
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_thread_allocated_next_event_fast_set
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_THREAD_EVENT_MAX_START_WAIT,8,3 ; @THREAD_EVENT_MAX_START_WAIT
	.comm	_THREAD_EVENT_MAX_INTERVAL,8,3  ; @THREAD_EVENT_MAX_INTERVAL
	.comm	_THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX,8,3 ; @THREAD_ALLOCATED_NEXT_EVENT_FAST_MAX
	.no_dead_strip	_thread_event_adjust_thresholds_helper
.subsections_via_symbols
