	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd8111_pci_bridge_init
_amd8111_pci_bridge_init:               ## @amd8111_pci_bridge_init
	.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	_REG_PCI_STSCMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_edac_pci_read_dword
	movl	-44(%rbp), %edx
	movq	_PCI_STSCMD_CLEAR_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
LBB0_2:
	movq	_REG_HT_LINK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_edac_pci_read_dword
	movl	-44(%rbp), %edx
	movq	_HT_LINK_CLEAR_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
LBB0_4:
	movq	_REG_MEM_LIM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_edac_pci_read_dword
	movl	-44(%rbp), %edx
	movq	_MEM_LIMIT_CLEAR_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
LBB0_6:
	movq	_REG_PCI_INTBRG_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_edac_pci_read_dword
	movl	-44(%rbp), %edx
	movq	_PCI_INTBRG_CTRL_CLEAR_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
LBB0_8:
	movq	_edac_op_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EDAC_OPSTATE_POLL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	(%r15), %esi
	leaq	-44(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_edac_pci_read_dword
	movq	_PCI_STSCMD_SERREN@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_edac_pci_read_dword
	movq	_HT_LINK_CRCFEN@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_edac_pci_read_dword
	movq	_PCI_INTBRG_CTRL_POLL_MASK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_edac_pci_write_dword
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PCI_STSCMD,4,2             ## @REG_PCI_STSCMD
	.comm	_PCI_STSCMD_CLEAR_MASK,4,2      ## @PCI_STSCMD_CLEAR_MASK
	.comm	_REG_HT_LINK,4,2                ## @REG_HT_LINK
	.comm	_HT_LINK_CLEAR_MASK,4,2         ## @HT_LINK_CLEAR_MASK
	.comm	_REG_MEM_LIM,4,2                ## @REG_MEM_LIM
	.comm	_MEM_LIMIT_CLEAR_MASK,4,2       ## @MEM_LIMIT_CLEAR_MASK
	.comm	_REG_PCI_INTBRG_CTRL,4,2        ## @REG_PCI_INTBRG_CTRL
	.comm	_PCI_INTBRG_CTRL_CLEAR_MASK,4,2 ## @PCI_INTBRG_CTRL_CLEAR_MASK
	.comm	_edac_op_state,8,3              ## @edac_op_state
	.comm	_EDAC_OPSTATE_POLL,8,3          ## @EDAC_OPSTATE_POLL
	.comm	_PCI_STSCMD_SERREN,4,2          ## @PCI_STSCMD_SERREN
	.comm	_HT_LINK_CRCFEN,4,2             ## @HT_LINK_CRCFEN
	.comm	_PCI_INTBRG_CTRL_POLL_MASK,4,2  ## @PCI_INTBRG_CTRL_POLL_MASK
	.no_dead_strip	_amd8111_pci_bridge_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd8111_pci_bridge_init
_amd8111_pci_bridge_init:               ; @amd8111_pci_bridge_init
	.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_PCI_STSCMD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_PCI_STSCMD@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
	ldr	w2, [sp, #12]
Lloh2:
	adrp	x8, _PCI_STSCMD_CLEAR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_STSCMD_CLEAR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_edac_pci_write_dword
LBB0_2:
Lloh5:
	adrp	x21, _REG_HT_LINK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_HT_LINK@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
	ldr	w2, [sp, #12]
Lloh7:
	adrp	x8, _HT_LINK_CLEAR_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HT_LINK_CLEAR_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_edac_pci_write_dword
LBB0_4:
Lloh10:
	adrp	x22, _REG_MEM_LIM@GOTPAGE
Lloh11:
	ldr	x22, [x22, _REG_MEM_LIM@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
	ldr	w2, [sp, #12]
Lloh12:
	adrp	x8, _MEM_LIMIT_CLEAR_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MEM_LIMIT_CLEAR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_edac_pci_write_dword
LBB0_6:
Lloh15:
	adrp	x22, _REG_PCI_INTBRG_CTRL@GOTPAGE
Lloh16:
	ldr	x22, [x22, _REG_PCI_INTBRG_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
	ldr	w2, [sp, #12]
Lloh17:
	adrp	x8, _PCI_INTBRG_CTRL_CLEAR_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCI_INTBRG_CTRL_CLEAR_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_edac_pci_write_dword
LBB0_8:
Lloh20:
	adrp	x8, _edac_op_state@GOTPAGE
Lloh21:
	ldr	x8, [x8, _edac_op_state@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _EDAC_OPSTATE_POLL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EDAC_OPSTATE_POLL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
Lloh26:
	adrp	x8, _PCI_STSCMD_SERREN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PCI_STSCMD_SERREN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_edac_pci_write_dword
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
Lloh29:
	adrp	x8, _HT_LINK_CRCFEN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HT_LINK_CRCFEN@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_edac_pci_write_dword
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_edac_pci_read_dword
Lloh32:
	adrp	x8, _PCI_INTBRG_CTRL_POLL_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCI_INTBRG_CTRL_POLL_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_edac_pci_write_dword
LBB0_10:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PCI_STSCMD,4,2             ; @REG_PCI_STSCMD
	.comm	_PCI_STSCMD_CLEAR_MASK,4,2      ; @PCI_STSCMD_CLEAR_MASK
	.comm	_REG_HT_LINK,4,2                ; @REG_HT_LINK
	.comm	_HT_LINK_CLEAR_MASK,4,2         ; @HT_LINK_CLEAR_MASK
	.comm	_REG_MEM_LIM,4,2                ; @REG_MEM_LIM
	.comm	_MEM_LIMIT_CLEAR_MASK,4,2       ; @MEM_LIMIT_CLEAR_MASK
	.comm	_REG_PCI_INTBRG_CTRL,4,2        ; @REG_PCI_INTBRG_CTRL
	.comm	_PCI_INTBRG_CTRL_CLEAR_MASK,4,2 ; @PCI_INTBRG_CTRL_CLEAR_MASK
	.comm	_edac_op_state,8,3              ; @edac_op_state
	.comm	_EDAC_OPSTATE_POLL,8,3          ; @EDAC_OPSTATE_POLL
	.comm	_PCI_STSCMD_SERREN,4,2          ; @PCI_STSCMD_SERREN
	.comm	_HT_LINK_CRCFEN,4,2             ; @HT_LINK_CRCFEN
	.comm	_PCI_INTBRG_CTRL_POLL_MASK,4,2  ; @PCI_INTBRG_CTRL_POLL_MASK
	.no_dead_strip	_amd8111_pci_bridge_init
.subsections_via_symbols
