	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_path_rec_get             ## -- Begin function ib_sa_path_rec_get
	.p2align	4, 0x90
_ib_sa_path_rec_get:                    ## @ib_sa_path_rec_get
	.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	%r9, %r14
	movl	%r8d, %r12d
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_sa_client@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_ib_get_client_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rcx
	movq	_SA_PATH_REC_TYPE_IB@GOTPCREL(%rip), %rdx
	movq	_SA_PATH_REC_TYPE_OPA@GOTPCREL(%rip), %rsi
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.4:
	cmpq	(%rsi), %rcx
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %esi
	movq	8(%rax), %r12
	movq	%r13, %r14
	subq	(%rax), %r14
	movq	(%r12,%r14,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	(%r12,%r14,8), %rcx
	movq	%rax, %r14
	addq	$24, %r14
	movq	%rcx, 64(%rax)
	movq	(%rbx), %rcx
	movq	_SA_PATH_REC_TYPE_OPA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	%rax, %r12
	jne	LBB0_14
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_opa_pr_query_possible
	movq	_PR_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_28
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_PR_OPA_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.13:
	movq	_IB_SA_QUERY_OPA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_14
LBB0_19:
	movl	$80, %edi
	movl	16(%rbp), %esi
	callq	_kmalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_20
LBB0_14:
	movq	%rbx, %r13
	movq	%r14, %rdi
	movl	16(%rbp), %esi
	callq	_alloc_mad
	movq	%r14, %rbx
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_15
LBB0_27:
	movq	16(%r12), %rdi
	callq	_kfree
LBB0_28:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_29
LBB0_15:
	movq	24(%rbp), %r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_ib_sa_client_get
	movq	%r14, 32(%r12)
	movq	%r15, 8(%r12)
	movq	32(%rbp), %rax
	movq	%rax, 72(%r12)
	movq	40(%r12), %rax
	movq	8(%rax), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_init_mad
	testq	%r15, %r15
	je	LBB0_17
## %bb.16:
	movq	_ib_sa_path_rec_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_17:
	movq	%r15, 56(%r12)
	movq	_ib_sa_path_rec_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movq	_IB_MGMT_METHOD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_IB_SA_ATTR_PATH_REC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, 8(%r14)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movq	_IB_SA_QUERY_OPA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r12)
	je	LBB0_21
## %bb.18:
	movq	_opa_path_rec_table@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	(%r14), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r13, %rbx
	movq	%r13, %rdx
	jmp	LBB0_25
LBB0_21:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movq	%r13, %rbx
	movq	%r13, %rsi
	callq	_sa_convert_path_opa_to_ib
	movq	_path_rec_table@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	16(%r12), %rdx
	movl	(%r14), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
LBB0_25:
	callq	_ib_pack
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	40(%rbp), %r15
	movq	%r13, (%r15)
	movq	_IB_SA_ENABLE_LOCAL_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
	movq	16(%r12), %rax
	movq	40(%r12), %rcx
	testq	%rax, %rax
	cmovneq	%rax, %rbx
	movq	(%rcx), %rax
	movq	%rbx, 8(%rax)
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	16(%rbp), %edx
	callq	_send_mad
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_29
## %bb.26:
	movq	$0, (%r15)
	movq	32(%r12), %rdi
	callq	_ib_sa_client_put
	movq	%r13, %rdi
	callq	_free_mad
	jmp	LBB0_27
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_23:
	movq	_path_rec_table@GOTPCREL(%rip), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_sa_client,4,2                  ## @sa_client
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SA_PATH_REC_TYPE_IB,8,3        ## @SA_PATH_REC_TYPE_IB
	.comm	_SA_PATH_REC_TYPE_OPA,8,3       ## @SA_PATH_REC_TYPE_OPA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PR_NOT_SUPPORTED,4,2           ## @PR_NOT_SUPPORTED
	.comm	_PR_OPA_SUPPORTED,4,2           ## @PR_OPA_SUPPORTED
	.comm	_IB_SA_QUERY_OPA,4,2            ## @IB_SA_QUERY_OPA
	.comm	_ib_sa_path_rec_callback,8,3    ## @ib_sa_path_rec_callback
	.comm	_ib_sa_path_rec_release,4,2     ## @ib_sa_path_rec_release
	.comm	_IB_MGMT_METHOD_GET,4,2         ## @IB_MGMT_METHOD_GET
	.comm	_IB_SA_ATTR_PATH_REC,4,2        ## @IB_SA_ATTR_PATH_REC
	.comm	_opa_path_rec_table,4,2         ## @opa_path_rec_table
	.comm	_path_rec_table,4,2             ## @path_rec_table
	.comm	_IB_SA_ENABLE_LOCAL_SERVICE,4,2 ## @IB_SA_ENABLE_LOCAL_SERVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_sa_path_rec_get             ; -- Begin function ib_sa_path_rec_get
	.p2align	2
_ib_sa_path_rec_get:                    ; @ib_sa_path_rec_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x25, x7
	mov	x27, x6
	mov	x19, x5
	mov	x24, x4
	mov	x22, x3
	mov	x28, x2
	mov	x23, x1
	mov	x26, x0
Lloh0:
	adrp	x1, _sa_client@GOTPAGE
