	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx1_camera_setup_dma
_mx1_camera_setup_dma:                  ## @mx1_camera_setup_dma
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movl	8(%rbx), %r12d
	movq	%r15, %rdi
	callq	_videobuf_to_dma_contig
	movl	(%r15), %edx
	movq	(%rbx), %rsi
	movq	_CSIRXR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rsi), %rcx
	movq	_DMA_MODE_READ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_imx_dma_setup_single
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA End IRQ with no active buffer\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_CSIRXR,8,3                     ## @CSIRXR
	.comm	_DMA_MODE_READ,4,2              ## @DMA_MODE_READ
L_.str.1:                               ## @.str.1
	.asciz	"Failed to setup DMA sg list\n"

	.no_dead_strip	_mx1_camera_setup_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mx1_camera_setup_dma
_mx1_camera_setup_dma:                  ; @mx1_camera_setup_dma
	.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	x20, x0
	ldp	x21, x8, [x0, #16]
	ldr	x19, [x8]
	cmp	x21, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_2:
	ldr	w22, [x20, #8]
	mov	x0, x21
	bl	_videobuf_to_dma_contig
	mov	x1, x0
	ldr	w2, [x21]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _CSIRXR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CSIRXR@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh7:
	ldr	x9, [x9]
	add	x3, x9, x8
Lloh8:
	adrp	x8, _DMA_MODE_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_MODE_READ@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x22
	bl	_imx_dma_setup_single
	mov	x20, x0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA End IRQ with no active buffer\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_CSIRXR,8,3                     ; @CSIRXR
	.comm	_DMA_MODE_READ,4,2              ; @DMA_MODE_READ
l_.str.1:                               ; @.str.1
	.asciz	"Failed to setup DMA sg list\n"

	.no_dead_strip	_mx1_camera_setup_dma
.subsections_via_symbols
