	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw68_video_start_dma           ## -- Begin function tw68_video_start_dma
	.p2align	4, 0x90
_tw68_video_start_dma:                  ## @tw68_video_start_dma
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	24(%rdi), %esi
	movl	16(%rdi), %ecx
	movl	20(%rdi), %edx
	callq	_tw68_set_scale
	movq	_TW68_DMAC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_TW68_DMAP_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_tw_clearl
	movq	_TW68_DMAP_SA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_tw_writel
	movq	_TW68_INTSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_tw_writel
	movq	8(%rbx), %rax
	movq	_ColorFormatGamma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	(%r12), %edx
	movl	(%r15), %edi
	movq	_TW68_FIFO_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$255, %esi
	callq	_tw_andorl
	movl	(%rbx), %esi
	orl	4(%rbx), %esi
	movl	%esi, (%rbx)
	movq	_TW68_INTMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw_setl
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TW68_DMAC,4,2                  ## @TW68_DMAC
	.comm	_TW68_DMAP_EN,4,2               ## @TW68_DMAP_EN
	.comm	_TW68_DMAP_SA,4,2               ## @TW68_DMAP_SA
	.comm	_TW68_INTSTAT,4,2               ## @TW68_INTSTAT
	.comm	_ColorFormatGamma,4,2           ## @ColorFormatGamma
	.comm	_TW68_FIFO_EN,4,2               ## @TW68_FIFO_EN
	.comm	_TW68_INTMASK,4,2               ## @TW68_INTMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tw68_video_start_dma           ; -- Begin function tw68_video_start_dma
	.p2align	2
_tw68_video_start_dma:                  ; @tw68_video_start_dma
	.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	x19, x1
	mov	x20, x0
	ldp	w2, w1, [x0, #20]
	ldr	w3, [x0, #16]
	bl	_tw68_set_scale
Lloh0:
	adrp	x21, _TW68_DMAC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TW68_DMAC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _TW68_DMAP_EN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TW68_DMAP_EN@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_tw_clearl
Lloh4:
	adrp	x8, _TW68_DMAP_SA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TW68_DMAP_SA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_tw_writel
Lloh7:
	adrp	x8, _TW68_INTSTAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TW68_INTSTAT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_tw_writel
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _ColorFormatGamma@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ColorFormatGamma@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh13:
	adrp	x9, _TW68_FIFO_EN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TW68_FIFO_EN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	w1, #255
	bl	_tw_andorl
	ldp	w9, w8, [x20]
	orr	w1, w9, w8
	str	w1, [x20]
Lloh16:
	adrp	x8, _TW68_INTMASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TW68_INTMASK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_tw_setl
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TW68_DMAC,4,2                  ; @TW68_DMAC
	.comm	_TW68_DMAP_EN,4,2               ; @TW68_DMAP_EN
	.comm	_TW68_DMAP_SA,4,2               ; @TW68_DMAP_SA
	.comm	_TW68_INTSTAT,4,2               ; @TW68_INTSTAT
	.comm	_ColorFormatGamma,4,2           ; @ColorFormatGamma
	.comm	_TW68_FIFO_EN,4,2               ; @TW68_FIFO_EN
	.comm	_TW68_INTMASK,4,2               ; @TW68_INTMASK
.subsections_via_symbols
