	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_crypto_check_sg
_omap_crypto_check_sg:                  ## @omap_crypto_check_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
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	movl	$0, %r15d
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %edi
	movl	%r13d, %esi
	callq	_IS_ALIGNED
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	4(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_sg_next
	decl	%r14d
	cmpl	%r12d, %r15d
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_8:
	movq	_OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.10:
	testl	%r14d, %r14d
	movl	$0, %eax
	je	LBB0_11
LBB0_1:
	movq	_OMAP_CRYPTO_NOT_ALIGNED@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	cmpl	%r12d, %r15d
	je	LBB0_14
## %bb.12:
	movq	_OMAP_CRYPTO_BAD_DATA_LENGTH@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_CRYPTO_NOT_ALIGNED,4,2    ## @OMAP_CRYPTO_NOT_ALIGNED
	.comm	_OMAP_CRYPTO_FORCE_SINGLE_ENTRY,4,2 ## @OMAP_CRYPTO_FORCE_SINGLE_ENTRY
	.comm	_OMAP_CRYPTO_BAD_DATA_LENGTH,4,2 ## @OMAP_CRYPTO_BAD_DATA_LENGTH
	.comm	_ZONE_DMA,8,3                   ## @ZONE_DMA
	.no_dead_strip	_omap_crypto_check_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_crypto_check_sg
_omap_crypto_check_sg:                  ; @omap_crypto_check_sg
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	mov	x1, x2
	bl	_IS_ALIGNED
	cbz	w0, LBB0_8
; %bb.1:
	mov	w23, #0
	cbz	x22, LBB0_7
; %bb.2:
	mov	w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	w1, #4
	bl	_IS_ALIGNED
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22, #4]
	mov	x1, x21
	bl	_IS_ALIGNED
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #4]
	add	w23, w8, w23
	mov	x0, x22
	bl	_sg_next
	mov	x22, x0
	sub	w24, w24, #1
	cmp	w23, w19
	ccmp	x0, #0, #4, lt
	b.ne	LBB0_3
; %bb.6:
Lloh0:
	adrp	x8, _OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAP_CRYPTO_FORCE_SINGLE_ENTRY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #0
	ccmp	w24, #0, #4, ne
	b.ne	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _OMAP_CRYPTO_BAD_DATA_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAP_CRYPTO_BAD_DATA_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, w19
	csel	w0, wzr, w8, eq
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x8, _OMAP_CRYPTO_NOT_ALIGNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMAP_CRYPTO_NOT_ALIGNED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_CRYPTO_NOT_ALIGNED,4,2    ; @OMAP_CRYPTO_NOT_ALIGNED
	.comm	_OMAP_CRYPTO_FORCE_SINGLE_ENTRY,4,2 ; @OMAP_CRYPTO_FORCE_SINGLE_ENTRY
	.comm	_OMAP_CRYPTO_BAD_DATA_LENGTH,4,2 ; @OMAP_CRYPTO_BAD_DATA_LENGTH
	.comm	_ZONE_DMA,8,3                   ; @ZONE_DMA
	.no_dead_strip	_omap_crypto_check_sg
.subsections_via_symbols
