	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yae_load_frag
_yae_load_frag:                         ## @yae_load_frag
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_yae_curr_frag
	movq	(%rax), %rsi
	movq	(%r14), %r13
	movq	(%rsi), %rbx
	addq	%r13, %rbx
	testq	%r12, %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_yae_load_data
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	(%r14), %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
LBB0_4:
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	subq	(%rcx), %rbx
	cmovleq	%rdx, %rbx
	subq	%rbx, %r13
	cmovleq	%rdx, %r13
	movq	%r13, 16(%rax)
	movq	8(%rax), %r12
	movq	(%rcx), %rbx
	subq	16(%r14), %rbx
	movq	(%rsi), %rcx
	cmpq	%rcx, %rbx
	jle	LBB0_6
## %bb.5:
	movl	%ebx, %edi
	subl	%ecx, %edi
	movl	%r13d, %esi
	callq	_FFMIN
	movq	%rbx, %r15
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setne	%dil
	callq	_av_assert0
	movq	24(%r14), %rdx
	imulq	%rbx, %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdx
	movq	%r15, %rbx
	movq	%rdx, %rax
	imulq	24(%r14), %rax
	leaq	(%r12,%rax,4), %r12
LBB0_6:
	cmpq	%rdx, %r13
	je	LBB0_17
## %bb.7:
	movl	32(%r14), %eax
	movl	36(%r14), %r15d
	cmpl	%eax, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.8:
	xorl	%ecx, %ecx
	jmp	LBB0_10
LBB0_9:
	movslq	%r15d, %rcx
	movl	40(%r14), %r15d
LBB0_10:
	subl	%eax, %r15d
	movslq	%r15d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%rdx, %rcx
	addq	%rax, %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %r13
	setle	%dil
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_av_assert0
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rdx, %r12
	subq	%rbx, %r12
	addq	(%rax), %r12
	movq	48(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	subl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	$0, %eax
	cmovll	%eax, %ebx
	jge	LBB0_14
## %bb.11:
	movslq	32(%r14), %rax
	imulq	24(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	subl	%r12d, %r15d
	movl	%r13d, %esi
	subl	%edx, %esi
	movl	%r15d, %edi
	callq	_FFMIN
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movslq	%eax, %r15
	addq	%r15, %rdx
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movslq	%r12d, %rcx
	movq	24(%r14), %rdi
	imulq	%rdi, %rcx
	leaq	(%rax,%rcx,4), %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edx
	imull	%edi, %edx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_memcpy
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	imulq	24(%r14), %r15
	leaq	(%r12,%r15,4), %r12
	jmp	LBB0_15
LBB0_14:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_15:
	subq	%rdx, %r13
	testl	%r13d, %r13d
	je	LBB0_17
## %bb.16:
	movslq	%ebx, %rax
	movq	24(%r14), %rdx
	imulq	%rdx, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	imull	%r13d, %edx
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_17:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_yae_load_frag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yae_load_frag
_yae_load_frag:                         ; @yae_load_frag
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_yae_curr_frag
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x10, [x8]
	ldr	x9, [x19]
	add	x20, x9, x10
	cbz	x22, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_yae_load_data
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_3:
	ldr	x9, [x19]
	ldr	x8, [x23]
LBB0_4:
	ldp	x10, x11, [x19, #8]
	ldr	x12, [x10]
	subs	x12, x20, x12
	csel	x12, x12, xzr, gt
	subs	x9, x9, x12
	csel	x22, x9, xzr, gt
	str	x22, [x23, #16]
	ldr	x20, [x23, #8]
	ldr	x9, [x10]
	ldr	x8, [x8]
	sub	x24, x9, x11
	cmp	x24, x8
	b.le	LBB0_6
; %bb.5:
	sub	w0, w24, w8
	mov	x1, x22
	bl	_FFMIN
	mov	x21, x0
	cmp	x22, x0
	cset	w0, ne
	bl	_av_assert0
	ldr	x8, [x19, #24]
	mul	x2, x8, x21
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #24]
	mul	x8, x8, x21
	add	x20, x20, x8, lsl #2
	cmp	x22, x21
	b.ne	LBB0_7
	b	LBB0_15
LBB0_6:
	mov	x21, #0
	cmp	x22, x21
	b.eq	LBB0_15
LBB0_7:
	ldp	w8, w9, [x19, #32]
	cmp	w9, w8
	b.le	LBB0_9
; %bb.8:
	mov	x10, #0
	b	LBB0_10
LBB0_9:
	sxtw	x10, w9
	ldr	w9, [x19, #40]
LBB0_10:
	sub	w26, w9, w8
	add	x8, x10, x21
	add	x8, x8, w26, sxtw
	cmp	x22, x8
	cset	w0, le
	bl	_av_assert0
	ldr	x25, [x19, #48]
	ldr	x8, [x23]
	ldr	x8, [x8]
	sub	x9, x21, x24
	add	x24, x9, x8
	subs	w8, w24, w26
	csel	w23, wzr, w8, lt
	b.ge	LBB0_13
; %bb.11:
	ldrsw	x27, [x19, #32]
	ldr	x28, [x19, #24]
	sub	w0, w26, w24
	sub	w1, w22, w21
	bl	_FFMIN
	sxtw	x26, w0
	add	x21, x26, x21
	cbz	w0, LBB0_13
; %bb.12:
	mul	x8, x28, x27
	add	x8, x25, x8, lsl #2
	sxtw	x9, w24
	ldr	x10, [x19, #24]
	mul	x9, x10, x9
	add	x1, x8, x9, lsl #2
	mul	w2, w10, w0
	mov	x0, x20
	bl	_memcpy
	ldr	x8, [x19, #24]
	mul	x8, x8, x26
	add	x20, x20, x8, lsl #2
LBB0_13:
	sub	x8, x22, x21
	cbz	w8, LBB0_15
; %bb.14:
	sxtw	x9, w23
	ldr	x10, [x19, #24]
	mul	x9, x10, x9
	add	x1, x25, x9, lsl #2
	mul	w2, w10, w8
	mov	x0, x20
	bl	_memcpy
LBB0_15:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_yae_load_frag
.subsections_via_symbols
