	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_password_packet
_recv_password_packet:                  ## @recv_password_packet
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_pq_startmsgread
	movl	(%rbx), %edi
	callq	_PG_PROTOCOL_MAJOR
	cmpl	$3, %eax
	jl	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_pq_getbyte
	cmpl	$112, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %r14d
	movq	_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pq_peekbyte
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
LBB0_6:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initStringInfo
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_pq_getmessage
	movq	-40(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	callq	_pfree
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_8:
	callq	_strlen
	incl	%eax
	cmpl	-32(%rbp), %eax
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	-32(%rbp), %eax
LBB0_10:
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INVALID_PASSWORD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	movq	_DEBUG5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
	movq	-40(%rbp), %rbx
	jmp	LBB0_13
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_PROTOCOL_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ## @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected password response, got message type %d"

L_.str.1:                               ## @.str.1
	.asciz	"invalid password packet size"

	.comm	_ERRCODE_INVALID_PASSWORD,4,2   ## @ERRCODE_INVALID_PASSWORD
L_.str.2:                               ## @.str.2
	.asciz	"empty password returned by client"

	.comm	_DEBUG5,4,2                     ## @DEBUG5
L_.str.3:                               ## @.str.3
	.asciz	"received password packet"

	.no_dead_strip	_recv_password_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_password_packet
_recv_password_packet:                  ; @recv_password_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	bl	_pq_startmsgread
	ldr	w0, [x19]
	bl	_PG_PROTOCOL_MAJOR
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.1:
	bl	_pq_getbyte
	cmp	w0, #112
	b.eq	LBB0_5
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	b	LBB0_7
LBB0_4:
	bl	_pq_peekbyte
Lloh11:
	adrp	x8, _EOF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
LBB0_5:
	add	x0, sp, #16
	bl	_initStringInfo
	add	x0, sp, #16
	mov	w1, #1000
	bl	_pq_getmessage
	mov	x8, x0
	ldr	x0, [sp, #16]
	cbz	x8, LBB0_9
; %bb.6:
	bl	_pfree
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	_strlen
	add	w8, w0, #1
	ldr	w9, [sp, #24]
Lloh14:
	adrp	x20, _ERROR@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.10:
	ldr	w19, [x20]
Lloh16:
	adrp	x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERRCODE_PROTOCOL_VIOLATION@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_errcode
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	ldr	w8, [sp, #24]
LBB0_11:
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.12:
	ldr	w19, [x20]
Lloh21:
	adrp	x8, _ERRCODE_INVALID_PASSWORD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_INVALID_PASSWORD@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_13:
Lloh26:
	adrp	x8, _DEBUG5@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DEBUG5@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
	ldr	x0, [sp, #16]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROTOCOL_VIOLATION,4,2 ; @ERRCODE_PROTOCOL_VIOLATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected password response, got message type %d"

l_.str.1:                               ; @.str.1
	.asciz	"invalid password packet size"

	.comm	_ERRCODE_INVALID_PASSWORD,4,2   ; @ERRCODE_INVALID_PASSWORD
l_.str.2:                               ; @.str.2
	.asciz	"empty password returned by client"

	.comm	_DEBUG5,4,2                     ; @DEBUG5
l_.str.3:                               ; @.str.3
	.asciz	"received password packet"

	.no_dead_strip	_recv_password_packet
.subsections_via_symbols
