	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_udma_start                ## -- Begin function ivtv_udma_start
	.p2align	4, 0x90
_ivtv_udma_start:                       ## @ivtv_udma_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
	leaq	L_.str(%rip), %rdi
	callq	_IVTV_DEBUG_DMA
	movl	4(%rbx), %edi
	movq	_IVTV_REG_DECDMAADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_write_reg
	movq	_IVTV_REG_DMAXFER@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_read_reg
	orl	$1, %eax
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_write_reg_sync
	movq	_IVTV_F_I_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_IVTV_F_I_UDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	_IVTV_F_I_UDMA_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start UDMA\n"

	.comm	_IVTV_REG_DECDMAADDR,4,2        ## @IVTV_REG_DECDMAADDR
	.comm	_IVTV_REG_DMAXFER,4,2           ## @IVTV_REG_DMAXFER
	.comm	_IVTV_F_I_DMA,4,2               ## @IVTV_F_I_DMA
	.comm	_IVTV_F_I_UDMA,4,2              ## @IVTV_F_I_UDMA
	.comm	_IVTV_F_I_UDMA_PENDING,4,2      ## @IVTV_F_I_UDMA_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ivtv_udma_start                ; -- Begin function ivtv_udma_start
	.p2align	2
_ivtv_udma_start:                       ; @ivtv_udma_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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IVTV_DEBUG_DMA
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _IVTV_REG_DECDMAADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IVTV_REG_DECDMAADDR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_write_reg
Lloh5:
	adrp	x20, _IVTV_REG_DMAXFER@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IVTV_REG_DMAXFER@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_read_reg
	orr	w0, w0, #0x1
	ldr	w1, [x20]
	bl	_write_reg_sync
Lloh7:
	adrp	x8, _IVTV_F_I_DMA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IVTV_F_I_DMA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
Lloh10:
	adrp	x8, _IVTV_F_I_UDMA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IVTV_F_I_UDMA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
Lloh13:
	adrp	x8, _IVTV_F_I_UDMA_PENDING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IVTV_F_I_UDMA_PENDING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clear_bit
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start UDMA\n"

	.comm	_IVTV_REG_DECDMAADDR,4,2        ; @IVTV_REG_DECDMAADDR
	.comm	_IVTV_REG_DMAXFER,4,2           ; @IVTV_REG_DMAXFER
	.comm	_IVTV_F_I_DMA,4,2               ; @IVTV_F_I_DMA
	.comm	_IVTV_F_I_UDMA,4,2              ; @IVTV_F_I_UDMA
	.comm	_IVTV_F_I_UDMA_PENDING,4,2      ; @IVTV_F_I_UDMA_PENDING
.subsections_via_symbols
