	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeDecrypt                     ## -- Begin function IkeDecrypt
	.p2align	4, 0x90
_IkeDecrypt:                            ## @IkeDecrypt
	.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
	pushq	%rax
	movl	$6408, %eax                     ## imm = 0x1908
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%r13), %rdi
	movq	(%rdi), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	cmpl	$6401, %r14d                    ## imm = 0x1901
	jb	LBB0_5
## %bb.6:
	movl	%r14d, %edi
	callq	_Malloc
	movq	%rax, %r15
	movq	(%r13), %rdi
	jmp	LBB0_7
LBB0_5:
	leaq	-6448(%rbp), %r15
LBB0_7:
	movl	12(%r13), %r8d
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_IkeCryptoDecrypt
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	8(%r13), %edi
	cmpl	%r14d, %edx
	jle	LBB0_8
## %bb.9:
	movl	%edx, %esi
	callq	_Zero
	jmp	LBB0_10
LBB0_8:
	movl	%r14d, %eax
	subl	%edx, %eax
	cltq
	leaq	(%r12,%rax,4), %rsi
	callq	_Copy
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_MemToBuf
	movq	%rax, %rbx
	cmpl	$6401, %r14d                    ## imm = 0x1901
	jb	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_Free
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	addq	$6408, %rsp                     ## imm = 0x1908
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IkeDecrypt                     ; -- Begin function IkeDecrypt
	.p2align	2
_IkeDecrypt:                            ; @IkeDecrypt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	w9, #6416
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #2320
	mov	x23, #0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x2
	cbz	x2, LBB0_12
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x22]
	ldr	x8, [x0]
	ldr	w8, [x8]
	sdiv	w9, w1, w8
	msub	w8, w9, w8, w1
	cbz	w8, LBB0_4
; %bb.3:
	mov	x23, #0
	b	LBB0_12
LBB0_4:
	mov	w8, #6401
	cmp	w19, w8
	b.lo	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_Malloc
	mov	x21, x0
	ldr	x0, [x22]
	b	LBB0_7
LBB0_6:
	add	x21, sp, #8
LBB0_7:
	ldr	w4, [x22, #12]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_IkeCryptoDecrypt
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w2, [x8]
	ldr	w0, [x22, #8]
	cmp	w2, w19
	b.le	LBB0_9
; %bb.8:
	mov	x1, x2
	bl	_Zero
	b	LBB0_10
LBB0_9:
	sub	w8, w19, w2
	add	x1, x20, w8, sxtw #2
	bl	_Copy
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_MemToBuf
	mov	x23, x0
	mov	w8, #6401
	cmp	w19, w8
	b.lo	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_Free
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x23
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #2320
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
