	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_shutdown
_cx25821_shutdown:                      ## @cx25821_shutdown
	.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	%rdi, %r14
	movq	_DEV_CNTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movq	_VID_CHANNEL_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_VID_UPSTREAM_SRAM_CHANNEL_I@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_VID_UPSTREAM_SRAM_CHANNEL_J@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jg	LBB0_6
## %bb.4:
	decq	%rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	8(%rax,%rbx,8), %rax
	movl	4(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movq	(%r14), %rax
	movq	8(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movslq	(%r15), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_AUD_INT_DMA_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movq	_UART_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movq	_PCI_INT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_cx_write
	movq	_AUD_A_INT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_CNTRL2,4,2                 ## @DEV_CNTRL2
	.comm	_VID_CHANNEL_NUM,4,2            ## @VID_CHANNEL_NUM
	.comm	_VID_UPSTREAM_SRAM_CHANNEL_I,4,2 ## @VID_UPSTREAM_SRAM_CHANNEL_I
	.comm	_VID_UPSTREAM_SRAM_CHANNEL_J,4,2 ## @VID_UPSTREAM_SRAM_CHANNEL_J
	.comm	_AUD_INT_DMA_CTL,4,2            ## @AUD_INT_DMA_CTL
	.comm	_UART_CTL,4,2                   ## @UART_CTL
	.comm	_PCI_INT_MSK,4,2                ## @PCI_INT_MSK
	.comm	_AUD_A_INT_MSK,4,2              ## @AUD_A_INT_MSK
	.no_dead_strip	_cx25821_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25821_shutdown
_cx25821_shutdown:                      ; @cx25821_shutdown
	.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, x0
Lloh0:
	adrp	x8, _DEV_CNTRL2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEV_CNTRL2@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cx_write
Lloh3:
	adrp	x20, _VID_CHANNEL_NUM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _VID_CHANNEL_NUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	lsl	x22, x21, #3
	ldr	x8, [x8, x22]
	ldr	w0, [x8, #4]
	mov	w1, #0
	bl	_cx_write
	ldr	x8, [x19]
	ldr	x8, [x8, x22]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cx_write
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
Lloh5:
	adrp	x8, _VID_UPSTREAM_SRAM_CHANNEL_I@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VID_UPSTREAM_SRAM_CHANNEL_I@GOTPAGEOFF]
Lloh7:
	ldrsw	x20, [x8]
Lloh8:
	adrp	x21, _VID_UPSTREAM_SRAM_CHANNEL_J@GOTPAGE
Lloh9:
	ldr	x21, [x21, _VID_UPSTREAM_SRAM_CHANNEL_J@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.gt	LBB0_5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	lsl	x22, x20, #3
	ldr	x8, [x8, x22]
	ldr	w0, [x8, #4]
	mov	w1, #0
	bl	_cx_write
	ldr	x8, [x19]
	ldr	x8, [x8, x22]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cx_write
	add	x8, x20, #1
	ldrsw	x9, [x21]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_4
LBB0_5:
Lloh10:
	adrp	x8, _AUD_INT_DMA_CTL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AUD_INT_DMA_CTL@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cx_write
Lloh13:
	adrp	x8, _UART_CTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UART_CTL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cx_write
Lloh16:
	adrp	x8, _PCI_INT_MSK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCI_INT_MSK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_cx_write
Lloh19:
	adrp	x8, _AUD_A_INT_MSK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AUD_A_INT_MSK@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	w1, #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
	b	_cx_write
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_CNTRL2,4,2                 ; @DEV_CNTRL2
	.comm	_VID_CHANNEL_NUM,4,2            ; @VID_CHANNEL_NUM
	.comm	_VID_UPSTREAM_SRAM_CHANNEL_I,4,2 ; @VID_UPSTREAM_SRAM_CHANNEL_I
	.comm	_VID_UPSTREAM_SRAM_CHANNEL_J,4,2 ; @VID_UPSTREAM_SRAM_CHANNEL_J
	.comm	_AUD_INT_DMA_CTL,4,2            ; @AUD_INT_DMA_CTL
	.comm	_UART_CTL,4,2                   ; @UART_CTL
	.comm	_PCI_INT_MSK,4,2                ; @PCI_INT_MSK
	.comm	_AUD_A_INT_MSK,4,2              ; @AUD_A_INT_MSK
	.no_dead_strip	_cx25821_shutdown
.subsections_via_symbols
