	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks_pcie_wr_other_conf
_ks_pcie_wr_other_conf:                 ## @ks_pcie_wr_other_conf
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_dw_pcie_from_pp
	movq	%rax, %rdi
	callq	_to_keystone_pcie
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_CFG_BUS
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_PCI_SLOT
	movl	%eax, %edi
	callq	_CFG_DEVICE
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_PCI_FUNC
	movl	%eax, %edi
	callq	_CFG_FUNC
	orl	%r13d, %eax
	orl	%r12d, %eax
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rbx), %rdx
	je	LBB0_2
## %bb.1:
	movq	_CFG_TYPE1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%ecx, %eax
	movq	_CFG_SETUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_ks_pcie_app_writel
	movslq	-44(%rbp), %rdi                 ## 4-byte Folded Reload
	addq	8(%rbx), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dw_pcie_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_TYPE1,4,2                  ## @CFG_TYPE1
	.comm	_CFG_SETUP,4,2                  ## @CFG_SETUP
	.no_dead_strip	_ks_pcie_wr_other_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks_pcie_wr_other_conf
_ks_pcie_wr_other_conf:                 ; @ks_pcie_wr_other_conf
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_to_dw_pcie_from_pp
	bl	_to_keystone_pcie
	mov	x25, x0
	ldr	w0, [x23, #8]
	bl	_CFG_BUS
	mov	x26, x0
	mov	x0, x22
	bl	_PCI_SLOT
	bl	_CFG_DEVICE
	orr	w26, w0, w26
	mov	x0, x22
	bl	_PCI_FUNC
	bl	_CFG_FUNC
	orr	w8, w26, w0
	ldr	x9, [x23]
	ldr	x9, [x9]
	ldr	x10, [x24]
Lloh0:
	adrp	x11, _CFG_TYPE1@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CFG_TYPE1@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, eq
	orr	w2, w8, w9
Lloh3:
	adrp	x8, _CFG_SETUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFG_SETUP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_ks_pcie_app_writel
	ldr	x8, [x24, #8]
	add	x0, x8, w21, sxtw
	mov	x1, x20
	mov	x2, x19
	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	_dw_pcie_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_TYPE1,4,2                  ; @CFG_TYPE1
	.comm	_CFG_SETUP,4,2                  ; @CFG_SETUP
	.no_dead_strip	_ks_pcie_wr_other_conf
.subsections_via_symbols
