	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_crypt
_do_crypt:                              ## @do_crypt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_CRYPTO_TFM_REQ_MAY_BACKLOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_complete_journal_encrypt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_skcipher_request_set_callback
	movl	%r15d, %edi
	callq	_likely
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_crypto_skcipher_encrypt
	jmp	LBB0_3
LBB0_2:
	callq	_crypto_skcipher_decrypt
LBB0_3:
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%r15d, %eax
	sete	%dil
	callq	_likely
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%r15d, %eax
	sete	%dil
	callq	_likely
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_wait_for_completion
	movq	(%r14), %rdi
	callq	_reinit_completion
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dm_integrity_io_error
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_REQ_MAY_BACKLOG,4,2 ## @CRYPTO_TFM_REQ_MAY_BACKLOG
	.comm	_complete_journal_encrypt,4,2   ## @complete_journal_encrypt
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"encrypt"

	.no_dead_strip	_do_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_crypt
_do_crypt:                              ; @do_crypt
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CRYPTO_TFM_REQ_MAY_BACKLOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_TFM_REQ_MAY_BACKLOG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _complete_journal_encrypt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _complete_journal_encrypt@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_skcipher_request_set_callback
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_crypto_skcipher_encrypt
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_crypto_skcipher_decrypt
LBB0_3:
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w20, w8
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w20, w8
	cset	w0, eq
	bl	_likely
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_10
; %bb.7:
	bl	_wait_for_completion
	ldr	x0, [x19]
	bl	_reinit_completion
LBB0_8:
	mov	w0, #1
LBB0_9:
	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_10:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dm_integrity_io_error
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_REQ_MAY_BACKLOG,4,2 ; @CRYPTO_TFM_REQ_MAY_BACKLOG
	.comm	_complete_journal_encrypt,4,2   ; @complete_journal_encrypt
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"encrypt"

	.no_dead_strip	_do_crypt
.subsections_via_symbols
