	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compact_treesame
_compact_treesame:                      ## @compact_treesame
	.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, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	cmpq	$0, 8(%rsi)
	je	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_lookup_decoration
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r13), %eax
	cmpl	%ebx, %eax
	ja	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_die
	movl	(%r13), %eax
LBB0_4:
	movq	8(%r13), %rcx
	movl	%ebx, %edx
	leaq	(%rcx,%rdx,4), %rdi
	movl	(%rcx,%rdx,4), %r15d
	leaq	(%rcx,%rdx,4), %rsi
	addq	$4, %rsi
	notl	%ebx
	addl	%eax, %ebx
	movl	%ebx, %edx
	callq	_memmove
	movl	(%r13), %eax
	decl	%eax
	movl	%eax, (%r13)
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.5:
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_7:
	movq	8(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.8:
	cmpq	$0, 8(%r14)
	je	LBB0_14
## %bb.9:
	movq	_TREESAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_15
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_12:
	movq	_TREESAME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	xorl	%r15d, %r15d
	andl	(%r12), %eax
	setne	%r15b
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rev_same_tree_as_empty
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	orl	(%r12), %ecx
	jmp	LBB0_17
LBB0_14:
	movq	_TREESAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_15:
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_add_decoration
	movl	%eax, %edi
	callq	_free
	jmp	LBB0_18
LBB0_16:
	notl	%ecx
	andl	(%r12), %ecx
LBB0_17:
	movl	%ecx, (%r12)
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compact_treesame %u"

	.comm	_TREESAME,4,2                   ## @TREESAME
L_.str.1:                               ## @.str.1
	.asciz	"compact_treesame parents mismatch"

	.no_dead_strip	_compact_treesame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compact_treesame
_compact_treesame:                      ; @compact_treesame
	.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
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_lookup_decoration
	mov	x22, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, w23
	b.hi	LBB0_4
LBB0_3:
	str	x23, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
	ldr	w8, [x22]
LBB0_4:
	ldr	x9, [x22, #8]
	add	x0, x9, w23, uxtw #2
	mov	x1, x0
	ldr	w21, [x1], #4
	mvn	w9, w23
	add	w2, w8, w9
	bl	_memmove
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_7:
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_14
; %bb.8:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.9:
Lloh4:
	adrp	x8, _TREESAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TREESAME@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_15
LBB0_10:
	cbz	w23, LBB0_12
; %bb.11:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_12:
	ldr	w8, [x19]
Lloh9:
	adrp	x22, _TREESAME@GOTPAGE
Lloh10:
	ldr	x22, [x22, _TREESAME@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	cset	w21, ne
	mov	x0, x20
	mov	x1, x19
	bl	_rev_same_tree_as_empty
	ldr	w8, [x22]
	cbz	x0, LBB0_16
; %bb.13:
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_17
LBB0_14:
Lloh11:
	adrp	x8, _TREESAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TREESAME@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_15:
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_add_decoration
	bl	_free
	b	LBB0_18
LBB0_16:
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_17:
	str	w8, [x19]
LBB0_18:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compact_treesame %u"

	.comm	_TREESAME,4,2                   ; @TREESAME
l_.str.1:                               ; @.str.1
	.asciz	"compact_treesame parents mismatch"

	.no_dead_strip	_compact_treesame
.subsections_via_symbols
