	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqPutMsgEnd                    ## -- Begin function pqPutMsgEnd
	.p2align	4, 0x90
_pqPutMsgEnd:                           ## @pqPutMsgEnd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	subl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	subl	%eax, %edi
	callq	_pg_hton32
	movl	%eax, -12(%rbp)
	movl	16(%rbx), %edi
	addl	8(%rbx), %edi
	leaq	-12(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_4:
	movl	(%rbx), %esi
	movl	%esi, 4(%rbx)
	cmpl	$8192, %esi                     ## imm = 0x2000
	jl	LBB0_7
## %bb.5:
	andl	$-8192, %esi                    ## imm = 0xE000
	movq	%rbx, %rdi
	callq	_pqSendSome
	testq	%rax, %rax
	js	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"To backend> Msg complete, length %u\n"

	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqPutMsgEnd                    ; -- Begin function pqPutMsgEnd
	.p2align	2
_pqPutMsgEnd:                           ; @pqPutMsgEnd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #24]
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w8, w9, [x19]
	sub	w2, w8, w9
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_4
; %bb.3:
	ldr	w9, [x19]
	sub	w0, w9, w8
	bl	_pg_hton32
	str	w0, [sp, #12]
	ldr	w8, [x19, #16]
	ldr	w9, [x19, #8]
	add	w0, w8, w9
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
LBB0_4:
	ldr	w8, [x19]
	str	w8, [x19, #4]
	cmp	w8, #2, lsl #12                 ; =8192
	b.lt	LBB0_6
; %bb.5:
	and	w1, w8, #0xffffe000
	mov	x0, x19
	bl	_pqSendSome
	tbnz	x0, #63, LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"To backend> Msg complete, length %u\n"

	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
