	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_remove_id_dev
_cma_remove_id_dev:                     ## @cma_remove_id_dev
	.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
	movq	_RDMA_CM_DEVICE_REMOVAL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_cma_exch
	movq	_RDMA_CM_DESTROYING@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cma_cancel_operation
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_cma_comp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	*8(%r14)
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_CM_DEVICE_REMOVAL,4,2     ## @RDMA_CM_DEVICE_REMOVAL
	.comm	_RDMA_CM_DESTROYING,4,2         ## @RDMA_CM_DESTROYING
	.comm	_RDMA_CM_EVENT_DEVICE_REMOVAL,4,2 ## @RDMA_CM_EVENT_DEVICE_REMOVAL
	.no_dead_strip	_cma_remove_id_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_remove_id_dev
_cma_remove_id_dev:                     ; @cma_remove_id_dev
	.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	x20, _RDMA_CM_DEVICE_REMOVAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RDMA_CM_DEVICE_REMOVAL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_cma_exch
Lloh2:
	adrp	x8, _RDMA_CM_DESTROYING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RDMA_CM_DESTROYING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	mov	x1, x0
	mov	x0, x19
	bl	_cma_cancel_operation
	mov	x0, x19
	bl	_mutex_lock
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cma_comp
	cbz	w0, LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh5:
	adrp	x8, _RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RDMA_CM_EVENT_DEVICE_REMOVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x19
	ldr	x8, [x0, #8]!
	add	x1, sp, #8
	blr	x8
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_CM_DEVICE_REMOVAL,4,2     ; @RDMA_CM_DEVICE_REMOVAL
	.comm	_RDMA_CM_DESTROYING,4,2         ; @RDMA_CM_DESTROYING
	.comm	_RDMA_CM_EVENT_DEVICE_REMOVAL,4,2 ; @RDMA_CM_EVENT_DEVICE_REMOVAL
	.no_dead_strip	_cma_remove_id_dev
.subsections_via_symbols
