	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_frame
_remove_frame:                          ## @remove_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_9
## %bb.1:
	movl	$-1, %r8d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rdx
	cmpl	%esi, (%rdx)
	cmoveq	%r9, %rax
	cmovel	%ecx, %r8d
	movq	8(%rdi,%rcx,8), %r9
	incq	%rcx
	testq	%r9, %r9
	jne	LBB0_2
## %bb.3:
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movslq	%r8d, %rcx
	cmpq	$0, (%rdi,%rcx,8)
	je	LBB0_7
## %bb.5:
	leaq	(%rdi,%rcx,8), %rcx
	addq	$8, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	movq	%rdx, -8(%rcx)
	addq	$8, %rcx
	testq	%rdx, %rdx
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_remove_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_frame
_remove_frame:                          ; @remove_frame
	.cfi_startproc
; %bb.0:
	ldr	x10, [x0]
	cbz	x10, LBB0_8
; %bb.1:
	mov	x8, x0
	mov	x12, #0
	mov	x0, #0
	add	x11, x8, #8
	mov	w9, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	ldr	w13, [x13]
	cmp	w13, w1
	csel	w9, w12, w9, eq
	csel	x0, x10, x0, eq
	ldr	x10, [x11, x12, lsl #3]
	add	x12, x12, #1
	cbnz	x10, LBB0_2
; %bb.3:
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x10, [x8, w9, sxtw #3]
	cbz	x10, LBB0_7
; %bb.5:
	sxtw	x9, w9
	add	x8, x8, x9, lsl #3
	add	x8, x8, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	stur	x9, [x8, #-8]
	add	x8, x8, #8
	cbnz	x9, LBB0_6
LBB0_7:
	ret
LBB0_8:
	mov	x0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_remove_frame
.subsections_via_symbols
