	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_get_xrcd
_ucma_get_xrcd:                         ## @ucma_get_xrcd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_IBV_XRCD_INIT_ATTR_FD@GOTPCREL(%rip), %rax
	movq	_IBV_XRCD_INIT_ATTR_OFLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -32(%rbp)
	movl	$-1, -28(%rbp)
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_ibv_open_xrcd
	movq	%rax, (%rbx)
LBB0_2:
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	(%rbx), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mut,4,2                        ## @mut
	.comm	_IBV_XRCD_INIT_ATTR_FD,4,2      ## @IBV_XRCD_INIT_ATTR_FD
	.comm	_IBV_XRCD_INIT_ATTR_OFLAGS,4,2  ## @IBV_XRCD_INIT_ATTR_OFLAGS
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.no_dead_strip	_ucma_get_xrcd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_get_xrcd
_ucma_get_xrcd:                         ; @ucma_get_xrcd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _mut@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	ldr	x8, [x19]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh2:
	adrp	x8, _IBV_XRCD_INIT_ATTR_FD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IBV_XRCD_INIT_ATTR_FD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IBV_XRCD_INIT_ATTR_OFLAGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IBV_XRCD_INIT_ATTR_OFLAGS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w9, #-1
	stp	w8, w9, [sp]
Lloh8:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x19, #8]
	mov	x1, sp
	bl	_ibv_open_xrcd
	str	x0, [x19]
LBB0_2:
Lloh11:
	adrp	x0, _mut@GOTPAGE
Lloh12:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_mut,4,2                        ; @mut
	.comm	_IBV_XRCD_INIT_ATTR_FD,4,2      ; @IBV_XRCD_INIT_ATTR_FD
	.comm	_IBV_XRCD_INIT_ATTR_OFLAGS,4,2  ; @IBV_XRCD_INIT_ATTR_OFLAGS
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.no_dead_strip	_ucma_get_xrcd
.subsections_via_symbols