Lloh1:
	ldr	x1, [x1, _sa_client@GOTPAGEOFF]
	mov	x0, x23
	bl	_ib_get_client_data
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _SA_PATH_REC_TYPE_IB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SA_PATH_REC_TYPE_IB@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x20, _SA_PATH_REC_TYPE_OPA@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SA_PATH_REC_TYPE_OPA@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.2:
	ldp	x9, x8, [x0]
	sub	x9, x28, x9
	add	x21, x8, x9, lsl #3
	ldr	x8, [x21]
	stp	x8, x19, [sp, #8]               ; 16-byte Folded Spill
	mov	w0, #80
	mov	x1, x27
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	str	w27, [sp, #28]                  ; 4-byte Folded Spill
	add	x27, x0, #24
	str	x21, [x0, #64]
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.4:
	mov	x0, x26
	mov	x1, x23
	mov	x2, x28
	mov	x3, x22
	bl	_opa_pr_query_possible
Lloh7:
	adrp	x8, _PR_NOT_SUPPORTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PR_NOT_SUPPORTED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_17
LBB0_7:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_11:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
Lloh18:
	adrp	x8, _PR_OPA_SUPPORTED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PR_OPA_SUPPORTED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.13:
Lloh21:
	adrp	x8, _IB_SA_QUERY_OPA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_SA_QUERY_OPA@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
	b	LBB0_15
LBB0_14:
	mov	w0, #80
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_25
LBB0_15:
	mov	x0, x27
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_alloc_mad
	mov	x28, x0
	cbz	w0, LBB0_18
LBB0_16:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_17:
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
LBB0_18:
	ldp	x21, x20, [x29, #16]
	mov	x0, x26
	bl	_ib_sa_client_get
	str	x26, [x19, #32]
	str	x25, [x19, #8]
	str	x21, [x19, #72]
	ldr	x8, [x19, #40]
	ldr	x26, [x8, #8]
	mov	x0, x27
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_init_mad
Lloh24:
	adrp	x8, _ib_sa_path_rec_callback@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ib_sa_path_rec_callback@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x25, #0
	csel	x8, xzr, x8, eq
	str	x8, [x19, #56]
Lloh27:
	adrp	x8, _ib_sa_path_rec_release@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ib_sa_path_rec_release@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IB_MGMT_METHOD_GET@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IB_MGMT_METHOD_GET@GOTPAGEOFF]
	str	w8, [x19, #48]
Lloh32:
	ldr	w8, [x9]
	str	w8, [x26, #12]
Lloh33:
	adrp	x8, _IB_SA_ATTR_PATH_REC@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IB_SA_ATTR_PATH_REC@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	stp	w24, w0, [x26, #4]
	ldr	w8, [x19, #24]
Lloh36:
	adrp	x9, _IB_SA_QUERY_OPA@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IB_SA_QUERY_OPA@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.19:
Lloh39:
	adrp	x8, _opa_path_rec_table@GOTPAGE
Lloh40:
	ldr	x8, [x8, _opa_path_rec_table@GOTPAGEOFF]
LBB0_20:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	w3, [x26]
	mov	x0, x23
	mov	x2, x22
	b	LBB0_23
LBB0_21:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_26
; %bb.22:
	mov	x1, x22
	bl	_sa_convert_path_opa_to_ib
Lloh41:
	adrp	x8, _path_rec_table@GOTPAGE
Lloh42:
	ldr	x8, [x8, _path_rec_table@GOTPAGEOFF]
Lloh43:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x19, #16]
	ldr	w3, [x26]
	mov	x0, x23
LBB0_23:
	bl	_ib_pack
	str	x27, [x20]
Lloh44:
	adrp	x8, _IB_SA_ENABLE_LOCAL_SERVICE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IB_SA_ENABLE_LOCAL_SERVICE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	cmp	x8, #0
	csel	x8, x22, x8, eq
	ldr	x9, [x19, #40]
	ldr	x9, [x9]
	str	x8, [x9, #8]
	mov	x0, x27
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_send_mad
	mov	x28, x0
	tbz	w0, #31, LBB0_11
; %bb.24:
	str	xzr, [x20]
	ldr	x0, [x19, #32]
	bl	_ib_sa_client_put
	mov	x0, x27
	bl	_free_mad
	b	LBB0_16
LBB0_25:
Lloh47:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_26:
Lloh49:
	adrp	x8, _path_rec_table@GOTPAGE
Lloh50:
	ldr	x8, [x8, _path_rec_table@GOTPAGEOFF]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_sa_client,4,2                  ; @sa_client
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SA_PATH_REC_TYPE_IB,8,3        ; @SA_PATH_REC_TYPE_IB
	.comm	_SA_PATH_REC_TYPE_OPA,8,3       ; @SA_PATH_REC_TYPE_OPA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PR_NOT_SUPPORTED,4,2           ; @PR_NOT_SUPPORTED
	.comm	_PR_OPA_SUPPORTED,4,2           ; @PR_OPA_SUPPORTED
	.comm	_IB_SA_QUERY_OPA,4,2            ; @IB_SA_QUERY_OPA
	.comm	_ib_sa_path_rec_callback,8,3    ; @ib_sa_path_rec_callback
	.comm	_ib_sa_path_rec_release,4,2     ; @ib_sa_path_rec_release
	.comm	_IB_MGMT_METHOD_GET,4,2         ; @IB_MGMT_METHOD_GET
	.comm	_IB_SA_ATTR_PATH_REC,4,2        ; @IB_SA_ATTR_PATH_REC
	.comm	_opa_path_rec_table,4,2         ; @opa_path_rec_table
	.comm	_path_rec_table,4,2             ; @path_rec_table
	.comm	_IB_SA_ENABLE_LOCAL_SERVICE,4,2 ; @IB_SA_ENABLE_LOCAL_SERVICE
.subsections_via_symbols
