	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetRunningTransactionLocks     ## -- Begin function GetRunningTransactionLocks
	.p2align	4, 0x90
_GetRunningTransactionLocks:            ## @GetRunningTransactionLocks
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_NUM_LOCK_PARTITIONS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_LW_SHARED@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_LockHashPartitionLockByIndex
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_LWLockAcquire
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	movq	_LockMethodProcLockHash@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_hash_get_num_entries
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(,%rax,4), %eax
	leal	(%rax,%rax,2), %edi
	callq	_palloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	leaq	-76(%rbp), %r13
	movq	%r13, %rdi
	callq	_hash_seq_init
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_AccessExclusiveLock@GOTPCREL(%rip), %r12
	movq	_LOCKTAG_RELATION@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movl	(%rax), %r14d
	movl	(%r12), %edi
	callq	_LOCKBIT_ON
	testl	%r14d, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %r14
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %rax
	movq	_ProcGlobal@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, %edi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, 8(%rdx,%rax,4)
	movl	12(%r14), %ecx
	movl	%ecx, 4(%rdx,%rax,4)
	movl	8(%r14), %ecx
	movl	%ecx, (%rdx,%rax,4)
	incl	%esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
LBB0_9:
	xorl	%edi, %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	setle	%dil
	callq	_Assert
	movq	_NUM_LOCK_PARTITIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.10:
	incl	%ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %edi
	callq	_LockHashPartitionLockByIndex
	movl	%eax, %edi
	callq	_LWLockRelease
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_11
LBB0_12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_LOCK_PARTITIONS,4,2        ## @NUM_LOCK_PARTITIONS
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_LockMethodProcLockHash,4,2     ## @LockMethodProcLockHash
	.comm	_AccessExclusiveLock,4,2        ## @AccessExclusiveLock
	.comm	_LOCKTAG_RELATION,8,3           ## @LOCKTAG_RELATION
	.comm	_ProcGlobal,8,3                 ## @ProcGlobal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetRunningTransactionLocks     ; -- Begin function GetRunningTransactionLocks
	.p2align	2
_GetRunningTransactionLocks:            ; @GetRunningTransactionLocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _NUM_LOCK_PARTITIONS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_LOCK_PARTITIONS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh2:
	adrp	x21, _LW_SHARED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LW_SHARED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_LockHashPartitionLockByIndex
	ldr	w1, [x21]
	bl	_LWLockAcquire
	add	w20, w20, #1
	ldr	w8, [x23]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
Lloh4:
	adrp	x22, _LockMethodProcLockHash@GOTPAGE
Lloh5:
	ldr	x22, [x22, _LockMethodProcLockHash@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_hash_get_num_entries
	mov	x21, x0
	add	w8, w0, w0, lsl #1
	lsl	w0, w8, #2
	bl	_palloc
	mov	x20, x0
	ldr	w1, [x22]
	add	x0, sp, #12
	bl	_hash_seq_init
	mov	w24, #0
Lloh6:
	adrp	x25, _AccessExclusiveLock@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AccessExclusiveLock@GOTPAGEOFF]
Lloh8:
	adrp	x26, _LOCKTAG_RELATION@GOTPAGE
Lloh9:
	ldr	x26, [x26, _LOCKTAG_RELATION@GOTPAGEOFF]
Lloh10:
	adrp	x28, _ProcGlobal@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ProcGlobal@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_hash_seq_search
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	ldr	w27, [x0]
	ldr	w0, [x25]
	bl	_LOCKBIT_ON
	tst	w0, w27
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x27, [x22, #8]
	ldr	x8, [x27]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #16]
	ldr	x9, [x28]
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	w22, [x9, x8, lsl #2]
	mov	x0, x22
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #12
	umaddl	x8, w24, w8, x20
	str	w22, [x8, #8]
	ldr	d0, [x27, #8]
	str	d0, [x8]
	add	w24, w24, #1
	b	LBB0_4
LBB0_9:
	cmp	w24, w21
	cset	w0, le
	bl	_Assert
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	add	w21, w8, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w0, w21, #2
	bl	_LockHashPartitionLockByIndex
	bl	_LWLockRelease
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_11
LBB0_12:
	str	w24, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_LOCK_PARTITIONS,4,2        ; @NUM_LOCK_PARTITIONS
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_LockMethodProcLockHash,4,2     ; @LockMethodProcLockHash
	.comm	_AccessExclusiveLock,4,2        ; @AccessExclusiveLock
	.comm	_LOCKTAG_RELATION,8,3           ; @LOCKTAG_RELATION
	.comm	_ProcGlobal,8,3                 ; @ProcGlobal
.subsections_via_symbols
