	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_queue_req              ## -- Begin function mv_cesa_queue_req
	.p2align	4, 0x90
_mv_cesa_queue_req:                     ## @mv_cesa_queue_req
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	leaq	4(%r14), %rdi
	movq	%rbx, %rsi
	callq	_crypto_enqueue_request
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mv_cesa_req_get_type
	movq	_CESA_DMA_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mv_cesa_tdma_chain
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	_EINPROGRESS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	addl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_mv_cesa_rearm_engine
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CESA_DMA_REQ,8,3               ## @CESA_DMA_REQ
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_queue_req              ; -- Begin function mv_cesa_queue_req
	.p2align	2
_mv_cesa_queue_req:                     ; @mv_cesa_queue_req
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_spin_lock_bh
	add	x0, x19, #4
	mov	x1, x20
	bl	_crypto_enqueue_request
	mov	x20, x0
	mov	x0, x21
	bl	_mv_cesa_req_get_type
Lloh0:
	adrp	x8, _CESA_DMA_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CESA_DMA_REQ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x22, _EINPROGRESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EINPROGRESS@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x22]
	cmn	w20, w8
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_mv_cesa_tdma_chain
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_bh
	ldr	w8, [x22]
	cmn	w20, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_mv_cesa_rearm_engine
	ldr	w8, [x22]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CESA_DMA_REQ,8,3               ; @CESA_DMA_REQ
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
