	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guess_ni_flag
_guess_ni_flag:                         ## @guess_ni_flag
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	4(%rdi), %edi
	callq	_avio_tell
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx), %rdx
	cmpq	%rsi, %rdx
	cmovgq	%rdx, %rsi
	decl	%r13d
	shlq	$4, %r13
	movq	(%rcx,%r13), %rcx
	cmpq	%r12, %rcx
	cmovlq	%rcx, %r12
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %r15
	movl	(%r15), %r13d
	testl	%r13d, %r13d
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %r13d
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%rax), %rsi
	movl	4(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	callq	_avio_seek
	movl	4(%rbx), %edi
	callq	_avio_r8
	movl	%eax, -56(%rbp)
	movl	4(%rbx), %edi
	callq	_avio_r8
	movl	%eax, -52(%rbp)
	movl	4(%rbx), %edi
	callq	_avio_rl16
	movl	4(%rbx), %edi
	callq	_avio_rl32
	movl	%eax, %r12d
	leaq	-56(%rbp), %rdi
	callq	_get_stream_idx
	movl	%eax, %eax
	cmpq	%rax, %r14
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addq	%rax, %rcx
	movq	8(%r15), %rax
	cmpq	16(%rax), %rcx
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	leaq	-56(%rbp), %rdi
	callq	_get_stream_idx
	movl	%eax, %eax
	cmpq	%rax, %r14
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rax
	movl	8(%rax), %eax
	addl	$8, %eax
	cmpl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_12
LBB0_1:
	xorl	%esi, %esi
LBB0_15:
	movl	4(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rsi, %r14
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_avio_seek
	movl	$1, %eax
	cmpq	%r12, %r14
	jg	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_check_stream_max_drift
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_guess_ni_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guess_ni_flag
_guess_ni_flag:                         ; @guess_ni_flag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x24, _INT64_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _INT64_MAX@GOTPAGEOFF]
	ldr	x23, [x24]
	ldr	w0, [x0, #4]
	bl	_avio_tell
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x19]
Lloh5:
	adrp	x25, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SEEK_SET@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x27, #0
	mov	x26, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20, #8]
	ldr	x10, [x9]
	cmp	x10, x26
	csel	x26, x10, x26, gt
	lsl	x10, x28, #4
	ldr	x9, [x9, x10]
	cmp	x9, x23
	csel	x23, x9, x23, lt
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x20, [x9, x27, lsl #3]
	ldr	w9, [x20]
	subs	w28, w9, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	x21, [x8]
	ldr	w0, [x19, #4]
	ldr	w2, [x25]
	mov	x1, x21
	bl	_avio_seek
	ldr	w0, [x19, #4]
	bl	_avio_r8
	str	w0, [sp, #16]
	ldr	w0, [x19, #4]
	bl	_avio_r8
	str	w0, [sp, #20]
	ldr	w0, [x19, #4]
	bl	_avio_rl16
	ldr	w0, [x19, #4]
	bl	_avio_rl32
	mov	x22, x0
	add	x0, sp, #16
	bl	_get_stream_idx
	cmp	x27, w0, uxtw
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x21, w22, uxtw
	ldr	x9, [x20, #8]
	ldr	x9, [x9, #16]
	ldr	x10, [x24]
	cmp	x8, x9
	csel	x26, x10, x26, gt
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #16
	bl	_get_stream_idx
	cmp	x27, w0, uxtw
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #8]
	add	w8, w8, #8
	ldr	x9, [x24]
	cmp	w22, w8
	csel	x26, x9, x26, eq
	b	LBB0_2
LBB0_11:
	mov	x26, #0
LBB0_12:
	ldr	w0, [x19, #4]
	ldr	w2, [x25]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_avio_seek
	cmp	x26, x23
	b.le	LBB0_14
; %bb.13:
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_check_stream_max_drift
LBB0_15:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_guess_ni_flag
.subsections_via_symbols
