	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_pcie_read_config
_cxl_pcie_read_config:                  ## @cxl_pcie_read_config
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_pci_bus_to_afu
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_cxl_afu_configured_get
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_cxl_pcie_config_info
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	cmpl	$4, %r12d
	je	LBB0_8
## %bb.4:
	cmpl	$2, %r12d
	je	LBB0_9
## %bb.5:
	cmpl	$1, %r12d
	jne	LBB0_11
## %bb.6:
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-48(%rbp), %esi
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	*(%rax)
	jmp	LBB0_10
LBB0_8:
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-48(%rbp), %esi
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	*16(%rax)
	jmp	LBB0_10
LBB0_9:
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-48(%rbp), %esi
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	*8(%rax)
LBB0_10:
	movl	%eax, %r13d
	movl	-44(%rbp), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_11:
	movl	$1, %edi
	callq	_WARN_ON
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r14, %rdi
	callq	_cxl_afu_configured_put
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.13:
	movq	_PCIBIOS_SUCCESSFUL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_PCIBIOS_DEVICE_NOT_FOUND@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIBIOS_DEVICE_NOT_FOUND,4,2   ## @PCIBIOS_DEVICE_NOT_FOUND
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ## @PCIBIOS_SUCCESSFUL
	.no_dead_strip	_cxl_pcie_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_pcie_read_config
_cxl_pcie_read_config:                  ; @cxl_pcie_read_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	bl	_pci_bus_to_afu
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_cxl_afu_configured_get
	cbz	w0, LBB0_7
; %bb.2:
	add	x3, sp, #12
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	bl	_cxl_pcie_config_info
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.3:
	cmp	w22, #4
	b.eq	LBB0_8
; %bb.4:
	cmp	w22, #2
	b.eq	LBB0_9
; %bb.5:
	cmp	w22, #1
	b.ne	LBB0_11
; %bb.6:
Lloh0:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	b	LBB0_10
LBB0_7:
Lloh3:
	adrp	x8, _PCIBIOS_DEVICE_NOT_FOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIBIOS_DEVICE_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh5:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _cxl_ops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cxl_ops@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
LBB0_10:
	ldr	w1, [sp, #12]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x21
	blr	x8
	mov	x23, x0
	ldr	w8, [sp, #8]
	str	w8, [x20]
	b	LBB0_12
LBB0_11:
	mov	w0, #1
	bl	_WARN_ON
	mov	w23, #0
LBB0_12:
	mov	x0, x19
	bl	_cxl_afu_configured_put
Lloh11:
	adrp	x8, _PCIBIOS_DEVICE_NOT_FOUND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCIBIOS_DEVICE_NOT_FOUND@GOTPAGEOFF]
Lloh13:
	adrp	x9, _PCIBIOS_SUCCESSFUL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PCIBIOS_SUCCESSFUL@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x9, x8, eq
LBB0_13:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIBIOS_DEVICE_NOT_FOUND,4,2   ; @PCIBIOS_DEVICE_NOT_FOUND
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.comm	_PCIBIOS_SUCCESSFUL,4,2         ; @PCIBIOS_SUCCESSFUL
	.no_dead_strip	_cxl_pcie_read_config
.subsections_via_symbols
