	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_get_principal
_proc_get_principal:                    ## @proc_get_principal
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-36(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %edi
	callq	_CHECK
	movq	-56(%rbp), %rax
	movq	_VERSION2@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_INSIST
	movl	(%r15), %edi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_ret_principal_xdr
	movl	%eax, %edi
	callq	_CHECK
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_uint32
	movl	%eax, %edi
	callq	_CHECK
	movq	_KADM5_PRIV_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	movq	%r15, %rdi
	callq	__kadm5_acl_check_permission
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	-40(%rbp), %esi
	movq	-48(%rbp), %rcx
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_kadm5_get_principal
	movq	%rax, %rbx
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	callq	_krb5_warn
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_krb5_store_uint32
	movl	%eax, %edi
	callq	_CHECK
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_krb5_store_uint32
	movl	%eax, %edi
	callq	_CHECK
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rsi
	callq	_store_principal_ent
	movl	%eax, %edi
	callq	_CHECK
LBB0_4:
	movl	(%r15), %edi
	movl	-40(%rbp), %esi
	callq	_krb5_free_principal
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_kadm5_free_principal_ent
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERSION2,8,3                   ## @VERSION2
	.comm	_KADM5_PRIV_GET,4,2             ## @KADM5_PRIV_GET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get principal principal"

	.no_dead_strip	_proc_get_principal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_get_principal
_proc_get_principal:                    ; @proc_get_principal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #24
	mov	x0, x21
	bl	_krb5_ret_uint32
	bl	_CHECK
	ldr	x8, [sp, #24]
Lloh0:
	adrp	x22, _VERSION2@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VERSION2@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_INSIST
	ldr	w0, [x19]
	add	x2, sp, #12
	mov	x1, x21
	bl	_ret_principal_xdr
	bl	_CHECK
	add	x1, sp, #16
	mov	x0, x21
	bl	_krb5_ret_uint32
	bl	_CHECK
Lloh2:
	adrp	x8, _KADM5_PRIV_GET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KADM5_PRIV_GET@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	__kadm5_acl_check_permission
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [sp, #12]
	ldr	x3, [sp, #16]
	add	x2, sp, #8
	mov	x0, x19
	bl	_kadm5_get_principal
	mov	x21, x0
LBB0_2:
	ldr	w0, [x19]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_krb5_warn
	ldr	x1, [x22]
	mov	x0, x20
	bl	_krb5_store_uint32
	bl	_CHECK
	mov	x0, x20
	mov	x1, x21
	bl	_krb5_store_uint32
	bl	_CHECK
	cbnz	x21, LBB0_4
; %bb.3:
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x1, x20
	bl	_store_principal_ent
	bl	_CHECK
LBB0_4:
	ldr	w0, [x19]
	ldr	w1, [sp, #12]
	bl	_krb5_free_principal
	add	x1, sp, #8
	mov	x0, x19
	bl	_kadm5_free_principal_ent
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_VERSION2,8,3                   ; @VERSION2
	.comm	_KADM5_PRIV_GET,4,2             ; @KADM5_PRIV_GET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get principal principal"

	.no_dead_strip	_proc_get_principal
.subsections_via_symbols
