	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdma_create_id2
_rdma_create_id2:                       ## @rdma_create_id2
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ucma_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_ucma_alloc_id
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	_CREATE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %r14
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$4, %r8d
	callq	_CMA_INIT_CMD_RESP
	movq	%r15, -72(%rbp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -64(%rbp)
	movl	%r13d, -60(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_write
	cmpl	$16, %eax
	jne	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movl	-48(%rbp), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_ucma_insert_id
	movq	%r15, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_4:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ucma_free_id
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CREATE_ID,4,2                  ## @CREATE_ID
	.no_dead_strip	_rdma_create_id2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdma_create_id2
_rdma_create_id2:                       ; @rdma_create_id2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x24, x0
	bl	_ucma_init
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_ucma_alloc_id
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _CREATE_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CREATE_ID@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	add	x3, sp, #24
	mov	w1, #16
	mov	w4, #4
	bl	_CMA_INIT_CMD_RESP
	str	x20, [sp, #8]
	stp	w22, w21, [sp, #16]
	ldr	x8, [x20]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #16
	bl	_write
	cmp	w0, #16
	b.ne	LBB0_6
; %bb.4:
	add	x0, sp, #24
	mov	w1, #4
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	w8, [sp, #24]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_ucma_insert_id
	mov	w23, #0
	str	x20, [x19]
	b	LBB0_1
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR
LBB0_6:
	mov	x23, x0
	mov	x0, x20
	bl	_ucma_free_id
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CREATE_ID,4,2                  ; @CREATE_ID
	.no_dead_strip	_rdma_create_id2
.subsections_via_symbols
