	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_record
_find_record:                           ## @find_record
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%esi, (%rdi)
	jle	LBB0_8
## %bb.1:
	movq	_MAX_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.2:
	movq	8(%rdi), %rdx
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%rax, %r8
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rax,8), %edi
	testl	%edi, %edi
	jle	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rdx,%rax,8), %ecx
	cmpl	%esi, %ecx
	jg	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%edi, %ecx
	cmpl	%esi, %ecx
	jle	LBB0_3
## %bb.7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_MAX_PAGES,4,2                  ## @MAX_PAGES
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_find_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_record
_find_record:                           ; @find_record
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, w1
	b.le	LBB0_7
; %bb.1:
Lloh0:
	adrp	x9, _MAX_PAGES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_PAGES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x8, x0
	mov	x0, #0
	ldr	x8, [x8, #8]
	add	x8, x8, #4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x0, #1
	add	x8, x8, #8
	cmp	x9, x0
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x8, #-4]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x8]
	add	w10, w11, w10
	cmp	w11, w1
	ccmp	w10, w1, #4, le
	b.le	LBB0_3
; %bb.6:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_7:
Lloh3:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_8:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_MAX_PAGES,4,2                  ; @MAX_PAGES
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_find_record
.subsections_via_symbols
