	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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
	movq	%rax, %r15
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.1:
	leal	-1(%r14), %ecx
	cmpl	(%r15), %ecx
	jae	LBB0_3
## %bb.2:
	movq	16(%r15), %rax
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	%rcx, 16(%rbx)
	jmp	LBB0_5
LBB0_3:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	16(%r15), %rax
LBB0_5:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 24(%rbx)
	movl	$1, 32(%rbx)
	movl	(%r12), %ecx
	movl	%ecx, 92(%rbx)
	movq	_ib_qib_sys_image_guid@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 88(%rbx)
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	%r15, %rdi
	callq	_qib_get_npkeys
	movl	%eax, %edi
	callq	_cpu_to_be16
	movq	%rax, 80(%rbx)
	movl	12(%r15), %edi
	callq	_cpu_to_be16
	movq	%rax, 72(%rbx)
	movl	4(%r15), %edi
	shll	$16, %edi
	orl	8(%r15), %edi
	callq	_cpu_to_be32
	movl	%eax, 64(%rbx)
	movl	%r14d, 48(%rbx)
	movq	_QIB_SRC_OUI_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	56(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_QIB_SRC_OUI_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_QIB_SRC_OUI_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_ib_qib_sys_image_guid,4,2      ## @ib_qib_sys_image_guid
	.comm	_QIB_SRC_OUI_1,4,2              ## @QIB_SRC_OUI_1
	.comm	_QIB_SRC_OUI_2,4,2              ## @QIB_SRC_OUI_2
	.comm	_QIB_SRC_OUI_3,4,2              ## @QIB_SRC_OUI_3
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_dd_from_ibdev
	mov	x21, x0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.1:
	sub	w9, w20, #1
	ldr	w8, [x21]
	cmp	w9, w8
	b.hs	LBB0_4
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	x9, [x8, w9, uxtw #3]
	cbz	x9, LBB0_4
; %bb.3:
	str	x9, [x19, #16]
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x21, #16]
LBB0_5:
	movi.2s	v0, #1
	str	d0, [x19, #24]
	mov	w9, #1
	str	w9, [x19, #32]
Lloh3:
	adrp	x9, _ib_qib_sys_image_guid@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ib_qib_sys_image_guid@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w10, [x19, #88]
	ldr	x8, [x8]
	str	x8, [x19, #40]
	mov	x0, x21
	bl	_qib_get_npkeys
	bl	_cpu_to_be16
	str	x0, [x19, #80]
	ldr	w0, [x21, #12]
	bl	_cpu_to_be16
	str	x0, [x19, #72]
	ldp	w8, w9, [x21, #4]
	orr	w0, w9, w8, lsl #16
	bl	_cpu_to_be32
	str	w0, [x19, #64]
	str	w20, [x19, #48]
Lloh6:
	adrp	x8, _QIB_SRC_OUI_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QIB_SRC_OUI_1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #56]
	str	w8, [x9]
Lloh9:
	adrp	x8, _QIB_SRC_OUI_2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QIB_SRC_OUI_2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x10, _QIB_SRC_OUI_3@GOTPAGE
Lloh13:
	ldr	x10, [x10, _QIB_SRC_OUI_3@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w8, w10, [x9, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_reply
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_ib_qib_sys_image_guid,4,2      ; @ib_qib_sys_image_guid
	.comm	_QIB_SRC_OUI_1,4,2              ; @QIB_SRC_OUI_1
	.comm	_QIB_SRC_OUI_2,4,2              ; @QIB_SRC_OUI_2
	.comm	_QIB_SRC_OUI_3,4,2              ; @QIB_SRC_OUI_3
	.no_dead_strip	_subn_get_nodeinfo
.subsections_via_symbols
