	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_sham_xmit_cpu
_omap_sham_xmit_cpu:                    ## @omap_sham_xmit_cpu
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	16(%rdi), %edi
	callq	_ahash_request_ctx
	movq	%rax, %r12
	movl	12(%r13), %edi
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rcx
	movl	%r14d, %r8d
	callq	_dev_dbg
	movq	(%r13), %rax
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	*16(%rax)
	movq	(%r13), %rax
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	*8(%rax)
	addq	%rbx, (%r12)
	subq	%rbx, 8(%r12)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_FLAGS_FINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r13), %rsi
	callq	_set_bit
LBB0_2:
	movq	_FLAGS_CPU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r13), %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_get_block_size
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r12), %edx
	movl	20(%r12), %esi
	movq	_SG_MITER_FROM_SG@GOTPCREL(%rip), %rax
	movq	_SG_MITER_ATOMIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-64(%rbp), %rdi
	callq	_sg_miter_start
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.3:
	sarl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
                                        ## implicit-def: $r14
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	subl	%eax, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r13), %rax
	movq	%r13, %rdi
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	testl	%eax, %eax
	jle	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_SHA_REG_DIN
	movslq	%r15d, %r15
	movl	(%r14,%r15,4), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_omap_sham_write
	addl	$-4, %r12d
	incl	%ebx
	incl	%r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	cmpl	%eax, %ebx
	jge	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	leaq	-64(%rbp), %rdi
	callq	_sg_miter_next
	movl	-64(%rbp), %r12d
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	xorl	%r15d, %r15d
	movq	-56(%rbp), %r14
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_14:
	leaq	-64(%rbp), %rdi
	callq	_sg_miter_stop
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
LBB0_15:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xmit_cpu: digcnt: %d, length: %d, final: %d\n"

	.comm	_FLAGS_FINAL,4,2                ## @FLAGS_FINAL
	.comm	_FLAGS_CPU,4,2                  ## @FLAGS_CPU
	.comm	_SG_MITER_FROM_SG,4,2           ## @SG_MITER_FROM_SG
	.comm	_SG_MITER_ATOMIC,4,2            ## @SG_MITER_ATOMIC
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"sg miter failure.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_omap_sham_xmit_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_sham_xmit_cpu
_omap_sham_xmit_cpu:                    ; @omap_sham_xmit_cpu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_ahash_request_ctx
	mov	x21, x0
	ldr	w0, [x19, #12]
	ldr	x2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x22
	bl	_dev_dbg
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	blr	x8
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldp	x8, x9, [x21]
	add	x8, x8, x20
	sub	x9, x9, x20
	stp	x8, x9, [x21]
	cbz	w22, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _FLAGS_FINAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAGS_FINAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
LBB0_2:
Lloh5:
	adrp	x8, _FLAGS_CPU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLAGS_CPU@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	mov	x0, x20
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x20, x0
	mov	x0, x21
	bl	_get_block_size
	mov	x22, x0
Lloh8:
	adrp	x8, _SG_MITER_FROM_SG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SG_MITER_FROM_SG@GOTPAGEOFF]
	ldp	w2, w1, [x21, #16]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SG_MITER_ATOMIC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SG_MITER_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, sp
	bl	_sg_miter_start
	cbz	w20, LBB0_13
; %bb.3:
	mov	w24, #0
	mov	w25, #0
	asr	w21, w22, #2
Lloh14:
	adrp	x23, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ETIMEDOUT@GOTPAGEOFF]
                                        ; implicit-def: $x26
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_min
	subs	w20, w20, w0
	b.eq	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_min
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	w25, #0
	ldr	x26, [sp, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x19
	mov	x1, x22
	bl	_SHA_REG_DIN
	mov	x1, x0
	ldr	w2, [x26, w25, sxtw #2]
	mov	x0, x19
	bl	_omap_sham_write
	sub	w24, w24, #4
	add	w22, w22, #1
	add	w25, w25, #1
	mov	x0, x20
	mov	x1, x21
	bl	_min
	cmp	w22, w0
	b.ge	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w24, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, sp
	bl	_sg_miter_next
	ldr	w24, [sp]
	cbnz	w24, LBB0_8
; %bb.12:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh18:
	adrp	x23, _EINVAL@GOTPAGE
Lloh19:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	mov	x0, sp
	bl	_sg_miter_stop
Lloh20:
	adrp	x23, _EINPROGRESS@GOTPAGE
Lloh21:
	ldr	x23, [x23, _EINPROGRESS@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x23]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xmit_cpu: digcnt: %d, length: %d, final: %d\n"

	.comm	_FLAGS_FINAL,4,2                ; @FLAGS_FINAL
	.comm	_FLAGS_CPU,4,2                  ; @FLAGS_CPU
	.comm	_SG_MITER_FROM_SG,4,2           ; @SG_MITER_FROM_SG
	.comm	_SG_MITER_ATOMIC,4,2            ; @SG_MITER_ATOMIC
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"sg miter failure.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_omap_sham_xmit_cpu
.subsections_via_symbols
