	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_gssapi_read                 ## -- Begin function be_gssapi_read
	.p2align	4, 0x90
_be_gssapi_read:                        ## @be_gssapi_read
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movl	$0, -44(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_PqGSSRecvLength@GOTPCREL(%rip), %r14
	movq	_PqGSSRecvBuffer@GOTPCREL(%rip), %rbx
	leaq	-136(%rbp), %r13
	leaq	-80(%rbp), %r12
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%rax, %r14
	testq	%rdx, %rdx
	movq	%r14, %rax
	movq	_PqGSSRecvBuffer@GOTPCREL(%rip), %rbx
	movq	_PqGSSRecvLength@GOTPCREL(%rip), %r14
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PqGSSResultPointer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PqGSSResultLength@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	subl	%eax, %ecx
	movslq	%ecx, %rcx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subq	%r14, %rbx
	cmpq	%rcx, %rbx
	cmovaeq	%rcx, %rbx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r14), %rdi
	movslq	%eax, %rsi
	movq	_PqGSSResultBuffer@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	movq	_PqGSSResultPointer@GOTPCREL(%rip), %rcx
	addl	(%rcx), %ebx
	movl	%ebx, (%rcx)
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	subq	%rax, %rdx
	movq	_PqGSSResultLength@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PqGSSResultLength@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movq	_PqGSSResultPointer@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, -44(%rbp)
	je	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_PqGSSResultBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-72(%rbp), %rsi
	movl	-80(%rbp), %edx
	callq	_memcpy
	movl	-80(%rbp), %eax
	movq	_PqGSSResultLength@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	$0, (%r14)
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_gss_release_buffer
	movq	_PqGSSResultPointer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rbx), %ecx
	cmpl	%eax, %ecx
	movq	_PqGSSRecvBuffer@GOTPCREL(%rip), %rbx
	jg	LBB0_4
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %r15
	movl	(%r14), %r13d
	cmpq	$3, %r13
	ja	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%r13, %rsi
	addq	(%rbx), %rsi
	movl	$4, %edx
	subl	%r13d, %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_secure_raw_read
	movq	%rax, %r13
	addl	(%r14), %r13d
	movl	%r13d, (%r14)
	cmpl	$4, %r13d
	jb	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	(%rbx), %r14
	movl	(%r14), %edi
	callq	_ntohl
	movl	%eax, -96(%rbp)
	movslq	%eax, %rsi
	movq	_PQ_GSS_RECV_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	addq	$-4, %rdx
	cmpq	%rsi, %rdx
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movq	_PqGSSRecvBuffer@GOTPCREL(%rip), %rbx
	movl	%eax, %esi
	callq	_ereport
	movq	(%rbx), %r14
	movq	_PqGSSRecvLength@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-96(%rbp), %eax
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movslq	%r13d, %rcx
	addq	%rcx, %r14
	subl	%ecx, %eax
	addl	$4, %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_secure_raw_read
	movq	_PqGSSRecvLength@GOTPCREL(%rip), %r14
	addl	(%r14), %eax
	movl	%eax, (%r14)
	cltq
	addq	$-4, %rax
	movslq	-96(%rbp), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	$0, -72(%rbp)
	movl	$0, -80(%rbp)
	movq	(%rbx), %rax
	addq	$4, %rax
	movq	%rax, -88(%rbp)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %r13
	movq	%r15, %rdi
	leaq	-96(%rbp), %rdx
	movq	%r12, %rcx
	leaq	-44(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_gss_unwrap
	movq	%rax, %rbx
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_gettext_noop
	movq	-136(%rbp), %rcx
	movl	%r14d, %edi
	movq	_PqGSSRecvLength@GOTPCREL(%rip), %r14
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_pg_GSS_error
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_20
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	$-1, %rax
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_15:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PqGSSResultPointer,4,2         ## @PqGSSResultPointer
	.comm	_PqGSSResultLength,4,2          ## @PqGSSResultLength
	.comm	_PqGSSResultBuffer,8,3          ## @PqGSSResultBuffer
	.comm	_PqGSSRecvLength,4,2            ## @PqGSSRecvLength
	.comm	_PqGSSRecvBuffer,8,3            ## @PqGSSRecvBuffer
	.comm	_PQ_GSS_RECV_BUFFER_SIZE,4,2    ## @PQ_GSS_RECV_BUFFER_SIZE
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"oversize GSSAPI packet sent by the client (%zu > %zu)"

	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_errno,4,2                      ## @errno
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
L_.str.1:                               ## @.str.1
	.asciz	"GSSAPI unwrap error"

L_.str.2:                               ## @.str.2
	.asciz	"incoming GSSAPI message did not use confidentiality"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_gssapi_read                 ; -- Begin function be_gssapi_read
	.p2align	2
_be_gssapi_read:                        ; @be_gssapi_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp, #32]                   ; 8-byte Folded Spill
	str	wzr, [sp, #52]
	cbz	x2, LBB0_19
; %bb.1:
	mov	x22, x0
	mov	x19, #0
Lloh0:
	adrp	x28, _PqGSSResultPointer@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PqGSSResultPointer@GOTPAGEOFF]
Lloh2:
	adrp	x21, _PqGSSResultLength@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PqGSSResultLength@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PqGSSRecvLength@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PqGSSRecvLength@GOTPAGEOFF]
