	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25821_start_video_dma        ## -- Begin function cx25821_start_video_dma
	.p2align	4, 0x90
_cx25821_start_video_dma:               ## @cx25821_start_video_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %rbx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movq	%rbx, %rsi
	callq	_cx25821_sram_channel_setup
	movl	12(%rbx), %edi
	movl	$3, %esi
	callq	_cx_write
	movq	_PCI_INT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_cx_read
	movb	(%rbx), %cl
	btsl	%ecx, %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_cx_set
	movl	8(%rbx), %edi
	movl	$17, %esi
	callq	_cx_set
	movl	4(%rbx), %edi
	movl	$17, %esi
	callq	_cx_write
	movq	_VID_CH_MODE_SEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_cx_read
	movl	(%rbx), %edi
	andl	$-512, %eax                     ## imm = 0xFE00
	movl	%eax, %esi
	callq	_cx_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_INT_MSK,4,2                ## @PCI_INT_MSK
	.comm	_VID_CH_MODE_SEL,4,2            ## @VID_CH_MODE_SEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25821_start_video_dma        ; -- Begin function cx25821_start_video_dma
	.p2align	2
_cx25821_start_video_dma:               ; @cx25821_start_video_dma
	.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, x3
	ldp	w3, w8, [x2]
	mov	x1, x19
	mov	x2, x8
	bl	_cx25821_sram_channel_setup
	ldr	w0, [x19, #12]
	mov	w1, #3
	bl	_cx_write
Lloh0:
	adrp	x8, _PCI_INT_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_INT_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_cx_read
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w1, w8, w0
	mov	x0, x20
	bl	_cx_set
	ldr	w0, [x19, #8]
	mov	w1, #17
	bl	_cx_set
	ldr	w0, [x19, #4]
	mov	w1, #17
	bl	_cx_write
Lloh3:
	adrp	x19, _VID_CH_MODE_SEL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _VID_CH_MODE_SEL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_cx_read
	ldr	w8, [x19]
	and	w1, w0, #0xfffffe00
	mov	x0, x8
	bl	_cx_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_INT_MSK,4,2                ; @PCI_INT_MSK
	.comm	_VID_CH_MODE_SEL,4,2            ; @VID_CH_MODE_SEL
.subsections_via_symbols
