	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_events
_connect_events:                        ## @connect_events
	.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	_test@GOTPCREL(%rip), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %r15
	leaq	L_.str(%rip), %r14
	movq	_errno@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_rdma_get_cm_event
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rsi
	movl	(%rsi), %edi
	callq	_cma_handler
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_rdma_ack_cm_event
	cmpq	$0, 8(%r12)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_3
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_perror
	movl	(%r13), %ebx
	cmpq	$0, 8(%r12)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_test,16,3                      ## @test
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmatose: failure in rdma_get_cm_event in connect events"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_connect_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_events
_connect_events:                        ; @connect_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x21, _test@GOTPAGE
Lloh1:
	ldr	x21, [x21, _test@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.1:
Lloh2:
	adrp	x19, l_.str@PAGE
Lloh3:
	add	x19, x19, l_.str@PAGEOFF
Lloh4:
	adrp	x22, _errno@GOTPAGE
Lloh5:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_rdma_get_cm_event
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [sp, #8]
	ldr	w0, [x1]
	bl	_cma_handler
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_rdma_ack_cm_event
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #8]
	cmp	x8, #0
	ccmp	w20, #0, #0, ne
	b.eq	LBB0_2
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_perror
	ldr	w20, [x22]
	b	LBB0_4
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_test,16,3                      ; @test
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmatose: failure in rdma_get_cm_event in connect events"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_connect_events
.subsections_via_symbols
