	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subn_get_nodeinfo
_subn_get_nodeinfo:                     ## @subn_get_nodeinfo
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_dd_from_ibdev
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.1:
	movq	%rax, %r15
	leal	-1(%r14), %eax
	cmpl	(%r15), %eax
	jae	LBB0_4
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_to_iport
	movq	_HFI1_PORT_GUID_INDEX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_get_sguid
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_to_iport
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_get_sguid
	movq	%rax, 88(%rbx)
	movq	_OPA_MGMT_BASE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_OPA_SM_CLASS_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movl	$1, 16(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 76(%rbx)
	movq	_ib_hfi1_sys_image_guid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	(%r12), %rax
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	callq	_hfi1_get_npkeys
	movl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 64(%rbx)
	movq	24(%r15), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	%rax, 56(%rbx)
	movl	16(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 48(%rbx)
	movl	%r14d, 32(%rbx)
	movl	12(%r15), %eax
	movq	40(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	8(%r15), %eax
	movl	%eax, 4(%rcx)
	movl	4(%r15), %eax
	movl	%eax, 8(%rcx)
	jmp	LBB0_6
LBB0_4:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HFI1_PORT_GUID_INDEX,4,2       ## @HFI1_PORT_GUID_INDEX
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_OPA_MGMT_BASE_VERSION,4,2      ## @OPA_MGMT_BASE_VERSION
	.comm	_OPA_SM_CLASS_VERSION,4,2       ## @OPA_SM_CLASS_VERSION
	.comm	_ib_hfi1_sys_image_guid,4,2     ## @ib_hfi1_sys_image_guid
	.no_dead_strip	_subn_get_nodeinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subn_get_nodeinfo
_subn_get_nodeinfo:                     ; @subn_get_nodeinfo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_dd_from_ibdev
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
; %bb.1:
	mov	x21, x0
	sub	w8, w20, #1
	ldr	w9, [x0]
	cmp	w8, w9
	b.hs	LBB0_5
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x22
	mov	x1, x20
	bl	_to_iport
Lloh0:
	adrp	x23, _HFI1_PORT_GUID_INDEX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HFI1_PORT_GUID_INDEX@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_get_sguid
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_to_iport
	ldr	w1, [x23]
	bl	_get_sguid
	str	x0, [x19, #88]
Lloh2:
	adrp	x8, _OPA_MGMT_BASE_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPA_MGMT_BASE_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _OPA_SM_CLASS_VERSION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OPA_SM_CLASS_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #80]
	mov	w8, #1
	str	w8, [x19, #16]
Lloh8:
	adrp	x8, _ib_hfi1_sys_image_guid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ib_hfi1_sys_image_guid@GOTPAGEOFF]
	ldr	w9, [x22, #8]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #72]
	ldr	x8, [x22]
	str	x8, [x19, #24]
	mov	x0, x21
	bl	_hfi1_get_npkeys
	bl	_cpu_to_be16
	str	x0, [x19, #64]
	ldr	x8, [x21, #24]
	ldr	w0, [x8]
	bl	_cpu_to_be16
	str	x0, [x19, #56]
	ldr	w0, [x21, #16]
	bl	_cpu_to_be32
	str	w0, [x19, #48]
	str	w20, [x19, #32]
	ldr	w8, [x21, #12]
	ldr	x9, [x19, #40]
	str	w8, [x9]
	ldr	w8, [x21, #8]
	str	w8, [x9, #4]
	ldr	w8, [x21, #4]
	str	w8, [x9, #8]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_reply
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HFI1_PORT_GUID_INDEX,4,2       ; @HFI1_PORT_GUID_INDEX
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_OPA_MGMT_BASE_VERSION,4,2      ; @OPA_MGMT_BASE_VERSION
	.comm	_OPA_SM_CLASS_VERSION,4,2       ; @OPA_SM_CLASS_VERSION
	.comm	_ib_hfi1_sys_image_guid,4,2     ; @ib_hfi1_sys_image_guid
	.no_dead_strip	_subn_get_nodeinfo
.subsections_via_symbols
