	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cesa_int
_mv_cesa_int:                           ## @mv_cesa_int
	.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	%rsi, %r13
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	callq	_mv_cesa_get_int_mask
	movl	%eax, %r15d
	movq	_CESA_SA_INT_STATUS@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	andl	%eax, %r15d
	je	LBB0_11
## %bb.1:
	movl	%eax, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_mv_cesa_get_int_mask
	movl	%eax, %r15d
	movq	(%r14), %rdi
	addq	16(%r13), %rdi
	callq	_readl
	movl	%eax, %r12d
	andl	%eax, %r15d
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	notl	%r12d
	movq	_CESA_SA_FPGA_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r13), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	(%r14), %rsi
	addq	16(%r13), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_mv_cesa_int_process
	movl	%eax, %r15d
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movq	8(%r13), %r12
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%r13)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movl	(%r12), %edi
	callq	_crypto_tfm_ctx
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r15d, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_mv_cesa_complete_req
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_mv_cesa_rearm_engine
	movq	%r13, %rdi
	callq	_mv_cesa_engine_dequeue_complete_request
	testq	%rax, %rax
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	callq	_crypto_tfm_ctx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_mv_cesa_complete_req
	movq	%r13, %rdi
	callq	_mv_cesa_engine_dequeue_complete_request
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_2
LBB0_11:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CESA_SA_INT_STATUS,8,3         ## @CESA_SA_INT_STATUS
	.comm	_CESA_SA_FPGA_INT_STATUS,8,3    ## @CESA_SA_FPGA_INT_STATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_mv_cesa_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_cesa_int
_mv_cesa_int:                           ; @mv_cesa_int
	.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, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_mv_cesa_get_int_mask
	mov	x21, x0
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x23, _CESA_SA_INT_STATUS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CESA_SA_INT_STATUS@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ands	w21, w0, w21
	b.eq	LBB0_11
; %bb.1:
Lloh5:
	adrp	x24, _CESA_SA_FPGA_INT_STATUS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _CESA_SA_FPGA_INT_STATUS@GOTPAGEOFF]
Lloh7:
	adrp	x25, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x25, [x25, _IRQ_HANDLED@GOTPAGEOFF]
Lloh9:
	adrp	x26, _EINPROGRESS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_mv_cesa_get_int_mask
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ands	w21, w0, w21
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	mvn	w20, w0
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	mov	x0, x19
	mov	x1, x21
	bl	_mv_cesa_int_process
	mov	x21, x0
	ldr	w20, [x25]
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x22, [x19, #8]
	ldr	w8, [x26]
	cmn	w21, w8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w0, [x22]
	bl	_crypto_tfm_ctx
	cbz	w21, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	cmn	w21, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x22
	mov	x2, x21
	bl	_mv_cesa_complete_req
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_mv_cesa_rearm_engine
	mov	x0, x19
	bl	_mv_cesa_engine_dequeue_complete_request
	cbz	x0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21]
	bl	_crypto_tfm_ctx
	mov	x1, x21
	mov	w2, #0
	bl	_mv_cesa_complete_req
	mov	x0, x19
	bl	_mv_cesa_engine_dequeue_complete_request
	mov	x21, x0
	cbnz	x0, LBB0_10
	b	LBB0_2
LBB0_11:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CESA_SA_INT_STATUS,8,3         ; @CESA_SA_INT_STATUS
	.comm	_CESA_SA_FPGA_INT_STATUS,8,3    ; @CESA_SA_FPGA_INT_STATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_mv_cesa_int
.subsections_via_symbols
