	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mppe_alloc
_mppe_alloc:                            ## @mppe_alloc
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%esi, %rcx
	movq	_CILEN_MPPE@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	leaq	8(%rax), %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	movb	(%rdi), %cl
	movq	_CI_MPPE@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	jne	LBB0_17
## %bb.2:
	movzbl	1(%r14), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_17
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	movq	%rax, %rbx
	movq	_CRYPTO_ALG_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	callq	_crypto_alloc_blkcipher
	leaq	16(%rbx), %r13
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%r13, %r12
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	_CRYPTO_ALG_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_crypto_alloc_hash
	movq	%rbx, %r12
	addq	$24, %r12
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
LBB0_9:
	movq	$0, (%r12)
LBB0_10:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_kfree
LBB0_12:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_crypto_free_hash
LBB0_14:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_crypto_free_blkcipher
LBB0_16:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rdi
	callq	_crypto_hash_digestsize
	movq	_MPPE_MAX_KEY_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_10
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kmalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	(%rbx), %rdi
	movslq	(%r15), %rax
	addq	%rax, %r14
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_CILEN_MPPE,4,2                 ## @CILEN_MPPE
	.comm	_CI_MPPE,1,0                    ## @CI_MPPE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ecb(arc4)"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ## @CRYPTO_ALG_ASYNC
L_.str.1:                               ## @.str.1
	.asciz	"sha1"

	.comm	_MPPE_MAX_KEY_LEN,4,2           ## @MPPE_MAX_KEY_LEN
	.no_dead_strip	_mppe_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mppe_alloc
_mppe_alloc:                            ; @mppe_alloc
	.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
Lloh0:
	adrp	x21, _CILEN_MPPE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CILEN_MPPE@GOTPAGEOFF]
	ldrsw	x8, [x21]
	add	x9, x8, #8
	cmp	x9, w1, sxtw
	b.ne	LBB0_14
; %bb.1:
	mov	x20, x0
	ldrb	w9, [x0]
Lloh2:
	adrp	x10, _CI_MPPE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CI_MPPE@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.2:
	ldrb	w9, [x20, #1]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.3:
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.4:
Lloh6:
	adrp	x24, _CRYPTO_ALG_ASYNC@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CRYPTO_ALG_ASYNC@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_crypto_alloc_blkcipher
	mov	x22, x19
	str	x0, [x22, #16]!
	bl	_IS_ERR
	mov	x25, x22
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w2, [x24]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_crypto_alloc_hash
	mov	x25, x19
	str	x0, [x25, #24]!
	bl	_IS_ERR
	cbz	x0, LBB0_16
LBB0_6:
	str	xzr, [x25]
LBB0_7:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_kfree
LBB0_9:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_crypto_free_hash
LBB0_11:
	ldr	x0, [x22]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_crypto_free_blkcipher
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x19, #0
LBB0_15:
	mov	x0, x19
	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
LBB0_16:
	ldr	x0, [x25]
	bl	_crypto_hash_digestsize
Lloh12:
	adrp	x8, _MPPE_MAX_KEY_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MPPE_MAX_KEY_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lo	LBB0_7
; %bb.17:
	ldr	w1, [x23]
	bl	_kmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.18:
	ldr	x0, [x19]
	ldrsw	x8, [x21]
	add	x1, x20, x8
	mov	w2, #8
	bl	_memcpy
	ldp	x1, x0, [x19]
	mov	w2, #8
	bl	_memcpy
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CILEN_MPPE,4,2                 ; @CILEN_MPPE
	.comm	_CI_MPPE,1,0                    ; @CI_MPPE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ecb(arc4)"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ; @CRYPTO_ALG_ASYNC
l_.str.1:                               ; @.str.1
	.asciz	"sha1"

	.comm	_MPPE_MAX_KEY_LEN,4,2           ; @MPPE_MAX_KEY_LEN
	.no_dead_strip	_mppe_alloc
.subsections_via_symbols
