	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_running_transactions      ## -- Begin function find_running_transactions
	.p2align	4, 0x90
_find_running_transactions:             ## @find_running_transactions
	.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
	leaq	-64(%rbp), %rdi
	callq	_tlist_clear
	movq	_HASH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_ts_running@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HASH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r15), %rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %r15
	movq	%rcx, %r15
	jge	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_H@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %r12
	testq	%r12, %r12
	jne	LBB0_4
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	leaq	-64(%rbp), %rdi
	movq	%r12, %rsi
	callq	_tlist_insert
	incl	%r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%r12), %r12
	testq	%r12, %r12
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	callq	_check_is_running
	movl	$4, %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_auto_running_list@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_tlist_insert
	incl	%ebx
	jmp	LBB0_8
LBB0_11:
	testl	%r14d, %r14d
	jle	LBB0_18
## %bb.12:
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	-56(%rbp), %rax
	leaq	-64(%rbp), %rdx
	cmpq	%rdx, %rax
	je	LBB0_15
## %bb.13:
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx)
	movq	8(%rax), %rax
	addq	$8, %rcx
	cmpq	%rdx, %rax
	jne	LBB0_14
LBB0_15:
	movq	_cmp_transaction@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$8, %edx
	callq	_qsort
	movl	%r14d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	$4, %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_vkprintf
	movq	(%r15,%r12,8), %rdi
	xorl	%esi, %esi
	callq	_transaction_finish_execution
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_16
## %bb.17:
	movq	%r15, %rdi
	callq	_free
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	jmp	LBB0_18
LBB0_1:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_MASK,4,2                  ## @HASH_MASK
	.comm	_H,8,3                          ## @H
	.comm	_ts_running,8,3                 ## @ts_running
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tlist_insert (&auto_running_list, %p)\n"

	.comm	_auto_running_list,24,3         ## @auto_running_list
L_.str.1:                               ## @.str.1
	.asciz	"tlist_insert (&auto_terminated_list, %p)\n"

	.comm	_cmp_transaction,4,2            ## @cmp_transaction
L_.str.2:                               ## @.str.2
	.asciz	"find_running_transactions: call transaction_finish_execution\n"

L_.str.3:                               ## @.str.3
	.asciz	"found %d terminated transaction(s)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_running_transactions      ; -- Begin function find_running_transactions
	.p2align	2
_find_running_transactions:             ; @find_running_transactions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	add	x0, sp, #8
	bl	_tlist_clear
Lloh0:
	adrp	x25, _HASH_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HASH_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	tbnz	w8, #31, LBB0_17
; %bb.1:
	mov	x26, #0
	mov	w20, #0
	mov	w19, #0
Lloh2:
	adrp	x27, _H@GOTPAGE
Lloh3:
	ldr	x27, [x27, _H@GOTPAGEOFF]
Lloh4:
	adrp	x28, _ts_running@GOTPAGE
Lloh5:
	ldr	x28, [x28, _ts_running@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh8:
	adrp	x22, _auto_running_list@GOTPAGE
Lloh9:
	ldr	x22, [x22, _auto_running_list@GOTPAGEOFF]
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x26, w8, sxtw
	add	x26, x26, #1
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x27]
	ldr	x24, [x9, x26, lsl #3]
	cbnz	x24, LBB0_7
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	x24, [sp]
	mov	w0, #4
	mov	x1, x21
	bl	_vkprintf
	add	x0, sp, #8
	mov	x1, x24
	bl	_tlist_insert
	add	w20, w20, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x24, [x24, #16]
	cbz	x24, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_check_is_running
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	str	x24, [sp]
	mov	w0, #4
	mov	x1, x23
	bl	_vkprintf
	mov	x0, x22
	mov	x1, x24
	bl	_tlist_insert
	add	w19, w19, #1
	b	LBB0_6
LBB0_10:
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.11:
	mov	x0, x20
	mov	w1, #8
	bl	_calloc
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [sp, #16]
	add	x9, sp, #8
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.12:
	mov	x10, x21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	x8, [x10], #8
	ldr	x8, [x8, #8]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_14:
Lloh12:
	adrp	x8, _cmp_transaction@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cmp_transaction@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #8
	bl	_qsort
	mov	x23, #0
	mov	w24, w20
Lloh15:
	adrp	x22, l_.str.2@PAGE
Lloh16:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #4
	mov	x1, x22
	bl	_vkprintf
	ldr	x0, [x21, x23, lsl #3]
	mov	w1, #0
	bl	_transaction_finish_execution
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_15
; %bb.16:
	mov	x0, x21
	bl	_free
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	b	LBB0_18
LBB0_17:
	mov	w19, #0
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_MASK,4,2                  ; @HASH_MASK
	.comm	_H,8,3                          ; @H
	.comm	_ts_running,8,3                 ; @ts_running
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tlist_insert (&auto_running_list, %p)\n"

	.comm	_auto_running_list,24,3         ; @auto_running_list
l_.str.1:                               ; @.str.1
	.asciz	"tlist_insert (&auto_terminated_list, %p)\n"

	.comm	_cmp_transaction,4,2            ; @cmp_transaction
l_.str.2:                               ; @.str.2
	.asciz	"find_running_transactions: call transaction_finish_execution\n"

l_.str.3:                               ; @.str.3
	.asciz	"found %d terminated transaction(s)\n"

.subsections_via_symbols
