	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_alloc_adapter_nr
_cxl_alloc_adapter_nr:                  ## @cxl_alloc_adapter_nr
	.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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_idr_preload
	movq	_adapter_idr_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_cxl_adapter_idr@GOTPCREL(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_idr_preload_end
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movl	%ebx, (%r14)
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %r15d
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_adapter_idr_lock,4,2           ## @adapter_idr_lock
	.comm	_cxl_adapter_idr,4,2            ## @cxl_adapter_idr
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.no_dead_strip	_cxl_alloc_adapter_nr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_alloc_adapter_nr
_cxl_alloc_adapter_nr:                  ; @cxl_alloc_adapter_nr
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_idr_preload
Lloh3:
	adrp	x21, _adapter_idr_lock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _adapter_idr_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
Lloh5:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x0, _cxl_adapter_idr@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cxl_adapter_idr@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_idr_alloc
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock
	bl	_idr_preload_end
	tbnz	w20, #31, LBB0_2
; %bb.1:
	str	w20, [x19]
	mov	w20, #0
LBB0_2:
	mov	x0, x20
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_adapter_idr_lock,4,2           ; @adapter_idr_lock
	.comm	_cxl_adapter_idr,4,2            ; @cxl_adapter_idr
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.no_dead_strip	_cxl_alloc_adapter_nr
.subsections_via_symbols
