	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma_join_ib_multicast
_cma_join_ib_multicast:                 ## @cma_join_ib_multicast
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	24(%rdi), %rbx
	leaq	-44(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ib_addr_get_mgid
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdx
	callq	_ib_sa_get_mcmember_rec
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cma_set_qkey
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	leaq	12(%r14), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_cma_set_mgid
	movl	32(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, -48(%rbp)
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rdma_addr_get_sgid
	movq	%rbx, %rdi
	callq	_ib_addr_get_pkey
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -56(%rbp)
	movq	(%r14), %rbx
	movq	%rbx, -64(%rbp)
	movq	_SENDONLY_FULLMEMBER_JOIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.3:
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	leaq	-40(%rbp), %rdx
	callq	_cma_query_sa_classport_info
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	leaq	-40(%rbp), %rdi
	callq	_ib_get_cpi_capmask2
	movq	_IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_6:
	movq	_IB_SA_MCMEMBER_REC_MGID@GOTPCREL(%rip), %rax
	movq	_IB_SA_MCMEMBER_REC_PORT_GID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	_IB_SA_MCMEMBER_REC_PKEY@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_IB_SA_MCMEMBER_REC_JOIN_STATE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_IB_SA_MCMEMBER_REC_QKEY@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_IB_SA_MCMEMBER_REC_SL@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_IB_SA_MCMEMBER_REC_FLOW_LABEL@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_IB_SA_MCMEMBER_REC_TRAFFIC_CLASS@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	(%r15), %rax
	movq	_RDMA_PS_IPOIB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_IB_SA_MCMEMBER_REC_RATE@GOTPCREL(%rip), %rax
	movq	_IB_SA_MCMEMBER_REC_RATE_SELECTOR@GOTPCREL(%rip), %rcx
	movq	_IB_SA_MCMEMBER_REC_MTU_SELECTOR@GOTPCREL(%rip), %rdx
	movq	_IB_SA_MCMEMBER_REC_MTU@GOTPCREL(%rip), %rsi
	movq	_IB_SA_MCMEMBER_REC_HOP_LIMIT@GOTPCREL(%rip), %rdi
	orl	(%rax), %r8d
	orl	(%rcx), %r8d
	orl	(%rdx), %r8d
	orl	(%rsi), %r8d
	orl	(%rdi), %r8d
LBB0_8:
	movq	16(%r15), %rsi
	movl	8(%r15), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_cma_ib_mc_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sa_client@GOTPCREL(%rip), %rdi
	leaq	-64(%rbp), %rcx
	pushq	%r14
	pushq	%rax
	callq	_ib_sa_join_multicast
	addq	$16, %rsp
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_PTR_ERR_OR_ZERO
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%r15), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SENDONLY_FULLMEMBER_JOIN,4,2   ## @SENDONLY_FULLMEMBER_JOIN
	.comm	_IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT,4,2 ## @IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDMA CM: %s port %u Unable to multicast join\nRDMA CM: SM doesn't support Send Only Full Member option\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IB_SA_MCMEMBER_REC_MGID,4,2    ## @IB_SA_MCMEMBER_REC_MGID
	.comm	_IB_SA_MCMEMBER_REC_PORT_GID,4,2 ## @IB_SA_MCMEMBER_REC_PORT_GID
	.comm	_IB_SA_MCMEMBER_REC_PKEY,4,2    ## @IB_SA_MCMEMBER_REC_PKEY
	.comm	_IB_SA_MCMEMBER_REC_JOIN_STATE,4,2 ## @IB_SA_MCMEMBER_REC_JOIN_STATE
	.comm	_IB_SA_MCMEMBER_REC_QKEY,4,2    ## @IB_SA_MCMEMBER_REC_QKEY
	.comm	_IB_SA_MCMEMBER_REC_SL,4,2      ## @IB_SA_MCMEMBER_REC_SL
	.comm	_IB_SA_MCMEMBER_REC_FLOW_LABEL,4,2 ## @IB_SA_MCMEMBER_REC_FLOW_LABEL
	.comm	_IB_SA_MCMEMBER_REC_TRAFFIC_CLASS,4,2 ## @IB_SA_MCMEMBER_REC_TRAFFIC_CLASS
	.comm	_RDMA_PS_IPOIB,8,3              ## @RDMA_PS_IPOIB
	.comm	_IB_SA_MCMEMBER_REC_RATE,4,2    ## @IB_SA_MCMEMBER_REC_RATE
	.comm	_IB_SA_MCMEMBER_REC_RATE_SELECTOR,4,2 ## @IB_SA_MCMEMBER_REC_RATE_SELECTOR
	.comm	_IB_SA_MCMEMBER_REC_MTU_SELECTOR,4,2 ## @IB_SA_MCMEMBER_REC_MTU_SELECTOR
	.comm	_IB_SA_MCMEMBER_REC_MTU,4,2     ## @IB_SA_MCMEMBER_REC_MTU
	.comm	_IB_SA_MCMEMBER_REC_HOP_LIMIT,4,2 ## @IB_SA_MCMEMBER_REC_HOP_LIMIT
	.comm	_sa_client,4,2                  ## @sa_client
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_cma_ib_mc_handler,4,2          ## @cma_ib_mc_handler
	.no_dead_strip	_cma_join_ib_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma_join_ib_multicast
_cma_join_ib_multicast:                 ; @cma_join_ib_multicast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #24
	add	x8, sp, #8
	add	x22, x8, #20
	mov	x0, x21
	mov	x1, x22
	bl	_ib_addr_get_mgid
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #8]
	add	x3, sp, #8
	mov	x2, x22
	bl	_ib_sa_get_mcmember_rec
	cbnz	w0, LBB0_8
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_cma_set_qkey
	cbnz	w0, LBB0_8
; %bb.2:
	add	x1, x19, #12
	mov	x0, x20
	mov	x2, x22
	bl	_cma_set_mgid
	ldr	w0, [x20, #32]
	bl	_cpu_to_be32
	str	w0, [sp, #24]
	add	x8, sp, #8
	add	x1, x8, #12
	mov	x0, x21
	bl	_rdma_addr_get_sgid
	mov	x0, x21
	bl	_ib_addr_get_pkey
	bl	_cpu_to_be16
	str	w0, [sp, #16]
	ldr	x21, [x19]
	str	x21, [sp, #8]
Lloh0:
	adrp	x8, _SENDONLY_FULLMEMBER_JOIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SENDONLY_FULLMEMBER_JOIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [x20, #16]
	ldr	w1, [x20, #8]
	mov	x2, sp
	bl	_cma_query_sa_classport_info
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, sp
	bl	_ib_get_cpi_capmask2
Lloh3:
	adrp	x8, _IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
LBB0_5:
Lloh6:
	adrp	x8, _IB_SA_MCMEMBER_REC_MGID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_SA_MCMEMBER_REC_MGID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IB_SA_MCMEMBER_REC_PORT_GID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_PORT_GID@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _IB_SA_MCMEMBER_REC_PKEY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_PKEY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _IB_SA_MCMEMBER_REC_JOIN_STATE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IB_SA_MCMEMBER_REC_JOIN_STATE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _IB_SA_MCMEMBER_REC_QKEY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_QKEY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _IB_SA_MCMEMBER_REC_SL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_SL@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _IB_SA_MCMEMBER_REC_FLOW_LABEL@GOTPAGE
Lloh25:
	ldr	x10, [x10, _IB_SA_MCMEMBER_REC_FLOW_LABEL@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _IB_SA_MCMEMBER_REC_TRAFFIC_CLASS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_TRAFFIC_CLASS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	x8, [x20]
Lloh30:
	adrp	x9, _RDMA_PS_IPOIB@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RDMA_PS_IPOIB@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh33:
	adrp	x8, _IB_SA_MCMEMBER_REC_RATE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IB_SA_MCMEMBER_REC_RATE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _IB_SA_MCMEMBER_REC_RATE_SELECTOR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_RATE_SELECTOR@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _IB_SA_MCMEMBER_REC_MTU_SELECTOR@GOTPAGE
Lloh40:
	ldr	x10, [x10, _IB_SA_MCMEMBER_REC_MTU_SELECTOR@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
Lloh42:
	adrp	x11, _IB_SA_MCMEMBER_REC_MTU@GOTPAGE
Lloh43:
	ldr	x11, [x11, _IB_SA_MCMEMBER_REC_MTU@GOTPAGEOFF]
Lloh44:
	ldr	w11, [x11]
Lloh45:
	adrp	x12, _IB_SA_MCMEMBER_REC_HOP_LIMIT@GOTPAGE
Lloh46:
	ldr	x12, [x12, _IB_SA_MCMEMBER_REC_HOP_LIMIT@GOTPAGEOFF]
Lloh47:
	ldr	w12, [x12]
	orr	w8, w8, w4
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w4, w8, w12
LBB0_7:
	ldr	x1, [x20, #16]
	ldr	w2, [x20, #8]
Lloh48:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh50:
	ldr	w5, [x8]
Lloh51:
	adrp	x8, _cma_ib_mc_handler@GOTPAGE
Lloh52:
	ldr	x8, [x8, _cma_ib_mc_handler@GOTPAGEOFF]
Lloh53:
	ldr	w6, [x8]
Lloh54:
	adrp	x0, _sa_client@GOTPAGE
Lloh55:
	ldr	x0, [x0, _sa_client@GOTPAGEOFF]
	add	x3, sp, #8
	mov	x7, x19
	bl	_ib_sa_join_multicast
	str	w0, [x19, #8]
	bl	_PTR_ERR_OR_ZERO
LBB0_8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
Lloh56:
	adrp	x0, l_.str@PAGE
Lloh57:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh58:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_SENDONLY_FULLMEMBER_JOIN,4,2   ; @SENDONLY_FULLMEMBER_JOIN
	.comm	_IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT,4,2 ; @IB_SA_CAP_MASK2_SENDONLY_FULL_MEM_SUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDMA CM: %s port %u Unable to multicast join\nRDMA CM: SM doesn't support Send Only Full Member option\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IB_SA_MCMEMBER_REC_MGID,4,2    ; @IB_SA_MCMEMBER_REC_MGID
	.comm	_IB_SA_MCMEMBER_REC_PORT_GID,4,2 ; @IB_SA_MCMEMBER_REC_PORT_GID
	.comm	_IB_SA_MCMEMBER_REC_PKEY,4,2    ; @IB_SA_MCMEMBER_REC_PKEY
	.comm	_IB_SA_MCMEMBER_REC_JOIN_STATE,4,2 ; @IB_SA_MCMEMBER_REC_JOIN_STATE
	.comm	_IB_SA_MCMEMBER_REC_QKEY,4,2    ; @IB_SA_MCMEMBER_REC_QKEY
	.comm	_IB_SA_MCMEMBER_REC_SL,4,2      ; @IB_SA_MCMEMBER_REC_SL
	.comm	_IB_SA_MCMEMBER_REC_FLOW_LABEL,4,2 ; @IB_SA_MCMEMBER_REC_FLOW_LABEL
	.comm	_IB_SA_MCMEMBER_REC_TRAFFIC_CLASS,4,2 ; @IB_SA_MCMEMBER_REC_TRAFFIC_CLASS
	.comm	_RDMA_PS_IPOIB,8,3              ; @RDMA_PS_IPOIB
	.comm	_IB_SA_MCMEMBER_REC_RATE,4,2    ; @IB_SA_MCMEMBER_REC_RATE
	.comm	_IB_SA_MCMEMBER_REC_RATE_SELECTOR,4,2 ; @IB_SA_MCMEMBER_REC_RATE_SELECTOR
	.comm	_IB_SA_MCMEMBER_REC_MTU_SELECTOR,4,2 ; @IB_SA_MCMEMBER_REC_MTU_SELECTOR
	.comm	_IB_SA_MCMEMBER_REC_MTU,4,2     ; @IB_SA_MCMEMBER_REC_MTU
	.comm	_IB_SA_MCMEMBER_REC_HOP_LIMIT,4,2 ; @IB_SA_MCMEMBER_REC_HOP_LIMIT
	.comm	_sa_client,4,2                  ; @sa_client
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_cma_ib_mc_handler,4,2          ; @cma_ib_mc_handler
	.no_dead_strip	_cma_join_ib_multicast
.subsections_via_symbols
