	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_crypto_cleanup            ## -- Begin function omap_crypto_cleanup
	.p2align	4, 0x90
_omap_crypto_cleanup:                   ## @omap_crypto_cleanup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%ecx, %r15d
	movl	%r8d, %ecx
	shrq	%cl, %rbx
	movq	_OMAP_CRYPTO_COPY_MASK@GOTPCREL(%rip), %r13
	andq	(%r13), %rbx
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_sg_virt
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_get_order
	movl	%eax, %esi
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	testq	%rbx, (%r13)
	je	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%esi, %r13d
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	$1, %r8d
	callq	_scatterwalk_map_and_copy
	movl	%r13d, %esi
LBB0_4:
	movq	_OMAP_CRYPTO_DATA_COPIED@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_5
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_pages                     ## TAILCALL
LBB0_5:
	movq	_OMAP_CRYPTO_SG_COPIED@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_6
## %bb.8:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_CRYPTO_COPY_MASK,8,3      ## @OMAP_CRYPTO_COPY_MASK
	.comm	_OMAP_CRYPTO_DATA_COPIED,8,3    ## @OMAP_CRYPTO_DATA_COPIED
	.comm	_OMAP_CRYPTO_SG_COPIED,8,3      ## @OMAP_CRYPTO_SG_COPIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_crypto_cleanup            ; -- Begin function omap_crypto_cleanup
	.p2align	2
_omap_crypto_cleanup:                   ; @omap_crypto_cleanup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	lsr	x8, x5, x4
Lloh0:
	adrp	x26, _OMAP_CRYPTO_COPY_MASK@GOTPAGE
Lloh1:
	ldr	x26, [x26, _OMAP_CRYPTO_COPY_MASK@GOTPAGEOFF]
	ldr	x9, [x26]
	ands	x25, x9, x8
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_sg_virt
	mov	x22, x0
	mov	x0, x20
	bl	_get_order
	mov	x24, x0
	cbz	x23, LBB0_4
; %bb.2:
	ldr	x8, [x26]
	tst	x8, x25
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	w4, #1
	bl	_scatterwalk_map_and_copy
LBB0_4:
Lloh2:
	adrp	x8, _OMAP_CRYPTO_DATA_COPIED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OMAP_CRYPTO_DATA_COPIED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x22
	mov	x1, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_free_pages
LBB0_6:
Lloh5:
	adrp	x8, _OMAP_CRYPTO_SG_COPIED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMAP_CRYPTO_SG_COPIED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	tst	x8, x25
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_kfree
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_CRYPTO_COPY_MASK,8,3      ; @OMAP_CRYPTO_COPY_MASK
	.comm	_OMAP_CRYPTO_DATA_COPIED,8,3    ; @OMAP_CRYPTO_DATA_COPIED
	.comm	_OMAP_CRYPTO_SG_COPIED,8,3      ; @OMAP_CRYPTO_SG_COPIED
.subsections_via_symbols
