	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap24xxcam_dma_abort
_omap24xxcam_dma_abort:                 ## @omap24xxcam_dma_abort
	.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	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_NUM_CAMDMA_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movl	4(%r12), %eax
	addl	(%r12), %eax
	cltd
	idivl	%ecx
	movl	%edx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r12), %edi
	movl	%ebx, %esi
	callq	_omap24xxcam_dmahw_abort_ch
	incl	%ebx
	movl	(%r13), %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	incl	%r14d
	movl	%edx, %ebx
	cmpl	%ecx, %r14d
	jl	LBB0_2
LBB0_3:
	movl	4(%r12), %esi
	cmpl	%ecx, %esi
	jge	LBB0_9
## %bb.4:
	leal	1(%rsi), %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	addl	%esi, %eax
	cltd
	idivl	%ecx
	movq	16(%r12), %rax
	movslq	%edx, %rdx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rbx
	movq	8(%rax,%rdx), %r13
	incl	%esi
	movl	%esi, 4(%r12)
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	*%r13
	movq	%r15, %rdi
	callq	_spin_lock
	movl	4(%r12), %esi
	movq	_NUM_CAMDMA_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ecx, %esi
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r14), %eax
	cmpl	%ecx, %r14d
	movl	%eax, %r14d
	jl	LBB0_5
LBB0_9:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CAMDMA_CHANNELS,4,2        ## @NUM_CAMDMA_CHANNELS
	.no_dead_strip	_omap24xxcam_dma_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap24xxcam_dma_abort
_omap24xxcam_dma_abort:                 ; @omap24xxcam_dma_abort
	.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	x19, x1
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x23, _NUM_CAMDMA_CHANNELS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM_CAMDMA_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w24, #0
	ldp	w10, w9, [x21]
	add	w9, w9, w10
	sdiv	w10, w9, w8
	msub	w22, w10, w8, w9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #24]
	mov	x1, x22
	bl	_omap24xxcam_dmahw_abort_ch
	add	w9, w22, #1
	ldr	w8, [x23]
	sdiv	w10, w9, w8
	msub	w22, w10, w8, w9
	add	w24, w24, #1
	cmp	w24, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	w9, [x21, #4]
	cmp	w9, w8
	b.ge	LBB0_9
; %bb.4:
	add	w24, w9, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x21]
	add	w10, w10, w9
	sdiv	w11, w10, w8
	msub	w10, w11, w8, w10
	ldr	x11, [x21, #16]
	add	x10, x11, w10, sxtw #4
	ldp	x22, x25, [x10]
	add	w9, w9, #1
	str	w9, [x21, #4]
	cbz	x25, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	blr	x25
	mov	x0, x20
	bl	_spin_lock
	ldr	w9, [x21, #4]
	ldr	w8, [x23]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w24, #1
	cmp	w24, w8
	mov	x24, x10
	b.lt	LBB0_5
LBB0_9:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CAMDMA_CHANNELS,4,2        ; @NUM_CAMDMA_CHANNELS
	.no_dead_strip	_omap24xxcam_dma_abort
.subsections_via_symbols
