	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function be_gssapi_write
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_be_gssapi_write
	.p2align	4, 0x90
_be_gssapi_write:                       ## @be_gssapi_write
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	setne	%bl
	movq	_PqGSSSendPointer@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	movq	%rdx, %rax
	orq	%r13, %rax
	je	LBB0_16
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-112(%rbp), %rax
	addq	%rax, -56(%rbp)                 ## 8-byte Folded Spill
	subq	%rax, %r15
	movq	%rsi, %rdi
	callq	_htonl
	movb	%al, -41(%rbp)
	movq	(%r14), %rdi
	movq	_PqGSSSendBuffer@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rdi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_memcpy
	movq	(%r14), %rdi
	incq	%rdi
	movq	%rdi, (%r14)
	addq	(%rbx), %rdi
	movq	-72(%rbp), %rsi
	movl	-80(%rbp), %edx
	callq	_memcpy
	movq	(%r14), %r13
	addq	-80(%rbp), %r13
	movq	%r13, (%r14)
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%r15, %r15
	setne	%bl
	movq	%r15, %rax
	orq	%r13, %rax
	je	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -60(%rbp)
	movq	(%rdi), %r12
	testq	%r13, %r13
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PqGSSSendStart@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%rsi, %r13
	movq	_PqGSSSendBuffer@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	%r13, %rdx
	callq	_secure_raw_write
	testq	%rax, %rax
	jle	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r13, %rax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PqGSSSendStart@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	$0, (%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %bl
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_max_packet_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	cmovbq	%r15, %rax
	movq	%rax, -112(%rbp)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, -104(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	(%r12), %esi
	movq	_GSS_C_QOP_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-120(%rbp), %rdi
	movl	$1, %edx
	leaq	-112(%rbp), %r8
	leaq	-60(%rbp), %r9
	callq	_gss_wrap
	movq	%rax, %rbx
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str(%rip), %rdi
	callq	_gettext_noop
	movq	-120(%rbp), %rcx
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_pg_GSS_error
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -60(%rbp)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rsi
	movq	_PQ_GSS_SEND_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	decq	%rdx
	cmpq	%rdx, %rsi
	jbe	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	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
	movq	-80(%rbp), %rsi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_PqGSSSendStart@GOTPCREL(%rip), %rcx
	addq	%rax, (%rcx)
	movq	(%r14), %r13
	jmp	LBB0_3
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
## %bb.20:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_18
## %bb.21:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_18
## %bb.22:
	movq	_EINTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_PqGSSSendPointer,8,3           ## @PqGSSSendPointer
	.comm	_PqGSSSendStart,8,3             ## @PqGSSSendStart
	.comm	_PqGSSSendBuffer,8,3            ## @PqGSSSendBuffer
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ## @EWOULDBLOCK
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_max_packet_size,8,3            ## @max_packet_size
	.comm	_GSS_C_QOP_DEFAULT,4,2          ## @GSS_C_QOP_DEFAULT
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GSSAPI wrap error"

L_.str.1:                               ## @.str.1
	.asciz	"outgoing GSSAPI message would not use confidentiality"

	.comm	_PQ_GSS_SEND_BUFFER_SIZE,4,2    ## @PQ_GSS_SEND_BUFFER_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"server tried to send oversize GSSAPI packet (%zu > %zu)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_gssapi_write                ; -- Begin function be_gssapi_write
	.p2align	2
_be_gssapi_write:                       ; @be_gssapi_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x28, _PqGSSSendPointer@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PqGSSSendPointer@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x2, #0
	cset	w27, ne
	orr	x9, x2, x8
	cbz	x9, LBB0_16
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x19, #0
Lloh2:
	adrp	x25, _PqGSSSendBuffer@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PqGSSSendBuffer@GOTPAGEOFF]
Lloh4:
	adrp	x24, _PqGSSSendStart@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PqGSSSendStart@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]
	add	x19, x8, x19
	sub	x20, x20, x8
	bl	_htonl
	strb	w0, [sp, #19]
	ldr	x8, [x25]
	ldr	x9, [x28]
	add	x0, x9, x8
	add	x1, sp, #19
	mov	w2, #1
	bl	_memcpy
	ldr	x8, [x28]
	add	x8, x8, #1
	str	x8, [x28]
	ldr	x9, [x25]
	add	x0, x9, x8
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #24]
	bl	_memcpy
	ldr	x8, [sp, #24]
	ldr	x9, [x28]
	add	x8, x9, x8
	str	x8, [x28]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, #0
	cset	w27, ne
	orr	x9, x20, x8
	cbz	x9, LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #20]
	ldr	x23, [x22]
	cbz	x8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x24]
	sub	x26, x8, x9
	ldr	x8, [x25]
	add	x1, x8, x9
	mov	x0, x22
	mov	x2, x26
	bl	_secure_raw_write
	cmp	x0, #0
	b.le	LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, x26
	b.ne	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x24]
	str	xzr, [x28]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	tbz	w27, #0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _max_packet_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _max_packet_size@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x20, x8
	csel	x8, x20, x8, lo
	add	x9, x21, x19
	stp	x8, x9, [sp, #40]
	stp	xzr, xzr, [sp, #24]
	ldr	w1, [x23]
Lloh9:
	adrp	x8, _GSS_C_QOP_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GSS_C_QOP_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x0, sp, #56
	add	x4, sp, #40
	add	x5, sp, #20
	add	x6, sp, #24
	mov	w2, #1
	bl	_gss_wrap
Lloh12:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
Lloh15:
	adrp	x8, _FATAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh17:
	ldr	w27, [x8]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gettext_noop
	mov	x1, x0
	ldr	x3, [sp, #56]
	mov	x0, x27
	mov	x2, x26
	bl	_pg_GSS_error
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x8, _FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w26, [x8]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #24]
Lloh25:
	adrp	x8, _PQ_GSS_SEND_BUFFER_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PQ_GSS_SEND_BUFFER_SIZE@GOTPAGEOFF]
Lloh27:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	cmp	x0, x8
	b.ls	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x9, _FATAL@GOTPAGE
Lloh29:
	ldr	x9, [x9, _FATAL@GOTPAGEOFF]
Lloh30:
	ldr	w26, [x9]
	stp	x0, x8, [sp]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	ldr	x0, [sp, #24]
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x0
	str	x8, [x24]
	ldr	x8, [x28]
	b	LBB0_3
LBB0_16:
	mov	x19, #0
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_18:
	cbz	x19, LBB0_20
; %bb.19:
Lloh33:
	adrp	x8, _errno@GOTPAGE
Lloh34:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh35:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, _EWOULDBLOCK@GOTPAGE
Lloh40:
	ldr	x10, [x10, _EWOULDBLOCK@GOTPAGEOFF]
Lloh41:
	adrp	x11, _EINTR@GOTPAGE
Lloh42:
	ldr	x11, [x11, _EINTR@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
Lloh44:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	csel	x19, x19, x0, eq
	b	LBB0_17
LBB0_20:
	mov	x19, x0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PqGSSSendPointer,8,3           ; @PqGSSSendPointer
	.comm	_PqGSSSendStart,8,3             ; @PqGSSSendStart
	.comm	_PqGSSSendBuffer,8,3            ; @PqGSSSendBuffer
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EWOULDBLOCK,8,3                ; @EWOULDBLOCK
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_max_packet_size,8,3            ; @max_packet_size
	.comm	_GSS_C_QOP_DEFAULT,4,2          ; @GSS_C_QOP_DEFAULT
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GSSAPI wrap error"

l_.str.1:                               ; @.str.1
	.asciz	"outgoing GSSAPI message would not use confidentiality"

	.comm	_PQ_GSS_SEND_BUFFER_SIZE,4,2    ; @PQ_GSS_SEND_BUFFER_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"server tried to send oversize GSSAPI packet (%zu > %zu)"

.subsections_via_symbols
