	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_dma_dec_start
_ivtv_dma_dec_start:                    ## @ivtv_dma_dec_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r8
	movq	56(%rdi), %r14
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	leaq	40(%rbx), %rsi
	leaq	48(%rbx), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ivtv_queue_move
LBB0_2:
	incl	32(%rbx)
	movl	28(%rbx), %edi
	movl	(%rbx), %edx
	movl	24(%rbx), %esi
	shll	$2, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	movl	12(%rbx), %esi
	movl	%eax, 4(%rbx)
	movl	$0, (%rbx)
	movq	$0, 16(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_IVTV_DEBUG_HI_DMA
	movq	$0, 8(%r14)
	movq	%rbx, %rdi
	callq	_ivtv_dma_dec_start_xfer
	movq	_IVTV_F_I_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_set_bit
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start DMA for %s\n"

	.comm	_IVTV_F_I_DMA,4,2               ## @IVTV_F_I_DMA
	.no_dead_strip	_ivtv_dma_dec_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_dma_dec_start
_ivtv_dma_dec_start:                    ; @ivtv_dma_dec_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x1, x0
	ldr	x4, [x1, #40]!
	ldr	x20, [x1, #16]
	cbz	x4, LBB0_2
; %bb.1:
	add	x3, x19, #48
	mov	x0, x19
	mov	x2, #0
	bl	_ivtv_queue_move
LBB0_2:
	ldp	w0, w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #32]
	ldr	w1, [x19, #24]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x19]
	stp	wzr, w8, [x19]
	str	xzr, [x19, #16]
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IVTV_DEBUG_HI_DMA
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_ivtv_dma_dec_start_xfer
Lloh2:
	adrp	x8, _IVTV_F_I_DMA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IVTV_F_I_DMA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_set_bit
	ldr	w8, [x19, #8]
	str	w8, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start DMA for %s\n"

	.comm	_IVTV_F_I_DMA,4,2               ; @IVTV_F_I_DMA
	.no_dead_strip	_ivtv_dma_dec_start
.subsections_via_symbols
