	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SerializeTransactionState      ## -- Begin function SerializeTransactionState
	.p2align	4, 0x90
_SerializeTransactionState:             ## @SerializeTransactionState
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	_XactIsoLevel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rsi)
	movq	_XactDeferrable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rsi)
	movq	_XactTopFullTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rsi)
	movq	_CurrentTransactionState@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movl	16(%rbx), %edi
	movl	%edi, 20(%rsi)
	movq	_currentCommandId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rsi)
	movq	_nParallelCurrentXids@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.6:
	movl	%ecx, (%r14)
	movq	8(%r14), %rdi
	movq	_ParallelCurrentXids@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%rax), %edx
	shll	$2, %edx
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	callq	_FullTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_add_size
	movl	%eax, %r13d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	movl	%r13d, %edi
	callq	_add_size
	movl	%eax, %r13d
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	jmp	LBB0_2
LBB0_8:
	movq	_SerializedTransactionStateHeaderSize@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%r13d, %rbx
	leaq	(%rax,%rbx,4), %rax
	shlq	$2, %rbx
	movslq	%r12d, %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setbe	%dil
	callq	_Assert
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_palloc
	movq	%rax, %r12
	movq	(%r15), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%ebx, %rbx
	leaq	(%r12,%rbx,4), %rdi
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	shll	$2, %edx
	callq	_memcpy
	addl	(%r15), %ebx
	movq	24(%r15), %r15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	16(%r15), %edi
	callq	_FullTransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	16(%r15), %edi
	callq	_XidFromFullTransactionId
	movslq	%ebx, %rcx
	incl	%ebx
	movl	%eax, (%r12,%rcx,4)
	jmp	LBB0_12
LBB0_13:
	xorl	%edi, %edi
	cmpl	%r13d, %ebx
	sete	%dil
	callq	_Assert
	movq	_xidComparator@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$4, %edx
	callq	_qsort
	movl	%r13d, (%r14)
	movq	8(%r14), %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XactIsoLevel,4,2               ## @XactIsoLevel
	.comm	_XactDeferrable,4,2             ## @XactDeferrable
	.comm	_XactTopFullTransactionId,4,2   ## @XactTopFullTransactionId
	.comm	_CurrentTransactionState,8,3    ## @CurrentTransactionState
	.comm	_currentCommandId,4,2           ## @currentCommandId
	.comm	_nParallelCurrentXids,4,2       ## @nParallelCurrentXids
	.comm	_ParallelCurrentXids,8,3        ## @ParallelCurrentXids
	.comm	_SerializedTransactionStateHeaderSize,4,2 ## @SerializedTransactionStateHeaderSize
	.comm	_xidComparator,4,2              ## @xidComparator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SerializeTransactionState      ; -- Begin function SerializeTransactionState
	.p2align	2
_SerializeTransactionState:             ; @SerializeTransactionState
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _XactIsoLevel@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XactIsoLevel@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #32]
Lloh3:
	adrp	x8, _XactDeferrable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XactDeferrable@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _XactTopFullTransactionId@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XactTopFullTransactionId@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x23, _CurrentTransactionState@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CurrentTransactionState@GOTPAGEOFF]
	stp	w9, w8, [x1, #24]
	ldr	x21, [x23]
	ldr	w0, [x21, #16]
Lloh11:
	adrp	x8, _currentCommandId@GOTPAGE
Lloh12:
	ldr	x8, [x8, _currentCommandId@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w0, [x1, #16]
Lloh14:
	adrp	x8, _nParallelCurrentXids@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nParallelCurrentXids@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	b.le	LBB0_2
; %bb.1:
	str	w9, [x19]
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x9, _ParallelCurrentXids@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ParallelCurrentXids@GOTPAGEOFF]
Lloh18:
	ldr	x1, [x9]
	ldr	w8, [x8]
	lsl	w2, w8, #2
	b	LBB0_13
LBB0_2:
	mov	w20, #0
	bl	_FullTransactionIdIsValid
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x20
	mov	w1, #1
	bl	_add_size
	mov	x20, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_add_size
	mov	x20, x0
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21, #16]
	bl	_FullTransactionIdIsValid
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_6:
Lloh19:
	adrp	x8, _SerializedTransactionStateHeaderSize@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SerializedTransactionStateHeaderSize@GOTPAGEOFF]
Lloh21:
	ldrsw	x8, [x8]
	sbfiz	x21, x20, #2, #32
	add	x8, x21, x8
	cmp	x8, w22, sxtw
	cset	w0, ls
	bl	_Assert
	mov	x0, x21
	bl	_palloc
	mov	x22, x0
	ldr	x23, [x23]
	cbz	x23, LBB0_11
; %bb.7:
	mov	w24, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x22, w24, sxtw #2
	ldr	x1, [x23, #8]
	ldr	w8, [x23]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x23]
	add	w24, w8, w24
	ldr	x23, [x23, #24]
	cbz	x23, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #16]
	bl	_FullTransactionIdIsValid
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23, #16]
	bl	_XidFromFullTransactionId
	str	w0, [x22, w24, sxtw #2]
	add	w24, w24, #1
	b	LBB0_8
LBB0_11:
	mov	w24, #0
LBB0_12:
	cmp	w24, w20
	cset	w0, eq
	bl	_Assert
Lloh22:
	adrp	x8, _xidComparator@GOTPAGE
Lloh23:
	ldr	x8, [x8, _xidComparator@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #4
	bl	_qsort
	str	w20, [x19]
	ldr	x0, [x19, #8]
	mov	x1, x22
	mov	x2, x21
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_XactIsoLevel,4,2               ; @XactIsoLevel
	.comm	_XactDeferrable,4,2             ; @XactDeferrable
	.comm	_XactTopFullTransactionId,4,2   ; @XactTopFullTransactionId
	.comm	_CurrentTransactionState,8,3    ; @CurrentTransactionState
	.comm	_currentCommandId,4,2           ; @currentCommandId
	.comm	_nParallelCurrentXids,4,2       ; @nParallelCurrentXids
	.comm	_ParallelCurrentXids,8,3        ; @ParallelCurrentXids
	.comm	_SerializedTransactionStateHeaderSize,4,2 ; @SerializedTransactionStateHeaderSize
	.comm	_xidComparator,4,2              ; @xidComparator
.subsections_via_symbols
