	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	16(%rsi), %r14
	movq	8(%r14), %r12
	leaq	8(%r12), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_RDMA_CM_ADDR_BOUND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_RDMA_CM_ADDR_RESOLVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
LBB0_2:
	testl	%r15d, %r15d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	leaq	64(%r12), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	jmp	LBB0_8
LBB0_4:
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_cma_set_qkey
	movl	%eax, %r15d
	leaq	64(%r12), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.5:
	movq	48(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r15
	movl	4(%rax), %edi
	callq	_be16_to_cpu
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_ib_attach_mcast
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r13, %rdi
	callq	_mutex_unlock
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r15d, -88(%rbp)
	movl	(%r14), %eax
	movl	%eax, -60(%rbp)
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.13:
	movq	_RDMA_CM_EVENT_MULTICAST_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_9:
	movl	36(%r12), %esi
	movl	40(%r12), %edi
	callq	_dev_get_by_index
	movq	%rax, %r14
	movq	16(%r12), %rbx
	movq	56(%r12), %rax
	movq	(%rax), %r13
	movl	8(%rax), %edi
	callq	_rdma_start_port
	subq	%rax, %rbx
	movl	(%r13,%rbx,4), %r8d
	movq	_RDMA_CM_EVENT_MULTICAST_JOIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	32(%r12), %edi
	movq	16(%r12), %rsi
	leaq	-64(%rbp), %r9
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_ib_init_ah_from_mcmember
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_RDMA_CM_EVENT_MULTICAST_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
LBB0_11:
	movl	$16777215, -72(%rbp)            ## imm = 0xFFFFFF
	movl	(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, -68(%rbp)
	testq	%r14, %r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_dev_put
LBB0_14:
	leaq	16(%r12), %r14
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	*24(%r12)
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_RDMA_CM_DESTROYING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_cma_exch
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_rdma_destroy_id
	jmp	LBB0_17
LBB0_16:
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_17:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_CM_ADDR_BOUND,8,3         ## @RDMA_CM_ADDR_BOUND
	.comm	_RDMA_CM_ADDR_RESOLVED,8,3      ## @RDMA_CM_ADDR_RESOLVED
	.comm	_RDMA_CM_EVENT_MULTICAST_JOIN,8,3 ## @RDMA_CM_EVENT_MULTICAST_JOIN
	.comm	_RDMA_CM_EVENT_MULTICAST_ERROR,8,3 ## @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, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	x25, [x1, #16]
	ldr	x20, [x25, #8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RDMA_CM_ADDR_BOUND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RDMA_CM_ADDR_BOUND@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _RDMA_CM_ADDR_RESOLVED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RDMA_CM_ADDR_RESOLVED@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_14
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
	add	x23, x20, #64
	mov	x0, x23
	bl	_mutex_lock
	b	LBB0_6
LBB0_3:
	ldr	w0, [x21]
	bl	_be32_to_cpu
	mov	x1, x0
	mov	x0, x20
	bl	_cma_set_qkey
	mov	x22, x0
	add	x23, x20, #64
	mov	x0, x23
	bl	_mutex_lock
	cbnz	w22, LBB0_6
; %bb.4:
	ldr	x22, [x20, #48]
	cbz	x22, LBB0_6
; %bb.5:
	add	x24, x21, #8
	ldr	w0, [x21, #4]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x22
	mov	x1, x24
	bl	_ib_attach_mcast
	mov	x22, x0
LBB0_6:
	mov	x0, x23
	bl	_mutex_unlock
	mov	x23, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	w22, [sp]
	ldr	w8, [x25]
	str	w8, [sp, #28]
	cbz	w22, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _RDMA_CM_EVENT_MULTICAST_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RDMA_CM_EVENT_MULTICAST_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	b	LBB0_12
LBB0_8:
	ldp	w1, w0, [x20, #36]
	bl	_dev_get_by_index
	mov	x22, x0
	ldr	x8, [x20, #56]
	ldr	x24, [x8]
	ldr	x25, [x20, #16]
	ldr	w0, [x8, #8]
	bl	_rdma_start_port
	sub	x8, x25, x0
	ldr	w4, [x24, x8, lsl #2]
Lloh9:
	adrp	x8, _RDMA_CM_EVENT_MULTICAST_JOIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RDMA_CM_EVENT_MULTICAST_JOIN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	w0, [x20, #32]
	ldr	x1, [x20, #16]
	add	x5, x23, #24
	mov	x2, x21
	mov	x3, x22
	bl	_ib_init_ah_from_mcmember
	cbz	w0, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _RDMA_CM_EVENT_MULTICAST_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RDMA_CM_EVENT_MULTICAST_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [sp, #8]
LBB0_10:
	mov	w8, #16777215
	str	w8, [sp, #16]
	ldr	w0, [x21]
	bl	_be32_to_cpu
	str	w0, [sp, #20]
	cbz	x22, LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_dev_put
LBB0_12:
	add	x21, x20, #16
	ldr	x8, [x20, #24]
	mov	x1, sp
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_14
; %bb.13:
Lloh15:
	adrp	x8, _RDMA_CM_DESTROYING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDMA_CM_DESTROYING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cma_exch
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	bl	_rdma_destroy_id
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_CM_ADDR_BOUND,8,3         ; @RDMA_CM_ADDR_BOUND
	.comm	_RDMA_CM_ADDR_RESOLVED,8,3      ; @RDMA_CM_ADDR_RESOLVED
	.comm	_RDMA_CM_EVENT_MULTICAST_JOIN,8,3 ; @RDMA_CM_EVENT_MULTICAST_JOIN
	.comm	_RDMA_CM_EVENT_MULTICAST_ERROR,8,3 ; @RDMA_CM_EVENT_MULTICAST_ERROR
	.comm	_RDMA_CM_DESTROYING,4,2         ; @RDMA_CM_DESTROYING
	.no_dead_strip	_cma_ib_mc_handler
.subsections_via_symbols
