	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_pci_init_adapter
_cxl_pci_init_adapter:                  ## @cxl_pci_init_adapter
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cxl_alloc_adapter
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movl	%eax, 12(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_set_sl_ops
	movq	$1, (%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_cxl_configure_adapter
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pci_disable_device
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_cxl_release_adapter
	movl	%r15d, %edi
	jmp	LBB0_2
LBB0_8:
	movq	%r12, %rdi
	callq	_cxl_debugfs_adapter_add
	movq	%r12, %rdi
	callq	_cxl_register_adapter
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_cxl_sysfs_adapter_add
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_cxl_debugfs_adapter_remove
	movq	%r12, %rdi
	callq	_cxl_deconfigure_adapter
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_device_unregister
	movl	%r14d, %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_11:
	movq	%r12, %rdi
	callq	_cxl_adapter_context_unlock
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_cxl_pci_init_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cxl_pci_init_adapter
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cxl_pci_init_adapter:                  ; @cxl_pci_init_adapter
	.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	x20, x0
	bl	_cxl_alloc_adapter
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	w0, [x19, #12]
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_set_sl_ops
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	x0, x19
	mov	x1, x20
	bl	_cxl_configure_adapter
	cbz	w0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_pci_disable_device
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	add	x0, x19, #8
	bl	_cxl_release_adapter
	mov	x0, x21
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_cxl_debugfs_adapter_add
	mov	x0, x19
	bl	_cxl_register_adapter
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_cxl_sysfs_adapter_add
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_cxl_debugfs_adapter_remove
	mov	x0, x19
	bl	_cxl_deconfigure_adapter
	add	x0, x19, #8
	bl	_device_unregister
	mov	x0, x20
LBB0_10:
	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	_ERR_PTR
LBB0_11:
	mov	x0, x19
	bl	_cxl_adapter_context_unlock
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_cxl_pci_init_adapter
.subsections_via_symbols
