	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cesa_ahmac_setkey
_mv_cesa_ahmac_setkey:                  ## @mv_cesa_ahmac_setkey
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r14
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_alloc_ahash
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_ahash_request_alloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_crypto_ahash_clear_flags
	movq	%r13, %rdi
	callq	_crypto_ahash_tfm
	movl	%eax, %edi
	callq	_crypto_tfm_alg_blocksize
	movl	%eax, %r12d
	movl	(%r15), %edx
	movl	$2, %edi
	movl	%eax, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	%r12d, %eax
	leaq	(%r15,%rax,4), %r8
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%r12d, %r9d
	callq	_mv_cesa_ahmac_pad_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_mv_cesa_ahmac_iv_state_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_mv_cesa_ahmac_iv_state_init
	movl	%eax, %r14d
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_9:
	movq	%rbx, %rdi
	callq	_ahash_request_free
LBB0_10:
	movq	%r13, %rdi
	callq	_crypto_free_ahash
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mv_cesa_ahmac_setkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_cesa_ahmac_setkey
_mv_cesa_ahmac_setkey:                  ; @mv_cesa_ahmac_setkey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	w1, #0
	mov	w2, #0
	bl	_crypto_alloc_ahash
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ahash_request_alloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #-1
	bl	_crypto_ahash_clear_flags
	mov	x0, x19
	bl	_crypto_ahash_tfm
	bl	_crypto_tfm_alg_blocksize
	mov	x25, x0
	ldr	w2, [x26]
	mov	w0, #2
	mov	x1, x25
	bl	_kcalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x26, x0
	add	x27, x0, w25, uxtw #2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	mov	x3, x26
	mov	x4, x27
	mov	x5, x25
	bl	_mv_cesa_ahmac_pad_init
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x21
	mov	x1, x26
	mov	x2, x22
	mov	x3, x25
	bl	_mv_cesa_ahmac_iv_state_init
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x27
	mov	x2, x20
	mov	x3, x25
	bl	_mv_cesa_ahmac_iv_state_init
	mov	x23, x0
LBB0_7:
	mov	x0, x26
	bl	_kfree
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x21
	bl	_ahash_request_free
LBB0_11:
	mov	x0, x19
	bl	_crypto_free_ahash
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mv_cesa_ahmac_setkey
.subsections_via_symbols
