	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_dma_add_result_op      ## -- Begin function mv_cesa_dma_add_result_op
	.p2align	4, 0x90
_mv_cesa_dma_add_result_op:             ## @mv_cesa_dma_add_result_op
	.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	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%r8d, %esi
	callq	_mv_cesa_dma_add_desc
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	movq	_CESA_TDMA_TYPE_MSK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CESA_TDMA_OP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	andq	%rax, %rdx
	cmpq	%rcx, %rdx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	$31, %edi
	callq	_BIT
	orq	%rax, %r12
	movq	%r12, %rdi
	callq	_cpu_to_le32
	movl	%eax, 20(%r13)
	movl	%r15d, 12(%r13)
	movl	12(%rbx), %eax
	movl	%eax, 16(%r13)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r13)
	movq	_CESA_TDMA_DST_IN_SRAM@GOTPCREL(%rip), %rax
	movq	_CESA_TDMA_SRC_IN_SRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	andq	%r14, %rcx
	movq	_CESA_TDMA_RESULT@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	%rcx, (%r13)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CESA_TDMA_TYPE_MSK,8,3         ## @CESA_TDMA_TYPE_MSK
	.comm	_CESA_TDMA_OP,8,3               ## @CESA_TDMA_OP
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CESA_TDMA_DST_IN_SRAM,8,3      ## @CESA_TDMA_DST_IN_SRAM
	.comm	_CESA_TDMA_SRC_IN_SRAM,8,3      ## @CESA_TDMA_SRC_IN_SRAM
	.comm	_CESA_TDMA_RESULT,8,3           ## @CESA_TDMA_RESULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_dma_add_result_op      ; -- Begin function mv_cesa_dma_add_result_op
	.p2align	2
_mv_cesa_dma_add_result_op:             ; @mv_cesa_dma_add_result_op
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	mov	x1, x4
	bl	_mv_cesa_dma_add_desc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	ldr	x23, [x23]
	cbz	x23, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _CESA_TDMA_TYPE_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CESA_TDMA_TYPE_MSK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CESA_TDMA_OP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CESA_TDMA_OP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23]
	and	x10, x8, x10
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x23, #24]
	cbnz	x23, LBB0_4
LBB0_6:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #31
	bl	_BIT
	orr	x0, x0, x22
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	str	w21, [x20, #12]
	ldp	w10, w9, [x23, #8]
	stp	w9, w8, [x20, #16]
Lloh9:
	adrp	x8, _CESA_TDMA_DST_IN_SRAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CESA_TDMA_DST_IN_SRAM@GOTPAGEOFF]
	str	w10, [x20, #8]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _CESA_TDMA_SRC_IN_SRAM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CESA_TDMA_SRC_IN_SRAM@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	orr	x8, x9, x8
	and	x8, x8, x19
Lloh15:
	adrp	x9, _CESA_TDMA_RESULT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CESA_TDMA_RESULT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	orr	x8, x8, x9
	str	x8, [x20]
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CESA_TDMA_TYPE_MSK,8,3         ; @CESA_TDMA_TYPE_MSK
	.comm	_CESA_TDMA_OP,8,3               ; @CESA_TDMA_OP
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CESA_TDMA_DST_IN_SRAM,8,3      ; @CESA_TDMA_DST_IN_SRAM
	.comm	_CESA_TDMA_SRC_IN_SRAM,8,3      ; @CESA_TDMA_SRC_IN_SRAM
	.comm	_CESA_TDMA_RESULT,8,3           ; @CESA_TDMA_RESULT
.subsections_via_symbols
