	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_afterward
_find_afterward:                        ## @find_afterward
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %r12
	xorl	%r13d, %r13d
	cmpq	$0, (%r12)
	cmovleq	%rsi, %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, 16(%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, 8(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%r12), %r12
	testq	%r12, %r12
	je	LBB0_9
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	32(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_maybe_both_true
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, 16(%r12)
	movq	%r15, %rbx
	testq	%r13, %r13
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movq	(%r14), %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	24(%rbx), %rdi
	movq	16(%rbx), %rsi
	callq	_find_afterward
	jmp	LBB0_12
LBB0_13:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	jle	LBB0_15
## %bb.14:
	movq	%r15, 16(%rax)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_afterward
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_afterward
_find_afterward:                        ; @find_afterward
	.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, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x21]
	cmp	x8, #0
	csel	x23, xzr, x1, gt
	mov	w24, #1
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [x21, #16]
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w24, [x22, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21, #32]
	cbz	x21, LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x22, [x21, #32]
	cbz	x22, LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_maybe_both_true
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x22, [x22, #32]
	cbnz	x22, LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [x21, #16]
	mov	x22, x19
	cbnz	x23, LBB0_2
	b	LBB0_3
LBB0_8:
	ldr	x21, [x20]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x21, [x21, #32]
	cbz	x21, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	ldr	x8, [x0, #24]!
	cbz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x21, #16]
	bl	_find_afterward
	b	LBB0_9
LBB0_12:
	ldr	x8, [x20]
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_14
; %bb.13:
	str	x19, [x8, #16]
LBB0_14:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_afterward
.subsections_via_symbols
