	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_iv_essiv_ctr
_crypt_iv_essiv_ctr:                    ## @crypt_iv_essiv_ctr
	.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
	movq	%rsi, %rbx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	_CRYPTO_ALG_ASYNC@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_crypto_alloc_hash
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	xorl	%r14d, %r14d
LBB0_13:
	testq	%r15, %r15
	je	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_crypto_free_hash
LBB0_16:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_crypto_hash_digestsize
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movl	28(%r12), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_crypto_alloc_cipher
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	testq	%r13, %r13
	jne	LBB0_11
	jmp	LBB0_13
LBB0_5:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rbx)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_8:
	movq	%r13, %rdi
	callq	_crypto_cipher_blocksize
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	24(%r12), %edi
	callq	_crypto_ablkcipher_ivsize
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.18:
	movq	%r14, 16(%r12)
	movq	%r13, 8(%r12)
	movq	%r15, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testq	%r13, %r13
	je	LBB0_13
LBB0_11:
	movq	%r13, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_crypto_free_cipher
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Digest algorithm missing for ESSIV mode"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYPTO_ALG_ASYNC,4,2           ## @CRYPTO_ALG_ASYNC
L_.str.1:                               ## @.str.1
	.asciz	"Error initializing ESSIV hash"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"Error kmallocing salt storage in ESSIV"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Error allocating crypto tfm for ESSIV"

L_.str.4:                               ## @.str.4
	.asciz	"Block size of ESSIV cipher does not match IV size of block cipher"

	.no_dead_strip	_crypt_iv_essiv_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_iv_essiv_ctr
_crypt_iv_essiv_ctr:                    ; @crypt_iv_essiv_ctr
	.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	x21, x1
	cbz	x2, LBB0_7
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x23, _CRYPTO_ALG_ASYNC@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CRYPTO_ALG_ASYNC@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x0, x2
	mov	w1, #0
	mov	x2, x8
	bl	_crypto_alloc_hash
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.2:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x21]
	mov	x0, x19
	bl	_PTR_ERR
	mov	x21, x0
	mov	x20, #0
LBB0_3:
	cbz	x19, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_crypto_free_hash
LBB0_6:
	mov	x0, x20
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, l_.str@PAGE
Lloh5:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x21]
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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_9:
	mov	x0, x19
	bl	_crypto_hash_digestsize
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w0, [x22, #28]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_crypto_alloc_cipher
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
Lloh12:
	adrp	x8, l_.str.3@PAGE
Lloh13:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x21]
	mov	x0, x23
	bl	_PTR_ERR
	mov	x21, x0
	cbnz	x23, LBB0_16
	b	LBB0_3
LBB0_12:
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x21]
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_13:
	mov	x0, x23
	bl	_crypto_cipher_blocksize
	mov	x24, x0
	ldr	w0, [x22, #24]
	bl	_crypto_ablkcipher_ivsize
	cmp	x24, x0
	b.ne	LBB0_15
; %bb.14:
	mov	w21, #0
	stp	x23, x20, [x22, #8]
	str	x19, [x22]
	b	LBB0_8
LBB0_15:
Lloh19:
	adrp	x8, l_.str.4@PAGE
Lloh20:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x21]
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
	cbz	x23, LBB0_3
LBB0_16:
	mov	x0, x23
	bl	_IS_ERR
	cbnz	x0, LBB0_3
; %bb.17:
	mov	x0, x23
	bl	_crypto_free_cipher
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Digest algorithm missing for ESSIV mode"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYPTO_ALG_ASYNC,4,2           ; @CRYPTO_ALG_ASYNC
l_.str.1:                               ; @.str.1
	.asciz	"Error initializing ESSIV hash"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"Error kmallocing salt storage in ESSIV"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Error allocating crypto tfm for ESSIV"

l_.str.4:                               ; @.str.4
	.asciz	"Block size of ESSIV cipher does not match IV size of block cipher"

	.no_dead_strip	_crypt_iv_essiv_ctr
.subsections_via_symbols
