	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_sm_info
_query_sm_info:                         ## @query_sm_info
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_map_item@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cl_item_obj
	movq	%rax, %r15
	movl	4(%r14), %edi
	movl	(%rax), %esi
	callq	_osm_get_port_by_guid
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	(%rbx), %rdi
	callq	_osm_physp_get_dr_path_ptr
	movl	%eax, %r15d
	movq	_IB_MAD_ATTR_SM_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %r13d
	movq	(%rbx), %rdi
	callq	_ib_port_info_get_m_key
	movq	_CL_DISP_MSGID_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-56(%rbp), %r10
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	pushq	%r10
	pushq	%rbx
	callq	_osm_req_get
	addq	$16, %rsp
	movq	_IB_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %r14d
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, %rdi
	callq	_ib_get_err_str
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_OSM_LOG
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %edi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OSM_LOG                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_map_item,4,2                   ## @map_item
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERR 3340: No port object on given sm object\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_IB_MAD_ATTR_SM_INFO,4,2        ## @IB_MAD_ATTR_SM_INFO
	.comm	_CL_DISP_MSGID_NONE,4,2         ## @CL_DISP_MSGID_NONE
	.comm	_IB_SUCCESS,8,3                 ## @IB_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"ERR 3314: Failure requesting SMInfo (%s)\n"

	.comm	_r_sm,8,3                       ## @r_sm
	.no_dead_strip	_query_sm_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_sm_info
_query_sm_info:                         ; @query_sm_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
Lloh0:
	adrp	x8, _map_item@GOTPAGE
Lloh1:
	ldr	x8, [x8, _map_item@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_cl_item_obj
	mov	x21, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	bl	_osm_get_port_by_guid
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [sp, #24]
Lloh3:
	adrp	x23, _FALSE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _TRUE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	ldr	x0, [x0]
	bl	_osm_physp_get_dr_path_ptr
	mov	x21, x0
Lloh8:
	adrp	x8, _IB_MAD_ATTR_SM_INFO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_MAD_ATTR_SM_INFO@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	w23, [x23]
	ldr	x0, [x20]
	bl	_ib_port_info_get_m_key
	mov	x5, x0
Lloh11:
	adrp	x8, _CL_DISP_MSGID_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CL_DISP_MSGID_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	add	x7, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x4, x23
	bl	_osm_req_get
Lloh14:
	adrp	x8, _IB_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	ldr	w19, [x19]
Lloh17:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	bl	_ib_get_err_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_OSM_LOG
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	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
	add	sp, sp, #96
	b	_OSM_LOG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_map_item,4,2                   ; @map_item
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERR 3340: No port object on given sm object\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_IB_MAD_ATTR_SM_INFO,4,2        ; @IB_MAD_ATTR_SM_INFO
	.comm	_CL_DISP_MSGID_NONE,4,2         ; @CL_DISP_MSGID_NONE
	.comm	_IB_SUCCESS,8,3                 ; @IB_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"ERR 3314: Failure requesting SMInfo (%s)\n"

	.comm	_r_sm,8,3                       ; @r_sm
	.no_dead_strip	_query_sm_info
.subsections_via_symbols
