	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeNewKey                      ## -- Begin function IkeNewKey
	.p2align	4, 0x90
_IkeNewKey:                             ## @IkeNewKey
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.3:
	movq	%rdi, %rbx
	movq	%r12, %rsi
	callq	_IkeCheckKeySize
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	$56, %edi
	callq	_ZeroMalloc
	movq	%rax, %r15
	movq	%rbx, 32(%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_Clone
	movl	%eax, 48(%r15)
	movq	%r12, 40(%r15)
	movq	32(%r15), %rax
	movl	(%rax), %eax
	cmpl	$130, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_DesNewKeyValue
	movq	%rax, 24(%r15)
	jmp	LBB0_11
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_9:
	movq	%r14, %rdi
	callq	_DesNewKeyValue
	movq	%rax, 24(%r15)
	movq	_DES_KEY_SIZE@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rdi
	addq	%r14, %rdi
	callq	_DesNewKeyValue
	movq	%rax, 16(%r15)
	movslq	(%rbx), %rax
	leaq	(%r14,%rax,2), %rdi
	callq	_DesNewKeyValue
	movq	%rax, 8(%r15)
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_AesNewKey
	movl	%eax, (%r15)
LBB0_11:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DES_KEY_SIZE,4,2               ## @DES_KEY_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeNewKey                      ; -- Begin function IkeNewKey
	.p2align	2
_IkeNewKey:                             ; @IkeNewKey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #0
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_11
; %bb.3:
	mov	x22, x0
	mov	x1, x21
	bl	_IkeCheckKeySize
	cbz	w0, LBB0_8
; %bb.4:
	mov	w0, #56
	bl	_ZeroMalloc
	mov	x19, x0
	str	x22, [x0, #32]
	mov	x0, x20
	mov	x1, x21
	bl	_Clone
	str	w0, [x19, #48]
	str	x21, [x19, #40]
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_DesNewKeyValue
	str	x0, [x19, #24]
	b	LBB0_11
LBB0_8:
	mov	x19, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_DesNewKeyValue
	str	x0, [x19, #24]
Lloh0:
	adrp	x21, _DES_KEY_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DES_KEY_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x21]
	add	x0, x20, x8
	bl	_DesNewKeyValue
	str	x0, [x19, #16]
	ldrsw	x8, [x21]
	add	x0, x20, x8, lsl #1
	bl	_DesNewKeyValue
	str	x0, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	bl	_AesNewKey
	str	w0, [x19]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DES_KEY_SIZE,4,2               ; @DES_KEY_SIZE
.subsections_via_symbols
