	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function partition_create
_partition_create:                      ## @partition_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.2:
	movsbl	(%rbx), %edi
	callq	_isdigit
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_4:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.5:
	movq	%rbx, %r15
	movq	%rcx, %rbx
LBB0_6:
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtoul
	movl	%eax, %edi
	callq	_cl_hton16
                                        ## kill: def $eax killed $eax def $rax
	movq	-72(%rbp), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_8
## %bb.7:
	cmpb	$0, (%rcx)
	jne	LBB0_8
## %bb.10:
	movq	%r15, %rbx
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movl	48(%r14), %edi
	movq	56(%r14), %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_osm_prtn_make_new
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	(%r14), %rcx
	movq	56(%r14), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_15
## %bb.13:
	movq	_OSM_DEFAULT_SL@GOTPCREL(%rip), %r15
	movq	(%r15), %r8
	cmpq	%r8, %rcx
	je	LBB0_15
## %bb.14:
	movl	48(%r14), %edi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %r9
	callq	_OSM_LOG
	movq	(%r15), %rcx
	movq	%rcx, (%r14)
	movq	32(%r14), %rax
LBB0_15:
	movq	%rcx, 8(%rax)
	cmpq	$0, 40(%r14)
	je	LBB0_20
## %bb.16:
	leaq	-72(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_osm_ipoib_broadcast_mgid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$32768, %edi                    ## imm = 0x8000
	callq	_CL_HTON16
	movq	32(%r14), %rcx
	orl	(%rcx), %eax
	movl	%eax, -28(%rbp)
	movq	-40(%rbp), %rdi
	addq	$16, %rdi
	leaq	-28(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	28(%r14), %eax
	movl	%eax, -44(%rbp)
	movl	24(%r14), %eax
	movl	%eax, -48(%rbp)
	movq	(%r14), %rax
	movq	%rax, -72(%rbp)
	movq	16(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	_OSM_IPOIB_BROADCAST_MGRP_QKEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_18:
	movq	%rax, -56(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -60(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -64(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	___create_mgrp
	jmp	LBB0_21
LBB0_8:
	movl	$-1, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_DEFAULT_SL,8,3             ## @OSM_DEFAULT_SL
	.comm	_OSM_LOG_DEBUG,4,2              ## @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Overriding SL %d to default SL %d on partition %s as QoS is not enabled.\n"

	.comm	_osm_ipoib_broadcast_mgid,8,3   ## @osm_ipoib_broadcast_mgid
	.comm	_OSM_IPOIB_BROADCAST_MGRP_QKEY,8,3 ## @OSM_IPOIB_BROADCAST_MGRP_QKEY
	.no_dead_strip	_partition_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function partition_create
_partition_create:                      ; @partition_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	x20, x2
	mov	x19, x1
	cbz	x2, LBB0_4
; %bb.1:
	cbnz	x3, LBB0_4
; %bb.2:
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:
	cbz	x3, LBB0_10
; %bb.5:
	mov	x21, x20
	mov	x20, x3
LBB0_6:
	mov	x1, sp
	mov	x0, x20
	mov	w2, #0
	bl	_strtoul
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cl_hton16
	ldr	x8, [sp]
	cmp	x8, x20
	b.eq	LBB0_17
; %bb.7:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_17
; %bb.8:
	mov	x3, x0
	mov	x20, x21
	b	LBB0_10
LBB0_9:
	mov	w3, #0
LBB0_10:
	ldr	w0, [x19, #48]
	ldr	x1, [x19, #56]
	mov	x2, x20
	bl	_osm_prtn_make_new
	str	x0, [x19, #32]
	cbz	x0, LBB0_17
; %bb.11:
	ldr	x8, [x19, #56]
	ldr	w8, [x8]
	ldr	x3, [x19]
	cbnz	w8, LBB0_14
; %bb.12:
Lloh0:
	adrp	x21, _OSM_DEFAULT_SL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OSM_DEFAULT_SL@GOTPAGEOFF]
	ldr	x4, [x21]
	cmp	x3, x4
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19, #48]
Lloh2:
	adrp	x8, _OSM_LOG_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x5, x20
	bl	_OSM_LOG
	ldr	x3, [x21]
	str	x3, [x19]
	ldr	x0, [x19, #32]
LBB0_14:
	str	x3, [x0, #8]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh7:
	adrp	x8, _osm_ipoib_broadcast_mgid@GOTPAGE
Lloh8:
	ldr	x8, [x8, _osm_ipoib_broadcast_mgid@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [sp, #32]
	mov	w0, #32768
	bl	_CL_HTON16
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	orr	w8, w8, w0
	stur	w8, [x29, #-36]
	ldr	x8, [sp, #32]
	add	x0, x8, #16
	sub	x1, x29, #36
	mov	w2, #4
	bl	_memcpy
	ldr	d0, [x19, #24]
	str	d0, [sp, #24]
	ldr	x8, [x19]
	str	x8, [sp]
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _OSM_IPOIB_BROADCAST_MGRP_QKEY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OSM_IPOIB_BROADCAST_MGRP_QKEY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [sp, #16]
	ldr	d0, [x19, #8]
	str	d0, [sp, #8]
	mov	x1, sp
	mov	x0, x19
	bl	___create_mgrp
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
	mov	w0, #-1
LBB0_18:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_DEFAULT_SL,8,3             ; @OSM_DEFAULT_SL
	.comm	_OSM_LOG_DEBUG,4,2              ; @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Overriding SL %d to default SL %d on partition %s as QoS is not enabled.\n"

	.comm	_osm_ipoib_broadcast_mgid,8,3   ; @osm_ipoib_broadcast_mgid
	.comm	_OSM_IPOIB_BROADCAST_MGRP_QKEY,8,3 ; @OSM_IPOIB_BROADCAST_MGRP_QKEY
	.no_dead_strip	_partition_create
.subsections_via_symbols
