	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_principal
_create_principal:                      ## @create_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %eax
	notl	%eax
	testl	%eax, %r8d
	jne	LBB0_2
## %bb.1:
	movl	%edx, %r13d
	testl	%edx, %r9d
	je	LBB0_5
LBB0_2:
	movq	_KADM5_BAD_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_KADM5_POLICY@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.6:
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_KADM5_UNK_POLICY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	4(%r15), %edi
	movl	(%r12), %esi
	leaq	8(%r14), %rdx
	callq	_krb5_copy_principal
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_get_default
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movq	%r12, %rcx
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	__kadm5_setup_entry
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_12
LBB0_11:
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %rax
	movq	_KADM5_MAX_LIFE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_KADM5_MAX_RLIFE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rsp)
	orl	%r13d, %edx
	leaq	-44(%rbp), %r9
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movl	%r13d, %r8d
	movq	%r9, %r12
	callq	__kadm5_setup_entry
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_kadm5_free_principal_ent
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_12:
	xorl	%edi, %edi
	callq	_time
	movl	%eax, 4(%r14)
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movq	%r14, %rdx
	callq	_krb5_copy_principal
	movq	%rax, %rbx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_KADM5_BAD_MASK,8,3             ## @KADM5_BAD_MASK
	.comm	_KADM5_POLICY,4,2               ## @KADM5_POLICY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

	.comm	_KADM5_UNK_POLICY,8,3           ## @KADM5_UNK_POLICY
	.comm	_KADM5_ATTRIBUTES,4,2           ## @KADM5_ATTRIBUTES
	.comm	_KADM5_MAX_LIFE,4,2             ## @KADM5_MAX_LIFE
	.comm	_KADM5_MAX_RLIFE,4,2            ## @KADM5_MAX_RLIFE
	.no_dead_strip	_create_principal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_principal
_create_principal:                      ; @create_principal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bics	wzr, w4, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x21, x2
	tst	w5, w2
	b.eq	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _KADM5_BAD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KADM5_BAD_MASK@GOTPAGEOFF]
LBB0_3:
	ldr	x23, [x8]
LBB0_4:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x19, x3
	mov	x22, x1
	mov	x20, x0
Lloh2:
	adrp	x8, _KADM5_POLICY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KADM5_POLICY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x22, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _KADM5_UNK_POLICY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KADM5_UNK_POLICY@GOTPAGEOFF]
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [x20, #4]
	ldr	w1, [x22]
	add	x2, x19, #8
	bl	_krb5_copy_principal
	mov	x23, x0
	cbnz	x0, LBB0_4
; %bb.9:
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x20
	bl	_get_default
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x21
	mov	x5, #0
	mov	w6, #0
	bl	__kadm5_setup_entry
	mov	x23, x0
	cbnz	x23, LBB0_4
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _KADM5_ATTRIBUTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KADM5_ATTRIBUTES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _KADM5_MAX_LIFE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KADM5_MAX_LIFE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _KADM5_MAX_RLIFE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _KADM5_MAX_RLIFE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w6, w8, w9
	orr	w2, w6, w21
	add	x5, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	x4, x21
	bl	__kadm5_setup_entry
	mov	x23, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_kadm5_free_principal_ent
	cbnz	x23, LBB0_4
LBB0_12:
	mov	x0, #0
	bl	_time
	str	w0, [x19, #4]
	ldp	w1, w0, [x20]
	mov	x2, x19
	bl	_krb5_copy_principal
	mov	x23, x0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KADM5_BAD_MASK,8,3             ; @KADM5_BAD_MASK
	.comm	_KADM5_POLICY,4,2               ; @KADM5_POLICY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

	.comm	_KADM5_UNK_POLICY,8,3           ; @KADM5_UNK_POLICY
	.comm	_KADM5_ATTRIBUTES,4,2           ; @KADM5_ATTRIBUTES
	.comm	_KADM5_MAX_LIFE,4,2             ; @KADM5_MAX_LIFE
	.comm	_KADM5_MAX_RLIFE,4,2            ; @KADM5_MAX_RLIFE
	.no_dead_strip	_create_principal
.subsections_via_symbols
