	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_chunk_size
_handle_chunk_size:                     ## @handle_chunk_size
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %ecx
	cmpl	$3, %ecx
	jg	LBB0_3
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %rbx
	movq	(%r14), %r15
	cmpl	$0, 36(%r15)
	jne	LBB0_6
## %bb.4:
	movl	32(%r15), %edi
	movq	24(%r15), %rcx
	addq	$4, %rcx
	movq	8(%r15), %rdx
	movq	16(%r15), %r8
	addq	$4, %r8
	movq	%rbx, %rsi
	callq	_ff_rtmp_packet_write
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movl	4(%rbx), %edi
	callq	_AV_RB32
	movq	%rax, 8(%r15)
LBB0_6:
	movl	4(%rbx), %edi
	callq	_AV_RB32
	movl	%eax, (%r15)
	testl	%eax, %eax
	jle	LBB0_7
## %bb.8:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_av_log
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
LBB0_2:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	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	"Too short chunk size change packet (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Incorrect chunk size %d\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"New incoming chunk size = %d\n"

	.no_dead_strip	_handle_chunk_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_chunk_size
_handle_chunk_size:                     ; @handle_chunk_size
	.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	x19, x0
	ldr	w3, [x1]
	cmp	w3, #3
	b.gt	LBB0_2
; %bb.1:
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
	mov	x0, x19
	b	LBB0_8
LBB0_2:
	mov	x20, x1
	ldr	x21, [x19]
	ldr	w8, [x21, #36]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w0, [x21, #32]
	ldr	x8, [x21, #24]
	add	x3, x8, #4
	ldp	x2, x8, [x21, #8]
	add	x4, x8, #4
	mov	x1, x20
	bl	_ff_rtmp_packet_write
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w0, [x20, #4]
	bl	_AV_RB32
	str	x0, [x21, #8]
LBB0_5:
	ldr	w0, [x20, #4]
	bl	_AV_RB32
	mov	x3, x0
	str	w3, [x21]
	cmp	w3, #0
	b.le	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_av_log
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_8:
	bl	_av_log
Lloh15:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh17:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Too short chunk size change packet (%d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Incorrect chunk size %d\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"New incoming chunk size = %d\n"

	.no_dead_strip	_handle_chunk_size
.subsections_via_symbols
