	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compare_node
_compare_node:                          ## @compare_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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movq	(%rsi), %rsi
	callq	_strcmp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r12), %rdi
	movq	8(%r15), %rsi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.4:
	callq	_refcmp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_6
LBB0_5:
	movl	$-1, %ebx
	testq	%rsi, %rsi
	jne	LBB0_1
LBB0_6:
	movq	16(%r12), %rdi
	movq	16(%r15), %rsi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	callq	_refcmp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_11
LBB0_9:
	movl	$-1, %ebx
	jmp	LBB0_1
LBB0_10:
	movl	$-1, %ebx
	testq	%rsi, %rsi
	jne	LBB0_1
LBB0_11:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	%eax, %ebx
	movl	28(%r12), %edi
	callq	_sbuf_data
	movq	%rax, %r13
	movl	28(%r15), %edi
	callq	_sbuf_data
	movq	%r13, %rdi
	movq	%rax, %rsi
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.12:
	callq	_strcmp
	jmp	LBB0_15
LBB0_14:
	callq	_refcmp
LBB0_15:
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.16:
	addq	$24, %r12
	movq	%r12, %rdi
	callq	_LIST_FIRST
	movq	%rax, %r12
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_LIST_FIRST
	movq	%rax, %r15
	testq	%r12, %r12
	sete	%al
	testq	%r15, %r15
	sete	%cl
	movq	%r12, %rdx
	orq	%r15, %rdx
	jne	LBB0_18
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_1
LBB0_18:
	leal	2(%r14), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	testb	$1, %cl
	jne	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	testq	%r15, %r15
	setne	%cl
	andb	%cl, %al
	cmpb	$1, %al
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_compare_node2
	testl	%eax, %eax
	jne	LBB0_1
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_siblings@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_LIST_NEXT
	movq	%rax, %r12
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_LIST_NEXT
	movq	%rax, %r15
	testq	%r12, %r12
	sete	%al
	testq	%r15, %r15
	sete	%cl
	movq	%r12, %rdx
	orq	%r15, %rdx
	jne	LBB0_19
	jmp	LBB0_17
LBB0_24:
	leaq	L_str(%rip), %rdi
	callq	_printf
	movl	%r14d, %edi
	callq	_indent
	movq	%r12, %rdi
	callq	_print_node
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	jmp	LBB0_1
LBB0_25:
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.5(%rip), %rdi
	callq	_printf
	movl	%r14d, %edi
	callq	_indent
	movq	%r15, %rdi
	callq	_print_node
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ref"

	.comm	_siblings,4,2                   ## @siblings
L_str:                                  ## @str
	.asciz	"1>"

L_str.5:                                ## @str.5
	.asciz	"2>"

	.no_dead_strip	_compare_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compare_node
_compare_node:                          ; @compare_node
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	ldr	x1, [x1]
	bl	_strcmp
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x0, [x21, #8]
	ldr	x1, [x20, #8]
	cbz	x0, LBB0_4
; %bb.2:
	cbz	x1, LBB0_9
; %bb.3:
	bl	_refcmp
	cbnz	w0, LBB0_10
	b	LBB0_5
LBB0_4:
	cbnz	x1, LBB0_9
LBB0_5:
	ldr	x0, [x21, #16]
	ldr	x1, [x20, #16]
	cbz	x0, LBB0_8
; %bb.6:
	cbz	x1, LBB0_9
; %bb.7:
	bl	_refcmp
	cbnz	w0, LBB0_10
	b	LBB0_11
LBB0_8:
	cbz	x1, LBB0_11
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	ret
LBB0_11:
	ldr	x0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	mov	x23, x0
	ldr	w0, [x21, #28]
	bl	_sbuf_data
	mov	x22, x0
	ldr	w0, [x20, #28]
	bl	_sbuf_data
	mov	x1, x0
	mov	x0, x22
	cbz	w23, LBB0_13
; %bb.12:
	bl	_strcmp
	b	LBB0_14
LBB0_13:
	bl	_refcmp
LBB0_14:
	cbz	w0, LBB0_16
LBB0_15:
	mov	w0, #1
	b	LBB0_10
LBB0_16:
	add	x0, x21, #24
	bl	_LIST_FIRST
	mov	x21, x0
	add	x0, x20, #24
	bl	_LIST_FIRST
	cmp	x21, #0
	cset	w8, eq
	cmp	x0, #0
	cset	w9, eq
	orr	x10, x21, x0
	cbnz	x10, LBB0_18
; %bb.17:
	mov	w0, #0
	b	LBB0_10
LBB0_18:
	mov	x20, x0
	add	w22, w19, #2
Lloh2:
	adrp	x23, _siblings@GOTPAGE
Lloh3:
	ldr	x23, [x23, _siblings@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	tbnz	w9, #0, LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	cmp	x20, #0
	cset	w9, ne
	and	w8, w8, w9
	cmp	w8, #1
	b.eq	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_compare_node2
	cbnz	w0, LBB0_15
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w1, [x23]
	mov	x0, x21
	bl	_LIST_NEXT
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_LIST_NEXT
	mov	x20, x0
	mov	w0, #0
	cmp	x21, #0
	cset	w8, eq
	cmp	x20, #0
	cset	w9, eq
	orr	x10, x21, x20
	cbnz	x10, LBB0_19
	b	LBB0_10
LBB0_24:
Lloh4:
	adrp	x0, l_str@PAGE
Lloh5:
	add	x0, x0, l_str@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_indent
	mov	x0, x21
	bl	_print_node
Lloh6:
	adrp	x0, l_str.5@PAGE
Lloh7:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	b	LBB0_15
LBB0_25:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh10:
	adrp	x0, l_str.5@PAGE
Lloh11:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_indent
	mov	x0, x20
	bl	_print_node
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ref"

	.comm	_siblings,4,2                   ; @siblings
l_str:                                  ; @str
	.asciz	"1>"

l_str.5:                                ; @str.5
	.asciz	"2>"

	.no_dead_strip	_compare_node
.subsections_via_symbols
