	.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), %r12
	movslq	(%r12), %rax
	leaq	8(%rax), %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movb	(%rdi), %cl
	movq	_CI_MPPE@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %cl
	jne	LBB0_11
## %bb.2:
	movzbl	1(%r14), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	jne	LBB0_15
## %bb.3:
	movq	_fips_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_15
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_alloc_shash
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	(%rax), %rdi
	callq	_crypto_free_shash
	movq	16(%rbx), %rdi
	callq	_kzfree
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_crypto_shash_descsize
                                        ## kill: def $eax killed $eax def $rax
	leal	8(%rax), %edi
	movl	(%r13), %esi
	callq	_kmalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	movq	%r15, (%rax)
	movq	%r15, %rdi
	callq	_crypto_shash_digestsize
	movq	_MPPE_MAX_KEY_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_8
## %bb.13:
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_kmalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	movq	(%rbx), %rdi
	movslq	(%r12), %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_15
LBB0_7:
	movq	%r15, %rdi
	callq	_crypto_free_shash
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CILEN_MPPE,4,2                 ## @CILEN_MPPE
	.comm	_CI_MPPE,1,0                    ## @CI_MPPE
	.comm	_fips_enabled,8,3               ## @fips_enabled
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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	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
Lloh0:
	adrp	x22, _CILEN_MPPE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CILEN_MPPE@GOTPAGEOFF]
	ldrsw	x8, [x22]
	add	x9, x8, #8
	cmp	x9, w1, sxtw
	b.ne	LBB0_8
; %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_8
; %bb.2:
	ldrb	w9, [x20, #1]
Lloh4:
	adrp	x10, _fips_enabled@GOTPAGE
Lloh5:
	ldr	x10, [x10, _fips_enabled@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	w8, w9
	ccmp	x10, #0, #0, eq
	b.ne	LBB0_8
; %bb.3:
Lloh7:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	bl	_crypto_alloc_shash
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
LBB0_5:
	ldr	x0, [x19, #24]
	bl	_kfree
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x0, [x8]
	bl	_crypto_free_shash
	ldr	x0, [x19, #16]
	bl	_kzfree
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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_10:
	mov	x0, x21
	bl	_crypto_shash_descsize
	add	w0, w0, #8
	ldr	w1, [x23]
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.11:
	str	x21, [x0]
	mov	x0, x21
	bl	_crypto_shash_digestsize
Lloh11:
	adrp	x8, _MPPE_MAX_KEY_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MPPE_MAX_KEY_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lo	LBB0_5
; %bb.12:
	ldr	w1, [x23]
	bl	_kmalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.13:
	ldr	x0, [x19]
	ldrsw	x8, [x22]
	add	x1, x20, x8
	mov	w2, #8
	bl	_memcpy
	ldp	x1, x0, [x19]
	mov	w2, #8
	bl	_memcpy
	b	LBB0_9
LBB0_14:
	mov	x0, x21
	bl	_crypto_free_shash
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CILEN_MPPE,4,2                 ; @CILEN_MPPE
	.comm	_CI_MPPE,1,0                    ; @CI_MPPE
	.comm	_fips_enabled,8,3               ; @fips_enabled
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sha1"

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