	.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, %rbx
	leaq	24(%rdi), %r15
	leaq	-36(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ib_addr_get_mgid
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdx
	callq	_ib_sa_get_mcmember_rec
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cma_set_qkey
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	leaq	12(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_cma_set_mgid
	movl	32(%rbx), %edi
	callq	_cpu_to_be32
	movl	%eax, -40(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_rdma_addr_get_sgid
	movq	%r15, %rdi
	callq	_ib_addr_get_pkey
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -48(%rbp)
	movq	(%r14), %r15
	movq	%r15, -56(%rbp)
	movq	_SENDONLY_FULLMEMBER_JOIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	cmpq	%rax, %r15
	jne	LBB0_5
## %bb.3:
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	_sa_client@GOTPCREL(%rip), %rdi
	callq	_ib_sa_sendonly_fullmem_support
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	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	(%rbx), %rax
	movq	_RDMA_PS_IPOIB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	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_7:
	movq	16(%rbx), %rsi
	movl	8(%rbx), %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	-56(%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_8:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SENDONLY_FULLMEMBER_JOIN,4,2   ## @SENDONLY_FULLMEMBER_JOIN
	.comm	_sa_client,4,2                  ## @sa_client
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDMA CM: port %u Unable to multicast join: 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	_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_7
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_cma_set_qkey
	cbnz	w0, LBB0_7
; %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_4
; %bb.3:
	ldr	x1, [x20, #16]
	ldr	w2, [x20, #8]
Lloh3:
	adrp	x0, _sa_client@GOTPAGE
Lloh4:
	ldr	x0, [x0, _sa_client@GOTPAGEOFF]
	bl	_ib_sa_sendonly_fullmem_support
	cbz	w0, LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _IB_SA_MCMEMBER_REC_MGID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_SA_MCMEMBER_REC_MGID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _IB_SA_MCMEMBER_REC_PORT_GID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_PORT_GID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _IB_SA_MCMEMBER_REC_PKEY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_PKEY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IB_SA_MCMEMBER_REC_JOIN_STATE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IB_SA_MCMEMBER_REC_JOIN_STATE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh16:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _IB_SA_MCMEMBER_REC_QKEY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_QKEY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _IB_SA_MCMEMBER_REC_SL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_SL@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _IB_SA_MCMEMBER_REC_FLOW_LABEL@GOTPAGE
Lloh24:
	ldr	x10, [x10, _IB_SA_MCMEMBER_REC_FLOW_LABEL@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh25:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _IB_SA_MCMEMBER_REC_TRAFFIC_CLASS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_TRAFFIC_CLASS@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _RDMA_PS_IPOIB@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RDMA_PS_IPOIB@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh32:
	adrp	x8, _IB_SA_MCMEMBER_REC_RATE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IB_SA_MCMEMBER_REC_RATE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _IB_SA_MCMEMBER_REC_RATE_SELECTOR@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IB_SA_MCMEMBER_REC_RATE_SELECTOR@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _IB_SA_MCMEMBER_REC_MTU_SELECTOR@GOTPAGE
Lloh39:
	ldr	x10, [x10, _IB_SA_MCMEMBER_REC_MTU_SELECTOR@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
Lloh41:
	adrp	x11, _IB_SA_MCMEMBER_REC_MTU@GOTPAGE
Lloh42:
	ldr	x11, [x11, _IB_SA_MCMEMBER_REC_MTU@GOTPAGEOFF]
Lloh43:
	ldr	w11, [x11]
Lloh44:
	adrp	x12, _IB_SA_MCMEMBER_REC_HOP_LIMIT@GOTPAGE
Lloh45:
	ldr	x12, [x12, _IB_SA_MCMEMBER_REC_HOP_LIMIT@GOTPAGEOFF]
Lloh46:
	ldr	w12, [x12]
	orr	w8, w8, w4
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w4, w8, w12
LBB0_6:
	ldr	x1, [x20, #16]
	ldr	w2, [x20, #8]
Lloh47:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh49:
	ldr	w5, [x8]
Lloh50:
	adrp	x8, _cma_ib_mc_handler@GOTPAGE
Lloh51:
	ldr	x8, [x8, _cma_ib_mc_handler@GOTPAGEOFF]
Lloh52:
	ldr	w6, [x8]
Lloh53:
	adrp	x0, _sa_client@GOTPAGE
Lloh54:
	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_7:
	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_8:
	ldr	x0, [x20, #16]
	ldr	w2, [x20, #8]
Lloh55:
	adrp	x1, l_.str@PAGE
Lloh56:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh57:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.comm	_SENDONLY_FULLMEMBER_JOIN,4,2   ; @SENDONLY_FULLMEMBER_JOIN
	.comm	_sa_client,4,2                  ; @sa_client
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDMA CM: port %u Unable to multicast join: 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	_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
