	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addchild
_addchild:                              ## @addchild
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_mtree_Sflag@GOTPCREL(%rip), %r14
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmovgq	%rbx, %r13
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movl	24(%r12), %edi
	movl	24(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	cmoveq	%rbx, %r15
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_nodecmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_7:
	movq	(%r14), %rax
	movq	%rax, %rcx
	orq	%r15, %rcx
	cmoveq	%rbx, %r13
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmoveq	%r15, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_replacenode
	cmpq	%rbx, %r15
	je	LBB0_22
## %bb.10:
	cmpq	%r13, %r15
	je	LBB0_22
## %bb.11:
	movq	(%r15), %rax
	cmpq	%r13, %rax
	je	LBB0_22
## %bb.12:
	movq	8(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rcx, 8(%rax)
	jmp	LBB0_15
LBB0_23:
	movq	%r12, 16(%rdi)
	jmp	LBB0_22
LBB0_8:
	movq	%r12, %r15
	testq	%r13, %r13
	je	LBB0_19
LBB0_20:
	movq	8(%r13), %rax
	movq	%rax, 8(%r15)
	movq	%r15, 8(%r13)
	movq	%r13, (%r15)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r15, (%rax)
	jmp	LBB0_22
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, 16(%rax)
	xorl	%edi, %edi
	testq	%rcx, %rcx
	setne	%dil
	callq	_assert
LBB0_15:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%r15), %rcx
	movq	%rcx, (%rax)
LBB0_17:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	testq	%r13, %r13
	jne	LBB0_20
LBB0_19:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	%r15, (%rax)
	movq	%rax, 8(%r15)
	movq	$0, (%r15)
	movq	%r15, 16(%rcx)
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mtree_Sflag,8,3                ## @mtree_Sflag
	.no_dead_strip	_addchild
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addchild
_addchild:                              ; @addchild
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x24, #0
	mov	x23, #0
	mov	x19, #0
Lloh0:
	adrp	x25, _mtree_Sflag@GOTPAGE
Lloh1:
	ldr	x25, [x25, _mtree_Sflag@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	ldr	w0, [x21, #24]
	ldr	w1, [x8, #24]
	bl	_strcmp
	cmp	x0, #0
	csel	x19, x22, x19, eq
	ldr	x8, [x25]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_nodecmp
	cmp	w0, #0
	csel	x8, x22, x24, gt
	cmp	w0, #0
	csel	x23, x22, x23, eq
	csel	x24, x24, x8, eq
	b	LBB0_2
LBB0_5:
	ldr	x8, [x25]
	orr	x9, x8, x19
	cmp	x9, #0
	csel	x22, x22, x24, eq
	cbz	x19, LBB0_14
; %bb.6:
	cmp	x8, #0
	csel	x23, x19, x23, eq
	mov	x0, x19
	mov	x1, x21
	bl	_replacenode
	cmp	x19, x23
	ccmp	x19, x22, #4, ne
	b.eq	LBB0_17
; %bb.7:
	ldr	x8, [x19]
	cmp	x8, x22
	b.eq	LBB0_17
; %bb.8:
	ldr	x9, [x19, #8]
	cbz	x8, LBB0_18
; %bb.9:
	str	x9, [x8, #8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
LBB0_10:
	ldr	x9, [x19]
	str	x9, [x8]
LBB0_11:
	stp	xzr, xzr, [x19]
	cbnz	x22, LBB0_15
LBB0_12:
	ldr	x8, [x20, #16]
	str	x19, [x8]
	stp	xzr, x8, [x19]
	str	x19, [x20, #16]
	b	LBB0_17
LBB0_13:
	str	x21, [x20, #16]
	b	LBB0_17
LBB0_14:
	mov	x19, x21
	cbz	x22, LBB0_12
LBB0_15:
	ldr	x8, [x22, #8]
	str	x8, [x19, #8]
	str	x19, [x22, #8]
	str	x22, [x19]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
; %bb.16:
	str	x19, [x8]
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	str	x9, [x20, #16]
	cmp	x9, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_10
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mtree_Sflag,8,3                ; @mtree_Sflag
	.no_dead_strip	_addchild
.subsections_via_symbols
