	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx8802_init_common
_cx8802_init_common:                    ## @cx8802_init_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	%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
	movq	(%rdi), %rdi
	movq	8(%rbx), %r12
	callq	_pci_enable_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_2:
	movq	(%rbx), %rdi
	callq	_pci_set_master
	movq	(%rbx), %r14
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rdi
	movl	4(%rdi), %eax
	movl	%eax, 28(%rbx)
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	24(%rbx), %rdx
	callq	_pci_read_config_byte
	movq	(%rbx), %rdi
	callq	_pci_name
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	28(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rdi
	movl	(%rdi), %r13d
	movl	24(%rbx), %r15d
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_pci_resource_start
	leaq	L_.str.1(%rip), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movq	%rax, %r9
	callq	_pr_info
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rax), %edi
	movq	_cx8802_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rcx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_MO_PCI_INTMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_cx_set
	movq	(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_pci_set_drvdata
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movl	%r15d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Oops: no 32bit PCI DMA ???\n"

	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
L_.str.1:                               ## @.str.1
	.asciz	"found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"

	.comm	_cx8802_irq,4,2                 ## @cx8802_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"can't get IRQ %d\n"

	.comm	_MO_PCI_INTMSK,4,2              ## @MO_PCI_INTMSK
	.no_dead_strip	_cx8802_init_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx8802_init_common
_cx8802_init_common:                    ; @cx8802_init_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldp	x0, x24, [x0]
	bl	_pci_enable_device
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
	bl	_pci_set_master
	ldr	x20, [x19]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x0, [x19]
	ldr	w8, [x0, #4]
	str	w8, [x19, #28]
Lloh5:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, x19, #24
	bl	_pci_read_config_byte
	ldr	x0, [x19]
	bl	_pci_name
	mov	x20, x0
	ldr	x0, [x19]
	ldr	w21, [x0]
	ldp	w23, w22, [x19, #24]
	mov	w1, #0
	bl	_pci_resource_start
	mov	x5, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x23
	bl	_pr_info
	add	x0, x19, #20
	bl	_spin_lock_init
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
Lloh10:
	adrp	x8, _cx8802_irq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cx8802_irq@GOTPAGEOFF]
	ldp	x9, x10, [x19]
	ldr	w0, [x9]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x10, #4]
	mov	x4, x19
	bl	_request_irq
	tbnz	w0, #31, LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _MO_PCI_INTMSK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MO_PCI_INTMSK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x24]
	bl	_cx_set
	ldr	x0, [x19]
	mov	x1, x19
	bl	_pci_set_drvdata
	mov	w20, #0
	b	LBB0_4
LBB0_7:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Oops: no 32bit PCI DMA ???\n"

	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
l_.str.1:                               ; @.str.1
	.asciz	"found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"

	.comm	_cx8802_irq,4,2                 ; @cx8802_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"can't get IRQ %d\n"

	.comm	_MO_PCI_INTMSK,4,2              ; @MO_PCI_INTMSK
	.no_dead_strip	_cx8802_init_common
.subsections_via_symbols
