	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_random_key
_set_random_key:                        ## @set_random_key
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %esi
	movq	_kadm_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	callq	_kadm5_randkey_principal
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	cmpl	$0, -28(%rbp)
	jle	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	movq	_context@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	-40(%rbp), %rsi
	addq	%r15, %rsi
	callq	_krb5_free_keyblock_contents
	incq	%rbx
	movslq	-28(%rbp), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	-40(%rbp), %rdi
	callq	_free
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kadm_handle,4,2                ## @kadm_handle
	.comm	_context,4,2                    ## @context
	.no_dead_strip	_set_random_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_random_key
_set_random_key:                        ; @set_random_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x1, x0
Lloh0:
	adrp	x8, _kadm_handle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kadm_handle@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	add	x3, sp, #4
	bl	_kadm5_randkey_principal
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w8, [sp, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x19, #0
	mov	x20, #0
Lloh3:
	adrp	x21, _context@GOTPAGE
Lloh4:
	ldr	x21, [x21, _context@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [sp, #8]
	add	x1, x8, x19
	bl	_krb5_free_keyblock_contents
	add	x20, x20, #1
	ldrsw	x8, [sp, #4]
	add	x19, x19, #4
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_free
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_kadm_handle,4,2                ; @kadm_handle
	.comm	_context,4,2                    ; @context
	.no_dead_strip	_set_random_key
.subsections_via_symbols
