	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_alloc_afu                  ## -- Begin function cxl_alloc_afu
	.p2align	4, 0x90
_cxl_alloc_afu:                         ## @cxl_alloc_afu
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, 8(%rbx)
	addq	$4, %r15
	movq	%r15, 48(%rbx)
	movq	_cxl_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	%r14d, (%rbx)
	leaq	36(%rbx), %rdi
	callq	_idr_init
	leaq	32(%rbx), %rdi
	callq	_mutex_init
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$24, %rdi
	movl	$-1, %esi
	callq	_atomic_set
	movq	_CXL_PREFAULT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.comm	_CXL_PREFAULT_NONE,4,2          ## @CXL_PREFAULT_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_alloc_afu                  ; -- Begin function cxl_alloc_afu
	.p2align	2
_cxl_alloc_afu:                         ; @cxl_alloc_afu
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	x21, [x19, #8]
	add	x8, x21, #4
Lloh3:
	adrp	x9, _cxl_ops@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cxl_ops@GOTPAGEOFF]
	str	x8, [x19, #48]
Lloh5:
	ldr	x8, [x9]
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	w20, [x19]
	add	x0, x19, #36
	bl	_idr_init
	add	x0, x19, #32
	bl	_mutex_init
	add	x0, x19, #28
	bl	_spin_lock_init
	add	x0, x19, #24
	mov	w1, #-1
	bl	_atomic_set
Lloh6:
	adrp	x8, _CXL_PREFAULT_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CXL_PREFAULT_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
LBB0_2:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.comm	_CXL_PREFAULT_NONE,4,2          ; @CXL_PREFAULT_NONE
.subsections_via_symbols
