	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_nodes
_alloc_nodes:                           ## @alloc_nodes
	.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	_connections@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$4, %edi
	callq	_calloc
	movq	_nodes@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_STEP_CREATE_ID@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_start_time
	cmpl	$0, (%rbx)
	jle	LBB0_11
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rdi
	addq	%r15, %rdi
	movq	_STEP_CREATE_ID@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_end_perf
	incq	%rbx
	movq	_connections@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%r15, %rdi
	movl	(%r14), %esi
	callq	_start_perf
	movq	_dst_addr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	addq	%r15, %rdx
	movq	_hints@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdx, %rsi
	callq	_rdma_create_id
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	%eax, %r12d
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	incq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	-8(%rax,%rbx,4), %edi
	callq	_rdma_destroy_id
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_8
LBB0_9:
	movq	(%r13), %rdi
	callq	_free
	jmp	LBB0_12
LBB0_11:
	movl	(%r14), %edi
	callq	_end_time
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connections,4,2                ## @connections
	.comm	_nodes,8,3                      ## @nodes
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_STEP_CREATE_ID,4,2             ## @STEP_CREATE_ID
	.comm	_dst_addr,8,3                   ## @dst_addr
	.comm	_channel,4,2                    ## @channel
	.comm	_hints,4,2                      ## @hints
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"creating id"

	.no_dead_strip	_alloc_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_nodes
_alloc_nodes:                           ; @alloc_nodes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x21, _connections@GOTPAGE
Lloh1:
	ldr	x21, [x21, _connections@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #4
	bl	_calloc
Lloh2:
	adrp	x20, _nodes@GOTPAGE
Lloh3:
	ldr	x20, [x20, _nodes@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_11
; %bb.1:
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh6:
	adrp	x22, _STEP_CREATE_ID@GOTPAGE
Lloh7:
	ldr	x22, [x22, _STEP_CREATE_ID@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_start_time
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x24, #0
	mov	x23, #0
Lloh8:
	adrp	x25, _dst_addr@GOTPAGE
Lloh9:
	ldr	x25, [x25, _dst_addr@GOTPAGEOFF]
Lloh10:
	adrp	x26, _channel@GOTPAGE
Lloh11:
	ldr	x26, [x26, _channel@GOTPAGEOFF]
Lloh12:
	adrp	x27, _hints@GOTPAGE
Lloh13:
	ldr	x27, [x27, _hints@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x0, x8, x24
	ldr	w1, [x22]
	bl	_end_perf
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x24, x24, #4
	cmp	x23, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x24
	ldr	w1, [x22]
	bl	_start_perf
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x20]
	add	x1, x8, x24
	ldr	w3, [x27]
	mov	x2, x1
	bl	_rdma_create_id
	cbz	w0, LBB0_3
; %bb.6:
	mov	x19, x0
	cbz	w23, LBB0_9
; %bb.7:
	sub	x21, x23, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x21, lsl #2]
	bl	_rdma_destroy_id
	add	x8, x21, #1
	sub	x21, x21, #1
	cmp	x8, #1
	b.gt	LBB0_8
LBB0_9:
	ldr	x0, [x20]
	bl	_free
	b	LBB0_12
LBB0_10:
	ldr	w0, [x22]
	bl	_end_time
	mov	w19, #0
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_connections,4,2                ; @connections
	.comm	_nodes,8,3                      ; @nodes
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_STEP_CREATE_ID,4,2             ; @STEP_CREATE_ID
	.comm	_dst_addr,8,3                   ; @dst_addr
	.comm	_channel,4,2                    ; @channel
	.comm	_hints,4,2                      ; @hints
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"creating id"

	.no_dead_strip	_alloc_nodes
.subsections_via_symbols
