	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thunderx_ocx_probe
_thunderx_ocx_probe:                    ## @thunderx_ocx_probe
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_pcim_enable_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	xorl	%edi, %edi
	callq	_BIT
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_pcim_iomap_regions
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_edac_device_alloc_index
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movl	$32, %esi
	movl	%eax, %ecx
	callq	_snprintf
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rcx
	movl	$72, %edi
	movq	%r15, %rsi
	movl	$1, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	%r14
	pushq	$0
	pushq	$0
	callq	_edac_device_alloc_ctl_info
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	32(%rax), %r14
	movq	%rax, 64(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	movups	%xmm0, 48(%r14)
	movq	%r12, %rdi
	callq	_pcim_iomap_table
	movq	(%rax), %rax
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%r12, 24(%r14)
	movq	_OCX_INTS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	16(%r14), %rsi
	testl	%edx, %edx
	jle	LBB0_13
## %bb.11:
	leaq	8(%rsi), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -8(%rax)
	movq	$0, (%rax)
	incq	%rcx
	movslq	(%r13), %rdx
	addq	$16, %rax
	cmpq	%rdx, %rcx
	jl	LBB0_12
LBB0_13:
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pci_enable_msix_exact
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_33
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_14:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_21
## %bb.15:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	8(%rax,%r15), %rsi
	addq	%r15, %rax
	cmpq	$3, %r14
	movq	_thunderx_ocx_lnk_isr@GOTPCREL(%rip), %rcx
	cmoveq	_thunderx_ocx_com_isr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_thunderx_ocx_lnk_threaded_isr@GOTPCREL(%rip), %rcx
	cmoveq	_thunderx_ocx_com_threaded_isr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subq	$8, %rsp
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	leaq	L_.str.7(%rip), %r9
	pushq	%rax
	callq	_devm_request_threaded_irq
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	addq	$16, %r15
	cmpq	%rax, %r14
	jl	LBB0_19
LBB0_21:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, 24(%r15)
	movq	%r12, %rdi
	callq	_dev_name
	movl	%eax, 16(%r15)
	leaq	L_.str.8(%rip), %rax
	movq	%rax, (%r15)
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_edac_device_add_device
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
LBB0_17:
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_9:
	movq	%r15, %rdi
	callq	_edac_device_free_ctl_info
	jmp	LBB0_33
LBB0_20:
	movl	%eax, %ebx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_23:
	movq	_CONFIG_EDAC_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movl	(%r12), %edi
	callq	_edac_debugfs_create_dir
	movl	%eax, %r13d
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, 8(%r15)
	movq	_ocx_dfs_ents@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_thunderx_create_debugfs_nodes
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	je	LBB0_26
## %bb.25:
	testl	%ebx, %ebx
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.12(%rip), %rcx
	cmovnsq	%rax, %rcx
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_26:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_thunderx_ocx_clearstats
	movq	_OCX_RX_LANES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_29
## %bb.27:
	xorl	%ebx, %ebx
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	_OCX_LNE_INT_ENA_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14), %r12
	movl	%ebx, %edi
	callq	_OCX_LNE_INT_EN
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writeq
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_OCX_LNE_INT
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readq
	movl	%eax, %r15d
	movq	(%r14), %r12
	movl	%ebx, %edi
	callq	_OCX_LNE_INT
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writeq
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_28
LBB0_29:
	movq	_OCX_LINK_INTS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_32
## %bb.30:
	xorl	%ebx, %ebx
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r15
	movl	%ebx, %edi
	callq	_OCX_COM_LINKX_INT
	addq	%rax, %r15
	movq	%r15, %rdi
	callq	_readq
	movl	%eax, %r15d
	movq	(%r14), %r12
	movl	%ebx, %edi
	callq	_OCX_COM_LINKX_INT
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writeq
	movq	_OCX_COM_LINKX_INT_ENA_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14), %r12
	movl	%ebx, %edi
	callq	_OCX_COM_LINKX_INT_ENA_W1S
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writeq
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_31
LBB0_32:
	movq	_OCX_COM_INT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readq
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	callq	_writeq
	movq	_OCX_COM_INT_ENA_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OCX_COM_INT_ENA_W1S@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writeq
	xorl	%ebx, %ebx
	jmp	LBB0_33
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot enable PCI device: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"thunderx_ocx"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot map PCI resources: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"OCX%d"

