	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_GSS_load_servicename        ## -- Begin function pg_GSS_load_servicename
	.p2align	4, 0x90
_pg_GSS_load_servicename:               ## @pg_GSS_load_servicename
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_STATUS_OK@GOTPCREL(%rip), %r13
	cmpq	$0, 8(%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	callq	_PQhost
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r14
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %r12d
	addl	$2, %r12d
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	leaq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %r8
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, -56(%rbp)
	movq	_GSS_C_NT_HOSTBASED_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_gss_import_name
	movq	%rax, %r14
	movq	-64(%rbp), %rdi
	callq	_free
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_10
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_libpq_gettext
	movq	-72(%rbp), %rcx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_pg_GSS_error
	jmp	LBB0_9
LBB0_3:
	addq	$16, %rbx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_6:
	addq	$16, %rbx
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_libpq_gettext
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_9:
	movq	_STATUS_ERROR@GOTPCREL(%rip), %r13
LBB0_10:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_OK,4,2                  ## @STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"host name must be specified\n"

	.comm	_STATUS_ERROR,4,2               ## @STATUS_ERROR
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
L_.str.1:                               ## @.str.1
	.asciz	"out of memory\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s@%s"

	.comm	_GSS_C_NT_HOSTBASED_SERVICE,4,2 ## @GSS_C_NT_HOSTBASED_SERVICE
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
L_.str.3:                               ## @.str.3
	.asciz	"GSSAPI name import error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_GSS_load_servicename        ; -- Begin function pg_GSS_load_servicename
	.p2align	2
_pg_GSS_load_servicename:               ; @pg_GSS_load_servicename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _STATUS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x0
	bl	_PQhost
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	x0, [x19]
	bl	_strlen
	add	w8, w22, w0
	add	w23, w8, #2
	mov	x0, x23
	bl	_malloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	ldr	x3, [x19]
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x23
	mov	x4, x21
	bl	_snprintf
	mov	x0, x22
	bl	_strlen
	str	w0, [sp, #16]
Lloh7:
	adrp	x8, _GSS_C_NT_HOSTBASED_SERVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GSS_C_NT_HOSTBASED_SERVICE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x3, x20
	bl	_gss_import_name
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_free
Lloh10:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_1
; %bb.6:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_libpq_gettext
	ldr	x3, [sp, #24]
	mov	x1, x19
	mov	x2, x20
	bl	_pg_GSS_error
	b	LBB0_10
LBB0_7:
	add	x19, x19, #16
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	add	x19, x19, #16
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
LBB0_10:
Lloh19:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_OK,4,2                  ; @STATUS_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"host name must be specified\n"

	.comm	_STATUS_ERROR,4,2               ; @STATUS_ERROR
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
l_.str.1:                               ; @.str.1
	.asciz	"out of memory\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s@%s"

	.comm	_GSS_C_NT_HOSTBASED_SERVICE,4,2 ; @GSS_C_NT_HOSTBASED_SERVICE
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
l_.str.3:                               ; @.str.3
	.asciz	"GSSAPI name import error"

.subsections_via_symbols
