	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sds_read_packet
_sds_read_packet:                       ## @sds_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	%rbx, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_avio_tell
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_avio_rb16
	cmpl	$61566, %eax                    ## imm = 0xF07E
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_avio_skip
	movl	16(%r13), %esi
	movq	%r15, %rdi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$120, %edx
	callq	_avio_read
	movl	%eax, %r12d
	movl	(%r13), %edi
	movq	24(%r15), %rsi
	callq	*8(%r13)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_avio_skip
	movq	%rbx, %rdi
	callq	_avio_r8
	cmpl	$247, %eax
	jne	LBB0_3
## %bb.7:
	movq	_AV_PKT_FLAG_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r15)
	movq	$0, 8(%r15)
	movl	%r14d, (%r15)
	jmp	LBB0_8
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ## @AV_PKT_FLAG_CORRUPT
	.no_dead_strip	_sds_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sds_read_packet
_sds_read_packet:                       ; @sds_read_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldp	x21, x23, [x0]
	mov	x0, x21
	bl	_avio_feof
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_8
LBB0_2:
	mov	x0, x21
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x21
	bl	_avio_rb16
	mov	w8, #61566
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	mov	w1, #3
	bl	_avio_skip
	ldr	w1, [x23, #16]
	mov	x0, x19
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w1, [x23]
	mov	x0, x21
	mov	w2, #120
	bl	_avio_read
	mov	x22, x0
	ldr	x8, [x23, #8]
	ldr	w0, [x23]
	ldr	x1, [x19, #24]
	blr	x8
	mov	x0, x21
	mov	w1, #1
	bl	_avio_skip
	mov	x0, x21
	bl	_avio_r8
	cmp	w0, #247
	b.ne	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _AV_PKT_FLAG_CORRUPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PKT_FLAG_CORRUPT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
	str	w20, [x19]
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_8
LBB0_7:
	mov	x22, x0
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ; @AV_PKT_FLAG_CORRUPT
	.no_dead_strip	_sds_read_packet
.subsections_via_symbols
