	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_reset                     ## -- Begin function cx88_reset
	.p2align	4, 0x90
_cx88_reset:                            ## @cx88_reset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_cx88_shutdown
	movq	_MO_VID_INTSTAT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$-1, %esi
	callq	_cx_write
	movq	_MO_PCI_INTSTAT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_cx_write
	movq	_MO_INT1_STAT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$-1, %esi
	callq	_cx_write
	movl	$100, %edi
	callq	_msleep
	movq	_cx88_sram_channels@GOTPCREL(%rip), %r13
	movq	_SRAM_CH21@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$2880, %edx                     ## imm = 0xB40
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH22@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH23@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH24@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH25@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH26@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH28@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$752, %edx                      ## imm = 0x2F0
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_SRAM_CH27@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_cx88_sram_channel_setup
	movq	_MO_INPUT_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$14343, %esi                    ## imm = 0x3807
	callq	_cx_write
	movq	_MO_COLOR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	$16384, %edx                    ## imm = 0x4000
	callq	_cx_andor
	movq	_MO_PDMA_STHRSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2055, %esi                     ## imm = 0x807
	callq	_cx_write
	movq	_MO_PDMA_DTHRSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2055, %esi                     ## imm = 0x807
	callq	_cx_write
	movq	_MO_AGC_SYNC_TIP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$58720271, %esi                 ## imm = 0x380000F
	callq	_cx_write
	movq	_MO_AGC_BACK_VBI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$14681429, %esi                 ## imm = 0xE00555
	callq	_cx_write
	movl	(%r14), %edi
	movl	$-1, %esi
	callq	_cx_write
	movl	(%r15), %edi
	movl	$-1, %esi
	callq	_cx_write
	movl	(%r12), %edi
	movl	$-1, %esi
	callq	_cx_write
	movq	_MO_SRST_IO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_cx_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_MO_VID_INTSTAT,4,2             ## @MO_VID_INTSTAT
	.comm	_MO_PCI_INTSTAT,4,2             ## @MO_PCI_INTSTAT
	.comm	_MO_INT1_STAT,4,2               ## @MO_INT1_STAT
	.comm	_cx88_sram_channels,8,3         ## @cx88_sram_channels
	.comm	_SRAM_CH21,8,3                  ## @SRAM_CH21
	.comm	_SRAM_CH22,8,3                  ## @SRAM_CH22
	.comm	_SRAM_CH23,8,3                  ## @SRAM_CH23
	.comm	_SRAM_CH24,8,3                  ## @SRAM_CH24
	.comm	_SRAM_CH25,8,3                  ## @SRAM_CH25
	.comm	_SRAM_CH26,8,3                  ## @SRAM_CH26
	.comm	_SRAM_CH28,8,3                  ## @SRAM_CH28
	.comm	_SRAM_CH27,8,3                  ## @SRAM_CH27
	.comm	_MO_INPUT_FORMAT,4,2            ## @MO_INPUT_FORMAT
	.comm	_MO_COLOR_CTRL,4,2              ## @MO_COLOR_CTRL
	.comm	_MO_PDMA_STHRSH,4,2             ## @MO_PDMA_STHRSH
	.comm	_MO_PDMA_DTHRSH,4,2             ## @MO_PDMA_DTHRSH
	.comm	_MO_AGC_SYNC_TIP1,4,2           ## @MO_AGC_SYNC_TIP1
	.comm	_MO_AGC_BACK_VBI,4,2            ## @MO_AGC_BACK_VBI
	.comm	_MO_SRST_IO,4,2                 ## @MO_SRST_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_reset                     ; -- Begin function cx88_reset
	.p2align	2
_cx88_reset:                            ; @cx88_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	mov	x0, x19
	bl	_cx88_shutdown
Lloh2:
	adrp	x20, _MO_VID_INTSTAT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MO_VID_INTSTAT@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #-1
	bl	_cx_write
Lloh4:
	adrp	x21, _MO_PCI_INTSTAT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MO_PCI_INTSTAT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_cx_write
Lloh6:
	adrp	x22, _MO_INT1_STAT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MO_INT1_STAT@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #-1
	bl	_cx_write
	mov	w0, #100
	bl	_msleep
Lloh8:
	adrp	x23, _cx88_sram_channels@GOTPAGE
