	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap24xxcam_dmahw_transfer_chain
_omap24xxcam_dmahw_transfer_chain:      ## @omap24xxcam_dmahw_transfer_chain
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_NUM_CAMDMA_CHANNELS@GOTPCREL(%rip), %r12
	movl	%esi, %edi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %edi
LBB0_2:
	decl	%edi
	callq	_CAMDMA_CLNK_CTRL
	movq	_CAMDMA_CLNK_CTRL_ENABLE_LNK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%r15d, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_omap24xxcam_reg_out
	addl	%r15d, %ebx
	movl	%ebx, %eax
	cltd
	idivl	(%r12)
	movl	%edx, %ebx
	movl	%edx, %edi
	callq	_CAMDMA_CCR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_omap24xxcam_reg_in
	movq	_CAMDMA_CCR_ENABLE@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	(%r12)
	movl	%edx, %ebx
	movl	%edx, %edi
	callq	_CAMDMA_CCR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_omap24xxcam_reg_in
	testl	%eax, (%r13)
	je	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap24xxcam_dmahw_transfer_start ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CAMDMA_CHANNELS,4,2        ## @NUM_CAMDMA_CHANNELS
	.comm	_CAMDMA_CLNK_CTRL_ENABLE_LNK,4,2 ## @CAMDMA_CLNK_CTRL_ENABLE_LNK
	.comm	_CAMDMA_CCR_ENABLE,4,2          ## @CAMDMA_CCR_ENABLE
	.no_dead_strip	_omap24xxcam_dmahw_transfer_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap24xxcam_dmahw_transfer_chain
_omap24xxcam_dmahw_transfer_chain:      ; @omap24xxcam_dmahw_transfer_chain
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _NUM_CAMDMA_CHANNELS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_CAMDMA_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w1, #0
	csel	w8, w8, w1, eq
	sub	w0, w8, #1
	bl	_CAMDMA_CLNK_CTRL
	mov	x1, x0
Lloh2:
	adrp	x8, _CAMDMA_CLNK_CTRL_ENABLE_LNK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAMDMA_CLNK_CTRL_ENABLE_LNK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w19
	mov	x0, x20
	bl	_omap24xxcam_reg_out
	add	w8, w21, w19
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w21, w10, w9, w8
	mov	x0, x21
	bl	_CAMDMA_CCR
	mov	x1, x0
	mov	x0, x20
	bl	_omap24xxcam_reg_in
Lloh5:
	adrp	x23, _CAMDMA_CCR_ENABLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CAMDMA_CCR_ENABLE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w21, w19
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w21, #1
	ldr	w9, [x22]
	sdiv	w10, w8, w9
	msub	w21, w10, w9, w8
	mov	x0, x21
	bl	_CAMDMA_CCR
	mov	x1, x0
	mov	x0, x20
	bl	_omap24xxcam_reg_in
	b	LBB0_1
LBB0_4:
	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
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	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	_omap24xxcam_dmahw_transfer_start
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CAMDMA_CHANNELS,4,2        ; @NUM_CAMDMA_CHANNELS
	.comm	_CAMDMA_CLNK_CTRL_ENABLE_LNK,4,2 ; @CAMDMA_CLNK_CTRL_ENABLE_LNK
	.comm	_CAMDMA_CCR_ENABLE,4,2          ; @CAMDMA_CCR_ENABLE
	.no_dead_strip	_omap24xxcam_dmahw_transfer_chain
.subsections_via_symbols
