	.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), %edi
	shll	$3, %edi
	callq	_malloc
	movq	_test@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	shll	$3, %edx
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	cmpl	$0, (%rbx)
	jle	LBB0_12
## %bb.3:
	movq	%rbx, %rcx
	xorl	%r13d, %r13d
	movq	_dst_addr@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%rcx), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	movl	%ebx, (%rdx,%r13)
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r14), %edi
	leaq	(%rdx,%r13), %rsi
	addq	$4, %rsi
	addq	%r13, %rdx
	movq	%rcx, %r12
	movq	_hints@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_rdma_create_id
	movq	%r12, %rcx
	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	(%r14), %rax
	movl	-12(%rax,%rbx,8), %edi
	callq	_rdma_destroy_id
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_8
LBB0_9:
	movq	(%r14), %rdi
	callq	_free
	jmp	LBB0_12
LBB0_1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_11:
	xorl	%r12d, %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	_test,16,3                      ## @test
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dst_addr,8,3                   ## @dst_addr
	.comm	_hints,4,2                      ## @hints
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"cmatose: unable to allocate memory for test nodes"

	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, _connections@GOTPAGE
Lloh1:
	ldr	x21, [x21, _connections@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w0, w8, #3
	bl	_malloc
Lloh2:
	adrp	x20, _test@GOTPAGE
Lloh3:
	ldr	x20, [x20, _test@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w8, [x21]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x23, #0
	mov	x22, #0
Lloh4:
	adrp	x24, _dst_addr@GOTPAGE
Lloh5:
	ldr	x24, [x24, _dst_addr@GOTPAGEOFF]
Lloh6:
	adrp	x25, _hints@GOTPAGE
Lloh7:
	ldr	x25, [x25, _hints@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x23, x23, #8
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	str	w22, [x8, x23]
	ldr	x9, [x24]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #8]
	add	x2, x8, x23
	add	x1, x2, #4
	ldr	w3, [x25]
	bl	_rdma_create_id
	cbz	w0, LBB0_3
; %bb.6:
	mov	x19, x0
	cbz	w22, LBB0_9
; %bb.7:
	sub	x21, x23, #4
	add	x22, x22, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8, x21]
	bl	_rdma_destroy_id
	sub	x22, x22, #1
	sub	x21, x21, #8
	cmp	x22, #1
	b.gt	LBB0_8
LBB0_9:
	ldr	x0, [x20]
	bl	_free
	b	LBB0_12
LBB0_10:
	mov	w19, #0
	b	LBB0_12
LBB0_11:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_connections,4,2                ; @connections
	.comm	_test,16,3                      ; @test
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dst_addr,8,3                   ; @dst_addr
	.comm	_hints,4,2                      ; @hints
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"cmatose: unable to allocate memory for test nodes"

	.no_dead_strip	_alloc_nodes
.subsections_via_symbols
