	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_get_devices               ## -- Begin function rdma_get_devices
	.p2align	4, 0x90
_rdma_get_devices:                      ## @rdma_get_devices
	.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
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ucma_init_all
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	movq	_cma_dev_cnt@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	8(,%rax,8), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_4
## %bb.5:
	leaq	-1(%r8), %rdx
	movl	%r8d, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	xorl	%r8d, %r8d
	jmp	LBB0_12
LBB0_7:
	movl	%r8d, %esi
	andl	$-4, %esi
	xorl	%edx, %edx
	movq	_cma_dev_array@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	movq	(%rax,%rdx,8), %rax
	movq	%rax, (%rbx,%rdx,8)
	movq	(%rdi), %rax
	movq	8(%rax,%rdx,8), %rax
	movq	%rax, 8(%rbx,%rdx,8)
	movq	(%rdi), %rax
	movq	16(%rax,%rdx,8), %rax
	movq	%rax, 16(%rbx,%rdx,8)
	movq	(%rdi), %rax
	movq	24(%rax,%rdx,8), %rax
	movq	%rax, 24(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_8
LBB0_9:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:
	movq	_cma_dev_array@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rax
	movq	(%rax,%rdx,8), %rax
	movq	%rax, (%rbx,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_11
LBB0_12:
	movq	$0, (%rbx,%r8,8)
LBB0_13:
	testq	%r14, %r14
	je	LBB0_17
## %bb.14:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movq	_cma_dev_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	movl	%eax, (%r14)
LBB0_17:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cma_dev_cnt,4,2                ## @cma_dev_cnt
	.comm	_cma_dev_array,8,3              ## @cma_dev_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_get_devices               ; -- Begin function rdma_get_devices
	.p2align	2
_rdma_get_devices:                      ; @rdma_get_devices
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ucma_init_all
Lloh0:
	adrp	x20, _cma_dev_cnt@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cma_dev_cnt@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_8
LBB0_2:
	ldr	w8, [x20]
	lsl	w8, w8, #3
	add	w0, w8, #8
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x9, #0
	lsl	x10, x8, #3
Lloh2:
	adrp	x11, _cma_dev_array@GOTPAGE
Lloh3:
	ldr	x11, [x11, _cma_dev_array@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	ldr	x12, [x12, x9]
	str	x12, [x0, x9]
	add	x9, x9, #8
	cmp	x10, x9
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	str	xzr, [x0, x8, lsl #3]
LBB0_8:
	cbz	x19, LBB0_10
; %bb.9:
	ldr	w8, [x20]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_cma_dev_cnt,4,2                ; @cma_dev_cnt
	.comm	_cma_dev_array,8,3              ; @cma_dev_array
.subsections_via_symbols