Lloh6:
	adrp	x23, _PqGSSRecvBuffer@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PqGSSRecvBuffer@GOTPAGEOFF]
Lloh8:
	adrp	x20, _FATAL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _FATAL@GOTPAGEOFF]
	ldr	x24, [x0]
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	x2, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [sp, #52]
	cbz	w8, LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
Lloh10:
	adrp	x8, _PqGSSResultBuffer@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PqGSSResultBuffer@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	ldr	x1, [sp, #64]
	ldr	w2, [sp, #56]
	bl	_memcpy
	ldr	w8, [sp, #56]
	str	w8, [x21]
	str	wzr, [x25]
	add	x0, sp, #88
	add	x1, sp, #56
	bl	_gss_release_buffer
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x28]
	ldr	w9, [x21]
	cmp	w9, w8
	b.gt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w26, [x25]
	cmp	w26, #3
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x23]
	add	x1, x8, x26
	mov	w8, #4
	sub	w2, w8, w26
	mov	x0, x22
	bl	_secure_raw_read
	ldr	w8, [x25]
	add	w26, w8, w0
	str	w26, [x25]
	cmp	w26, #4
	b.lo	LBB0_20
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	x27, [x23]
	ldr	w0, [x27]
	bl	_ntohl
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #72]
	sxtw	x8, w0
Lloh13:
	adrp	x9, _PQ_GSS_RECV_BUFFER_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PQ_GSS_RECV_BUFFER_SIZE@GOTPAGEOFF]
Lloh15:
	ldrsw	x9, [x9]
	sub	x9, x9, #4
	cmp	x9, x8
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w26, [x20]
	stp	x8, x9, [sp]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	ldr	x27, [x23]
	ldr	w26, [x25]
	ldr	w0, [sp, #72]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x1, x27, w26, sxtw
	sub	w8, w0, w26
	add	w2, w8, #4
	mov	x0, x22
	bl	_secure_raw_read
	ldr	w8, [x25]
	add	w8, w8, w0
	str	w8, [x25]
	sxtw	x8, w8
	sub	x8, x8, #4
	ldrsw	x9, [sp, #72]
	cmp	x8, x9
	b.lo	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	str	xzr, [sp, #64]
	str	wzr, [sp, #56]
	ldr	x8, [x23]
	add	x8, x8, #4
	str	x8, [sp, #80]
	ldr	w1, [x24]
	add	x0, sp, #88
	add	x2, sp, #72
	add	x3, sp, #56
	add	x4, sp, #52
	mov	x5, #0
	bl	_gss_unwrap
Lloh18:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	x26, x0
	ldr	w27, [x20]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gettext_noop
	mov	x1, x0
	ldr	x3, [sp, #88]
	mov	x0, x27
	mov	x2, x26
	bl	_pg_GSS_error
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w26, [x20]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	sub	w9, w9, w8
	sxtw	x9, w9
	sub	x10, x10, x19
	cmp	x10, x9
	csel	x26, x10, x9, lo
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	add	x0, x9, x19
Lloh25:
	adrp	x9, _PqGSSResultBuffer@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PqGSSResultBuffer@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x1, x9, w8, sxtw
	mov	x2, x26
	bl	_memcpy
	ldr	w8, [x28]
	ldr	w9, [x21]
	add	w8, w8, w26
	cmp	w8, w9
	str	w8, [x28]
	sxtw	x8, w26
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	sub	x2, x2, x8
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	str	wzr, [x21]
	str	wzr, [x28]
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x8, x19
	cbnz	x2, LBB0_2
	b	LBB0_20
LBB0_17:
	cbnz	x19, LBB0_20
; %bb.18:
Lloh28:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _errno@GOTPAGE
Lloh32:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh33:
	str	w8, [x9]
	mov	x19, #-1
	b	LBB0_20
LBB0_19:
	mov	x19, #0
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PqGSSResultPointer,4,2         ; @PqGSSResultPointer
	.comm	_PqGSSResultLength,4,2          ; @PqGSSResultLength
	.comm	_PqGSSResultBuffer,8,3          ; @PqGSSResultBuffer
	.comm	_PqGSSRecvLength,4,2            ; @PqGSSRecvLength
	.comm	_PqGSSRecvBuffer,8,3            ; @PqGSSRecvBuffer
	.comm	_PQ_GSS_RECV_BUFFER_SIZE,4,2    ; @PQ_GSS_RECV_BUFFER_SIZE
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"oversize GSSAPI packet sent by the client (%zu > %zu)"

	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_errno,4,2                      ; @errno
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
l_.str.1:                               ; @.str.1
	.asciz	"GSSAPI unwrap error"

l_.str.2:                               ; @.str.2
	.asciz	"incoming GSSAPI message did not use confidentiality"

.subsections_via_symbols
