	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cavs_find_frame_end
_cavs_find_frame_end:                   ## @cavs_find_frame_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %r8d
	movl	4(%rdi), %ebx
	xorl	%eax, %eax
	testl	%r8d, %r8d
	je	LBB0_8
## %bb.1:
	xorl	%r9d, %r9d
	testl	%edx, %edx
	je	LBB0_16
LBB0_2:
	cmpl	%edx, %r9d
	jge	LBB0_15
## %bb.3:
	movq	_SLICE_MAX_START_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r9d, %eax
	movl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	je	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %ebx
	orl	(%rsi,%rax,4), %ebx
	movl	%ebx, %ecx
	andl	$-256, %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r10d, %ebx
	jle	LBB0_4
## %bb.7:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rcx, (%rdi)
	addl	$-3, %eax
	jmp	LBB0_16
LBB0_8:
	testl	%edx, %edx
	jle	LBB0_14
## %bb.9:
	movq	_PIC_I_START_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_PIC_PB_START_CODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	%edx, %r11d
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	shll	$8, %ebx
	orl	(%rsi,%r9,4), %ebx
	cmpl	%r8d, %ebx
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r10d, %ebx
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r9
	cmpq	%r9, %r11
	jne	LBB0_10
LBB0_14:
	xorl	%r8d, %r8d
LBB0_15:
	movl	%r8d, (%rdi)
	movl	%ebx, 4(%rdi)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
LBB0_17:
	incl	%r9d
	movl	$1, %r8d
	testl	%edx, %edx
	jne	LBB0_2
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_PIC_I_START_CODE,4,2           ## @PIC_I_START_CODE
	.comm	_PIC_PB_START_CODE,4,2          ## @PIC_PB_START_CODE
	.comm	_SLICE_MAX_START_CODE,4,2       ## @SLICE_MAX_START_CODE
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
	.no_dead_strip	_cavs_find_frame_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cavs_find_frame_end
_cavs_find_frame_end:                   ; @cavs_find_frame_end
	.cfi_startproc
; %bb.0:
	ldp	w10, w9, [x0]
	cbz	w10, LBB0_6
; %bb.1:
	mov	w13, #0
	cbz	w2, LBB0_14
LBB0_2:
	cmp	w13, w2
	b.ge	LBB0_11
; %bb.3:
Lloh0:
	adrp	x8, _SLICE_MAX_START_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLICE_MAX_START_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
	mov	w14, w2
	sub	w8, w13, #3
	add	x12, x1, w13, uxtw #2
	sub	x13, x14, w13, uxtw
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	orr	w9, w14, w9, lsl #8
	and	w14, w9, #0xffffff00
	cmp	w14, #256
	ccmp	w9, w11, #4, eq
	b.gt	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	add	x12, x12, #4
	subs	x13, x13, #1
	b.ne	LBB0_4
	b	LBB0_11
LBB0_6:
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x8, #0
Lloh3:
	adrp	x10, _PIC_I_START_CODE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PIC_I_START_CODE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _PIC_PB_START_CODE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PIC_PB_START_CODE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	mov	w12, w2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x1, x8, lsl #2]
	orr	w9, w13, w9, lsl #8
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	cmp	x12, x8
	b.ne	LBB0_8
LBB0_10:
	mov	w10, #0
LBB0_11:
	stp	w10, w9, [x0]
Lloh9:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_12:
	movi	d0, #0xffffffff00000000
	str	d0, [x0]
	mov	x0, x8
	ret
LBB0_13:
	add	w13, w8, #1
	mov	w10, #1
	cbnz	w2, LBB0_2
LBB0_14:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PIC_I_START_CODE,4,2           ; @PIC_I_START_CODE
	.comm	_PIC_PB_START_CODE,4,2          ; @PIC_PB_START_CODE
	.comm	_SLICE_MAX_START_CODE,4,2       ; @SLICE_MAX_START_CODE
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.no_dead_strip	_cavs_find_frame_end
.subsections_via_symbols
