	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_crypto_align_sg           ## -- Begin function omap_crypto_align_sg
	.p2align	4, 0x90
_omap_crypto_align_sg:                  ## @omap_crypto_align_sg
	.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	%rcx, %r15
	movq	16(%rbp), %rbx
	movq	_OMAP_CRYPTO_COPY_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r9d, %ecx
	shlq	%cl, %rax
	notq	%rax
	andq	%rax, (%rbx)
	movl	%r8d, %ebx
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_OMAP_CRYPTO_FORCE_COPY@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%r13), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_omap_crypto_check_sg
	movq	_OMAP_CRYPTO_NOT_ALIGNED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
LBB0_2:
	movl	%r14d, %edi
	movl	%r12d, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_omap_crypto_copy_sgs
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	_OMAP_CRYPTO_DATA_COPIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	16(%rbp), %rcx
	orq	%rax, (%rcx)
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_OMAP_CRYPTO_BAD_DATA_LENGTH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.5:
	movl	%r14d, %edi
	movl	%r12d, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	callq	_omap_crypto_copy_sg_lists
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	_OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	testl	%ebx, (%rax)
	jne	LBB0_10
## %bb.7:
	movq	_OMAP_CRYPTO_SG_COPIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	16(%rbp), %rcx
	orq	%rax, (%rcx)
	jmp	LBB0_10
LBB0_8:
	movq	_OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	(%r13), %rdi
	callq	_sg_virt
	movq	(%r13), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sg_set_buf
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_CRYPTO_COPY_MASK,8,3      ## @OMAP_CRYPTO_COPY_MASK
	.comm	_OMAP_CRYPTO_FORCE_COPY,4,2     ## @OMAP_CRYPTO_FORCE_COPY
	.comm	_OMAP_CRYPTO_NOT_ALIGNED,4,2    ## @OMAP_CRYPTO_NOT_ALIGNED
	.comm	_OMAP_CRYPTO_DATA_COPIED,8,3    ## @OMAP_CRYPTO_DATA_COPIED
	.comm	_OMAP_CRYPTO_BAD_DATA_LENGTH,4,2 ## @OMAP_CRYPTO_BAD_DATA_LENGTH
	.comm	_OMAP_CRYPTO_FORCE_SINGLE_ENTRY,4,2 ## @OMAP_CRYPTO_FORCE_SINGLE_ENTRY
	.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_align_sg           ; -- Begin function omap_crypto_align_sg
	.p2align	2
_omap_crypto_align_sg:                  ; @omap_crypto_align_sg
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _OMAP_CRYPTO_COPY_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_CRYPTO_COPY_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x8, x8, x5
	ldr	x9, [x6]
	bic	x8, x9, x8
	str	x8, [x6]
Lloh3:
	adrp	x8, _OMAP_CRYPTO_FORCE_COPY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP_CRYPTO_FORCE_COPY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w4
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x23]
	mov	x1, x25
	mov	x2, x24
	mov	x3, x21
	bl	_omap_crypto_check_sg
Lloh6:
	adrp	x8, _OMAP_CRYPTO_NOT_ALIGNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMAP_CRYPTO_NOT_ALIGNED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_2:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_omap_crypto_copy_sgs
	cbnz	w0, LBB0_12
; %bb.3:
Lloh9:
	adrp	x8, _OMAP_CRYPTO_DATA_COPIED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OMAP_CRYPTO_DATA_COPIED@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	lsl	x8, x8, x20
	ldr	x9, [x19]
	orr	x8, x9, x8
	str	x8, [x19]
	b	LBB0_12
LBB0_5:
Lloh11:
	adrp	x8, _OMAP_CRYPTO_BAD_DATA_LENGTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OMAP_CRYPTO_BAD_DATA_LENGTH@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_omap_crypto_copy_sg_lists
	cbnz	w0, LBB0_12
; %bb.7:
Lloh14:
	adrp	x8, _OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_11
; %bb.8:
	mov	w0, #0
Lloh17:
	adrp	x8, _OMAP_CRYPTO_SG_COPIED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OMAP_CRYPTO_SG_COPIED@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
Lloh19:
	adrp	x8, _OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_11
; %bb.10:
	ldr	x0, [x23]
	bl	_sg_virt
	mov	x1, x0
	ldr	x8, [x23]
	ldr	w2, [x8]
	mov	x0, x22
	bl	_sg_set_buf
LBB0_11:
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_CRYPTO_COPY_MASK,8,3      ; @OMAP_CRYPTO_COPY_MASK
	.comm	_OMAP_CRYPTO_FORCE_COPY,4,2     ; @OMAP_CRYPTO_FORCE_COPY
	.comm	_OMAP_CRYPTO_NOT_ALIGNED,4,2    ; @OMAP_CRYPTO_NOT_ALIGNED
	.comm	_OMAP_CRYPTO_DATA_COPIED,8,3    ; @OMAP_CRYPTO_DATA_COPIED
	.comm	_OMAP_CRYPTO_BAD_DATA_LENGTH,4,2 ; @OMAP_CRYPTO_BAD_DATA_LENGTH
	.comm	_OMAP_CRYPTO_FORCE_SINGLE_ENTRY,4,2 ; @OMAP_CRYPTO_FORCE_SINGLE_ENTRY
	.comm	_OMAP_CRYPTO_SG_COPIED,8,3      ; @OMAP_CRYPTO_SG_COPIED
.subsections_via_symbols
