	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_pcie_rd_other_conf
_rockchip_pcie_rd_other_conf:           ## @rockchip_pcie_rd_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
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %r15d
	movq	%rdx, %rdi
	callq	_PCI_SLOT
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_PCI_FUNC
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_PCIE_ECAM_ADDR
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_IS_ALIGNED
	movq	_PCIBIOS_BAD_REGISTER_NUMBER@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.4:
	movq	_AXI_WRAPPER_TYPE0_CFG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_AXI_WRAPPER_TYPE1_CFG@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rockchip_pcie_cfg_configuration_accesses
	cmpl	$1, %ebx
	je	LBB0_10
## %bb.6:
	cmpl	$2, %ebx
	je	LBB0_9
## %bb.7:
	cmpl	$4, %ebx
	jne	LBB0_1
## %bb.8:
	addq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_readl
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	addq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_readb
	jmp	LBB0_11
LBB0_9:
	addq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_readw
LBB0_11:
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %r14
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	(%r14), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIBIOS_BAD_REGISTER_NUMBER,4,2 ## @PCIBIOS_BAD_REGISTER_NUMBER
	.comm	_AXI_WRAPPER_TYPE0_CFG,4,2      ## @AXI_WRAPPER_TYPE0_CFG
	.comm	_AXI_WRAPPER_TYPE1_CFG,4,2      ## @AXI_WRAPPER_TYPE1_CFG
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ## @PCIBIOS_SUCCESSFUL
	.no_dead_strip	_rockchip_pcie_rd_other_conf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_pcie_rd_other_conf
_rockchip_pcie_rd_other_conf:           ; @rockchip_pcie_rd_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	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w25, [x1, #8]
	mov	x0, x2
	bl	_PCI_SLOT
	mov	x26, x0
	mov	x0, x24
	bl	_PCI_FUNC
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	mov	x3, x22
	bl	_PCIE_ECAM_ADDR
	mov	x22, x0
	mov	x1, x21
	bl	_IS_ALIGNED
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AXI_WRAPPER_TYPE0_CFG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AXI_WRAPPER_TYPE0_CFG@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh2:
	adrp	x11, _AXI_WRAPPER_TYPE1_CFG@GOTPAGE
Lloh3:
	ldr	x11, [x11, _AXI_WRAPPER_TYPE1_CFG@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rockchip_pcie_cfg_configuration_accesses
	cmp	w21, #1
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #2
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, #4
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_readl
	b	LBB0_8
LBB0_5:
	mov	x0, #0
Lloh4:
	adrp	x8, _PCIBIOS_BAD_REGISTER_NUMBER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PCIBIOS_BAD_REGISTER_NUMBER@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_readb
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_readw
LBB0_8:
Lloh6:
	adrp	x8, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
LBB0_9:
	str	x0, [x19]
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIBIOS_BAD_REGISTER_NUMBER,4,2 ; @PCIBIOS_BAD_REGISTER_NUMBER
	.comm	_AXI_WRAPPER_TYPE0_CFG,4,2      ; @AXI_WRAPPER_TYPE0_CFG
	.comm	_AXI_WRAPPER_TYPE1_CFG,4,2      ; @AXI_WRAPPER_TYPE1_CFG
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ; @PCIBIOS_SUCCESSFUL
	.no_dead_strip	_rockchip_pcie_rd_other_conf
.subsections_via_symbols
