	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_set_keys3               ## -- Begin function _kadm5_set_keys3
	.p2align	4, 0x90
__kadm5_set_keys3:                      ## @_kadm5_set_keys3
	.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
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	leal	(,%r15,8), %eax
	leal	(%rax,%rax,2), %edi
	callq	_malloc
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_9
LBB0_3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	__kadm5_init_keys
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.4:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	addq	$8, %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 8(%r12)
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_krb5_copy_keyblock_contents
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, -8(%r12)
	addq	$4, %rbx
	addq	$24, %r12
	decq	%r15
	jne	LBB0_5
LBB0_7:
	movl	(%r13), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	8(%rbx), %rdx
	callq	__kadm5_free_keys
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movl	(%r13), %edi
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_hdb_entry_set_pw_change_time
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_hdb_entry_clear_password
	jmp	LBB0_9
LBB0_8:
	movq	%rax, %r14
	movl	(%r13), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	__kadm5_free_keys
LBB0_9:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_set_keys3               ; -- Begin function _kadm5_set_keys3
	.p2align	2
__kadm5_set_keys3:                      ; @_kadm5_set_keys3
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	w8, w2, w2, lsl #1
	lsl	w0, w8, #3
	bl	_malloc
	mov	x22, x0
	cbz	w21, LBB0_3
; %bb.1:
	cbnz	x22, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	b	LBB0_9
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	bl	__kadm5_init_keys
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x25, #0
	mov	w8, #24
	umull	x26, w21, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x22, x25
	str	xzr, [x8, #16]
	ldr	w0, [x20]
	add	x2, x8, #8
	mov	x1, x23
	bl	_krb5_copy_keyblock_contents
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x22, x25]
	add	x23, x23, #4
	add	x25, x25, #24
	cmp	x26, x25
	b.ne	LBB0_5
LBB0_7:
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	x2, [x19, #8]
	bl	__kadm5_free_keys
	str	w21, [x19]
	str	x22, [x19, #8]
	ldr	w0, [x20]
	mov	x1, x19
	mov	w2, #0
	bl	_hdb_entry_set_pw_change_time
	ldr	w0, [x20]
	mov	x1, x19
	bl	_hdb_entry_clear_password
	mov	x24, #0
	b	LBB0_9
LBB0_8:
	mov	x24, x0
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x22
	bl	__kadm5_free_keys
LBB0_9:
	mov	x0, x24
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
.subsections_via_symbols
