	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function path_record_query
_path_record_query:                     ## @path_record_query
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	%rsi, -72(%rbp)
	xorl	%eax, %eax
	callq	_sa_get_handle
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_DEFAULT_HALF_WORLD_PR_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ibd_timeout@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-56(%rbp), %esi
	movq	_PR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_SGID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	callq	_CHECK_AND_SET_GID
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	_IB_GID_GUID_F@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movl	%r12d, %edi
	callq	_mad_encode_field
	movl	-60(%rbp), %esi
	movl	(%r13), %edx
	movq	_DGID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	callq	_CHECK_AND_SET_GID
LBB0_4:
	movl	-64(%rbp), %ecx
	movl	(%r13), %r8d
	movq	_NUMBPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, %edi
	movl	$8, %esi
	movl	$-1, %edx
	callq	_CHECK_AND_SET_VAL
	movl	(%r13), %r8d
	movq	_REVERSIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, %edi
	movl	$8, %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_CHECK_AND_SET_VAL
	movq	_IB_MAD_METHOD_GET_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IB_SA_ATTR_PATHRECORD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_cl_ntoh64
	movq	_ibd_sakey@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	subq	$8, %rsp
	leaq	-48(%rbp), %r10
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	pushq	%r10
	pushq	$12
	pushq	%r14
	callq	_sa_query
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_sa_free_handle
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_fprintf
	jmp	LBB0_10
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	-48(%rbp), %rdi
	movq	_IB_SA_MAD_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_7
## %bb.8:
	leaq	-48(%rbp), %rdi
	callq	_insert_lid2sl_table
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	callq	_sa_report_err
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_sa_free_handle
	leaq	-48(%rbp), %rdi
	callq	_sa_free_result_mad
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_HALF_WORLD_PR_TIMEOUT,4,2 ## @DEFAULT_HALF_WORLD_PR_TIMEOUT
	.comm	_ibd_timeout,4,2                ## @ibd_timeout
	.comm	_PR,4,2                         ## @PR
	.comm	_SGID,4,2                       ## @SGID
	.comm	_IB_GID_GUID_F,4,2              ## @IB_GID_GUID_F
	.comm	_DGID,4,2                       ## @DGID
	.comm	_NUMBPATH,4,2                   ## @NUMBPATH
	.comm	_REVERSIBLE,4,2                 ## @REVERSIBLE
	.comm	_IB_MAD_METHOD_GET_TABLE,4,2    ## @IB_MAD_METHOD_GET_TABLE
	.comm	_IB_SA_ATTR_PATHRECORD,8,3      ## @IB_SA_ATTR_PATHRECORD
	.comm	_ibd_sakey,4,2                  ## @ibd_sakey
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Query SA failed: %s; sa call path_query failed\n"

	.comm	_IB_SA_MAD_STATUS_SUCCESS,8,3   ## @IB_SA_MAD_STATUS_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_path_record_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function path_record_query
_path_record_query:                     ; @path_record_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x20, x0
	str	x1, [sp, #40]
	bl	_sa_get_handle
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _DEFAULT_HALF_WORLD_PR_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_HALF_WORLD_PR_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ibd_timeout@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ibd_timeout@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh6:
	adrp	x23, _PR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PR@GOTPAGEOFF]
	ldr	w1, [sp, #32]
	ldr	w2, [x23]
Lloh8:
	adrp	x8, _SGID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SGID@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	and	x22, x20, #0xffffffff
	mov	x0, x22
	bl	_CHECK_AND_SET_GID
	cbz	x21, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _IB_GID_GUID_F@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_GID_GUID_F@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x20
	bl	_mad_encode_field
	ldr	w1, [sp, #28]
	ldr	w2, [x23]
Lloh14:
	adrp	x8, _DGID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DGID@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_CHECK_AND_SET_GID
LBB0_3:
	ldr	w3, [sp, #24]
	ldr	w4, [x23]
Lloh17:
	adrp	x8, _NUMBPATH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NUMBPATH@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	mov	w0, #1
	mov	w1, #8
	mov	w2, #-1
	bl	_CHECK_AND_SET_VAL
	ldr	w4, [x23]
Lloh20:
	adrp	x8, _REVERSIBLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REVERSIBLE@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
	mov	w0, #1
	mov	w1, #8
	mov	w2, #-1
	mov	w3, #0
	bl	_CHECK_AND_SET_VAL
Lloh23:
	adrp	x8, _IB_MAD_METHOD_GET_TABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_MAD_METHOD_GET_TABLE@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
Lloh26:
	adrp	x8, _IB_SA_ATTR_PATHRECORD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IB_SA_ATTR_PATHRECORD@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x8]
	mov	w0, #0
	bl	_cl_ntoh64
	mov	x4, x0
Lloh29:
	adrp	x8, _ibd_sakey@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ibd_sakey@GOTPAGEOFF]
Lloh31:
	ldr	w5, [x8]
	add	x8, sp, #16
	str	x8, [sp]
	add	x6, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w3, #0
	mov	w7, #12
	bl	_sa_query
	cbz	w0, LBB0_6
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_sa_free_handle
Lloh32:
	adrp	x8, _stderr@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh34:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_strerror
	mov	x2, x0
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	b	LBB0_10
LBB0_5:
	mov	w20, #-1
	b	LBB0_10
LBB0_6:
	ldr	x0, [sp, #16]
Lloh37:
	adrp	x8, _IB_SA_MAD_STATUS_SUCCESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IB_SA_MAD_STATUS_SUCCESS@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	add	x0, sp, #16
	bl	_insert_lid2sl_table
	mov	w20, #0
	b	LBB0_9
LBB0_8:
	bl	_sa_report_err
Lloh40:
	adrp	x8, _EIO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh42:
	ldr	w20, [x8]
LBB0_9:
	mov	x0, x19
	bl	_sa_free_handle
	add	x0, sp, #16
	bl	_sa_free_result_mad
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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 AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_HALF_WORLD_PR_TIMEOUT,4,2 ; @DEFAULT_HALF_WORLD_PR_TIMEOUT
	.comm	_ibd_timeout,4,2                ; @ibd_timeout
	.comm	_PR,4,2                         ; @PR
	.comm	_SGID,4,2                       ; @SGID
	.comm	_IB_GID_GUID_F,4,2              ; @IB_GID_GUID_F
	.comm	_DGID,4,2                       ; @DGID
	.comm	_NUMBPATH,4,2                   ; @NUMBPATH
	.comm	_REVERSIBLE,4,2                 ; @REVERSIBLE
	.comm	_IB_MAD_METHOD_GET_TABLE,4,2    ; @IB_MAD_METHOD_GET_TABLE
	.comm	_IB_SA_ATTR_PATHRECORD,8,3      ; @IB_SA_ATTR_PATHRECORD
	.comm	_ibd_sakey,4,2                  ; @ibd_sakey
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Query SA failed: %s; sa call path_query failed\n"

	.comm	_IB_SA_MAD_STATUS_SUCCESS,8,3   ; @IB_SA_MAD_STATUS_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_path_record_query
.subsections_via_symbols
