	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LogicalOutputWrite
_LogicalOutputWrite:                    ## @LogicalOutputWrite
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	movq	_MaxAllocSize@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VARHDRSZ@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rcx, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	8(%r12), %rbx
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	%r15d, %edi
	callq	_LSNGetDatum
	movl	%eax, -52(%rbp)
	movl	%r14d, %edi
	callq	_TransactionIdGetDatum
	movl	%eax, -48(%rbp)
	cmpl	$0, 12(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_GetDatabaseEncoding
	movq	(%r12), %rcx
	movl	8(%rcx), %esi
	movq	(%rcx), %rdx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_pg_verify_mbstr
	movl	%eax, %edi
	callq	_Assert
LBB0_4:
	movq	(%r12), %rax
	movl	8(%rax), %edi
	movq	(%rax), %rsi
	callq	_cstring_to_text_with_len
	movl	%eax, %edi
	callq	_PointerGetDatum
	movl	%eax, -44(%rbp)
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	leaq	-52(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_tuplestore_putvalues
	incl	(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxAllocSize,8,3               ## @MaxAllocSize
	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too much output for sql interface"

	.no_dead_strip	_LogicalOutputWrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LogicalOutputWrite
_LogicalOutputWrite:                    ; @LogicalOutputWrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MaxAllocSize@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MaxAllocSize@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _VARHDRSZ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VARHDRSZ@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	sub	x9, x9, x10
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	x22, [x19, #8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x0, x21
	bl	_LSNGetDatum
	str	w0, [sp, #12]
	mov	x0, x20
	bl	_TransactionIdGetDatum
	str	w0, [sp, #16]
	ldr	w8, [x22, #12]
	cbnz	w8, LBB0_4
; %bb.3:
	bl	_GetDatabaseEncoding
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
	mov	w3, #0
	bl	_pg_verify_mbstr
	bl	_Assert
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	x1, [x8]
	bl	_cstring_to_text_with_len
	bl	_PointerGetDatum
	str	w0, [sp, #20]
	ldp	w1, w0, [x22, #4]
	add	x2, sp, #12
	mov	x3, sp
	bl	_tuplestore_putvalues
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxAllocSize,8,3               ; @MaxAllocSize
	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too much output for sql interface"

	.no_dead_strip	_LogicalOutputWrite
.subsections_via_symbols
