	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_frame_header
_read_frame_header:                     ## @read_frame_header
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	16(%rdi), %r12
	movq	%r12, %rdi
	callq	_bytestream2_get_bytes_left
	cmpl	$559, %eax                      ## imm = 0x22F
	jg	LBB0_2
## %bb.1:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_bytestream2_skip
	movq	%r12, %rdi
	callq	_bytestream2_get_le32u
	movq	%rax, (%r15)
	movq	%r12, %rdi
	callq	_bytestream2_get_le32u
	movq	%rax, 8(%r15)
	movq	(%r15), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_7
## %bb.3:
	cmpq	%rax, 8(%r14)
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, 48(%r15)
	movq	%r12, %rdi
	callq	_bytestream2_get_byteu
	movq	%rax, 40(%r15)
	movq	%r12, %rdi
	callq	_bytestream2_get_byteu
	movq	%rax, 32(%r15)
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movq	32(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movq	32(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movq	32(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movq	32(%r14), %rcx
	movq	%rax, 24(%rcx)
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movq	%rax, 24(%r15)
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
	movq	%r12, %rdi
	callq	_bytestream2_get_le32u
	movq	%rax, 16(%r15)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_bytestream2_get_le16u
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_bytestream2_skip
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movl	40(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Input frame too short (%d bytes).\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Variable size frames"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_read_frame_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_frame_header
_read_frame_header:                     ; @read_frame_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_bytestream2_get_bytes_left
	cmp	w0, #559
	b.gt	LBB0_2
; %bb.1:
	mov	x3, x0
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x0, x20
	mov	w1, #8
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_le32u
	str	x0, [x21]
	mov	x0, x20
	bl	_bytestream2_get_le32u
	str	x0, [x21, #8]
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x19, #8]
	cmp	x8, x0
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_bytestream2_get_le16u
	str	x0, [x21, #48]
	mov	x0, x20
	bl	_bytestream2_get_byteu
	str	x0, [x21, #40]
	mov	x0, x20
	bl	_bytestream2_get_byteu
	str	x0, [x21, #32]
	mov	x0, x20
	mov	w1, #4
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_le16u
	ldr	x8, [x19, #32]
	str	x0, [x8]
	mov	x0, x20
	bl	_bytestream2_get_le16u
	ldr	x8, [x19, #32]
	str	x0, [x8, #8]
	mov	x0, x20
	bl	_bytestream2_get_le16u
	ldr	x8, [x19, #32]
	str	x0, [x8, #16]
	mov	x0, x20
	bl	_bytestream2_get_le16u
	ldr	x8, [x19, #32]
	str	x0, [x8, #24]
	mov	x0, x20
	bl	_bytestream2_get_le16u
	str	x0, [x21, #24]
	mov	x0, x20
	mov	w1, #2
	bl	_bytestream2_skip
	mov	x0, x20
	bl	_bytestream2_get_le32u
	mov	x22, #0
	str	x0, [x21, #16]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_bytestream2_get_le16u
	ldr	x8, [x19, #24]
	str	x0, [x8, x22]
	add	x22, x22, #8
	cmp	x22, #2048
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x20
	mov	w1, #8
	bl	_bytestream2_skip
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #40]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh9:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Input frame too short (%d bytes).\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Variable size frames"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_read_frame_header
.subsections_via_symbols
