	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap24xxcam_dma_start
_omap24xxcam_dma_start:                 ## @omap24xxcam_dma_start
	.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	%r8, %r13
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	24(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movslq	4(%rbx), %rdx
	movq	16(%rbx), %rax
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movl	%r15d, 8(%rax,%rcx)
	movq	%r13, (%rax,%rcx)
	movq	%rdx, %r13
	movl	12(%rbx), %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_omap24xxcam_dmahw_transfer_setup
	movl	(%rbx), %edx
	movl	12(%rbx), %edi
	movq	_NUM_CAMDMA_CHANNELS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %edx
	jge	LBB0_5
## %bb.4:
	movl	%r13d, %esi
	callq	_omap24xxcam_dmahw_transfer_chain
	jmp	LBB0_6
LBB0_5:
	movl	%r13d, %esi
	callq	_omap24xxcam_dmahw_transfer_start
LBB0_6:
	movl	4(%rbx), %eax
	incl	%eax
	cltd
	idivl	(%r15)
	movl	%edx, 4(%rbx)
	decl	(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	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	_EBUSY,4,2                      ## @EBUSY
	.comm	_NUM_CAMDMA_CHANNELS,4,2        ## @NUM_CAMDMA_CHANNELS
	.no_dead_strip	_omap24xxcam_dma_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap24xxcam_dma_start
_omap24xxcam_dma_start:                 ; @omap24xxcam_dma_start
	.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	x24, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	add	x0, x20, #24
	bl	_atomic_read
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_3:
	ldrsw	x23, [x20, #4]
	ldr	x8, [x20, #16]
	add	x8, x8, x23, lsl #4
	str	w25, [x8, #8]
	str	x24, [x8]
	ldr	w0, [x20, #12]
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_omap24xxcam_dmahw_transfer_setup
	ldr	w2, [x20]
Lloh3:
	adrp	x21, _NUM_CAMDMA_CHANNELS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NUM_CAMDMA_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w0, [x20, #12]
	mov	x1, x23
	cmp	w2, w8
	b.ge	LBB0_5
; %bb.4:
	bl	_omap24xxcam_dmahw_transfer_chain
	b	LBB0_6
LBB0_5:
	bl	_omap24xxcam_dmahw_transfer_start
LBB0_6:
	ldp	w9, w8, [x20]
	add	w8, w8, #1
	ldr	w10, [x21]
	sdiv	w11, w8, w10
	msub	w8, w11, w10, w8
	sub	w9, w9, #1
	stp	w9, w8, [x20]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NUM_CAMDMA_CHANNELS,4,2        ; @NUM_CAMDMA_CHANNELS
	.no_dead_strip	_omap24xxcam_dma_start
.subsections_via_symbols
