	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_varobj_list_children           ## -- Begin function varobj_list_children
	.p2align	4, 0x90
_varobj_list_children:                  ## @varobj_list_children
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, (%rsi)
	movl	(%rdi), %eax
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_number_of_children
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%r15)
LBB0_4:
	leal	8(,%rax,8), %edi
	callq	_xmalloc
	movq	%rax, (%r14)
	movl	(%r15), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jg	LBB0_5
LBB0_8:
	movq	$0, (%rax,%rbx,8)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	movl	%ecx, %eax
	retq
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rcx
	movq	(%r14), %rax
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rbx,8)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_name_of_child
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_child_exists
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_create_child
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ecx
	movl	%ecx, %eax
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_varobj_list_children           ; -- Begin function varobj_list_children
	.p2align	2
_varobj_list_children:                  ; @varobj_list_children
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_8
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x1
	mov	x20, x0
	str	xzr, [x1]
	ldr	w0, [x0]
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_number_of_children
	str	w0, [x20]
LBB0_3:
	lsl	w8, w0, #3
	add	w0, w8, #8
	bl	_xmalloc
	str	x0, [x19]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	str	x0, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	ldr	x0, [x19]
	cmp	x21, x8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x0, x21, lsl #3]
	mov	x0, x20
	mov	x1, x21
	bl	_name_of_child
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_child_exists
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_create_child
	b	LBB0_5
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w8, #-1
	mov	x0, x8
	ret
LBB0_9:
	.cfi_restore_state
	mov	x21, #0
LBB0_10:
	str	xzr, [x0, x21, lsl #3]
	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
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
