	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_new_key                    ## -- Begin function add_new_key
	.p2align	4, 0x90
_add_new_key:                           ## @add_new_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	cmpl	$0, 40(%rdi)
	setne	%al
	leal	1(%rax), %ecx
	cmpl	$0, 36(%rdi)
	cmovel	%eax, %ecx
	cmpl	$1, 28(%rdi)
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	sbbl	$-1, %ecx
	movq	(%rdi), %rdi
	cmpq	$1, %rdi
	sbbl	$-1, %ecx
	cmpl	$2, %ecx
	jb	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %eax
	jmp	LBB0_15
LBB0_2:
	movl	%esi, %r12d
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	leaq	-60(%rbp), %r14
	leaq	-72(%rbp), %rdx
	movq	%r14, %rsi
	callq	_parse_des_key
	testq	%rax, %rax
	je	LBB0_5
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	movq	-72(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %eax
	jmp	LBB0_15
LBB0_3:
	xorl	%r9d, %r9d
	testl	%r12d, %r12d
	jle	LBB0_7
LBB0_8:
	movl	%r12d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	negq	%rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movb	$1, %r15b
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-8(%rax,%r14,8), %rdi
	movl	40(%rbx), %esi
	movl	36(%rbx), %edx
	movl	32(%rbx), %ecx
	movl	28(%rbx), %r8d
	movl	24(%rbx), %r10d
	movl	20(%rbx), %r11d
	movl	16(%rbx), %eax
	movl	8(%rbx), %r15d
	movl	12(%rbx), %r13d
	subq	$8, %rsp
	movq	%r9, %r12
	pushq	%r15
	pushq	%r13
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_add_one_principal
	addq	$48, %rsp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	-104(%rbp), %r14                ## 8-byte Folded Reload
	setb	%r15b
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	incq	%rax
	incq	%r14
	cmpq	$1, %rax
	movq	%r12, %r9
	jne	LBB0_9
	jmp	LBB0_12
LBB0_5:
	movq	%r14, %r9
	testl	%r12d, %r12d
	jg	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
LBB0_12:
	testq	%r9, %r9
	je	LBB0_14
LBB0_13:
	movl	$3, -72(%rbp)
	movq	_kadm_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_kadm5_free_key_data
LBB0_14:
	movzbl	%r15b, %eax
	andl	$1, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.16:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_context@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-8(%rcx,%r14,8), %rcx
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rsi
	callq	_krb5_warn
	movq	%r12, %r9
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	testq	%r9, %r9
	jne	LBB0_13
	jmp	LBB0_14
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"give only one of --random-key, --random-password, --password, --key\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed parsing key \"%s\": %s\n"

	.comm	_context,4,2                    ## @context
L_.str.2:                               ## @.str.2
	.asciz	"adding %s"

	.comm	_kadm_handle,4,2                ## @kadm_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_new_key                    ; -- Begin function add_new_key
	.p2align	2
_add_new_key:                           ; @add_new_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldp	w9, w8, [x0, #36]
	cmp	w8, #0
	cset	w8, ne
	mov	w10, #1
	cinc	w10, w10, ne
	cmp	w9, #0
	csel	w8, w8, w10, eq
	ldr	w9, [x0, #28]
	cmp	w9, #0
	cinc	w8, w8, ne
	ldr	x0, [x0]
	cmp	x0, #0
	cinc	w8, w8, ne
	cmp	w8, #2
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x19, x2
	mov	x22, x1
	cbz	x0, LBB0_6
; %bb.3:
	add	x1, sp, #28
	add	x2, sp, #16
	bl	_parse_des_key
	cbz	x0, LBB0_10
; %bb.4:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x9, [sp, #16]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_fprintf
	mov	w0, #1
	b	LBB0_15
LBB0_6:
	mov	x21, #0
	cmp	w22, #1
	b.lt	LBB0_11
LBB0_7:
	mov	x23, #0
	mov	w24, w22
	mov	w22, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, x23, lsl #3]
	ldp	w2, w1, [x20, #36]
	ldp	w4, w3, [x20, #28]
	ldp	w7, w6, [x20, #20]
	ldp	w9, w8, [x20, #12]
	ldr	w10, [x20, #8]
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x5, x21
	bl	_add_one_principal
	cbnz	x0, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	cmp	x23, x24
	cset	w22, lo
	cmp	x24, x23
	b.ne	LBB0_8
	b	LBB0_12
LBB0_10:
	add	x21, sp, #28
	cmp	w22, #1
	b.ge	LBB0_7
LBB0_11:
	mov	w22, #0
LBB0_12:
	cbz	x21, LBB0_14
LBB0_13:
	mov	w8, #3
	str	w8, [sp, #16]
Lloh13:
	adrp	x8, _kadm_handle@GOTPAGE
Lloh14:
	ldr	x8, [x8, _kadm_handle@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, sp, #16
	add	x2, sp, #28
	bl	_kadm5_free_key_data
LBB0_14:
	and	w0, w22, #0x1
LBB0_15:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x1, x0
Lloh19:
	adrp	x8, _context@GOTPAGE
Lloh20:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x3, [x19, x23, lsl #3]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_krb5_warn
	cbnz	x21, LBB0_13
	b	LBB0_14
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"give only one of --random-key, --random-password, --password, --key\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed parsing key \"%s\": %s\n"

	.comm	_context,4,2                    ; @context
l_.str.2:                               ; @.str.2
	.asciz	"adding %s"

	.comm	_kadm_handle,4,2                ; @kadm_handle
.subsections_via_symbols
