	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_relative_frame            ## -- Begin function find_relative_frame
	.p2align	4, 0x90
_find_relative_frame:                   ## @find_relative_frame
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_get_prev_frame
	movl	(%r14), %ecx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	leal	-1(%rcx), %eax
	movl	%eax, (%r14)
	movq	%rbx, %r15
	cmpl	$1, %ecx
	jg	LBB0_2
	jmp	LBB0_5
LBB0_1:
	movq	%r15, %rbx
LBB0_5:
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_6
LBB0_3:
	movl	%ecx, %eax
	movq	%r15, %rbx
	testl	%eax, %eax
	jns	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_get_next_frame
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%r14)
	movq	%rax, %rbx
	cmpl	$-1, %ecx
	jl	LBB0_6
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_find_relative_frame            ; -- Begin function find_relative_frame
	.p2align	2
_find_relative_frame:                   ; @find_relative_frame
	.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, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_prev_frame
	ldr	w8, [x19]
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	subs	w8, w8, #1
	str	w8, [x19]
	b.gt	LBB0_1
; %bb.3:
	mov	x20, x0
LBB0_4:
	tbz	w8, #31, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_next_frame
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	mov	x20, x0
	cmn	w8, #1
	b.lt	LBB0_5
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
