	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_video_dma
_start_video_dma:                       ## @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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_cx88_sram_channels@GOTPCREL(%rip), %rax
	movq	_SRAM_CH21@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movq	%rbx, %rdi
	callq	_cx88_sram_channel_setup
	movl	12(%rbx), %esi
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_cx88_set_scale
	movq	_MO_COLOR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	_ColorFormatGamma@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_cx_write
	movq	_MO_VIDY_GPCNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GP_COUNT_CONTROL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cx_write
	movq	$0, (%r14)
	movq	_MO_PCI_INTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PCI_INT_VIDINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	callq	_cx_set
	movq	_MO_VID_INTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$983057, %esi                   ## imm = 0xF0011
	callq	_cx_set
	movq	_VID_CAPTURE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$6, %esi
	callq	_cx_set
	movq	_MO_DEV_CNTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$32, %esi
	callq	_cx_set
	movq	_MO_VID_DMACNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$17, %esi
	callq	_cx_set
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx88_sram_channels,8,3         ## @cx88_sram_channels
	.comm	_SRAM_CH21,8,3                  ## @SRAM_CH21
	.comm	_MO_COLOR_CTRL,4,2              ## @MO_COLOR_CTRL
	.comm	_ColorFormatGamma,4,2           ## @ColorFormatGamma
	.comm	_MO_VIDY_GPCNTRL,4,2            ## @MO_VIDY_GPCNTRL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ## @GP_COUNT_CONTROL_RESET
	.comm	_MO_PCI_INTMSK,4,2              ## @MO_PCI_INTMSK
	.comm	_PCI_INT_VIDINT,4,2             ## @PCI_INT_VIDINT
	.comm	_MO_VID_INTMSK,4,2              ## @MO_VID_INTMSK
	.comm	_VID_CAPTURE_CONTROL,4,2        ## @VID_CAPTURE_CONTROL
	.comm	_MO_DEV_CNTRL2,4,2              ## @MO_DEV_CNTRL2
	.comm	_MO_VID_DMACNTRL,4,2            ## @MO_VID_DMACNTRL
	.no_dead_strip	_start_video_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_video_dma
_start_video_dma:                       ; @start_video_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
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _cx88_sram_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx88_sram_channels@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SRAM_CH21@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SRAM_CH21@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	ldp	w3, w8, [x2]
	mov	x0, x21
	mov	x2, x8
	bl	_cx88_sram_channel_setup
	ldp	w2, w1, [x21, #8]
	ldr	w3, [x21, #4]
	mov	x0, x21
	bl	_cx88_set_scale
Lloh6:
	adrp	x8, _MO_COLOR_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MO_COLOR_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ColorFormatGamma@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ColorFormatGamma@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_cx_write
Lloh12:
	adrp	x8, _MO_VIDY_GPCNTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MO_VIDY_GPCNTRL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _GP_COUNT_CONTROL_RESET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GP_COUNT_CONTROL_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_cx_write
	str	xzr, [x19]
Lloh18:
	adrp	x8, _MO_PCI_INTMSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MO_PCI_INTMSK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w8, [x21]
Lloh21:
	adrp	x9, _PCI_INT_VIDINT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PCI_INT_VIDINT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_cx_set
Lloh24:
	adrp	x8, _MO_VID_INTMSK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MO_VID_INTMSK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #17
	movk	w1, #15, lsl #16
	bl	_cx_set
Lloh27:
	adrp	x8, _VID_CAPTURE_CONTROL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VID_CAPTURE_CONTROL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	w1, #6
	bl	_cx_set
Lloh30:
	adrp	x8, _MO_DEV_CNTRL2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MO_DEV_CNTRL2@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	mov	w1, #32
	bl	_cx_set
Lloh33:
	adrp	x8, _MO_VID_DMACNTRL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MO_VID_DMACNTRL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	w1, #17
	bl	_cx_set
	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	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cx88_sram_channels,8,3         ; @cx88_sram_channels
	.comm	_SRAM_CH21,8,3                  ; @SRAM_CH21
	.comm	_MO_COLOR_CTRL,4,2              ; @MO_COLOR_CTRL
	.comm	_ColorFormatGamma,4,2           ; @ColorFormatGamma
	.comm	_MO_VIDY_GPCNTRL,4,2            ; @MO_VIDY_GPCNTRL
	.comm	_GP_COUNT_CONTROL_RESET,4,2     ; @GP_COUNT_CONTROL_RESET
	.comm	_MO_PCI_INTMSK,4,2              ; @MO_PCI_INTMSK
	.comm	_PCI_INT_VIDINT,4,2             ; @PCI_INT_VIDINT
	.comm	_MO_VID_INTMSK,4,2              ; @MO_VID_INTMSK
	.comm	_VID_CAPTURE_CONTROL,4,2        ; @VID_CAPTURE_CONTROL
	.comm	_MO_DEV_CNTRL2,4,2              ; @MO_DEV_CNTRL2
	.comm	_MO_VID_DMACNTRL,4,2            ; @MO_VID_DMACNTRL
	.no_dead_strip	_start_video_dma
.subsections_via_symbols
