	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx8802_suspend_common
_cx8802_suspend_common:                 ## @cx8802_suspend_common
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_pci_get_drvdata
	movq	%rax, %r14
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	addq	$12, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	%r14, %rdi
	callq	_cx8802_stop_dma
LBB0_2:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%r14), %edi
	callq	_cx88_shutdown
	movq	%rbx, %rdi
	callq	_pci_save_state
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pci_choose_state
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pci_set_power_state
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_pci_disable_device
	movl	$1, (%r14)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"suspend\n"

L_.str.1:                               ## @.str.1
	.asciz	"suspend mpeg\n"

	.no_dead_strip	_cx8802_suspend_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx8802_suspend_common
_cx8802_suspend_common:                 ; @cx8802_suspend_common
	.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	x21, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x0, x20, #12
	bl	_list_empty
	cbnz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, x20
	bl	_cx8802_stop_dma
LBB0_2:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	w0, [x20, #4]
	bl	_cx88_shutdown
	mov	x0, x19
	bl	_pci_save_state
	mov	x0, x19
	mov	x1, x21
	bl	_pci_choose_state
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_power_state
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pci_disable_device
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"suspend\n"

l_.str.1:                               ; @.str.1
	.asciz	"suspend mpeg\n"

	.no_dead_strip	_cx8802_suspend_common
.subsections_via_symbols
