	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucma_init                      ## -- Begin function ucma_init
	.p2align	4, 0x90
_ucma_init:                             ## @ucma_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cma_dev_cnt@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	cmpl	$0, (%r15)
	jne	LBB0_17
## %bb.1:
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	cmpl	$0, (%r15)
	jne	LBB0_9
## %bb.2:
	movq	_idm_lock@GOTPCREL(%rip), %rdi
	callq	_fastlock_init
	xorl	%eax, %eax
	callq	_check_abi_version
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movq	_idm_lock@GOTPCREL(%rip), %rdi
	callq	_fastlock_destroy
LBB0_9:
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-44(%rbp), %rdi
	callq	_ibv_get_device_list
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	-44(%rbp), %r12d
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.10:
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	_cma_dev_array@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	callq	_ibv_get_device_guid
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx)
	movq	8(%r14,%rbx,2), %rdi
	addq	$4, %rbx
	testq	%rdi, %rdi
	jne	LBB0_14
## %bb.15:
	movl	-44(%rbp), %r12d
LBB0_16:
	movl	%r12d, (%r15)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ucma_set_af_ib_support
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	%r14, %rdi
	callq	_ibv_free_device_list
	jmp	LBB0_17
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_ERR
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ibv_free_device_list
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_cma_dev_cnt,4,2                ## @cma_dev_cnt
	.comm	_mut,4,2                        ## @mut
	.comm	_idm_lock,4,2                   ## @idm_lock
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_cma_dev_array,8,3              ## @cma_dev_array
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucma_init                      ; -- Begin function ucma_init
	.p2align	2
_ucma_init:                             ; @ucma_init
	.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
Lloh0:
	adrp	x21, _cma_dev_cnt@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cma_dev_cnt@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x0, _mut@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.2:
Lloh4:
	adrp	x0, _mut@GOTPAGE
Lloh5:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
Lloh6:
	adrp	x0, _idm_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _idm_lock@GOTPAGEOFF]
	bl	_fastlock_init
	bl	_check_abi_version
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_6:
Lloh8:
	adrp	x0, _idm_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _idm_lock@GOTPAGEOFF]
	bl	_fastlock_destroy
Lloh10:
	adrp	x0, _mut@GOTPAGE
Lloh11:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	b	LBB0_4
LBB0_7:
	add	x0, sp, #12
	bl	_ibv_get_device_list
	cbz	x0, LBB0_15
; %bb.8:
	mov	x19, x0
	ldr	w20, [sp, #12]
	cbz	w20, LBB0_16
; %bb.9:
	mov	x0, x20
	mov	w1, #4
	bl	_calloc
Lloh12:
	adrp	x22, _cma_dev_array@GOTPAGE
Lloh13:
	ldr	x22, [x22, _cma_dev_array@GOTPAGEOFF]
	str	x0, [x22]
	cbz	x0, LBB0_17
; %bb.10:
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.11:
	mov	x20, #0
	add	x23, x19, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	bl	_ibv_get_device_guid
	ldr	x8, [x22]
	str	w0, [x8, x20]
	ldr	x0, [x23], #8
	add	x20, x20, #4
	cbnz	x0, LBB0_12
; %bb.13:
	ldr	w20, [sp, #12]
LBB0_14:
	str	w20, [x21]
	bl	_ucma_set_af_ib_support
Lloh14:
	adrp	x0, _mut@GOTPAGE
Lloh15:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	mov	x0, x19
	bl	_ibv_free_device_list
	b	LBB0_3
LBB0_15:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_ERR
	mov	x20, x0
	b	LBB0_6
LBB0_16:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	bl	_ERR
	mov	x20, x0
	mov	x0, x19
	bl	_ibv_free_device_list
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_cma_dev_cnt,4,2                ; @cma_dev_cnt
	.comm	_mut,4,2                        ; @mut
	.comm	_idm_lock,4,2                   ; @idm_lock
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_cma_dev_array,8,3              ; @cma_dev_array
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
