	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_next_transaction_id        ## -- Begin function get_next_transaction_id
	.p2align	4, 0x90
_get_next_transaction_id:               ## @get_next_transaction_id
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movq	%rax, %rbx
	shlq	$32, %rbx
	movq	_last_transaction_id@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	cmpq	%r15, %rbx
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_lrand48
	cltq
	imulq	$-1994733765, %rax, %rcx        ## imm = 0x891AC73B
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$7, %ecx
	addl	%edx, %ecx
	imull	$239, %ecx, %ecx
	subl	%ecx, %eax
	cltq
	leaq	(%r15,%rax), %rbx
	incq	%rbx
LBB0_2:
	movq	%rbx, %rdi
	callq	_get_transaction
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%rbx, (%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_last_transaction_id,8,3        ## @last_transaction_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_next_transaction_id        ; -- Begin function get_next_transaction_id
	.p2align	2
_get_next_transaction_id:               ; @get_next_transaction_id
	.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
Lloh0:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_utime
	lsl	x19, x0, #32
Lloh3:
	adrp	x20, _last_transaction_id@GOTPAGE
Lloh4:
	ldr	x20, [x20, _last_transaction_id@GOTPAGEOFF]
	ldr	x21, [x20]
	cmp	x19, x21
	b.gt	LBB0_2
; %bb.1:
	bl	_lrand48
	mov	w8, #51003
	movk	w8, #35098, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	mov	w9, #239
	msub	w8, w8, w9, w0
	add	x8, x21, w8, sxtw
	add	x19, x8, #1
LBB0_2:
	mov	x0, x19
	bl	_get_transaction
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	str	x19, [x20]
	mov	x0, x19
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_last_transaction_id,8,3        ; @last_transaction_id
.subsections_via_symbols
