	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_iv_lmk_ctr
_crypt_iv_lmk_ctr:                      ## @crypt_iv_lmk_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	%rsi, %r14
	cmpl	%eax, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_alloc_shash
	movl	%eax, 32(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%r14)
	movl	32(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_LMK_SEED_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %rcx
	movq	%rax, 24(%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_crypt_iv_lmk_dtr
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported sector size for LMK"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"md5"

L_.str.2:                               ## @.str.2
	.asciz	"Error initializing LMK hash"

	.comm	_LMK_SEED_SIZE,4,2              ## @LMK_SEED_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"Error kmallocing seed storage in LMK"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_crypt_iv_lmk_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_lmk_ctr
_crypt_iv_lmk_ctr:                      ; @crypt_iv_lmk_ctr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	bl	_crypto_alloc_shash
	str	w0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x19]
	ldr	w0, [x20, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	str	xzr, [x20, #24]
	b	LBB0_5
LBB0_8:
Lloh11:
	adrp	x8, _LMK_SEED_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LMK_SEED_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #0
	b	LBB0_5
LBB0_10:
	mov	x0, x20
	bl	_crypt_iv_lmk_dtr
Lloh17:
	adrp	x8, l_.str.3@PAGE
Lloh18:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x19]
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported sector size for LMK"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"md5"

l_.str.2:                               ; @.str.2
	.asciz	"Error initializing LMK hash"

	.comm	_LMK_SEED_SIZE,4,2              ; @LMK_SEED_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"Error kmallocing seed storage in LMK"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_crypt_iv_lmk_ctr
.subsections_via_symbols
