	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thunderx_l2c_remove
_thunderx_l2c_remove:                   ## @thunderx_l2c_remove
	.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, %rbx
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %r15
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.thunderx_l2c_remove(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.thunderx_l2c_remove.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rcx), %edi
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writeq
LBB0_2:
	movl	(%r15), %edi
	callq	_edac_debugfs_remove_recursive
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_edac_device_del_device
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_device_free_ctl_info      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_L2C_TAD_INT_ENA_ALL,4,2        ## @L2C_TAD_INT_ENA_ALL
	.comm	_L2C_TAD_INT_ENA_W1C,8,3        ## @L2C_TAD_INT_ENA_W1C
	.comm	_L2C_CBC_INT_ENA_ALL,4,2        ## @L2C_CBC_INT_ENA_ALL
	.comm	_L2C_CBC_INT_ENA_W1C,8,3        ## @L2C_CBC_INT_ENA_W1C
	.comm	_L2C_MCI_INT_ENA_ALL,4,2        ## @L2C_MCI_INT_ENA_ALL
	.comm	_L2C_MCI_INT_ENA_W1C,8,3        ## @L2C_MCI_INT_ENA_W1C
	.no_dead_strip	_thunderx_l2c_remove
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.thunderx_l2c_remove
l_switch.table.thunderx_l2c_remove:
	.quad	_L2C_TAD_INT_ENA_ALL
	.quad	_L2C_MCI_INT_ENA_ALL
	.quad	_L2C_CBC_INT_ENA_ALL

	.p2align	3                               ## @switch.table.thunderx_l2c_remove.1
l_switch.table.thunderx_l2c_remove.1:
	.quad	_L2C_TAD_INT_ENA_W1C
	.quad	_L2C_MCI_INT_ENA_W1C
	.quad	_L2C_CBC_INT_ENA_W1C

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thunderx_l2c_remove
_thunderx_l2c_remove:                   ; @thunderx_l2c_remove
	.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	x21, [x0]
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.thunderx_l2c_remove@PAGE
Lloh1:
	add	x9, x9, l_switch.table.thunderx_l2c_remove@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.thunderx_l2c_remove.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.thunderx_l2c_remove.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w0, [x9]
	ldr	x9, [x21, #8]
	ldr	x8, [x8]
	add	x1, x8, x9
	bl	_writeq
LBB0_2:
	ldr	w0, [x21]
	bl	_edac_debugfs_remove_recursive
	add	x0, x20, #4
	bl	_edac_device_del_device
	mov	x0, x19
	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	_edac_device_free_ctl_info
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_L2C_TAD_INT_ENA_ALL,4,2        ; @L2C_TAD_INT_ENA_ALL
	.comm	_L2C_TAD_INT_ENA_W1C,8,3        ; @L2C_TAD_INT_ENA_W1C
	.comm	_L2C_CBC_INT_ENA_ALL,4,2        ; @L2C_CBC_INT_ENA_ALL
	.comm	_L2C_CBC_INT_ENA_W1C,8,3        ; @L2C_CBC_INT_ENA_W1C
	.comm	_L2C_MCI_INT_ENA_ALL,4,2        ; @L2C_MCI_INT_ENA_ALL
	.comm	_L2C_MCI_INT_ENA_W1C,8,3        ; @L2C_MCI_INT_ENA_W1C
	.no_dead_strip	_thunderx_l2c_remove
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.thunderx_l2c_remove
l_switch.table.thunderx_l2c_remove:
	.quad	_L2C_TAD_INT_ENA_ALL
	.quad	_L2C_MCI_INT_ENA_ALL
	.quad	_L2C_CBC_INT_ENA_ALL

	.p2align	3                               ; @switch.table.thunderx_l2c_remove.1
l_switch.table.thunderx_l2c_remove.1:
	.quad	_L2C_TAD_INT_ENA_W1C
	.quad	_L2C_MCI_INT_ENA_W1C
	.quad	_L2C_CBC_INT_ENA_W1C

.subsections_via_symbols
