	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_gss_get_principal_name     ## -- Begin function rpc_gss_get_principal_name
	.p2align	4, 0x90
_rpc_gss_get_principal_name:            ## @rpc_gss_get_principal_name
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	-52(%rbp), %rsi
	movq	%rax, %rdi
	callq	_rpc_gss_mech_to_oid
	movq	_FALSE@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movq	%r12, %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rbx
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	incq	%rbx
LBB0_3:
	testq	%r15, %r15
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	incq	%rbx
LBB0_5:
	movl	%ebx, %edi
	callq	_mem_alloc
	movq	%rax, %r14
	movq	%rax, -72(%rbp)
	movq	%rbx, -80(%rbp)
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcat
LBB0_7:
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strcat
LBB0_9:
	movq	_GSS_C_NT_USER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-60(%rbp), %rcx
	callq	_gss_import_name
	movq	%rax, %rbx
	movq	-80(%rbp), %rsi
	movq	-72(%rbp), %rdi
	callq	_mem_free
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rbx
	jne	LBB0_14
## %bb.10:
	movl	-60(%rbp), %esi
	movl	-52(%rbp), %edx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rcx
	callq	_gss_canonicalize_name
	cmpq	(%r14), %rax
	jne	LBB0_15
## %bb.11:
	leaq	-48(%rbp), %rbx
	leaq	-60(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_gss_release_name
	movl	-56(%rbp), %esi
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_gss_export_name
	cmpq	(%r14), %rax
	jne	LBB0_16
## %bb.12:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_gss_release_name
	movl	-80(%rbp), %edi
	addl	$4, %edi
	callq	_mem_alloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rax, %rbx
	movl	-80(%rbp), %edx
	movl	%edx, (%rax)
	movl	4(%rax), %edi
	movq	-72(%rbp), %rsi
	callq	_memcpy
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_gss_release_buffer
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_14:
	movl	-52(%rbp), %esi
	movq	-48(%rbp), %rcx
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rdx
	callq	_rpc_gss_log_status
	jmp	LBB0_18
LBB0_15:
	movl	-52(%rbp), %esi
	movq	-48(%rbp), %rcx
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rdx
	callq	_rpc_gss_log_status
	leaq	-48(%rbp), %rdi
	leaq	-60(%rbp), %rsi
	jmp	LBB0_17
LBB0_16:
	movl	-52(%rbp), %esi
	movq	-48(%rbp), %rcx
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rdx
	callq	_rpc_gss_log_status
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
LBB0_17:
	callq	_gss_release_name
LBB0_18:
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_19:
	movl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	-48(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_gss_release_buffer
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.asciz	"@"

	.comm	_GSS_C_NT_USER_NAME,4,2         ## @GSS_C_NT_USER_NAME
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
L_.str.2:                               ## @.str.2
	.asciz	"gss_import_name"

L_.str.3:                               ## @.str.3
	.asciz	"gss_canonicalize_name"

L_.str.4:                               ## @.str.4
	.asciz	"gss_export_name"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_gss_get_principal_name     ; -- Begin function rpc_gss_get_principal_name
	.p2align	2
_rpc_gss_get_principal_name:            ; @rpc_gss_get_principal_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x21, x3
	mov	x22, x2
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #36
	mov	x0, x8
	bl	_rpc_gss_mech_to_oid
	cbz	w0, LBB0_18
; %bb.1:
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	sxtw	x23, w8
	cbz	x21, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_strlen
	add	w8, w0, #1
	add	x23, x23, w8, sxtw
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_strlen
	add	w8, w0, #1
	add	x23, x23, w8, sxtw
LBB0_5:
	mov	x0, x23
	bl	_mem_alloc
	mov	x24, x0
	stp	x23, x0, [sp, #16]
	mov	x1, x22
	bl	_strcpy
	cbz	x21, LBB0_7
; %bb.6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_strcat
	mov	x0, x24
	mov	x1, x21
	bl	_strcat
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strcat
	mov	x0, x24
	mov	x1, x20
	bl	_strcat
LBB0_9:
Lloh4:
	adrp	x8, _GSS_C_NT_USER_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GSS_C_NT_USER_NAME@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x0, sp, #40
	add	x1, sp, #16
	add	x3, sp, #12
	bl	_gss_import_name
	mov	x20, x0
	ldp	x1, x0, [sp, #16]
	bl	_mem_free
Lloh7:
	adrp	x21, _GSS_S_COMPLETE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GSS_S_COMPLETE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_14
; %bb.10:
	ldr	w1, [sp, #12]
	ldr	w2, [sp, #36]
	add	x0, sp, #40
	add	x3, sp, #8
	bl	_gss_canonicalize_name
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.11:
	add	x0, sp, #40
	add	x1, sp, #12
	bl	_gss_release_name
	ldr	w1, [sp, #8]
	add	x0, sp, #40
	add	x2, sp, #16
	bl	_gss_export_name
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.12:
	add	x0, sp, #40
	add	x1, sp, #8
	bl	_gss_release_name
	ldr	w8, [sp, #16]
	add	w0, w8, #4
	bl	_mem_alloc
	cbz	x0, LBB0_20
; %bb.13:
	mov	x20, x0
	ldr	w2, [sp, #16]
	str	w2, [x0]
	ldr	w0, [x0, #4]
	ldr	x1, [sp, #24]
	bl	_memcpy
	add	x0, sp, #40
	add	x1, sp, #16
	bl	_gss_release_buffer
	str	x20, [x19]
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_19
LBB0_14:
	ldr	w1, [sp, #36]
	ldr	x3, [sp, #40]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_rpc_gss_log_status
	b	LBB0_18
LBB0_15:
	mov	x2, x0
	ldr	w1, [sp, #36]
	ldr	x3, [sp, #40]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_rpc_gss_log_status
	add	x0, sp, #40
	add	x1, sp, #12
	b	LBB0_17
LBB0_16:
	mov	x2, x0
	ldr	w1, [sp, #36]
	ldr	x3, [sp, #40]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_rpc_gss_log_status
	add	x0, sp, #40
	add	x1, sp, #8
LBB0_17:
	bl	_gss_release_name
LBB0_18:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	add	x0, sp, #40
	add	x1, sp, #16
	bl	_gss_release_buffer
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.asciz	"@"

	.comm	_GSS_C_NT_USER_NAME,4,2         ; @GSS_C_NT_USER_NAME
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
l_.str.2:                               ; @.str.2
	.asciz	"gss_import_name"

l_.str.3:                               ; @.str.3
	.asciz	"gss_canonicalize_name"

l_.str.4:                               ; @.str.4
	.asciz	"gss_export_name"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
