	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_tdma_process           ## -- Begin function mv_cesa_tdma_process
	.p2align	4, 0x90
_mv_cesa_tdma_process:                  ## @mv_cesa_tdma_process
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_CESA_TDMA_CUR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r15), %rdi
	callq	_readl
	movq	%rax, %r13
	movq	24(%r15), %r12
	xorl	%r14d, %r14d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, 8(%r12)
	movq	%rbx, %r12
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	16(%r12), %rbx
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	_CESA_TDMA_END_OF_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -56(%rbp)
	movq	%r15, %rdi
	callq	_spin_lock_bh
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_mv_cesa_dequeue_req_locked
	movq	%rax, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r14
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movq	%rax, 24(%r15)
	movq	$0, 16(%r12)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 16(%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	8(%r14), %edi
	callq	_crypto_tfm_ctx
	movq	%r14, %rbx
	movq	%rax, %r14
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpq	%r13, 8(%r12)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_CESA_SA_INT_ACC0_IDMA_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%r13d, %r13d
	movq	%rbx, %r14
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mv_cesa_engine_enqueue_complete_request
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	callq	*(%rdi)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_1
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_19:
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r14, 8(%r15)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	%r13d, %eax
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CESA_TDMA_CUR,8,3              ## @CESA_TDMA_CUR
	.comm	_CESA_TDMA_END_OF_REQ,4,2       ## @CESA_TDMA_END_OF_REQ
	.comm	_CESA_SA_INT_ACC0_IDMA_DONE,4,2 ## @CESA_SA_INT_ACC0_IDMA_DONE
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_tdma_process           ; -- Begin function mv_cesa_tdma_process
	.p2align	2
_mv_cesa_tdma_process:                  ; @mv_cesa_tdma_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
Lloh0:
	adrp	x9, _CESA_TDMA_CUR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CESA_TDMA_CUR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	mov	x22, #0
	ldr	x25, [x19, #24]
Lloh3:
	adrp	x26, _CESA_TDMA_END_OF_REQ@GOTPAGE
Lloh4:
	ldr	x26, [x26, _CESA_TDMA_END_OF_REQ@GOTPAGEOFF]
Lloh5:
	adrp	x27, _CESA_SA_INT_ACC0_IDMA_DONE@GOTPAGE
Lloh6:
	ldr	x27, [x27, _CESA_SA_INT_ACC0_IDMA_DONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w23, LBB0_15
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #8]
	mov	x25, x28
	cmp	x8, x21
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x25, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x28, [x25, #16]
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w8, [x25]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [sp, #8]
	mov	x0, x19
	bl	_spin_lock_bh
	cbz	x22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_mv_cesa_dequeue_req_locked
	mov	x22, x0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x19, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #16]
	str	x8, [x19, #24]
	str	xzr, [x25, #16]
	cbnz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x19, #16]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w0, [x22, #8]
	bl	_crypto_tfm_ctx
	mov	x24, x0
	ldr	x8, [x25, #8]
	ldr	w9, [x27]
	cmp	x8, x21
	csel	w1, w20, w9, eq
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
	mov	x23, x0
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
	cbz	w23, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_13
	b	LBB0_1
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_mv_cesa_engine_enqueue_complete_request
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_1
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0]
Lloh7:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	neg	w1, w9
	blr	x8
	b	LBB0_1
LBB0_14:
	mov	w23, #0
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_spin_lock_bh
	str	x22, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CESA_TDMA_CUR,8,3              ; @CESA_TDMA_CUR
	.comm	_CESA_TDMA_END_OF_REQ,4,2       ; @CESA_TDMA_END_OF_REQ
	.comm	_CESA_SA_INT_ACC0_IDMA_DONE,4,2 ; @CESA_SA_INT_ACC0_IDMA_DONE
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
.subsections_via_symbols
