	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_pcie_am654_ep_init
_ks_pcie_am654_ep_init:                 ## @ks_pcie_am654_ep_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_dw_pcie_from_ep
	movq	%rax, %r14
	movq	_AM654_WIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_PCI_BASE_ADDRESS_SPACE_MEMORY@GOTPCREL(%rip), %rax
	movq	_PCI_BASE_ADDRESS_MEM_TYPE_32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_PCI_BASE_ADDRESS_0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_APP_ADDR_SPACE_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	movq	%r14, %rdi
	callq	_dw_pcie_writel_dbi2
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dw_pcie_writel_dbi             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AM654_WIN_SIZE,4,2             ## @AM654_WIN_SIZE
	.comm	_PCI_BASE_ADDRESS_SPACE_MEMORY,4,2 ## @PCI_BASE_ADDRESS_SPACE_MEMORY
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_32,4,2 ## @PCI_BASE_ADDRESS_MEM_TYPE_32
	.comm	_PCI_BASE_ADDRESS_0,4,2         ## @PCI_BASE_ADDRESS_0
	.comm	_APP_ADDR_SPACE_0,8,3           ## @APP_ADDR_SPACE_0
	.no_dead_strip	_ks_pcie_am654_ep_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_pcie_am654_ep_init
_ks_pcie_am654_ep_init:                 ; @ks_pcie_am654_ep_init
	.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	x19, x0
	bl	_to_dw_pcie_from_ep
	mov	x20, x0
Lloh0:
	adrp	x8, _AM654_WIN_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AM654_WIN_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh3:
	adrp	x8, _PCI_BASE_ADDRESS_SPACE_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_SPACE_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PCI_BASE_ADDRESS_MEM_TYPE_32@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_MEM_TYPE_32@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x21, _PCI_BASE_ADDRESS_0@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PCI_BASE_ADDRESS_0@GOTPAGEOFF]
	orr	w19, w9, w8
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _APP_ADDR_SPACE_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _APP_ADDR_SPACE_0@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sub	x2, x8, #1
	bl	_dw_pcie_writel_dbi2
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, 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	_dw_pcie_writel_dbi
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AM654_WIN_SIZE,4,2             ; @AM654_WIN_SIZE
	.comm	_PCI_BASE_ADDRESS_SPACE_MEMORY,4,2 ; @PCI_BASE_ADDRESS_SPACE_MEMORY
	.comm	_PCI_BASE_ADDRESS_MEM_TYPE_32,4,2 ; @PCI_BASE_ADDRESS_MEM_TYPE_32
	.comm	_PCI_BASE_ADDRESS_0,4,2         ; @PCI_BASE_ADDRESS_0
	.comm	_APP_ADDR_SPACE_0,8,3           ; @APP_ADDR_SPACE_0
	.no_dead_strip	_ks_pcie_am654_ep_init
.subsections_via_symbols
