	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx8802_resume_common
_cx8802_resume_common:                  ## @cx8802_resume_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
	movq	%rdi, %r12
	callq	_pci_get_drvdata
	movq	%rax, %r15
	movq	%rax, %r14
	cmpl	$0, 12(%rax)
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_9
LBB0_3:
	movl	$0, 12(%r14)
LBB0_4:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pci_set_power_state
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	%r12, %rdi
	callq	_pci_disable_device
	movl	$1, 12(%r14)
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	callq	_pci_restore_state
	movl	8(%r14), %edi
	callq	_cx88_reset
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_cx8802_restart_queue
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %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	"can't enable device\n"

	.comm	_PCI_D0,4,2                     ## @PCI_D0
L_.str.1:                               ## @.str.1
	.asciz	"resume mpeg\n"

	.no_dead_strip	_cx8802_resume_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx8802_resume_common
_cx8802_resume_common:                  ; @cx8802_resume_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	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_pci_enable_device
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_9
LBB0_3:
	str	wzr, [x19, #12]
LBB0_4:
Lloh2:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_set_power_state
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x20
	bl	_pci_disable_device
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_pci_restore_state
	ldr	w0, [x19, #8]
	bl	_cx88_reset
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x20, x19, #4
	mov	x0, x20
	bl	_list_empty
	cbnz	w0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	mov	x1, x20
	bl	_cx8802_restart_queue
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't enable device\n"

	.comm	_PCI_D0,4,2                     ; @PCI_D0
l_.str.1:                               ; @.str.1
	.asciz	"resume mpeg\n"

	.no_dead_strip	_cx8802_resume_common
.subsections_via_symbols
