	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_iv_tcw_ctr
_crypt_iv_tcw_ctr:                      ## @crypt_iv_tcw_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	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	%rsi, %r14
	cmpl	%eax, (%rdi)
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	_TCW_WHITENING_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addq	16(%rdi), %rax
	cmpq	%rax, 8(%rdi)
	jle	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_crypto_alloc_shash
	movl	%eax, 40(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	movl	40(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rax
LBB0_2:
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_kzalloc
	movq	%rax, 32(%rbx)
	movq	(%r12), %rdi
	movl	(%r13), %esi
	callq	_kzalloc
	movq	%rax, 24(%rbx)
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.7:
	testq	%rax, %rax
	jne	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_crypt_iv_tcw_dtr
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported sector size for TCW"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TCW_WHITENING_SIZE,8,3         ## @TCW_WHITENING_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Wrong key size for TCW"

L_.str.2:                               ## @.str.2
	.asciz	"crc32"

L_.str.3:                               ## @.str.3
	.asciz	"Error initializing CRC32 in TCW"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.4:                               ## @.str.4
	.asciz	"Error allocating seed storage in TCW"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_crypt_iv_tcw_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_tcw_ctr
_crypt_iv_tcw_ctr:                      ; @crypt_iv_tcw_ctr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	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_4
; %bb.1:
	mov	x20, x0
	ldp	x8, x9, [x0, #8]
Lloh3:
	adrp	x21, _TCW_WHITENING_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TCW_WHITENING_SIZE@GOTPAGEOFF]
	ldr	x10, [x21]
	add	x9, x10, x9
	cmp	x8, x9
	b.le	LBB0_5
; %bb.2:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	mov	w2, #0
	bl	_crypto_alloc_shash
	str	w0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x19]
	ldr	w0, [x20, #40]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh9:
	adrp	x8, l_.str@PAGE
Lloh10:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_6:
	str	x8, [x19]
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x20, #16]
Lloh15:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x20, #32]
	ldr	x0, [x21]
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x20, #24]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_12
; %bb.10:
	cbz	x0, LBB0_12
; %bb.11:
	mov	w0, #0
	b	LBB0_8
LBB0_12:
	mov	x0, x20
	bl	_crypt_iv_tcw_dtr
Lloh17:
	adrp	x8, l_.str.4@PAGE
Lloh18:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19]
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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 TCW"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TCW_WHITENING_SIZE,8,3         ; @TCW_WHITENING_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Wrong key size for TCW"

l_.str.2:                               ; @.str.2
	.asciz	"crc32"

l_.str.3:                               ; @.str.3
	.asciz	"Error initializing CRC32 in TCW"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.4:                               ; @.str.4
	.asciz	"Error allocating seed storage in TCW"

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