	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap24xxcam_sgdma_process      ## -- Begin function omap24xxcam_sgdma_process
	.p2align	4, 0x90
_omap24xxcam_sgdma_process:             ## @omap24xxcam_sgdma_process
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CAMDMA_CSR_MISALIGNED_ERR@GOTPCREL(%rip), %rax
	movq	_CAMDMA_CSR_SUPERVISOR_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CAMDMA_CSR_SECURE_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rdi, %rbx
	movq	_CAMDMA_CSR_TRANS_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_CAMDMA_CSR_DROP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	addq	$8, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_NUM_SG_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%ecx, %edx
	subl	%eax, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
## %bb.1:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addl	4(%rsi), %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	leaq	16(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	12(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_NUM_SG_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leal	-1(%rdi), %esi
	incl	%ebx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	cmpl	$1, %edi
	movl	%esi, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rsi
	movslq	%ebx, %r14
	leaq	(%r14,%r14,4), %rdi
	movq	(%rsi,%rdi,8), %rax
	movq	8(%rsi,%rdi,8), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rsi,%rdi,8), %r12
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, 16(%r12)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(,%rax,4), %r13
	addq	32(%r12), %r13
	incq	%rax
	cmpq	%rdx, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	20(%r12), %r15d
	subl	24(%r12), %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rdi
	callq	_sg_dma_len
	movl	%eax, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rdi
	callq	_sg_dma_address
	movq	_omap24xxcam_sgdma_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_omap24xxcam_dma_start
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	(%r12)
	addl	%r15d, 24(%r12)
	incl	28(%r12)
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_mod_timer
	movq	(%r12), %rax
	movq	8(%r12), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_4
	jmp	LBB0_10
LBB0_12:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMDMA_CSR_MISALIGNED_ERR,4,2  ## @CAMDMA_CSR_MISALIGNED_ERR
	.comm	_CAMDMA_CSR_SUPERVISOR_ERR,4,2  ## @CAMDMA_CSR_SUPERVISOR_ERR
	.comm	_CAMDMA_CSR_SECURE_ERR,4,2      ## @CAMDMA_CSR_SECURE_ERR
	.comm	_CAMDMA_CSR_TRANS_ERR,4,2       ## @CAMDMA_CSR_TRANS_ERR
	.comm	_CAMDMA_CSR_DROP,4,2            ## @CAMDMA_CSR_DROP
	.comm	_NUM_SG_DMA,4,2                 ## @NUM_SG_DMA
	.comm	_omap24xxcam_sgdma_callback,4,2 ## @omap24xxcam_sgdma_callback
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap24xxcam_sgdma_process      ; -- Begin function omap24xxcam_sgdma_process
	.p2align	2
_omap24xxcam_sgdma_process:             ; @omap24xxcam_sgdma_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x0
Lloh0:
	adrp	x8, _CAMDMA_CSR_MISALIGNED_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAMDMA_CSR_MISALIGNED_ERR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CAMDMA_CSR_SUPERVISOR_ERR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CAMDMA_CSR_SUPERVISOR_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	ldr	w20, [x9]
Lloh6:
	adrp	x8, _CAMDMA_CSR_SECURE_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAMDMA_CSR_SECURE_ERR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CAMDMA_CSR_TRANS_ERR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CAMDMA_CSR_TRANS_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	ldr	w21, [x9]
Lloh12:
	adrp	x8, _CAMDMA_CSR_DROP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAMDMA_CSR_DROP@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	add	x0, x0, #8
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
Lloh15:
	adrp	x8, _NUM_SG_DMA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NUM_SG_DMA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	x24, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w9, [x24]
	sub	w10, w8, w9
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.1:
	orr	w10, w20, w19
	orr	w10, w10, w22
	orr	w10, w10, w21
	orr	w10, w10, w23
	str	w10, [sp, #44]                  ; 4-byte Folded Spill
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w10, [x11, #4]
	add	w9, w10, w9
	sdiv	w10, w9, w8
	msub	w9, w10, w8, w9
	add	x21, x11, #16
	add	x22, x11, #12
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh18:
	adrp	x8, _NUM_SG_DMA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NUM_SG_DMA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w23, #1
	sdiv	w10, w9, w8
	msub	w9, w10, w8, w9
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	subs	w10, w10, #1
	str	w10, [sp, #28]                  ; 4-byte Folded Spill
	b.le	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x11, [x10, #24]
	sxtw	x23, w9
	mov	w10, #40
	smaddl	x26, w9, w10, x11
	mov	x19, x26
	ldr	x9, [x19, #8]!
	ldr	x10, [x26]
	cmp	x10, x9
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #40
	madd	x8, x23, x8, x11
	add	x20, x8, #16
	add	x27, x8, #32
	add	x11, x8, #20
	str	x11, [sp, #32]                  ; 8-byte Folded Spill
	add	x28, x8, #24
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20]
	ldr	w11, [sp, #44]                  ; 4-byte Folded Reload
	tst	w8, w11
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x27]
	add	x25, x8, x10, lsl #2
	add	x8, x10, #1
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	ldr	w9, [x28]
	sub	w24, w8, w9
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x25
	bl	_sg_dma_len
	mov	x24, x0
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x25
	bl	_sg_dma_address
	mov	x1, x0
Lloh21:
	adrp	x8, _omap24xxcam_sgdma_callback@GOTPAGE
Lloh22:
	ldr	x8, [x8, _omap24xxcam_sgdma_callback@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x24
	mov	x4, x23
	bl	_omap24xxcam_dma_start
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x26]
	add	x8, x8, #1
	str	x8, [x26]
	movi.2s	v0, #1
	mov.s	v0[0], w24
	ldr	d1, [x28]
	add.2s	v0, v1, v0
	str	d0, [x28]
Lloh24:
	adrp	x8, _jiffies@GOTPAGE
Lloh25:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _HZ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_mod_timer
	ldr	x10, [x26]
	ldr	x9, [x19]
	cmp	x10, x9
	b.lt	LBB0_6
	b	LBB0_2
LBB0_12:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMDMA_CSR_MISALIGNED_ERR,4,2  ; @CAMDMA_CSR_MISALIGNED_ERR
	.comm	_CAMDMA_CSR_SUPERVISOR_ERR,4,2  ; @CAMDMA_CSR_SUPERVISOR_ERR
	.comm	_CAMDMA_CSR_SECURE_ERR,4,2      ; @CAMDMA_CSR_SECURE_ERR
	.comm	_CAMDMA_CSR_TRANS_ERR,4,2       ; @CAMDMA_CSR_TRANS_ERR
	.comm	_CAMDMA_CSR_DROP,4,2            ; @CAMDMA_CSR_DROP
	.comm	_NUM_SG_DMA,4,2                 ; @NUM_SG_DMA
	.comm	_omap24xxcam_sgdma_callback,4,2 ; @omap24xxcam_sgdma_callback
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
.subsections_via_symbols
