	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_getmessage                  ## -- Begin function pq_getmessage
	.p2align	4, 0x90
_pq_getmessage:                         ## @pq_getmessage
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_PqCommReadingMsg@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_Assert
	movq	%r14, %rdi
	callq	_resetStringInfo
	leaq	-36(%rbp), %rdi
	movl	$4, %esi
	callq	_pq_getbytes
	movq	_EOF@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.1:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	-36(%rbp), %edi
	callq	_pg_ntoh32
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -36(%rbp)
	cmpl	$4, %eax
	jl	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.5:
	cmpl	%ebx, %eax
	jle	LBB0_7
LBB0_6:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	(%r15), %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leal	-4(%rax), %ecx
	movl	%ecx, -36(%rbp)
	cmpl	$5, %eax
	jb	LBB0_13
## %bb.8:
	xorl	%eax, %eax
	callq	_PG_TRY
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_enlargeStringInfo
	xorl	%eax, %eax
	callq	_PG_CATCH
	movl	-36(%rbp), %edi
	callq	_pq_discardbytes
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movl	$0, (%r12)
	xorl	%eax, %eax
	callq	_PG_RE_THROW
	xorl	%eax, %eax
	callq	_PG_END_TRY
	movq	(%r14), %rdi
	movl	-36(%rbp), %esi
	callq	_pq_getbytes
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.11:
	movq	_COMMERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_12:
	movslq	-36(%rbp), %rax
	movl	%eax, 8(%r14)
	movq	(%r14), %rcx
	movb	$0, (%rcx,%rax)
LBB0_13:
	movl	$0, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PqCommReadingMsg,4,2           ## @PqCommReadingMsg
	.comm	_EOF,8,3                        ## @EOF
	.comm	_COMMERROR,4,2                  ## @COMMERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ## @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected EOF within message length word"

L_.str.1:                               ## @.str.1
	.asciz	"invalid message length"

L_.str.2:                               ## @.str.2
	.asciz	"incomplete message from client"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pq_getmessage                  ; -- Begin function pq_getmessage
	.p2align	2
_pq_getmessage:                         ; @pq_getmessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _PqCommReadingMsg@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PqCommReadingMsg@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_Assert
	mov	x0, x19
	bl	_resetStringInfo
	add	x0, sp, #12
	mov	w1, #4
	bl	_pq_getbytes
Lloh2:
	adrp	x21, _EOF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _COMMERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMMERROR@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
Lloh7:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	w0, [sp, #12]
	bl	_pg_ntoh32
	str	w0, [sp, #12]
	subs	w8, w0, #4
	b.lt	LBB0_5
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_8
; %bb.4:
	cmp	w0, w20
	b.le	LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _COMMERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COMMERROR@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
Lloh15:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	ldr	w0, [x21]
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	str	w8, [sp, #12]
	cmp	w0, #5
	b.lo	LBB0_14
; %bb.9:
	bl	_PG_TRY
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_enlargeStringInfo
	bl	_PG_CATCH
	ldr	w0, [sp, #12]
	bl	_pq_discardbytes
	ldr	x8, [x21]
Lloh20:
	adrp	x23, _COMMERROR@GOTPAGE
Lloh21:
	ldr	x23, [x23, _COMMERROR@GOTPAGEOFF]
Lloh22:
	adrp	x24, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh23:
	ldr	x24, [x24, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	w20, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_11:
	str	wzr, [x22]
	bl	_PG_RE_THROW
	bl	_PG_END_TRY
	ldr	x0, [x19]
	ldr	w1, [sp, #12]
	bl	_pq_getbytes
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	ldr	w19, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_13:
	ldrsw	x8, [sp, #12]
	str	w8, [x19, #8]
	ldr	x9, [x19]
	strb	wzr, [x9, x8]
LBB0_14:
	mov	w0, #0
	str	wzr, [x22]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PqCommReadingMsg,4,2           ; @PqCommReadingMsg
	.comm	_EOF,8,3                        ; @EOF
	.comm	_COMMERROR,4,2                  ; @COMMERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ; @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected EOF within message length word"

l_.str.1:                               ; @.str.1
	.asciz	"invalid message length"

l_.str.2:                               ; @.str.2
	.asciz	"incomplete message from client"

.subsections_via_symbols
