	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function latm_find_frame_end
_latm_find_frame_end:                   ## @latm_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
	movq	(%rdi), %r9
	movl	4(%r9), %r8d
	movl	8(%r9), %r11d
	testl	%r8d, %r8d
	je	LBB0_1
## %bb.7:
	testl	%edx, %edx
	je	LBB0_8
LBB0_10:
	movq	_LATM_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r11d, %eax
	subl	(%r9), %eax
	cmpl	%edx, %eax
	jg	LBB0_3
## %bb.11:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rcx, 4(%r9)
	popq	%rbp
	retq
LBB0_1:
	testl	%edx, %edx
	jle	LBB0_2
## %bb.4:
	movq	_LATM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_LATM_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, %r10d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %r11d
	orl	(%rsi,%rcx,4), %r11d
	movl	%r11d, %edi
	andl	%r8d, %edi
	cmpl	%eax, %edi
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %r10
	jne	LBB0_5
LBB0_2:
	xorl	%r8d, %r8d
LBB0_3:
	addl	%edx, (%r9)
	movl	%r8d, 4(%r9)
	movl	%r11d, 8(%r9)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_6:
	notl	%ecx
	movl	%ecx, (%r9)
	movl	$1, %r8d
	testl	%edx, %edx
	jne	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LATM_MASK,4,2                  ## @LATM_MASK
	.comm	_LATM_HEADER,4,2                ## @LATM_HEADER
	.comm	_LATM_SIZE_MASK,4,2             ## @LATM_SIZE_MASK
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
	.no_dead_strip	_latm_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 latm_find_frame_end
_latm_find_frame_end:                   ; @latm_find_frame_end
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldp	w10, w9, [x8, #4]
	cbz	w10, LBB0_4
; %bb.1:
	cbz	w2, LBB0_11
LBB0_2:
Lloh0:
	adrp	x11, _LATM_SIZE_MASK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _LATM_SIZE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	and	w11, w11, w9
	ldr	w12, [x8]
	sub	w0, w11, w12
	cmp	w0, w2
	b.gt	LBB0_9
; %bb.3:
	movi	d0, #0xffffffff00000000
	stur	d0, [x8, #4]
	ret
LBB0_4:
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.5:
Lloh3:
	adrp	x10, _LATM_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LATM_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _LATM_HEADER@GOTPAGE
Lloh7:
	ldr	x11, [x11, _LATM_HEADER@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	mov	w12, w2
	mov	w13, #-1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x1]
	orr	w9, w14, w9, lsl #8
	and	w14, w9, w10
	cmp	w14, w11
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w13, w13, #1
	add	x1, x1, #4
	subs	x12, x12, #1
	b.ne	LBB0_6
LBB0_8:
	mov	w10, #0
LBB0_9:
	ldr	w11, [x8]
	add	w11, w11, w2
	stp	w11, w10, [x8]
	str	w9, [x8, #8]
Lloh9:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_10:
	str	w13, [x8]
	mov	w10, #1
	cbnz	w2, LBB0_2
LBB0_11:
	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	_LATM_MASK,4,2                  ; @LATM_MASK
	.comm	_LATM_HEADER,4,2                ; @LATM_HEADER
	.comm	_LATM_SIZE_MASK,4,2             ; @LATM_SIZE_MASK
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
	.no_dead_strip	_latm_find_frame_end
.subsections_via_symbols
