	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReorderBufferTXNByXid
_ReorderBufferTXNByXid:                 ## @ReorderBufferTXNByXid
	.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
	movl	%r9d, %r12d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -56(%rbp)
	movq	%rsi, %rdi
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	(%r14), %rdi
	callq	_TransactionIdIsValid
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpq	%rbx, (%r14)
	jne	LBB0_7
## %bb.2:
	movl	%r12d, %eax
	movq	8(%r14), %r12
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	testq	%r13, %r13
	je	LBB0_19
## %bb.4:
	movl	$0, (%r13)
	jmp	LBB0_19
LBB0_5:
	testl	%r15d, %r15d
	movl	%eax, %r12d
	je	LBB0_6
LBB0_7:
	movl	24(%r14), %edi
	movq	%r13, %rbx
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.9:
	movq	_HASH_FIND@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %r13
	cmpl	$0, -44(%rbp)
	je	LBB0_12
## %bb.11:
	movq	(%r13), %r12
LBB0_16:
	movq	-56(%rbp), %rax
	movq	%rax, (%r14)
	movq	%r12, 8(%r14)
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.17:
	xorl	%eax, %eax
	cmpl	$0, -44(%rbp)
	sete	%al
	movl	%eax, (%rbx)
LBB0_18:
	testl	%r15d, %r15d
	sete	%al
	testq	%r12, %r12
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
LBB0_19:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_13
## %bb.14:
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_Assert
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	setne	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_ReorderBufferGetTXN
	movl	%r12d, %ecx
	movq	%rax, %r12
	movq	%rax, (%r13)
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movl	20(%r14), %eax
	movl	%eax, 4(%r12)
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.15:
	leaq	16(%r14), %rdi
	movq	%r12, %rsi
	callq	_dlist_push_tail
	movq	%r14, %rdi
	callq	_AssertTXNLsnOrder
	jmp	LBB0_16
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_HASH_FIND,4,2                  ## @HASH_FIND
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.no_dead_strip	_ReorderBufferTXNByXid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReorderBufferTXNByXid
_ReorderBufferTXNByXid:                 ; @ReorderBufferTXNByXid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	str	x1, [sp, #8]
	mov	x0, x1
	bl	_TransactionIdIsValid
	bl	_Assert
	ldr	x0, [x21]
	bl	_TransactionIdIsValid
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, x24
	b.ne	LBB0_6
; %bb.2:
	ldr	x24, [x21, #8]
	cbz	x24, LBB0_5
; %bb.3:
	cbz	x19, LBB0_11
; %bb.4:
	str	wzr, [x19]
	b	LBB0_11
LBB0_5:
	cbz	w20, LBB0_16
LBB0_6:
Lloh0:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
	ldr	w0, [x21, #24]
Lloh2:
	adrp	x9, _HASH_FIND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HASH_FIND@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #4
	bl	_hash_search
	mov	x25, x0
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_12
; %bb.7:
	ldr	x24, [x25]
LBB0_8:
	ldr	x8, [sp, #8]
	stp	x8, x24, [x21]
	cbz	x19, LBB0_10
; %bb.9:
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19]
LBB0_10:
	cmp	w20, #0
	ccmp	x24, #0, #0, ne
	cset	w0, ne
	bl	_Assert
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	cbz	w20, LBB0_15
; %bb.13:
	cmp	x25, #0
	cset	w0, ne
	bl	_Assert
Lloh4:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x23
	cset	w0, ne
	bl	_Assert
	mov	x0, x21
	bl	_ReorderBufferGetTXN
	mov	x24, x0
	str	x0, [x25]
	ldr	x8, [sp, #8]
	stp	x23, x8, [x0, #8]
	ldr	w8, [x21, #20]
	str	w8, [x0, #4]
	cbz	w22, LBB0_8
; %bb.14:
	add	x0, x21, #16
	mov	x1, x24
	bl	_dlist_push_tail
	mov	x0, x21
	bl	_AssertTXNLsnOrder
	b	LBB0_8
LBB0_15:
	mov	x24, #0
	b	LBB0_8
LBB0_16:
	mov	x24, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_HASH_FIND,4,2                  ; @HASH_FIND
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.no_dead_strip	_ReorderBufferTXNByXid
.subsections_via_symbols
