	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_c_randkey_principal      ## -- Begin function kadm5_c_randkey_principal
	.p2align	4, 0x90
_kadm5_c_randkey_principal:             ## @kadm5_c_randkey_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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	__kadm5_connect
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.16:
	movq	%rbx, %rax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -1088(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_krb5_storage_from_mem
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	_kadm_randkey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_krb5_store_int32
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_krb5_store_principal
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	__kadm5_client_send
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_krb5_storage_free
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.4:
	leaq	-1080(%rbp), %rsi
	movq	%r13, %rdi
	callq	__kadm5_client_recv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.5:
	leaq	-1080(%rbp), %rdi
	callq	_krb5_storage_from_data
	movq	%rax, %r15
	movl	(%r13), %edi
	callq	_krb5_clear_error_message
	testq	%r15, %r15
	je	LBB0_6
## %bb.8:
	leaq	-1076(%rbp), %rsi
	movq	%r15, %rdi
	callq	_krb5_ret_int32
	movslq	-1076(%rbp), %rbx
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.9:
	leaq	-1076(%rbp), %rsi
	movq	%r15, %rdi
	callq	_krb5_ret_int32
	movl	-1076(%rbp), %edi
	shll	$2, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r14
	movl	-1076(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:
	xorl	%r13d, %r13d
	movq	%r14, %rbx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_krb5_ret_keyblock
	incq	%r13
	movslq	-1076(%rbp), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_12
LBB0_13:
	movq	-1088(%rbp), %rcx               ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r14, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_2:
	movl	(%r13), %edi
	callq	_krb5_clear_error_message
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_15
LBB0_6:
	leaq	-1080(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_7
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_14:
	movq	%r15, %rdi
	callq	_krb5_storage_free
	leaq	-1080(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_15
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_kadm_randkey,4,2               ## @kadm_randkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_c_randkey_principal      ; -- Begin function kadm5_c_randkey_principal
	.p2align	2
_kadm5_c_randkey_principal:             ; @kadm5_c_randkey_principal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1040
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	__kadm5_connect
	mov	x23, x0
	cbz	x0, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.2:
	mov	x0, x23
	add	sp, sp, #1040
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	add	x0, sp, #8
	mov	w1, #1024
	bl	_krb5_storage_from_mem
	cbz	x0, LBB0_13
; %bb.4:
	mov	x24, x0
Lloh6:
	adrp	x8, _kadm_randkey@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kadm_randkey@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_krb5_store_int32
	mov	x0, x24
	mov	x1, x21
	bl	_krb5_store_principal
	mov	x0, x22
	mov	x1, x24
	bl	__kadm5_client_send
	mov	x23, x0
	mov	x0, x24
	bl	_krb5_storage_free
	cbnz	x23, LBB0_1
; %bb.5:
	mov	x1, sp
	mov	x0, x22
	bl	__kadm5_client_recv
	mov	x23, x0
	cbnz	x0, LBB0_1
; %bb.6:
	mov	x0, sp
	bl	_krb5_storage_from_data
	mov	x21, x0
	ldr	w0, [x22]
	bl	_krb5_clear_error_message
	cbz	x21, LBB0_15
; %bb.7:
	add	x1, sp, #4
	mov	x0, x21
	bl	_krb5_ret_int32
	ldrsw	x23, [sp, #4]
	cbnz	w23, LBB0_17
; %bb.8:
	add	x1, sp, #4
	mov	x0, x21
	bl	_krb5_ret_int32
	ldr	w8, [sp, #4]
	lsl	w0, w8, #2
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.9:
	mov	x22, x0
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x24, #0
	mov	x23, x22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_krb5_ret_keyblock
	add	x24, x24, #1
	ldrsw	x8, [sp, #4]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_11
LBB0_12:
	mov	x23, #0
	str	w8, [x20]
	str	x22, [x19]
	b	LBB0_17
LBB0_13:
	ldr	w0, [x22]
	bl	_krb5_clear_error_message
LBB0_14:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x8]
	b	LBB0_1
LBB0_15:
	mov	x0, sp
	bl	_krb5_data_free
	b	LBB0_14
LBB0_16:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	x23, [x8]
LBB0_17:
	mov	x0, x21
	bl	_krb5_storage_free
	mov	x0, sp
	bl	_krb5_data_free
	b	LBB0_1
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_kadm_randkey,4,2               ; @kadm_randkey
.subsections_via_symbols
