	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_get_principal_name
_test_get_principal_name:               ## @test_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
	subq	$16, %rsp
                                        ## kill: def $edi killed $edi def $rdi
	leal	-6(%rdi), %ecx
	cmpl	$-4, %ecx
	jbe	LBB0_10
## %bb.1:
	movq	%rsi, %rax
	movq	8(%rsi), %rsi
	movq	16(%rax), %rdx
	cmpl	$4, %edi
	jb	LBB0_2
## %bb.3:
	movq	24(%rax), %rcx
	jne	LBB0_5
## %bb.4:
	xorl	%r8d, %r8d
	jmp	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_6
LBB0_5:
	movq	32(%rax), %r8
LBB0_6:
	leaq	-4(%rbp), %rdi
	callq	_rpc_gss_get_principal_name
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_str.3(%rip), %rdi
	callq	_puts
	movl	-4(%rbp), %edi
	callq	_print_principal
	movl	-4(%rbp), %edi
	callq	_free
	jmp	LBB0_9
LBB0_8:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_10:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"failed"

L_str.3:                                ## @str.3
	.asciz	"succeeded:"

L_str.4:                                ## @str.4
	.asciz	"usage: rpctest principal <mechname> <name> [<node> [<domain>] ]"

	.no_dead_strip	_test_get_principal_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_get_principal_name
_test_get_principal_name:               ; @test_get_principal_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w9, w0, #6
	cmn	w9, #4
	b.ls	LBB0_10
; %bb.1:
	mov	x8, x1
	ldr	x1, [x1, #8]
	ldr	x2, [x8, #16]
	cmp	w0, #4
	b.lo	LBB0_4
; %bb.2:
	ldr	x3, [x8, #24]
	cmp	w0, #4
	b.ne	LBB0_5
; %bb.3:
	mov	x4, #0
	b	LBB0_6
LBB0_4:
	mov	x3, #0
	mov	x4, #0
	b	LBB0_6
LBB0_5:
	ldr	x4, [x8, #32]
LBB0_6:
	sub	x0, x29, #4
	bl	_rpc_gss_get_principal_name
	cbz	x0, LBB0_8
; %bb.7:
Lloh0:
	adrp	x0, l_str.3@PAGE
Lloh1:
	add	x0, x0, l_str.3@PAGEOFF
	bl	_puts
	ldur	w0, [x29, #-4]
	bl	_print_principal
	ldur	w0, [x29, #-4]
	bl	_free
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_10:
Lloh4:
	adrp	x0, l_str.4@PAGE
Lloh5:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"failed"

l_str.3:                                ; @str.3
	.asciz	"succeeded:"

l_str.4:                                ; @str.4
	.asciz	"usage: rpctest principal <mechname> <name> [<node> [<domain>] ]"

	.no_dead_strip	_test_get_principal_name
.subsections_via_symbols
