	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flv_read_sample_header
_flv_read_sample_header:                ## @flv_read_sample_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	%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, %rbx
	movl	(%rsi), %eax
	cmpl	4(%rsi), %eax
	jge	LBB0_2
## %bb.1:
	addq	$20, %rbx
	movq	%rbx, %r12
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %r14
	callq	_STREAM_POSITION
	movq	%rax, %r15
	movl	$0, (%rsp)
	leaq	-60(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r14, %rdi
	callq	_flv_read_frame_header
	movl	%eax, 20(%rbx)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_8
## %bb.3:
	leaq	20(%rbx), %r12
	movl	-44(%rbp), %esi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_flv_validate_frame_data
	movl	%eax, (%r12)
	movq	_VC_CONTAINER_ERROR_CONTINUE@GOTPCREL(%rip), %rdx
	movl	(%r13), %ecx
	cmpl	(%rdx), %eax
	jne	LBB0_5
## %bb.4:
	movl	%ecx, (%r12)
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_6
LBB0_5:
	cmpl	%ecx, %eax
	jne	LBB0_8
LBB0_6:
	movq	%r15, 40(%rbx)
	movq	%r14, %rdi
	callq	_STREAM_POSITION
	movq	%rax, 32(%rbx)
	movl	-52(%rbp), %eax
	movl	%eax, 4(%rbx)
	movl	$0, (%rbx)
	movl	-56(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 12(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 24(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 16(%rbx)
LBB0_7:
	movl	(%r12), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CONTINUE,4,2 ## @VC_CONTAINER_ERROR_CONTINUE
	.no_dead_strip	_flv_read_sample_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flv_read_sample_header
_flv_read_sample_header:                ; @flv_read_sample_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	ldp	w8, w9, [x1]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
	add	x22, x19, #20
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	bl	_STREAM_POSITION
	mov	x21, x0
	add	x1, sp, #24
	add	x2, sp, #28
	add	x3, sp, #20
	add	x4, sp, #12
	add	x5, sp, #16
	mov	x0, x20
	mov	w6, #0
	bl	_flv_read_frame_header
	mov	x22, x19
	str	w0, [x22, #20]!
Lloh0:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.3:
	ldr	w1, [sp, #28]
	add	x2, sp, #20
	add	x3, sp, #12
	mov	x0, x20
	bl	_flv_validate_frame_data
	str	w0, [x22]
Lloh2:
	adrp	x8, _VC_CONTAINER_ERROR_CONTINUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_CONTINUE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	w8, [x23]
	cmp	w0, w9
	b.ne	LBB0_5
; %bb.4:
	str	w8, [x22]
	ldr	w8, [x20]
	str	w8, [sp, #28]
	b	LBB0_6
LBB0_5:
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_6:
	str	x21, [x19, #40]
	mov	x0, x20
	bl	_STREAM_POSITION
	str	x0, [x19, #32]
	ldp	w8, w9, [sp, #20]
	stp	wzr, w8, [x19]
	ldr	w8, [sp, #16]
	stp	w8, w9, [x19, #8]
	ldr	w8, [sp, #12]
	str	w8, [x19, #24]
	ldr	w8, [sp, #28]
	str	w8, [x19, #16]
LBB0_7:
	ldr	w0, [x22]
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_CONTINUE,4,2 ; @VC_CONTAINER_ERROR_CONTINUE
	.no_dead_strip	_flv_read_sample_header
.subsections_via_symbols
