	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thunderx_ocx_remove
_thunderx_ocx_remove:                   ## @thunderx_ocx_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_pci_get_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	_OCX_COM_INT_ENA_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OCX_COM_INT_ENA_W1C@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writeq
	movq	_OCX_INTS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_OCX_COM_LINKX_INT_ENA_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	8(%r14), %r13
	movl	%ebx, %edi
	callq	_OCX_COM_LINKX_INT_ENA_W1C
	addq	%rax, %r13
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_writeq
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	movl	(%r14), %edi
	callq	_edac_debugfs_remove_recursive
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_edac_device_del_device
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_device_free_ctl_info      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OCX_COM_INT_ENA_ALL,4,2        ## @OCX_COM_INT_ENA_ALL
	.comm	_OCX_COM_INT_ENA_W1C,8,3        ## @OCX_COM_INT_ENA_W1C
	.comm	_OCX_INTS,4,2                   ## @OCX_INTS
	.comm	_OCX_COM_LINKX_INT_ENA_ALL,4,2  ## @OCX_COM_LINKX_INT_ENA_ALL
	.no_dead_strip	_thunderx_ocx_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thunderx_ocx_remove
_thunderx_ocx_remove:                   ; @thunderx_ocx_remove
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _OCX_COM_INT_ENA_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCX_COM_INT_ENA_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x23, #8]
Lloh3:
	adrp	x9, _OCX_COM_INT_ENA_W1C@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCX_COM_INT_ENA_W1C@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeq
Lloh6:
	adrp	x24, _OCX_INTS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _OCX_INTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, #0
Lloh8:
	adrp	x25, _OCX_COM_LINKX_INT_ENA_ALL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _OCX_COM_LINKX_INT_ENA_ALL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x25]
	ldr	x26, [x23, #8]
	mov	x0, x21
	bl	_OCX_COM_LINKX_INT_ENA_W1C
	add	x1, x0, x26
	mov	x0, x22
	bl	_writeq
	add	w21, w21, #1
	ldr	w8, [x24]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	w0, [x23]
	bl	_edac_debugfs_remove_recursive
	mov	x0, x19
	bl	_edac_device_del_device
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_edac_device_free_ctl_info
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OCX_COM_INT_ENA_ALL,4,2        ; @OCX_COM_INT_ENA_ALL
	.comm	_OCX_COM_INT_ENA_W1C,8,3        ; @OCX_COM_INT_ENA_W1C
	.comm	_OCX_INTS,4,2                   ; @OCX_INTS
	.comm	_OCX_COM_LINKX_INT_ENA_ALL,4,2  ; @OCX_COM_LINKX_INT_ENA_ALL
	.no_dead_strip	_thunderx_ocx_remove
.subsections_via_symbols
