	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_node
_open_node:                             ## @open_node
	.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
	movq	%rdi, %r15
	movq	(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.1:
	movl	(%rcx), %r9d
	leal	-1(%r9), %edi
	xorl	%r12d, %r12d
	cmpl	$2, %r9d
	jl	LBB0_8
## %bb.2:
	movq	%rdx, %r14
	movl	(%r15), %r8d
	xorl	%ebx, %ebx
	testl	%r8d, %r8d
	movl	$0, %r12d
	cmovgl	%r8d, %r12d
	movl	%edi, %r10d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r12
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rcx), %rax
	movq	(%rax,%rbx,8), %rax
	movq	8(%r15), %rdx
	cmpq	(%rdx,%rbx,8), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r10
	jne	LBB0_3
	jmp	LBB0_10
LBB0_4:
	subl	%r8d, %r9d
	movl	%r9d, %edi
	callq	_close_node
	movl	%eax, %esi
	movq	(%r14), %rax
	movl	(%rax), %edi
	decl	%edi
LBB0_8:
	subl	%r12d, %edi
	jle	LBB0_10
LBB0_9:
	decl	%esi
	callq	_close_node
	movl	%eax, %esi
	incl	%esi
LBB0_10:
	movslq	%esi, %r13
	movq	_cut@GOTPCREL(%rip), %r14
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	leaq	1(%r13), %r12
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%r15), %rax
	decq	%rax
	cmpq	%rax, %r13
	jge	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movslq	(%r14), %rax
	cmpq	%rax, %r13
	jl	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%r15), %rsi
	movl	%r12d, %edi
	callq	_smiGetNodeByOID
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_pindent
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$32, %edi
	callq	_putchar
	movq	%rbx, %rdi
	callq	_print_name
	movl	$10, %edi
	callq	_putchar
	movq	%r12, %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %r13
	jmp	LBB0_11
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%ebx, %r12d
	subl	%r12d, %edi
	jg	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_cut,4,2                        ## @cut
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%u"

	.no_dead_strip	_open_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_node
_open_node:                             ; @open_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x9, [x2]
	cbz	x9, LBB0_10
; %bb.1:
	ldr	w10, [x9]
	sub	w8, w10, #1
	cmp	w10, #2
	b.lt	LBB0_6
; %bb.2:
	mov	x20, x2
	mov	x11, #0
	ldr	w12, [x19]
	cmp	w12, #0
	csel	w21, w12, wzr, gt
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x11
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x9, #8]
	lsl	x14, x11, #3
	ldr	x13, [x13, x14]
	ldr	x15, [x19, #8]
	ldr	x14, [x15, x14]
	cmp	x13, x14
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #1
	cmp	x8, x11
	b.ne	LBB0_3
	b	LBB0_10
LBB0_6:
	mov	w21, #0
	subs	w0, w8, w21
	b.gt	LBB0_9
	b	LBB0_10
LBB0_7:
	sub	w0, w10, w12
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_close_node
	mov	x1, x0
	ldr	x8, [x20]
	ldr	w8, [x8]
	sub	w8, w8, #1
	subs	w0, w8, w21
	b.gt	LBB0_9
	b	LBB0_10
LBB0_8:
	mov	x21, x11
	subs	w0, w8, w21
	b.le	LBB0_10
LBB0_9:
	sub	w1, w1, #1
	bl	_close_node
	add	w1, w0, #1
LBB0_10:
	sxtw	x22, w1
Lloh0:
	adrp	x24, _cut@GOTPAGE
Lloh1:
	ldr	x24, [x24, _cut@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x21, x22, #1
LBB0_12:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x8, [x19]
	sub	x8, x8, #1
	cmp	x22, x8
	b.ge	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x1, [x19, #8]
	mov	x0, x21
	bl	_smiGetNodeByOID
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x0
	mov	x0, x22
	bl	_pindent
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22, lsl #3]
	str	x8, [sp]
	mov	x0, x20
	bl	_printf
	mov	w0, #32
	bl	_putchar
	mov	x0, x23
	bl	_print_name
	mov	w0, #10
	bl	_putchar
	mov	x22, x21
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x21
	b	LBB0_11
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cut,4,2                        ; @cut
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%u"

	.no_dead_strip	_open_node
.subsections_via_symbols
