	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_set_keys                ## -- Begin function _kadm5_set_keys
	.p2align	4, 0x90
__kadm5_set_keys:                       ## @_kadm5_set_keys
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movl	16(%rsi), %esi
	leaq	-40(%rbp), %rcx
	leaq	-32(%rbp), %r8
	callq	_hdb_generate_key_set_password
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	4(%r15), %edi
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdx
	callq	__kadm5_free_keys
	movq	-40(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	-32(%rbp), %rax
	movq	%rax, (%rbx)
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_hdb_entry_set_pw_change_time
	movl	4(%r15), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	callq	_krb5_config_get_bool_default
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_hdb_entry_set_password
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kadmin"

L_.str.1:                               ## @.str.1
	.asciz	"save-password"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_set_keys                ; -- Begin function _kadm5_set_keys
	.p2align	2
__kadm5_set_keys:                       ; @_kadm5_set_keys
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x1, #16]
	add	x3, sp, #8
	mov	x4, sp
	bl	_hdb_generate_key_set_password
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x21, #4]
	ldp	x1, x2, [x20]
	bl	__kadm5_free_keys
	ldp	x9, x8, [sp]
	stp	x9, x8, [x20]
	ldr	w0, [x21, #4]
	mov	x1, x20
	mov	w2, #0
	bl	_hdb_entry_set_pw_change_time
	ldr	w0, [x21, #4]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
Lloh5:
	adrp	x4, l_.str.1@PAGE
Lloh6:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x1, #0
	mov	x5, #0
	bl	_krb5_config_get_bool_default
	cbz	x0, LBB0_3
; %bb.2:
	ldp	w1, w0, [x21]
	mov	x2, x20
	mov	x3, x19
	bl	_hdb_entry_set_password
	cbnz	x0, LBB0_4
LBB0_3:
	mov	x0, #0
LBB0_4:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kadmin"

l_.str.1:                               ; @.str.1
	.asciz	"save-password"

.subsections_via_symbols
