	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findchild
_findchild:                             ## @findchild
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_child@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	cmpq	%r14, (%rax)
	je	LBB0_11
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	addq	$8, %rbx
LBB0_4:
	testl	%esi, %esi
	je	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_child_freelist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, (%rbx)
	movq	8(%rax), %rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_10
LBB0_8:
	movl	$32, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	(%rbx), %rax
LBB0_10:
	movq	%r14, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	$0, 24(%rax)
	movq	(%rbx), %rbx
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_child,8,3                      ## @child
	.comm	_child_freelist,8,3             ## @child_freelist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.no_dead_strip	_findchild
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findchild
_findchild:                             ; @findchild
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _child@GOTPAGE
Lloh1:
	ldr	x20, [x20, _child@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_1
; %bb.3:
	add	x20, x0, #8
LBB0_4:
	cbz	w1, LBB0_6
; %bb.5:
	mov	x0, #0
	b	LBB0_11
LBB0_6:
Lloh2:
	adrp	x8, _child_freelist@GOTPAGE
Lloh3:
	ldr	x8, [x8, _child_freelist@GOTPAGEOFF]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	str	x0, [x20]
	ldr	x9, [x0, #8]
	str	x9, [x8]
	b	LBB0_10
LBB0_8:
	mov	w0, #32
	bl	_malloc
	str	x0, [x20]
	cbnz	x0, LBB0_10
; %bb.9:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x0, [x20]
LBB0_10:
	stp	xzr, xzr, [x0, #16]
	stp	x19, xzr, [x0]
	ldr	x0, [x20]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_child,8,3                      ; @child
	.comm	_child_freelist,8,3             ; @child_freelist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.no_dead_strip	_findchild
.subsections_via_symbols
