	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucma_put_device
_ucma_put_device:                       ## @ucma_put_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_mut@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	decl	12(%rbx)
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	callq	_ibv_dealloc_pd
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_ibv_close_xrcd
LBB0_3:
	movq	_mut@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mut,4,2                        ## @mut
	.no_dead_strip	_ucma_put_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucma_put_device
_ucma_put_device:                       ; @ucma_put_device
	.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
Lloh0:
	adrp	x0, _mut@GOTPAGE
Lloh1:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	ldr	w8, [x19, #12]
	subs	w8, w8, #1
	str	w8, [x19, #12]
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_ibv_dealloc_pd
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_ibv_close_xrcd
LBB0_3:
Lloh2:
	adrp	x0, _mut@GOTPAGE
Lloh3:
	ldr	x0, [x0, _mut@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mut,4,2                        ; @mut
	.no_dead_strip	_ucma_put_device
.subsections_via_symbols
