	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aiff_read_packet
_aiff_read_packet:                      ## @aiff_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, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r13
	movq	8(%rdi), %r12
	movq	(%r12), %r15
	movl	(%rdi), %edi
	callq	_avio_tell
	subq	%rax, %r15
	jle	LBB0_8
## %bb.1:
	movq	(%r13), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.2:
	movl	4(%rax), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.3:
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	subl	%edx, %ecx
	movl	%ecx, %esi
LBB0_4:
	movq	%r15, %rdi
	callq	_FFMIN
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movq	(%r13), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r15d
	jl	LBB0_7
## %bb.6:
	movq	_AV_PKT_FLAG_CORRUPT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, 16(%r14)
LBB0_7:
	movq	$0, 8(%r14)
	cltd
	idivl	%ecx
	imull	8(%r12), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
LBB0_11:
	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	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"block_align not set\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ## @AV_PKT_FLAG_CORRUPT
	.no_dead_strip	_aiff_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aiff_read_packet
_aiff_read_packet:                      ; @aiff_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
	mov	x20, x0
	ldp	x22, x8, [x0, #8]
	ldr	x23, [x8]
	ldr	x21, [x22]
	ldr	w0, [x0]
	bl	_avio_tell
	sub	x0, x21, x0
	cmp	x0, #0
	b.le	LBB0_8
; %bb.1:
	ldr	x8, [x23]
	ldr	w1, [x8]
	cbz	w1, LBB0_9
; %bb.2:
	ldr	w8, [x8, #4]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w8, w8, w1
	mul	w1, w8, w1
LBB0_4:
	bl	_FFMIN
	mov	x21, x0
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_11
; %bb.5:
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_7
; %bb.6:
Lloh3:
	adrp	x9, _AV_PKT_FLAG_CORRUPT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PKT_FLAG_CORRUPT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	bic	w9, w10, w9
	str	w9, [x19, #16]
LBB0_7:
	str	xzr, [x19, #8]
	sdiv	w8, w0, w8
	ldr	w9, [x22, #8]
	mul	w8, w9, w8
	str	w8, [x19]
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"block_align not set\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ; @AV_PKT_FLAG_CORRUPT
	.no_dead_strip	_aiff_read_packet
.subsections_via_symbols
