	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gettime
_gettime:                               ## @gettime
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_EVENT_BASE_ASSERT_LOCKED
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r14)
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	12(%rbx), %rdi
	movq	%r14, %rsi
	callq	_evutil_gettime_monotonic_
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	_CLOCK_SYNC_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rbx), %rax
	xorl	%r15d, %r15d
	cmpq	(%r14), %rax
	jge	LBB0_6
## %bb.5:
	xorl	%r15d, %r15d
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	leaq	8(%rbx), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_evutil_timersub
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_6
LBB0_3:
	movl	$-1, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_SYNC_INTERVAL,8,3        ## @CLOCK_SYNC_INTERVAL
	.no_dead_strip	_gettime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gettime
_gettime:                               ; @gettime
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_EVENT_BASE_ASSERT_LOCKED
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #0
	str	x8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	add	x0, x20, #12
	mov	x1, x19
	bl	_evutil_gettime_monotonic_
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.4:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _CLOCK_SYNC_INTERVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CLOCK_SYNC_INTERVAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x19]
	add	x8, x9, x8
	cmp	x8, x10
	b.ge	LBB0_6
; %bb.5:
	add	x0, sp, #8
	mov	x1, #0
	bl	_evutil_gettimeofday
	add	x2, x20, #8
	add	x0, sp, #8
	mov	x1, x19
	bl	_evutil_timersub
	mov	w0, #0
	ldr	x8, [x19]
	str	x8, [x20]
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_SYNC_INTERVAL,8,3        ; @CLOCK_SYNC_INTERVAL
	.no_dead_strip	_gettime
.subsections_via_symbols
