	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8131_pcix_exit
_amd8131_pcix_exit:                     ## @amd8131_pcix_exit
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	_REG_INT_CTLR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_edac_pci_read_dword
	movq	_INT_CTLR_PERR@GOTPCREL(%rip), %rax
	movq	_INT_CTLR_SERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_INT_CTLR_DTSE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
	movq	_REG_STS_CMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_edac_pci_read_dword
	movq	_STS_CMD_SERREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
	movq	_REG_LNK_CTRL_A@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_edac_pci_read_dword
	movq	_LNK_CTRL_CRCFEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
	movq	_REG_LNK_CTRL_B@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_edac_pci_read_dword
	movl	(%r12), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INT_CTLR,4,2               ## @REG_INT_CTLR
	.comm	_INT_CTLR_PERR,4,2              ## @INT_CTLR_PERR
	.comm	_INT_CTLR_SERR,4,2              ## @INT_CTLR_SERR
	.comm	_INT_CTLR_DTSE,4,2              ## @INT_CTLR_DTSE
	.comm	_REG_STS_CMD,4,2                ## @REG_STS_CMD
	.comm	_STS_CMD_SERREN,4,2             ## @STS_CMD_SERREN
	.comm	_REG_LNK_CTRL_A,4,2             ## @REG_LNK_CTRL_A
	.comm	_LNK_CTRL_CRCFEN,4,2            ## @LNK_CTRL_CRCFEN
	.comm	_REG_LNK_CTRL_B,4,2             ## @REG_LNK_CTRL_B
	.no_dead_strip	_amd8131_pcix_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8131_pcix_exit
_amd8131_pcix_exit:                     ; @amd8131_pcix_exit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x20, _REG_INT_CTLR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_INT_CTLR@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
Lloh2:
	adrp	x8, _INT_CTLR_PERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_CTLR_PERR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _INT_CTLR_SERR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INT_CTLR_SERR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _INT_CTLR_DTSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INT_CTLR_DTSE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_edac_pci_write_dword
Lloh11:
	adrp	x20, _REG_STS_CMD@GOTPAGE
Lloh12:
	ldr	x20, [x20, _REG_STS_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
Lloh13:
	adrp	x8, _STS_CMD_SERREN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STS_CMD_SERREN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_edac_pci_write_dword
Lloh16:
	adrp	x20, _REG_LNK_CTRL_A@GOTPAGE
Lloh17:
	ldr	x20, [x20, _REG_LNK_CTRL_A@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
Lloh18:
	adrp	x21, _LNK_CTRL_CRCFEN@GOTPAGE
Lloh19:
	ldr	x21, [x21, _LNK_CTRL_CRCFEN@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_edac_pci_write_dword
Lloh20:
	adrp	x20, _REG_LNK_CTRL_B@GOTPAGE
Lloh21:
	ldr	x20, [x20, _REG_LNK_CTRL_B@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_edac_pci_write_dword
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INT_CTLR,4,2               ; @REG_INT_CTLR
	.comm	_INT_CTLR_PERR,4,2              ; @INT_CTLR_PERR
	.comm	_INT_CTLR_SERR,4,2              ; @INT_CTLR_SERR
	.comm	_INT_CTLR_DTSE,4,2              ; @INT_CTLR_DTSE
	.comm	_REG_STS_CMD,4,2                ; @REG_STS_CMD
	.comm	_STS_CMD_SERREN,4,2             ; @STS_CMD_SERREN
	.comm	_REG_LNK_CTRL_A,4,2             ; @REG_LNK_CTRL_A
	.comm	_LNK_CTRL_CRCFEN,4,2            ; @LNK_CTRL_CRCFEN
	.comm	_REG_LNK_CTRL_B,4,2             ; @REG_LNK_CTRL_B
	.no_dead_strip	_amd8131_pcix_exit
.subsections_via_symbols
