	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsf_read_packet
_dsf_read_packet:                       ## @dsf_read_packet
	.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	%rsi, %r13
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rdi
	movq	(%rax), %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_avio_tell
	movq	(%rbx), %rcx
	movq	%rcx, %rdi
	subq	%rax, %rdi
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movq	16(%rbx), %rbx
	movq	(%r14), %rdx
	movslq	(%rdx), %rsi
	subq	%rbx, %rax
	jle	LBB0_28
## %bb.3:
	subq	%rsi, %rcx
	cmpq	%rcx, %r15
	jne	LBB0_28
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	movq	(%rcx), %r13
	subq	%r15, %r13
	addq	%rbx, %r13
	testq	%r13, %r13
	jle	LBB0_6
## %bb.5:
	testq	%rax, %rax
	jle	LBB0_6
## %bb.7:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_35
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_21
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %r15
	xorl	%r14d, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdx, %rax
	cqto
	idivq	%rsi
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	(%r15,%rcx,4), %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_avio_skip
	incl	%r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	cmpl	%ecx, %r14d
	jge	LBB0_21
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rsi
	movq	%r13, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_avio_read
	movl	%eax, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	4(%rax), %rsi
	movq	%r13, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	jg	LBB0_1
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rdx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_20
LBB0_1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_34
LBB0_28:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_FFMIN
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_34
## %bb.29:
	movq	$0, 16(%r13)
	movq	(%r12), %rax
	movq	(%rax), %rax
	subq	%rax, %r15
	movq	(%r14), %rsi
	movslq	4(%rsi), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_30
## %bb.31:
	movq	%r15, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_32
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_34
LBB0_30:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_32:
	movq	%rax, 8(%r13)
	movl	(%rsi), %eax
	cltd
	idivl	%ecx
	movl	%eax, (%r13)
LBB0_33:
	xorl	%eax, %eax
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rdi)
	movq	$0, 16(%rdi)
	movq	(%r12), %rdx
	movq	(%rdx), %rdx
	subq	%rdx, %rax
	movslq	%ecx, %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_22
## %bb.23:
	cqto
	idivq	%rsi
	jmp	LBB0_24
LBB0_35:
	movq	_ENOMEM@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_22:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_24:
	movq	%rax, 8(%rdi)
	movq	%r13, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_25
## %bb.26:
	movq	%r13, %rax
	cqto
	idivq	%rsi
	movl	%eax, (%rdi)
	jmp	LBB0_33
LBB0_25:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%rdi)
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dsf_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsf_read_packet
_dsf_read_packet:                       ; @dsf_read_packet
	.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	x19, x1
	mov	x20, x0
	ldp	x22, x23, [x0, #16]
	ldr	x8, [x0, #8]
	ldr	x25, [x8]
	mov	x0, x22
	bl	_avio_tell
	mov	x21, x0
	ldr	x8, [x23]
	subs	x0, x8, x0
	b.le	LBB0_12
; %bb.1:
	ldp	x10, x9, [x23, #8]
	ldr	x11, [x25]
	ldrsw	x1, [x11]
	sub	x8, x8, x1
	subs	x26, x10, x9
	ccmp	x21, x8, #0, gt
	b.eq	LBB0_4
; %bb.2:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_14
; %bb.3:
	mov	w0, #0
	ldr	x8, [x20]
	ldr	x8, [x8]
	sub	x8, x21, x8
	ldr	x9, [x25]
	ldp	w9, w10, [x9]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	sdiv	x8, x8, x10
	stp	x8, xzr, [x19, #8]
	sdiv	w8, w9, w10
	str	w8, [x19]
	b	LBB0_14
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	sub	x8, x8, x21
	add	x23, x8, x9
	cmp	x23, #1
	ccmp	x26, #0, #4, ge
	b.gt	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	mov	x1, x23
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_15
; %bb.7:
	ldr	x8, [x25]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	w27, #0
	ldr	x24, [x19, #32]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w8
	sdiv	x2, x23, x8
	mov	x0, x22
	mov	x1, x24
	bl	_avio_read
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldr	x9, [x25]
	ldrsw	x9, [x9, #4]
	sdiv	x10, x23, x9
	cmp	x10, x8
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, x8, lsl #2
	sdiv	x1, x26, x9
	mov	x0, x22
	bl	_avio_skip
	add	w27, w27, #1
	ldr	x8, [x25]
	ldr	w8, [x8, #4]
	cmp	w27, w8
	b.lt	LBB0_9
LBB0_11:
	mov	w0, #0
	str	x21, [x19, #24]
	ldr	x9, [x20]
	ldr	x9, [x9]
	sub	x9, x21, x9
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	sdiv	x9, x9, x8
	stp	x9, xzr, [x19, #8]
	sdiv	x8, x23, x8
	str	w8, [x19]
	b	LBB0_14
LBB0_12:
Lloh2:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
LBB0_14:
	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_15:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dsf_read_packet
.subsections_via_symbols
