	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpw_entry                      ## -- Begin function cpw_entry
	.p2align	4, 0x90
_cpw_entry:                             ## @cpw_entry
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movq	%rax, -80(%rbp)
	movq	16(%rdi), %rcx
	movq	%rcx, -88(%rbp)
	movq	8(%rdi), %rdx
	movq	%rdx, -96(%rbp)
	movq	$0, -104(%rbp)
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
	leal	1(%rsi), %eax
	testq	%rcx, %rcx
	cmovel	%esi, %eax
	cmpq	$1, %rdx
	sbbl	$-1, %eax
	movq	(%rdi), %rdi
	cmpq	$1, %rdi
	sbbl	$-1, %eax
	cmpl	$2, %eax
	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_14
LBB0_2:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	leaq	-60(%rbp), %r12
	leaq	-72(%rbp), %rdx
	movq	%r12, %rsi
	callq	_parse_des_key
	testq	%rax, %rax
	je	LBB0_5
## %bb.16:
	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_14
LBB0_3:
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	jle	LBB0_7
LBB0_8:
	movl	%r14d, %r13d
	movq	%r15, %r14
	xorl	%r15d, %r15d
	leaq	-104(%rbp), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rdi
	movq	_do_cpw_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rcx
	callq	_foreach_principal
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	-104(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_13
LBB0_12:
	movq	_kadm_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	callq	_kadm5_free_key_data
LBB0_13:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, -104(%rbp)
	testl	%r14d, %r14d
	jg	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	jne	LBB0_12
	jmp	LBB0_13
LBB0_17:
	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	_do_cpw_entry,4,2               ## @do_cpw_entry
L_.str.2:                               ## @.str.2
	.asciz	"cpw"

	.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	_cpw_entry                      ; -- Begin function cpw_entry
	.p2align	2
_cpw_entry:                             ; @cpw_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldp	x9, x8, [x0, #16]
	stp	x9, x8, [sp, #40]
	cmp	x8, #0
	cset	w8, ne
	mov	w10, #1
	cinc	w10, w10, ne
	cmp	x9, #0
	ldp	x0, x9, [x0]
	stp	xzr, x9, [sp, #24]
	csel	w8, w8, w10, eq
	cmp	x9, #0
	cinc	w8, w8, ne
	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	x20, x1
	cbz	x0, LBB0_6
; %bb.3:
	add	x22, sp, #60
	add	x1, sp, #60
	add	x2, sp, #16
	bl	_parse_des_key
	cbz	x0, LBB0_14
; %bb.4:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x21]
	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_12
LBB0_6:
	mov	x22, #0
	cmp	w20, #1
	b.lt	LBB0_15
LBB0_7:
	mov	w22, w20
Lloh13:
	adrp	x23, _do_cpw_entry@GOTPAGE
Lloh14:
	ldr	x23, [x23, _do_cpw_entry@GOTPAGEOFF]
Lloh15:
	adrp	x21, l_.str.2@PAGE
Lloh16:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #8
	ldr	w1, [x23]
	add	x3, sp, #24
	mov	x2, x21
	bl	_foreach_principal
	subs	x22, x22, #1
	b.ne	LBB0_8
; %bb.9:
	mov	x20, x0
	ldr	x22, [sp, #24]
	cbz	x22, LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _kadm_handle@GOTPAGE
Lloh18:
	ldr	x8, [x8, _kadm_handle@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, sp, #16
	add	x2, sp, #60
	bl	_kadm5_free_key_data
LBB0_11:
	cmp	x20, #0
	cset	w0, ne
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	str	x22, [sp, #24]
	cmp	w20, #1
	b.ge	LBB0_7
LBB0_15:
	mov	x20, #0
	cbnz	x22, LBB0_10
	b	LBB0_11
LBB0_16:
	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 AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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	_do_cpw_entry,4,2               ; @do_cpw_entry
l_.str.2:                               ; @.str.2
	.asciz	"cpw"

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