	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipmovie_read_packet
_ipmovie_read_packet:                   ## @ipmovie_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), %r15
	movq	8(%rdi), %rbx
	movq	_CHUNK_BAD@GOTPCREL(%rip), %r12
	movq	_CHUNK_EOF@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_process_ipmovie_chunk
	cmpl	(%r12), %eax
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CHUNK_NOMEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CHUNK_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CHUNK_SHUTDOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CHUNK_VIDEO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_8:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_12:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHUNK_BAD,4,2                  ## @CHUNK_BAD
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_CHUNK_EOF,4,2                  ## @CHUNK_EOF
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CHUNK_NOMEM,4,2                ## @CHUNK_NOMEM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CHUNK_END,4,2                  ## @CHUNK_END
	.comm	_CHUNK_SHUTDOWN,4,2             ## @CHUNK_SHUTDOWN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_CHUNK_VIDEO,4,2                ## @CHUNK_VIDEO
	.comm	_CHUNK_INIT_VIDEO,4,2           ## @CHUNK_INIT_VIDEO
	.comm	_CHUNK_INIT_AUDIO,4,2           ## @CHUNK_INIT_AUDIO
	.no_dead_strip	_ipmovie_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipmovie_read_packet
_ipmovie_read_packet:                   ; @ipmovie_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
	ldp	x21, x20, [x0]
Lloh0:
	adrp	x22, _CHUNK_BAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CHUNK_BAD@GOTPAGEOFF]
Lloh2:
	adrp	x23, _CHUNK_EOF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CHUNK_EOF@GOTPAGEOFF]
Lloh4:
	adrp	x24, _CHUNK_NOMEM@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CHUNK_NOMEM@GOTPAGEOFF]
Lloh6:
	adrp	x25, _CHUNK_END@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CHUNK_END@GOTPAGEOFF]
Lloh8:
	adrp	x26, _CHUNK_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CHUNK_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	adrp	x27, _CHUNK_VIDEO@GOTPAGE
Lloh11:
	ldr	x27, [x27, _CHUNK_VIDEO@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_process_ipmovie_chunk
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
Lloh12:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	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_11:
Lloh18:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CHUNK_BAD,4,2                  ; @CHUNK_BAD
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_CHUNK_EOF,4,2                  ; @CHUNK_EOF
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CHUNK_NOMEM,4,2                ; @CHUNK_NOMEM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CHUNK_END,4,2                  ; @CHUNK_END
	.comm	_CHUNK_SHUTDOWN,4,2             ; @CHUNK_SHUTDOWN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_CHUNK_VIDEO,4,2                ; @CHUNK_VIDEO
	.comm	_CHUNK_INIT_VIDEO,4,2           ; @CHUNK_INIT_VIDEO
	.comm	_CHUNK_INIT_AUDIO,4,2           ; @CHUNK_INIT_AUDIO
	.no_dead_strip	_ipmovie_read_packet
.subsections_via_symbols
