	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_aes_crypt
_omap_aes_crypt:                        ## @omap_aes_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	%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, %r14
	movq	%rdi, %rbx
	callq	_crypto_ablkcipher_reqtfm
	movl	%eax, %edi
	callq	_crypto_ablkcipher_ctx
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ablkcipher_request_ctx
	movq	%rax, %r12
	movq	(%rbx), %rsi
	movq	_FLAGS_ENCRYPT@GOTPCREL(%rip), %r13
	xorl	%edx, %edx
	movq	(%r13), %rax
	andq	%r14, %rax
	setne	%dl
	movq	_FLAGS_CBC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movq	(%rax), %rax
	andq	%r14, %rax
	setne	%cl
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	(%rbx), %rax
	movq	_aes_fallback_sz@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.1:
	movq	_subreq@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_SYNC_SKCIPHER_REQUEST_ON_STACK
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_skcipher_request_set_sync_tfm
	movl	(%r12), %edi
	movl	20(%rbx), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_skcipher_request_set_callback
	movl	(%r12), %edi
	movl	16(%rbx), %esi
	movl	12(%rbx), %edx
	movq	(%rbx), %rcx
	movl	8(%rbx), %r8d
	callq	_skcipher_request_set_crypt
	movl	(%r12), %edi
	testq	%r14, (%r13)
	je	LBB0_3
## %bb.2:
	callq	_crypto_skcipher_encrypt
	jmp	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	callq	_omap_aes_find_dev
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%r14, (%r12)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_aes_handle_queue          ## TAILCALL
LBB0_3:
	callq	_crypto_skcipher_decrypt
LBB0_4:
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_skcipher_request_zero
	jmp	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nbytes: %d, enc: %d, cbc: %d\n"

	.comm	_FLAGS_ENCRYPT,8,3              ## @FLAGS_ENCRYPT
	.comm	_FLAGS_CBC,8,3                  ## @FLAGS_CBC
	.comm	_aes_fallback_sz,8,3            ## @aes_fallback_sz
	.comm	_subreq,4,2                     ## @subreq
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_omap_aes_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_aes_crypt
_omap_aes_crypt:                        ; @omap_aes_crypt
	.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	x19, x1
	mov	x20, x0
	bl	_crypto_ablkcipher_reqtfm
	bl	_crypto_ablkcipher_ctx
	mov	x21, x0
	mov	x0, x20
	bl	_ablkcipher_request_ctx
	mov	x22, x0
	ldr	x1, [x20]
Lloh0:
	adrp	x23, _FLAGS_ENCRYPT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FLAGS_ENCRYPT@GOTPAGEOFF]
	ldr	x8, [x23]
	tst	x8, x19
	cset	w2, ne
Lloh2:
	adrp	x8, _FLAGS_CBC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAGS_CBC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	tst	x8, x19
	cset	w3, ne
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _aes_fallback_sz@GOTPAGE
Lloh8:
	ldr	x9, [x9, _aes_fallback_sz@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
Lloh10:
	adrp	x22, _subreq@GOTPAGE
Lloh11:
	ldr	x22, [x22, _subreq@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_SYNC_SKCIPHER_REQUEST_ON_STACK
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_skcipher_request_set_sync_tfm
	ldr	w0, [x22]
	ldr	w1, [x20, #20]
	mov	x2, #0
	mov	x3, #0
	bl	_skcipher_request_set_callback
	ldr	w0, [x22]
	ldp	w2, w1, [x20, #12]
	ldr	x3, [x20]
	ldr	w4, [x20, #8]
	bl	_skcipher_request_set_crypt
	ldr	x8, [x23]
	ldr	w0, [x22]
	tst	x8, x19
	b.eq	LBB0_5
; %bb.2:
	bl	_crypto_skcipher_encrypt
	b	LBB0_6
LBB0_3:
	mov	x0, x22
	bl	_omap_aes_find_dev
	cbz	x0, LBB0_7
; %bb.4:
	str	x19, [x22]
	mov	x1, x20
	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
	b	_omap_aes_handle_queue
LBB0_5:
	bl	_crypto_skcipher_decrypt
LBB0_6:
	mov	x19, x0
	ldr	w0, [x22]
	bl	_skcipher_request_zero
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nbytes: %d, enc: %d, cbc: %d\n"

	.comm	_FLAGS_ENCRYPT,8,3              ; @FLAGS_ENCRYPT
	.comm	_FLAGS_CBC,8,3                  ; @FLAGS_CBC
	.comm	_aes_fallback_sz,8,3            ; @aes_fallback_sz
	.comm	_subreq,4,2                     ; @subreq
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_omap_aes_crypt
.subsections_via_symbols
