	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap24xxcam_sgdma_queue        ## -- Begin function omap24xxcam_sgdma_queue
	.p2align	4, 0x90
_omap24xxcam_sgdma_queue:               ## @omap24xxcam_sgdma_queue
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	js	LBB0_3
## %bb.1:
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	8(%r13), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.7:
	movq	16(%r13), %rdx
	movslq	(%r13), %rsi
	leal	1(%rsi), %eax
	shlq	$6, %rsi
	movq	%r14, 56(%rdx,%rsi)
	movl	%ebx, (%rdx,%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rdx,%rsi)
	movl	%r12d, 4(%rdx,%rsi)
	movups	%xmm0, 24(%rdx,%rsi)
	movl	%r15d, 16(%rdx,%rsi)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 8(%rdx,%rsi)
	movq	_NUM_SG_DMA@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%edx, (%r13)
	decl	%ecx
	movl	%ecx, 8(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r13, %rdi
	callq	_omap24xxcam_sgdma_process
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NUM_SG_DMA,4,2                 ## @NUM_SG_DMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap24xxcam_sgdma_queue        ; -- Begin function omap24xxcam_sgdma_queue
	.p2align	2
_omap24xxcam_sgdma_queue:               ; @omap24xxcam_sgdma_queue
	.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
	tbnz	w2, #31, LBB0_3
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
	cbnz	x1, LBB0_5
; %bb.2:
	cbz	w24, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	x9, [x19, #16]
	ldrsw	x10, [x19]
	add	x9, x9, x10, lsl #6
	stp	xzr, x25, [x9, #48]
	stp	xzr, xzr, [x9, #32]
	stp	w24, w23, [x9]
	str	xzr, [x9, #24]
	str	w21, [x9, #16]
	str	x20, [x9, #8]
	add	w9, w10, #1
Lloh2:
	adrp	x10, _NUM_SG_DMA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _NUM_SG_DMA@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	str	w9, [x19]
	sub	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_omap24xxcam_sgdma_process
	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
LBB0_8:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NUM_SG_DMA,4,2                 ; @NUM_SG_DMA
.subsections_via_symbols
