	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_image_range
_find_image_range:                      ## @find_image_range
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movl	%r8d, %ebx
	movq	%rcx, %r12
	movq	%rdx, -1096(%rbp)               ## 8-byte Spill
	movq	%rsi, -1088(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	(%r9,%rbx), %r15d
	testl	%r9d, %r9d
	jle	LBB0_5
## %bb.1:
	movq	%rdi, -1080(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %r13
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_av_get_frame_filename
	testq	%rax, %rax
	js	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_avio_check
	testq	%rax, %rax
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%r15d, %ebx
	jl	LBB0_2
LBB0_5:
	movl	$-1, %ecx
	cmpl	%r15d, %ebx
	je	LBB0_17
## %bb.6:
	leaq	-1072(%rbp), %r15
	movl	%ebx, %eax
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	%eax, %ecx
	xorl	%eax, %eax
	movq	%rcx, -1080(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%rax,%rax), %r13d
	movq	%rax, -1104(%rbp)               ## 8-byte Spill
	testl	%eax, %eax
	movl	$1, %eax
	cmovel	%eax, %r13d
	addl	%r13d, %ecx
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r12, %rdx
	callq	_av_get_frame_filename
	testq	%rax, %rax
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %r14
	movq	%r12, %rbx
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %r12
	movq	%r15, %rdi
	callq	_avio_check
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	%r13d, %eax
	cmpl	$1073741823, %r13d              ## imm = 0x3FFFFFFF
	movq	%r12, %r15
	movq	%rbx, %r12
	movq	%r14, %rbx
	movq	-1080(%rbp), %rcx               ## 8-byte Reload
	jle	LBB0_8
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-1080(%rbp), %rcx               ## 8-byte Reload
	movq	-1104(%rbp), %rdx               ## 8-byte Reload
	leal	(%rdx,%rcx), %eax
	testl	%edx, %edx
	movq	%r12, %r15
	movq	%rbx, %r12
	movq	%r14, %rbx
	jne	LBB0_7
## %bb.12:
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-1096(%rbp), %rax               ## 8-byte Reload
	movl	%ecx, (%rax)
	xorl	%ecx, %ecx
	jmp	LBB0_17
LBB0_16:
	movl	$-1, %ecx
	jmp	LBB0_17
LBB0_13:
	movq	-1096(%rbp), %rax               ## 8-byte Reload
	movl	$1, (%rax)
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%ecx, %ecx
	cmpq	$0, -1080(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_17
## %bb.14:
	movl	(%r14), %esi
	leaq	-1072(%rbp), %rdi
	callq	_avio_check
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setle	%cl
	negl	%ecx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ecx, %eax
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.no_dead_strip	_find_image_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_image_range
_find_image_range:                      ; @find_image_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	w25, w5, w4
Lloh3:
	adrp	x24, _AVIO_FLAG_READ@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AVIO_FLAG_READ@GOTPAGEOFF]
	cmp	w5, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x22
	mov	x3, x21
	bl	_av_get_frame_filename
	tbnz	x0, #63, LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x24]
	add	x0, sp, #8
	bl	_avio_check
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	cmp	w21, w25
	b.lt	LBB0_2
LBB0_5:
	cmp	w21, w25
	b.ne	LBB0_9
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.8:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w23, #1073741823
	mov	x8, x21
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	w26, #0
	mov	x25, x8
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	w8, w26, #1
	cmp	w26, #0
	csinc	w27, w8, wzr, ne
	add	w3, w27, w25
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x22
	bl	_av_get_frame_filename
	tbnz	x0, #63, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w1, [x24]
	add	x0, sp, #8
	bl	_avio_check
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x26, x27
	cmp	w27, w23
	b.le	LBB0_11
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w26, w25
	cbnz	w26, LBB0_10
; %bb.15:
	mov	w0, #0
	str	w21, [x20]
	str	w25, [x19]
	b	LBB0_7
LBB0_16:
	mov	w8, #1
	str	w8, [x19]
	str	w8, [x20]
	cbz	x23, LBB0_18
; %bb.17:
	mov	w0, #0
	b	LBB0_7
LBB0_18:
	ldr	w1, [x24]
	add	x0, sp, #8
	bl	_avio_check
	cmp	x0, #1
	csetm	w0, lt
	b	LBB0_7
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.no_dead_strip	_find_image_range
.subsections_via_symbols
