	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_ib_mc_handler
_cma_ib_mc_handler:                     ## @cma_ib_mc_handler
	.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
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	16(%rsi), %r13
	movq	8(%r13), %rbx
	movq	_RDMA_CM_ADDR_BOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cma_disable_callback
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_RDMA_CM_ADDR_RESOLVED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cma_disable_callback
	testq	%rax, %rax
	jne	LBB0_14
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	jmp	LBB0_8
LBB0_4:
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cma_set_qkey
	movl	%eax, %r15d
	leaq	32(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.5:
	movq	24(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	leaq	8(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_be16_to_cpu
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_ib_attach_mcast
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r15d, -64(%rbp)
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.10:
	movq	_RDMA_CM_EVENT_MULTICAST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	jmp	LBB0_11
LBB0_9:
	movq	_RDMA_CM_EVENT_MULTICAST_JOIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdx
	callq	_ib_init_ah_from_mcmember
	movl	$16777215, -56(%rbp)            ## imm = 0xFFFFFF
	movl	(%r14), %edi
	callq	_be32_to_cpu
	movl	%eax, -52(%rbp)
LBB0_11:
	leaq	8(%rbx), %r14
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	*8(%rbx)
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	_RDMA_CM_DESTROYING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cma_exch
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_rdma_destroy_id
	jmp	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_14:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_CM_ADDR_BOUND,4,2         ## @RDMA_CM_ADDR_BOUND
	.comm	_RDMA_CM_ADDR_RESOLVED,4,2      ## @RDMA_CM_ADDR_RESOLVED
	.comm	_RDMA_CM_EVENT_MULTICAST_JOIN,4,2 ## @RDMA_CM_EVENT_MULTICAST_JOIN
	.comm	_RDMA_CM_EVENT_MULTICAST_ERROR,4,2 ## @RDMA_CM_EVENT_MULTICAST_ERROR
	.comm	_RDMA_CM_DESTROYING,4,2         ## @RDMA_CM_DESTROYING
	.no_dead_strip	_cma_ib_mc_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_ib_mc_handler
_cma_ib_mc_handler:                     ; @cma_ib_mc_handler
	.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	x20, x1
	mov	x21, x0
	ldr	x24, [x1, #16]
	ldr	x19, [x24, #8]
Lloh0:
	adrp	x8, _RDMA_CM_ADDR_BOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_CM_ADDR_BOUND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cma_disable_callback
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RDMA_CM_ADDR_RESOLVED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_CM_ADDR_RESOLVED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cma_disable_callback
	cbnz	x0, LBB0_13
LBB0_2:
	cbz	w21, LBB0_4
; %bb.3:
	add	x22, x19, #32
	mov	x0, x22
	bl	_mutex_lock
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x19
	bl	_cma_set_qkey
	mov	x21, x0
	add	x22, x19, #32
	mov	x0, x22
	bl	_mutex_lock
	cbnz	w21, LBB0_7
; %bb.5:
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_7
; %bb.6:
	add	x23, x20, #8
	ldr	w0, [x20, #4]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_ib_attach_mcast
	mov	x21, x0
LBB0_7:
	mov	x0, x22
	bl	_mutex_unlock
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	w21, [sp, #8]
	ldr	w8, [x24]
	str	w8, [sp, #28]
	cbz	w21, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _RDMA_CM_EVENT_MULTICAST_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RDMA_CM_EVENT_MULTICAST_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x8, _RDMA_CM_EVENT_MULTICAST_JOIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_CM_EVENT_MULTICAST_JOIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldp	w1, w0, [x19, #16]
	add	x3, x22, #16
	mov	x2, x20
	bl	_ib_init_ah_from_mcmember
	mov	w8, #16777215
	str	w8, [sp, #16]
	ldr	w0, [x20]
	bl	_be32_to_cpu
	str	w0, [sp, #20]
LBB0_10:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _RDMA_CM_DESTROYING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RDMA_CM_DESTROYING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cma_exch
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	bl	_rdma_destroy_id
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_13:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_CM_ADDR_BOUND,4,2         ; @RDMA_CM_ADDR_BOUND
	.comm	_RDMA_CM_ADDR_RESOLVED,4,2      ; @RDMA_CM_ADDR_RESOLVED
	.comm	_RDMA_CM_EVENT_MULTICAST_JOIN,4,2 ; @RDMA_CM_EVENT_MULTICAST_JOIN
	.comm	_RDMA_CM_EVENT_MULTICAST_ERROR,4,2 ; @RDMA_CM_EVENT_MULTICAST_ERROR
	.comm	_RDMA_CM_DESTROYING,4,2         ; @RDMA_CM_DESTROYING
	.no_dead_strip	_cma_ib_mc_handler
.subsections_via_symbols