Lloh9:
	ldr	x23, [x23, _cx88_sram_channels@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh10:
	adrp	x9, _SRAM_CH21@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SRAM_CH21@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #2880
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh13:
	adrp	x9, _SRAM_CH22@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SRAM_CH22@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #128
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh16:
	adrp	x9, _SRAM_CH23@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SRAM_CH23@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #128
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh19:
	adrp	x9, _SRAM_CH24@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SRAM_CH24@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #128
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh22:
	adrp	x9, _SRAM_CH25@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SRAM_CH25@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #128
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh25:
	adrp	x9, _SRAM_CH26@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SRAM_CH26@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #128
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh28:
	adrp	x9, _SRAM_CH28@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SRAM_CH28@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #752
	mov	w3, #0
	bl	_cx88_sram_channel_setup
	ldr	x8, [x23]
Lloh31:
	adrp	x9, _SRAM_CH27@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SRAM_CH27@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	w2, #128
	mov	w3, #0
	bl	_cx88_sram_channel_setup
Lloh34:
	adrp	x8, _MO_INPUT_FORMAT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MO_INPUT_FORMAT@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	mov	w1, #14343
	bl	_cx_write
Lloh37:
	adrp	x8, _MO_COLOR_CTRL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MO_COLOR_CTRL@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	mov	w1, #16384
	mov	w2, #16384
	bl	_cx_andor
Lloh40:
	adrp	x8, _MO_PDMA_STHRSH@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MO_PDMA_STHRSH@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	mov	w1, #2055
	bl	_cx_write
Lloh43:
	adrp	x8, _MO_PDMA_DTHRSH@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MO_PDMA_DTHRSH@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	mov	w1, #2055
	bl	_cx_write
Lloh46:
	adrp	x8, _MO_AGC_SYNC_TIP1@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MO_AGC_SYNC_TIP1@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	mov	w1, #15
	movk	w1, #896, lsl #16
	bl	_cx_write
Lloh49:
	adrp	x8, _MO_AGC_BACK_VBI@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MO_AGC_BACK_VBI@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	mov	w1, #1365
	movk	w1, #224, lsl #16
	bl	_cx_write
	ldr	w0, [x20]
	mov	w1, #-1
	bl	_cx_write
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_cx_write
	ldr	w0, [x22]
	mov	w1, #-1
	bl	_cx_write
Lloh52:
	adrp	x19, _MO_SRST_IO@GOTPAGE
Lloh53:
	ldr	x19, [x19, _MO_SRST_IO@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_cx_write
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x19]
	mov	w1, #1
	bl	_cx_write
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_MO_VID_INTSTAT,4,2             ; @MO_VID_INTSTAT
	.comm	_MO_PCI_INTSTAT,4,2             ; @MO_PCI_INTSTAT
	.comm	_MO_INT1_STAT,4,2               ; @MO_INT1_STAT
	.comm	_cx88_sram_channels,8,3         ; @cx88_sram_channels
	.comm	_SRAM_CH21,8,3                  ; @SRAM_CH21
	.comm	_SRAM_CH22,8,3                  ; @SRAM_CH22
	.comm	_SRAM_CH23,8,3                  ; @SRAM_CH23
	.comm	_SRAM_CH24,8,3                  ; @SRAM_CH24
	.comm	_SRAM_CH25,8,3                  ; @SRAM_CH25
	.comm	_SRAM_CH26,8,3                  ; @SRAM_CH26
	.comm	_SRAM_CH28,8,3                  ; @SRAM_CH28
	.comm	_SRAM_CH27,8,3                  ; @SRAM_CH27
	.comm	_MO_INPUT_FORMAT,4,2            ; @MO_INPUT_FORMAT
	.comm	_MO_COLOR_CTRL,4,2              ; @MO_COLOR_CTRL
	.comm	_MO_PDMA_STHRSH,4,2             ; @MO_PDMA_STHRSH
	.comm	_MO_PDMA_DTHRSH,4,2             ; @MO_PDMA_DTHRSH
	.comm	_MO_AGC_SYNC_TIP1,4,2           ; @MO_AGC_SYNC_TIP1
	.comm	_MO_AGC_BACK_VBI,4,2            ; @MO_AGC_BACK_VBI
	.comm	_MO_SRST_IO,4,2                 ; @MO_SRST_IO
.subsections_via_symbols
