	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AtSubCommit_childXids
_AtSubCommit_childXids:                 ## @AtSubCommit_childXids
	.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	_CurrentTransactionState@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%edi, %edi
	cmpq	$0, 24(%r14)
	setne	%dil
	callq	_Assert
	movq	24(%r14), %rax
	movl	(%r14), %ecx
	movl	(%rax), %edx
	leal	(%rcx,%rdx), %r12d
	incl	%r12d
	movl	%ecx, %ebx
	addl	%edx, %ebx
	cmpl	%ebx, 4(%rax)
	jg	LBB0_7
## %bb.1:
	leal	(%r12,%r12), %edi
	movq	_MaxAllocSize@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	sarl	$2, %esi
	callq	_Min
	movl	%eax, %r15d
	cmpl	%ebx, %eax
	jg	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r13), %esi
	sarl	$2, %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	24(%r14), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movl	%r15d, %esi
	shll	$2, %esi
	callq	_repalloc
	jmp	LBB0_6
LBB0_4:
	movq	_TopTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	shll	$2, %esi
	callq	_MemoryContextAlloc
LBB0_6:
	movq	24(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	%r15d, 4(%rcx)
LBB0_7:
	movl	32(%r14), %edi
	callq	_XidFromFullTransactionId
	movq	24(%r14), %rcx
	movq	8(%rcx), %rsi
	movslq	(%rcx), %rdx
	movl	%eax, (%rsi,%rdx,4)
	movl	(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.8:
	movslq	(%rcx), %rax
	leaq	(%rsi,%rax,4), %rdi
	addq	$4, %rdi
	movq	16(%r14), %rsi
	shll	$2, %edx
	callq	_memcpy
	movq	24(%r14), %rcx
LBB0_9:
	movl	%r12d, (%rcx)
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_pfree
LBB0_11:
	movl	$0, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentTransactionState,8,3    ## @CurrentTransactionState
	.comm	_MaxAllocSize,4,2               ## @MaxAllocSize
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"maximum number of committed subtransactions (%d) exceeded"

	.comm	_TopTransactionContext,4,2      ## @TopTransactionContext
	.no_dead_strip	_AtSubCommit_childXids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AtSubCommit_childXids
_AtSubCommit_childXids:                 ; @AtSubCommit_childXids
	.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
Lloh0:
	adrp	x8, _CurrentTransactionState@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentTransactionState@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x21, #24]
	ldr	w9, [x21]
	ldp	w10, w8, [x8]
	add	w20, w9, w10
	cmp	w8, w20
	add	w22, w20, #1
	b.gt	LBB0_7
; %bb.1:
	lsl	w0, w22, #1
Lloh3:
	adrp	x23, _MaxAllocSize@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MaxAllocSize@GOTPAGEOFF]
	ldr	w8, [x23]
	asr	w1, w8, #2
	bl	_Min
	mov	x19, x0
	cmp	w0, w20
	b.gt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
Lloh8:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w8, [x23]
	asr	w1, w8, #2
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_3:
	ldr	x8, [x21, #24]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.4:
	lsl	w1, w19, #2
	bl	_repalloc
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _TopTransactionContext@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TopTransactionContext@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	lsl	w1, w19, #2
	bl	_MemoryContextAlloc
LBB0_6:
	ldr	x8, [x21, #24]
	str	x0, [x8, #8]
	str	w19, [x8, #4]
LBB0_7:
	ldr	w0, [x21, #32]
	bl	_XidFromFullTransactionId
	ldr	x8, [x21, #24]
	ldr	x9, [x8, #8]
	ldrsw	x10, [x8]
	str	w0, [x9, x10, lsl #2]
	ldr	w10, [x21]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.8:
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #2
	add	x0, x8, #4
	ldr	x1, [x21, #16]
	lsl	w2, w10, #2
	bl	_memcpy
	ldr	x8, [x21, #24]
LBB0_9:
	str	w22, [x8]
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_pfree
LBB0_11:
	str	wzr, [x21]
	stp	xzr, xzr, [x21, #8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentTransactionState,8,3    ; @CurrentTransactionState
	.comm	_MaxAllocSize,4,2               ; @MaxAllocSize
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"maximum number of committed subtransactions (%d) exceeded"

	.comm	_TopTransactionContext,4,2      ; @TopTransactionContext
	.no_dead_strip	_AtSubCommit_childXids
.subsections_via_symbols