L_.str.4:                               ## @.str.4
	.asciz	"CCPI"

L_.str.5:                               ## @.str.5
	.asciz	"Cannot allocate EDAC device: %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_OCX_INTS,4,2                   ## @OCX_INTS
L_.str.6:                               ## @.str.6
	.asciz	"Cannot enable interrupt: %d\n"

	.comm	_thunderx_ocx_com_isr,4,2       ## @thunderx_ocx_com_isr
	.comm	_thunderx_ocx_lnk_isr,4,2       ## @thunderx_ocx_lnk_isr
	.comm	_thunderx_ocx_com_threaded_isr,4,2 ## @thunderx_ocx_com_threaded_isr
	.comm	_thunderx_ocx_lnk_threaded_isr,4,2 ## @thunderx_ocx_lnk_threaded_isr
L_.str.7:                               ## @.str.7
	.asciz	"[EDAC] ThunderX OCX"

L_.str.8:                               ## @.str.8
	.asciz	"thunderx-ocx"

L_.str.9:                               ## @.str.9
	.asciz	"Cannot add EDAC device: %d\n"

	.comm	_CONFIG_EDAC_DEBUG,4,2          ## @CONFIG_EDAC_DEBUG
	.comm	_ocx_dfs_ents,4,2               ## @ocx_dfs_ents
L_.str.10:                              ## @.str.10
	.asciz	"Error creating debugfs entries: %d%s\n"

L_.str.11:                              ## @.str.11
	.asciz	" created"

L_.str.12:                              ## @.str.12
	.space	1

	.comm	_OCX_RX_LANES,4,2               ## @OCX_RX_LANES
	.comm	_OCX_LNE_INT_ENA_ALL,4,2        ## @OCX_LNE_INT_ENA_ALL
	.comm	_OCX_LINK_INTS,4,2              ## @OCX_LINK_INTS
	.comm	_OCX_COM_LINKX_INT_ENA_ALL,4,2  ## @OCX_COM_LINKX_INT_ENA_ALL
	.comm	_OCX_COM_INT,8,3                ## @OCX_COM_INT
	.comm	_OCX_COM_INT_ENA_ALL,4,2        ## @OCX_COM_INT_ENA_ALL
	.comm	_OCX_COM_INT_ENA_W1S,8,3        ## @OCX_COM_INT_ENA_W1S
	.no_dead_strip	_thunderx_ocx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thunderx_ocx_probe
_thunderx_ocx_probe:                    ; @thunderx_ocx_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_pcim_enable_device
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	bl	_BIT
	mov	x1, x0
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_pcim_iomap_regions
	cbz	w0, LBB0_7
; %bb.3:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
LBB0_5:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.6:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_7:
	bl	_edac_device_alloc_index
	mov	x19, x0
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w1, #32
	mov	x3, x19
	bl	_snprintf
	str	w19, [sp]
Lloh14:
	adrp	x3, l_.str.4@PAGE
Lloh15:
	add	x3, x3, l_.str.4@PAGEOFF
	add	x1, sp, #8
	mov	w0, #72
	mov	w2, #1
	mov	w4, #1
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_edac_device_alloc_ctl_info
	cbz	x0, LBB0_14
