	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_ctr
_crypt_ctr:                             ## @crypt_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	%rdi, %r14
	cmpl	$5, %esi
	jne	LBB0_1
## %bb.3:
	movq	%rdx, %r12
	movq	8(%rdx), %rdi
	callq	_strlen
	movl	%eax, %ebx
	sarl	%ebx
	leal	88(,%rbx,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	%ebx, (%rax)
	movq	%rax, 16(%r14)
	movq	(%r12), %rsi
	movq	8(%r12), %rdx
	movq	%r14, %rdi
	callq	_crypt_ctr_cipher
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MIN_IOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__crypt_io_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_create_slab_pool
	movl	%eax, 84(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	$4, 4(%r15)
	movl	80(%r15), %edi
	callq	_crypto_ablkcipher_reqsize
	movq	%rax, %rbx
	addl	4(%r15), %ebx
	movl	%ebx, 4(%r15)
	xorl	%eax, %eax
	callq	_crypto_tfm_ctx_alignment
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ALIGN
	movl	%eax, 4(%r15)
	movl	80(%r15), %edi
	callq	_crypto_ablkcipher_alignmask
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_crypto_tfm_ctx_alignment
	negl	%eax
	andl	%ebx, %eax
	movq	_MIN_IOS@GOTPCREL(%rip), %rbx
	movslq	4(%r15), %rcx
	cltq
	addq	%rcx, %rax
	movl	%eax, 4(%r15)
	movl	(%rbx), %edi
	movq	72(%r15), %rcx
	leaq	(%rcx,%rax), %rsi
	addq	$4, %rsi
	callq	_mempool_create_kmalloc_pool
	movl	%eax, 64(%r15)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	$0, 56(%r15)
	movq	_MIN_POOL_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_mempool_create_page_pool
	movl	%eax, 48(%r15)
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_bioset_create
	movl	%eax, 44(%r15)
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%r12), %rdi
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.17:
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	24(%r12), %rbx
	movl	12(%r14), %edi
	callq	_dm_table_get_mode
	movq	%r15, %rcx
	addq	$40, %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_dm_get_device
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.8(%rip), %rax
	jmp	LBB0_25
LBB0_1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_27
LBB0_6:
	movl	%eax, %r13d
	jmp	LBB0_26
LBB0_8:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_25
LBB0_10:
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_25
LBB0_12:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_25
LBB0_14:
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_25
LBB0_16:
	leaq	L_.str.7(%rip), %rax
LBB0_25:
	negl	%r13d
	movq	%rax, (%r14)
LBB0_26:
	movq	%r14, %rdi
	callq	_crypt_dtr
LBB0_27:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	32(%r12), %rdi
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.21:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	L_.str.10(%rip), %rdi
	callq	_create_singlethread_workqueue
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	leaq	L_.str.12(%rip), %rdi
	callq	_create_singlethread_workqueue
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_24
## %bb.28:
	movl	$1, 8(%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_27
LBB0_20:
	leaq	L_.str.9(%rip), %rax
	jmp	LBB0_25
LBB0_22:
	leaq	L_.str.11(%rip), %rax
	jmp	LBB0_25
LBB0_24:
	leaq	L_.str.13(%rip), %rax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough arguments"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate encryption context"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MIN_IOS,4,2                    ## @MIN_IOS
	.comm	__crypt_io_pool,4,2             ## @_crypt_io_pool
L_.str.2:                               ## @.str.2
	.asciz	"Cannot allocate crypt io mempool"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot allocate crypt request mempool"

	.comm	_MIN_POOL_PAGES,4,2             ## @MIN_POOL_PAGES
L_.str.4:                               ## @.str.4
	.asciz	"Cannot allocate page mempool"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot allocate crypt bioset"

L_.str.6:                               ## @.str.6
	.asciz	"%llu"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid iv_offset sector"

L_.str.8:                               ## @.str.8
	.asciz	"Device lookup failed"

L_.str.9:                               ## @.str.9
	.asciz	"Invalid device sector"

L_.str.10:                              ## @.str.10
	.asciz	"kcryptd_io"

L_.str.11:                              ## @.str.11
	.asciz	"Couldn't create kcryptd io queue"

L_.str.12:                              ## @.str.12
	.asciz	"kcryptd"

L_.str.13:                              ## @.str.13
	.asciz	"Couldn't create kcryptd queue"

	.no_dead_strip	_crypt_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_ctr
_crypt_ctr:                             ; @crypt_ctr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	cmp	w1, #5
	b.ne	LBB0_10
; %bb.1:
	mov	x21, x2
	ldr	x0, [x2, #8]
	bl	_strlen
	asr	w22, w0, #1
	lsl	w8, w22, #2
	add	w0, w8, #88
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
	str	w22, [x0]
	str	x0, [x19, #16]
	ldp	x1, x2, [x21]
	mov	x0, x19
	bl	_crypt_ctr_cipher
	tbnz	w0, #31, LBB0_13
; %bb.3:
Lloh3:
	adrp	x24, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ENOMEM@GOTPAGEOFF]
	ldr	w23, [x24]
Lloh5:
	adrp	x25, _MIN_IOS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MIN_IOS@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh7:
	adrp	x8, __crypt_io_pool@GOTPAGE
Lloh8:
	ldr	x8, [x8, __crypt_io_pool@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_mempool_create_slab_pool
	str	w0, [x20, #84]
	cbz	w0, LBB0_14
; %bb.4:
	mov	w8, #4
	str	w8, [x20, #4]
	ldr	w0, [x20, #80]
	bl	_crypto_ablkcipher_reqsize
	ldr	w8, [x20, #4]
	add	w22, w8, w0
	str	w22, [x20, #4]
	bl	_crypto_tfm_ctx_alignment
	mov	x1, x0
	mov	x0, x22
	bl	_ALIGN
	str	w0, [x20, #4]
	ldr	w0, [x20, #80]
	bl	_crypto_ablkcipher_alignmask
	mov	x22, x0
	bl	_crypto_tfm_ctx_alignment
	neg	w8, w0
	and	w8, w22, w8
	ldrsw	x9, [x20, #4]
	add	x8, x9, w8, sxtw
	str	w8, [x20, #4]
	ldr	w0, [x25]
	ldr	x9, [x20, #72]
	add	x8, x8, x9
	add	x1, x8, #4
	bl	_mempool_create_kmalloc_pool
	str	w0, [x20, #64]
	cbz	w0, LBB0_15
; %bb.5:
	str	xzr, [x20, #56]
Lloh10:
	adrp	x8, _MIN_POOL_PAGES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MIN_POOL_PAGES@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_mempool_create_page_pool
	str	w0, [x20, #48]
	cbz	w0, LBB0_16
; %bb.6:
	ldr	w0, [x25]
	mov	w1, #0
	bl	_bioset_create
	str	w0, [x20, #44]
	cbz	w0, LBB0_17
; %bb.7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	ldr	x0, [x21, #16]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #8
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.8:
	ldr	x8, [sp, #8]
	str	x8, [x20, #8]
	ldr	x22, [x21, #24]
	ldr	w0, [x19, #12]
	bl	_dm_table_get_mode
	mov	x2, x0
	add	x3, x20, #40
	mov	x0, x19
	mov	x1, x22
	bl	_dm_get_device
	cbz	x0, LBB0_22
; %bb.9:
Lloh18:
	adrp	x8, l_.str.8@PAGE
Lloh19:
	add	x8, x8, l_.str.8@PAGEOFF
	b	LBB0_19
LBB0_10:
Lloh20:
	adrp	x8, l_.str@PAGE
Lloh21:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, l_.str.1@PAGE
Lloh25:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_21
LBB0_13:
	mov	x22, x0
	b	LBB0_20
LBB0_14:
Lloh28:
	adrp	x8, l_.str.2@PAGE
Lloh29:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_15:
Lloh30:
	adrp	x8, l_.str.3@PAGE
Lloh31:
	add	x8, x8, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_16:
Lloh32:
	adrp	x8, l_.str.4@PAGE
Lloh33:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh34:
	adrp	x8, l_.str.5@PAGE
Lloh35:
	add	x8, x8, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh36:
	adrp	x8, l_.str.7@PAGE
Lloh37:
	add	x8, x8, l_.str.7@PAGEOFF
LBB0_19:
	neg	w22, w23
	str	x8, [x19]
LBB0_20:
	mov	x0, x19
	bl	_crypt_dtr
LBB0_21:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_22:
	ldr	x0, [x21, #32]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #8
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_26
; %bb.23:
	ldr	x8, [sp, #8]
	str	x8, [x20, #16]
	ldr	w23, [x24]
Lloh40:
	adrp	x0, l_.str.10@PAGE
Lloh41:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_create_singlethread_workqueue
	str	x0, [x20, #32]
	cbz	x0, LBB0_27
; %bb.24:
Lloh42:
	adrp	x0, l_.str.12@PAGE
Lloh43:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_create_singlethread_workqueue
	str	x0, [x20, #24]
	cbz	x0, LBB0_28
; %bb.25:
	mov	w22, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_21
LBB0_26:
Lloh44:
	adrp	x8, l_.str.9@PAGE
Lloh45:
	add	x8, x8, l_.str.9@PAGEOFF
	b	LBB0_19
LBB0_27:
Lloh46:
	adrp	x8, l_.str.11@PAGE
Lloh47:
	add	x8, x8, l_.str.11@PAGEOFF
	b	LBB0_19
LBB0_28:
Lloh48:
	adrp	x8, l_.str.13@PAGE
Lloh49:
	add	x8, x8, l_.str.13@PAGEOFF
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough arguments"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate encryption context"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MIN_IOS,4,2                    ; @MIN_IOS
	.comm	__crypt_io_pool,4,2             ; @_crypt_io_pool
l_.str.2:                               ; @.str.2
	.asciz	"Cannot allocate crypt io mempool"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot allocate crypt request mempool"

	.comm	_MIN_POOL_PAGES,4,2             ; @MIN_POOL_PAGES
l_.str.4:                               ; @.str.4
	.asciz	"Cannot allocate page mempool"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot allocate crypt bioset"

l_.str.6:                               ; @.str.6
	.asciz	"%llu"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid iv_offset sector"

l_.str.8:                               ; @.str.8
	.asciz	"Device lookup failed"

l_.str.9:                               ; @.str.9
	.asciz	"Invalid device sector"

l_.str.10:                              ; @.str.10
	.asciz	"kcryptd_io"

l_.str.11:                              ; @.str.11
	.asciz	"Couldn't create kcryptd io queue"

l_.str.12:                              ; @.str.12
	.asciz	"kcryptd"

l_.str.13:                              ; @.str.13
	.asciz	"Couldn't create kcryptd queue"

	.no_dead_strip	_crypt_ctr
.subsections_via_symbols
