	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_prtn_add_mcgroup           ## -- Begin function osm_prtn_add_mcgroup
	.p2align	4, 0x90
_osm_prtn_add_mcgroup:                  ## @osm_prtn_add_mcgroup
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INET6_ADDRSTRLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -144(%rbp)                ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movl	(%r12), %ebx
	movl	$32768, %edi                    ## imm = 0x8000
	callq	_cl_hton16
	movl	%eax, %r13d
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	_OSM_DEFAULT_MGRP_SCOPE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	orl	%ebx, %r13d
	movq	_IB_MC_SCOPE_LINK_LOCAL@GOTPCREL(%rip), %rax
	movl	$0, %r12d
	cmpl	(%rax), %r15d
	je	LBB0_4
## %bb.3:
	movq	_IB_HOPLIMIT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movq	48(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	24(%rbp), %edi
	callq	_CL_HTON32
	movl	%eax, -72(%rbp)
	movq	_IB_PATH_SELECTOR_EXACTLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$6, %eax
	orl	%eax, %r14d
	movl	%r14d, -104(%rbp)
	movl	32(%rbp), %ecx
	movl	%ecx, -100(%rbp)
	movl	%r13d, -96(%rbp)
	orl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -92(%rbp)
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, -76(%rbp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	40(%rbp), %esi
	movl	%r12d, %edx
	callq	_ib_member_set_sl_flow_hop
	movl	%eax, -80(%rbp)
	movq	_IB_MC_REC_STATE_FULL_MEMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_ib_member_set_scope_state
	movl	%eax, -84(%rbp)
	leaq	-88(%rbp), %rdi
	movl	%r15d, %esi
	callq	_ib_mgid_set_scope
	movq	_IB_MCR_COMPMASK_MTU@GOTPCREL(%rip), %rax
	movq	_IB_MCR_COMPMASK_MTU_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_IB_MCR_COMPMASK_RATE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_IB_MCR_COMPMASK_RATE_SEL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	leaq	-104(%rbp), %rdx
	callq	_osm_mcmr_rcv_find_or_create_new_mgrp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	48(%rbp), %r8
	movl	%r13d, %r9d
	callq	_track_mgrp_w_partition
	jmp	LBB0_7
LBB0_5:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	48(%rbp), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_inet_ntop
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_cl_ntoh16
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_OSM_LOG
	movq	_IB_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ## @INET6_ADDRSTRLEN
	.comm	_OSM_DEFAULT_MGRP_SCOPE,4,2     ## @OSM_DEFAULT_MGRP_SCOPE
	.comm	_IB_MC_SCOPE_LINK_LOCAL,4,2     ## @IB_MC_SCOPE_LINK_LOCAL
	.comm	_IB_HOPLIMIT_MAX,4,2            ## @IB_HOPLIMIT_MAX
	.comm	_IB_PATH_SELECTOR_EXACTLY,4,2   ## @IB_PATH_SELECTOR_EXACTLY
	.comm	_IB_MC_REC_STATE_FULL_MEMBER,4,2 ## @IB_MC_REC_STATE_FULL_MEMBER
	.comm	_IB_MCR_COMPMASK_MTU,4,2        ## @IB_MCR_COMPMASK_MTU
	.comm	_IB_MCR_COMPMASK_MTU_SEL,4,2    ## @IB_MCR_COMPMASK_MTU_SEL
	.comm	_IB_MCR_COMPMASK_RATE,4,2       ## @IB_MCR_COMPMASK_RATE
	.comm	_IB_MCR_COMPMASK_RATE_SEL,4,2   ## @IB_MCR_COMPMASK_RATE_SEL
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create MC group (%s) with pkey 0x%04x\n"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_IB_ERROR,4,2                   ## @IB_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_prtn_add_mcgroup           ; -- Begin function osm_prtn_add_mcgroup
	.p2align	2
_osm_prtn_add_mcgroup:                  ; @osm_prtn_add_mcgroup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x25, x7
	mov	x22, x6
	stp	w3, w5, [x29, #-160]            ; 8-byte Folded Spill
	mov	x26, x4
	mov	x21, x1
	stur	x0, [x29, #-136]                ; 8-byte Folded Spill
	ldr	x28, [x29, #24]
	ldp	w19, w8, [x29, #16]
	stur	w8, [x29, #-164]                ; 4-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _INET6_ADDRSTRLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INET6_ADDRSTRLEN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x8, x8, x9
	stp	x8, x2, [x29, #-184]            ; 16-byte Folded Spill
	mov	sp, x8
	ldr	x8, [x1, #8]
	stur	x8, [x29, #-152]                ; 8-byte Folded Spill
	ldr	w20, [x2]
	mov	w0, #32768
	bl	_cl_hton16
Lloh8:
	adrp	x8, _OSM_DEFAULT_MGRP_SCOPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OSM_DEFAULT_MGRP_SCOPE@GOTPAGEOFF]
	orr	w24, w0, w20
Lloh10:
	ldr	w8, [x8]
	cmp	w22, #0
	csel	w22, w8, w22, eq
Lloh11:
	adrp	x8, _IB_MC_SCOPE_LINK_LOCAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_MC_SCOPE_LINK_LOCAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IB_HOPLIMIT_MAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_HOPLIMIT_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w22, w8
	csel	w27, wzr, w9, eq
	sub	x20, x29, #128
	sub	x0, x29, #128
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	add	x20, x20, #16
	stur	x28, [x29, #-144]               ; 8-byte Folded Spill
	ldr	w8, [x28]
	stur	w8, [x29, #-112]
	mov	x0, x25
	bl	_CL_HTON32
Lloh17:
	adrp	x8, _IB_PATH_SELECTOR_EXACTLY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_PATH_SELECTOR_EXACTLY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsl	w8, w8, #6
	orr	w9, w8, w26
	stp	w9, w19, [x29, #-128]
	ldp	w1, w9, [x29, #-164]            ; 8-byte Folded Reload
	orr	w8, w8, w9
	stp	w24, w8, [x29, #-120]
	ldr	w8, [x21]
	stp	w8, w0, [x29, #-100]
	ldur	w0, [x29, #-156]                ; 4-byte Folded Reload
	mov	x2, x27
	bl	_ib_member_set_sl_flow_hop
	stur	w0, [x29, #-104]
Lloh20:
	adrp	x8, _IB_MC_REC_STATE_FULL_MEMBER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_MC_REC_STATE_FULL_MEMBER@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ib_member_set_scope_state
	stur	w0, [x29, #-108]
	mov	x0, x20
	mov	x1, x22
	bl	_ib_mgid_set_scope
Lloh23:
	adrp	x8, _IB_MCR_COMPMASK_MTU@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_MCR_COMPMASK_MTU@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _IB_MCR_COMPMASK_MTU_SEL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_MCR_COMPMASK_MTU_SEL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _IB_MCR_COMPMASK_RATE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IB_MCR_COMPMASK_RATE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _IB_MCR_COMPMASK_RATE_SEL@GOTPAGE
Lloh33:
	ldr	x9, [x9, _IB_MCR_COMPMASK_RATE_SEL@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w8, w9
	sub	x2, x29, #128
	ldur	x0, [x29, #-152]                ; 8-byte Folded Reload
	bl	_osm_mcmr_rcv_find_or_create_new_mgrp
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldp	x4, x0, [x29, #-144]            ; 16-byte Folded Reload
	ldur	x1, [x29, #-176]                ; 8-byte Folded Reload
	mov	x3, x21
	mov	x5, x24
	bl	_track_mgrp_w_partition
	b	LBB0_3
LBB0_2:
Lloh35:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w19, [x8]
Lloh38:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	ldr	w1, [x8]
	ldur	x2, [x29, #-184]                ; 8-byte Folded Reload
	mov	x3, x23
	bl	_inet_ntop
	mov	x20, x0
	mov	x0, x24
	bl	_cl_ntoh16
	mov	x4, x0
Lloh41:
	adrp	x2, l_.str@PAGE
Lloh42:
	add	x2, x2, l_.str@PAGEOFF
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	mov	x1, x19
	mov	x3, x20
	bl	_OSM_LOG
Lloh43:
	adrp	x8, _IB_ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IB_ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_INET6_ADDRSTRLEN,4,2           ; @INET6_ADDRSTRLEN
	.comm	_OSM_DEFAULT_MGRP_SCOPE,4,2     ; @OSM_DEFAULT_MGRP_SCOPE
	.comm	_IB_MC_SCOPE_LINK_LOCAL,4,2     ; @IB_MC_SCOPE_LINK_LOCAL
	.comm	_IB_HOPLIMIT_MAX,4,2            ; @IB_HOPLIMIT_MAX
	.comm	_IB_PATH_SELECTOR_EXACTLY,4,2   ; @IB_PATH_SELECTOR_EXACTLY
	.comm	_IB_MC_REC_STATE_FULL_MEMBER,4,2 ; @IB_MC_REC_STATE_FULL_MEMBER
	.comm	_IB_MCR_COMPMASK_MTU,4,2        ; @IB_MCR_COMPMASK_MTU
	.comm	_IB_MCR_COMPMASK_MTU_SEL,4,2    ; @IB_MCR_COMPMASK_MTU_SEL
	.comm	_IB_MCR_COMPMASK_RATE,4,2       ; @IB_MCR_COMPMASK_RATE
	.comm	_IB_MCR_COMPMASK_RATE_SEL,4,2   ; @IB_MCR_COMPMASK_RATE_SEL
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create MC group (%s) with pkey 0x%04x\n"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_IB_ERROR,4,2                   ; @IB_ERROR
.subsections_via_symbols