; %bb.8:
	mov	x21, x0
	ldr	x19, [x0, #32]
	str	x0, [x19, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #32]
	mov	x0, x20
	bl	_pcim_iomap_table
	ldr	x8, [x0]
	str	x8, [x19]
	cbz	x8, LBB0_15
; %bb.9:
	str	x20, [x19, #24]
Lloh16:
	adrp	x24, _OCX_INTS@GOTPAGE
Lloh17:
	ldr	x24, [x24, _OCX_INTS@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	x1, [x19, #16]
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x8, #0
	add	x9, x1, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stur	w8, [x9, #-8]
	str	xzr, [x9], #16
	add	x8, x8, #1
	ldrsw	x2, [x24]
	cmp	x8, x2
	b.lt	LBB0_11
LBB0_12:
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pci_enable_msix_exact
	cbz	w0, LBB0_16
; %bb.13:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_22
LBB0_14:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_dev_err
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_5
LBB0_15:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_dev_err
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_23
LBB0_16:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.17:
	mov	x25, #0
	mov	x26, #0
Lloh30:
	adrp	x27, _thunderx_ocx_com_threaded_isr@GOTPAGE
Lloh31:
	ldr	x27, [x27, _thunderx_ocx_com_threaded_isr@GOTPAGEOFF]
Lloh32:
	adrp	x28, _thunderx_ocx_lnk_threaded_isr@GOTPAGE
Lloh33:
	ldr	x28, [x28, _thunderx_ocx_lnk_threaded_isr@GOTPAGEOFF]
Lloh34:
	adrp	x23, l_.str.7@PAGE
Lloh35:
	add	x23, x23, l_.str.7@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x6, x8, x25
	ldr	x1, [x6, #8]
	cmp	x26, #3
Lloh36:
	adrp	x8, _thunderx_ocx_com_isr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _thunderx_ocx_com_isr@GOTPAGEOFF]
Lloh38:
	adrp	x9, _thunderx_ocx_lnk_isr@GOTPAGE
Lloh39:
	ldr	x9, [x9, _thunderx_ocx_lnk_isr@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	csel	x8, x27, x28, eq
	ldr	w3, [x8]
	mov	x0, x20
	mov	w4, #0
	mov	x5, x23
	bl	_devm_request_threaded_irq
	cbnz	w0, LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #16
	cmp	x26, x8
	b.lt	LBB0_18
LBB0_20:
	str	x20, [x21, #24]
	mov	x0, x20
	bl	_dev_name
	str	w0, [x21, #16]
Lloh40:
	adrp	x8, l_.str.8@PAGE
Lloh41:
	add	x8, x8, l_.str.8@PAGEOFF
	stp	x8, x8, [x21]
	mov	x0, x21
	bl	_edac_device_add_device
	cbz	w0, LBB0_25
; %bb.21:
	mov	x22, x0
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
LBB0_22:
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
LBB0_23:
	mov	x0, x21
	bl	_edac_device_free_ctl_info
	b	LBB0_5
LBB0_24:
	mov	x22, x0
	b	LBB0_23
LBB0_25:
Lloh44:
	adrp	x8, _CONFIG_EDAC_DEBUG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CONFIG_EDAC_DEBUG@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_28
; %bb.26:
	ldr	w0, [x20]
	bl	_edac_debugfs_create_dir
	mov	x22, x0
	str	w0, [x19, #8]
Lloh47:
	adrp	x24, _ocx_dfs_ents@GOTPAGE
Lloh48:
	ldr	x24, [x24, _ocx_dfs_ents@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	bl	_thunderx_create_debugfs_nodes
	mov	x22, x0
	ldr	w0, [x24]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.eq	LBB0_28
; %bb.27:
Lloh49:
	adrp	x8, l_.str.12@PAGE
Lloh50:
	add	x8, x8, l_.str.12@PAGEOFF
Lloh51:
	adrp	x9, l_.str.11@PAGE
Lloh52:
	add	x9, x9, l_.str.11@PAGEOFF
	cmp	w22, #0
	csel	x3, x9, x8, ge
Lloh53:
	adrp	x1, l_.str.10@PAGE
Lloh54:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_warn
LBB0_28:
	mov	x0, x20
	mov	x1, x21
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_thunderx_ocx_clearstats
Lloh55:
	adrp	x22, _OCX_RX_LANES@GOTPAGE
Lloh56:
	ldr	x22, [x22, _OCX_RX_LANES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.29:
	mov	w20, #0
Lloh57:
	adrp	x23, _OCX_LNE_INT_ENA_ALL@GOTPAGE
Lloh58:
	ldr	x23, [x23, _OCX_LNE_INT_ENA_ALL@GOTPAGEOFF]
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x23]
	ldr	x24, [x19]
	mov	x0, x20
	bl	_OCX_LNE_INT_EN
	add	x1, x0, x24
	mov	x0, x21
	bl	_writeq
	ldr	x21, [x19]
	mov	x0, x20
	bl	_OCX_LNE_INT
	add	x0, x0, x21
	bl	_readq
	mov	x21, x0
	ldr	x24, [x19]
	mov	x0, x20
	bl	_OCX_LNE_INT
	add	x1, x0, x24
	mov	x0, x21
	bl	_writeq
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_30
LBB0_31:
Lloh59:
	adrp	x22, _OCX_LINK_INTS@GOTPAGE
Lloh60:
	ldr	x22, [x22, _OCX_LINK_INTS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.32:
	mov	w20, #0
Lloh61:
	adrp	x23, _OCX_COM_LINKX_INT_ENA_ALL@GOTPAGE
Lloh62:
	ldr	x23, [x23, _OCX_COM_LINKX_INT_ENA_ALL@GOTPAGEOFF]
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19]
	mov	x0, x20
	bl	_OCX_COM_LINKX_INT
	add	x0, x0, x21
	bl	_readq
	mov	x21, x0
	ldr	x24, [x19]
	mov	x0, x20
	bl	_OCX_COM_LINKX_INT
	add	x1, x0, x24
	mov	x0, x21
	bl	_writeq
	ldr	w21, [x23]
	ldr	x24, [x19]
	mov	x0, x20
	bl	_OCX_COM_LINKX_INT_ENA_W1S
	add	x1, x0, x24
	mov	x0, x21
	bl	_writeq
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_33
LBB0_34:
	ldr	x8, [x19]
Lloh63:
	adrp	x20, _OCX_COM_INT@GOTPAGE
Lloh64:
	ldr	x20, [x20, _OCX_COM_INT@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readq
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeq
Lloh65:
	adrp	x8, _OCX_COM_INT_ENA_ALL@GOTPAGE
Lloh66:
	ldr	x8, [x8, _OCX_COM_INT_ENA_ALL@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh68:
	adrp	x9, _OCX_COM_INT_ENA_W1S@GOTPAGE
Lloh69:
	ldr	x9, [x9, _OCX_COM_INT_ENA_W1S@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeq
	mov	w22, #0
	b	LBB0_5
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot enable PCI device: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"thunderx_ocx"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot map PCI resources: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"OCX%d"

l_.str.4:                               ; @.str.4
	.asciz	"CCPI"

l_.str.5:                               ; @.str.5
	.asciz	"Cannot allocate EDAC device: %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_OCX_INTS,4,2                   ; @OCX_INTS
l_.str.6:                               ; @.str.6
	.asciz	"Cannot enable interrupt: %d\n"

	.comm	_thunderx_ocx_com_isr,4,2       ; @thunderx_ocx_com_isr
	.comm	_thunderx_ocx_lnk_isr,4,2       ; @thunderx_ocx_lnk_isr
	.comm	_thunderx_ocx_com_threaded_isr,4,2 ; @thunderx_ocx_com_threaded_isr
	.comm	_thunderx_ocx_lnk_threaded_isr,4,2 ; @thunderx_ocx_lnk_threaded_isr
l_.str.7:                               ; @.str.7
	.asciz	"[EDAC] ThunderX OCX"

l_.str.8:                               ; @.str.8
	.asciz	"thunderx-ocx"

l_.str.9:                               ; @.str.9
	.asciz	"Cannot add EDAC device: %d\n"

	.comm	_CONFIG_EDAC_DEBUG,4,2          ; @CONFIG_EDAC_DEBUG
	.comm	_ocx_dfs_ents,4,2               ; @ocx_dfs_ents
l_.str.10:                              ; @.str.10
	.asciz	"Error creating debugfs entries: %d%s\n"

l_.str.11:                              ; @.str.11
	.asciz	" created"

l_.str.12:                              ; @.str.12
	.space	1

	.comm	_OCX_RX_LANES,4,2               ; @OCX_RX_LANES
	.comm	_OCX_LNE_INT_ENA_ALL,4,2        ; @OCX_LNE_INT_ENA_ALL
	.comm	_OCX_LINK_INTS,4,2              ; @OCX_LINK_INTS
	.comm	_OCX_COM_LINKX_INT_ENA_ALL,4,2  ; @OCX_COM_LINKX_INT_ENA_ALL
	.comm	_OCX_COM_INT,8,3                ; @OCX_COM_INT
	.comm	_OCX_COM_INT_ENA_ALL,4,2        ; @OCX_COM_INT_ENA_ALL
	.comm	_OCX_COM_INT_ENA_W1S,8,3        ; @OCX_COM_INT_ENA_W1S
	.no_dead_strip	_thunderx_ocx_probe
.subsections_via_symbols
