	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mgroup_create
_mgroup_create:                         ## @mgroup_create
	.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	%rcx, %r15
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	-88(%rbp), %rax
	cmpl	$255, (%rax)
	jne	LBB0_2
## %bb.3:
	movl	48(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	24(%r15), %rax
	movq	%rax, -80(%rbp)
	movups	32(%r15), %xmm0
	movups	%xmm0, -72(%rbp)
	movl	16(%r15), %edi
	leaq	-88(%rbp), %r14
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_parse_mgroup_flags
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mgid_is_ip
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	8(%r15), %rax
	movl	(%rax), %r14d
	movl	$32768, %edi                    ## imm = 0x8000
	callq	_cl_hton16
	orl	%r14d, %eax
	movl	%eax, -44(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ip_mgroup_pkey_ok
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ip_mgroup_rate_ok
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ip_mgroup_mtu_ok
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movq	-88(%rbp), %rdi
	addq	$16, %rdi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	cmpq	$0, -80(%rbp)
	jne	LBB0_9
## %bb.8:
	movq	_OSM_IPOIB_BROADCAST_MGRP_QKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
LBB0_9:
	movl	(%r15), %edi
	leaq	-88(%rbp), %rsi
	callq	_osm_get_mgrp_by_mgid
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	callq	___create_mgrp
	jmp	LBB0_11
LBB0_2:
	movl	16(%r15), %edi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	movq	%rbx, %r8
	callq	_OSM_LOG
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PARSE ERROR partition conf file line %d: mgid \"%s\": gid is not multicast\n"

	.comm	_OSM_IPOIB_BROADCAST_MGRP_QKEY,8,3 ## @OSM_IPOIB_BROADCAST_MGRP_QKEY
	.no_dead_strip	_mgroup_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mgroup_create
_mgroup_create:                         ; @mgroup_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x22
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cmp	w8, #255
	b.ne	LBB0_10
; %bb.2:
	ldr	w8, [x19, #48]
	str	w8, [sp, #40]
	ldr	x8, [x19, #24]
	str	x8, [sp, #16]
	ldp	d1, d0, [x19, #32]
	stp	d1, d0, [sp, #24]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	mov	x2, x21
	mov	x3, x20
	bl	_parse_mgroup_flags
	mov	x20, x0
	add	x0, sp, #8
	bl	_mgid_is_ip
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w21, [x8]
	mov	w0, #32768
	bl	_cl_hton16
	orr	w8, w0, w21
	str	w8, [sp, #4]
	add	x1, sp, #8
	mov	x0, x19
	bl	_ip_mgroup_pkey_ok
	cbz	w0, LBB0_11
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ip_mgroup_rate_ok
	cbz	w0, LBB0_11
; %bb.5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ip_mgroup_mtu_ok
	cbz	w0, LBB0_11
; %bb.6:
	ldr	x8, [sp, #8]
	add	x0, x8, #16
	add	x1, sp, #4
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _OSM_IPOIB_BROADCAST_MGRP_QKEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OSM_IPOIB_BROADCAST_MGRP_QKEY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #16]
LBB0_8:
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_osm_get_mgrp_by_mgid
	cbnz	x0, LBB0_11
; %bb.9:
	add	x1, sp, #8
	mov	x0, x19
	bl	___create_mgrp
	b	LBB0_11
LBB0_10:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x22
	bl	_OSM_LOG
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PARSE ERROR partition conf file line %d: mgid \"%s\": gid is not multicast\n"

	.comm	_OSM_IPOIB_BROADCAST_MGRP_QKEY,8,3 ; @OSM_IPOIB_BROADCAST_MGRP_QKEY
	.no_dead_strip	_mgroup_create
.subsections_via_symbols
