	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_dma_dec_start_xfer
_ivtv_dma_dec_start_xfer:               ## @ivtv_dma_dec_start_xfer
	.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	32(%rdi), %r14
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	(%rcx,%rax,4), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	4(%rcx,%rax,4), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	$-2147483648, %edi              ## imm = 0x80000000
	orl	8(%rcx,%rax,4), %edi
	callq	_cpu_to_le32
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	incq	(%rbx)
	movq	%rbx, %rdi
	callq	_ivtv_stream_sync_for_device
	movl	8(%rbx), %edi
	movq	_IVTV_REG_DECDMAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_write_reg
	movq	_IVTV_REG_DMAXFER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_read_reg
	orl	$1, %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_write_reg_sync
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IVTV_REG_DECDMAADDR,4,2        ## @IVTV_REG_DECDMAADDR
	.comm	_IVTV_REG_DMAXFER,4,2           ## @IVTV_REG_DMAXFER
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_ivtv_dma_dec_start_xfer
.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_xfer
_ivtv_dma_dec_start_xfer:               ; @ivtv_dma_dec_start_xfer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	mov	w21, #12
	mul	x9, x9, x21
	ldr	w0, [x8, x9]
	bl	_cpu_to_le32
	ldp	x9, x8, [x20, #16]
	str	x0, [x8, #16]
	ldr	x8, [x20]
	madd	x8, x8, x21, x9
	ldr	w0, [x8, #4]
	bl	_cpu_to_le32
	ldp	x9, x8, [x20, #16]
	str	x0, [x8, #8]
	ldr	x8, [x20]
	madd	x8, x8, x21, x9
	ldr	w8, [x8, #8]
	orr	w0, w8, #0x80000000
	bl	_cpu_to_le32
	ldr	x8, [x20, #24]
	str	x0, [x8]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	mov	x0, x20
	bl	_ivtv_stream_sync_for_device
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _IVTV_REG_DECDMAADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IVTV_REG_DECDMAADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_write_reg
Lloh3:
	adrp	x20, _IVTV_REG_DMAXFER@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IVTV_REG_DMAXFER@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_read_reg
	orr	w0, w0, #0x1
	ldr	w1, [x20]
	bl	_write_reg_sync
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	mov	w0, #300
	bl	_msecs_to_jiffies
	add	x8, x0, x20
	str	x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_add_timer
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IVTV_REG_DECDMAADDR,4,2        ; @IVTV_REG_DECDMAADDR
	.comm	_IVTV_REG_DMAXFER,4,2           ; @IVTV_REG_DMAXFER
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_ivtv_dma_dec_start_xfer
.subsections_via_symbols
