	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_packet
_get_packet:                            ## @get_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_STATE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_37
LBB0_2:
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	76(%rbx), %edi
	movl	72(%rbx), %edx
	movq	56(%rbx), %r8
	movq	64(%rbx), %rcx
	leaq	-80(%rbp), %rsi
	callq	_ff_rtmp_packet_read
	testl	%eax, %eax
	jle	LBB0_25
## %bb.3:
	leaq	-80(%rbp), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_ff_rtmp_packet_destroy
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	76(%rbx), %edi
	movl	72(%rbx), %edx
	movq	56(%rbx), %r8
	movq	64(%rbx), %rcx
	movq	%r13, %rsi
	callq	_ff_rtmp_packet_read
	testl	%eax, %eax
	jle	LBB0_25
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rcx
	movq	%rcx, 48(%rbx)
	movl	%eax, %eax
	addq	8(%rbx), %rax
	movq	%rax, 8(%rbx)
	subq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	-64(%rbp), %rdx
	incq	%rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gen_bytes_read
	testl	%eax, %eax
	js	LBB0_30
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_rtmp_parse_result
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movq	_STATE_SEEKING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	js	LBB0_31
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 40(%rbx)
	jne	LBB0_29
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_STATE_STOPPED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r15d, %r15d
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_STATE_PLAYING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_STATE_PUBLISHING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_STATE_SENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_STATE_RECEIVING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -72(%rbp)
	je	LBB0_4
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 32(%rbx)
	je	LBB0_4
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rax
	movq	_RTMP_PT_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RTMP_PT_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_33
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RTMP_PT_NOTIFY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_35
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RTMP_PT_METADATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.24:
	leaq	-80(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_handle_metadata
	jmp	LBB0_34
LBB0_25:
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_27:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_37
LBB0_29:
	leaq	-80(%rbp), %rdi
	callq	_ff_rtmp_packet_destroy
	xorl	%r12d, %r12d
	jmp	LBB0_37
LBB0_30:
	movl	%eax, %r12d
LBB0_31:
	leaq	-80(%rbp), %rdi
	jmp	LBB0_36
LBB0_32:
	leaq	-80(%rbp), %rdi
	callq	_ff_rtmp_packet_destroy
	jmp	LBB0_1
LBB0_33:
	leaq	-80(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_append_flv_data
LBB0_34:
	movl	%eax, %r12d
	movq	%r14, %rdi
	jmp	LBB0_36
LBB0_35:
	leaq	-80(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_handle_notify
	movl	%eax, %r12d
	movq	%rbx, %rdi
LBB0_36:
	callq	_ff_rtmp_packet_destroy
LBB0_37:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_STOPPED,8,3              ## @STATE_STOPPED
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending bytes read report\n"

	.comm	_STATE_SEEKING,8,3              ## @STATE_SEEKING
	.comm	_STATE_PLAYING,8,3              ## @STATE_PLAYING
	.comm	_STATE_PUBLISHING,8,3           ## @STATE_PUBLISHING
	.comm	_STATE_SENDING,8,3              ## @STATE_SENDING
	.comm	_STATE_RECEIVING,8,3            ## @STATE_RECEIVING
	.comm	_RTMP_PT_VIDEO,8,3              ## @RTMP_PT_VIDEO
	.comm	_RTMP_PT_AUDIO,8,3              ## @RTMP_PT_AUDIO
	.comm	_RTMP_PT_NOTIFY,8,3             ## @RTMP_PT_NOTIFY
	.comm	_RTMP_PT_METADATA,8,3           ## @RTMP_PT_METADATA
	.no_dead_strip	_get_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_packet
_get_packet:                            ; @get_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x24, _STATE_STOPPED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _STATE_STOPPED@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	b	LBB0_32
LBB0_2:
	mov	x21, x1
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldp	w2, w0, [x19, #72]
	ldp	x4, x3, [x19, #56]
	mov	x1, sp
	bl	_ff_rtmp_packet_read
	cmp	w0, #1
	b.lt	LBB0_22
; %bb.3:
Lloh5:
	adrp	x25, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x25, [x25, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
Lloh9:
	adrp	x26, _STATE_SEEKING@GOTPAGE
Lloh10:
	ldr	x26, [x26, _STATE_SEEKING@GOTPAGEOFF]
Lloh11:
	adrp	x27, _STATE_SENDING@GOTPAGE
Lloh12:
	ldr	x27, [x27, _STATE_SENDING@GOTPAGEOFF]
Lloh13:
	adrp	x28, _STATE_RECEIVING@GOTPAGE
Lloh14:
	ldr	x28, [x28, _STATE_RECEIVING@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	bl	_ff_rtmp_packet_destroy
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldp	w2, w0, [x19, #72]
	ldp	x4, x3, [x19, #56]
	mov	x1, sp
	bl	_ff_rtmp_packet_read
	cmp	w0, #1
	b.lt	LBB0_22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	str	x8, [x19, #48]
	ldp	x8, x9, [x19, #8]
	add	x8, x8, w0, uxtw
	str	x8, [x19, #8]
	ldr	x10, [x19, #24]
	sub	x8, x8, x9
	cmp	x8, x10
	b.le	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x22
	bl	_av_log
	ldr	x8, [sp, #16]
	add	x2, x8, #1
	mov	x0, x20
	mov	x1, x19
	bl	_gen_bytes_read
	tbnz	w0, #31, LBB0_30
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_rtmp_parse_result
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	tbnz	w0, #31, LBB0_31
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #40]
	cbnz	x9, LBB0_26
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x9, _STATE_PLAYING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STATE_PLAYING@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _STATE_PUBLISHING@GOTPAGE
Lloh19:
	ldr	x10, [x10, _STATE_PUBLISHING@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	x11, [x27]
	ldr	x12, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.eq	LBB0_26
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp]
Lloh21:
	adrp	x9, _RTMP_PT_VIDEO@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RTMP_PT_VIDEO@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh24:
	adrp	x9, _RTMP_PT_AUDIO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RTMP_PT_AUDIO@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh27:
	adrp	x9, _RTMP_PT_NOTIFY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RTMP_PT_NOTIFY@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_29
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh30:
	adrp	x9, _RTMP_PT_METADATA@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RTMP_PT_METADATA@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.21:
	mov	x1, sp
	mov	x0, x19
	bl	_handle_metadata
	b	LBB0_30
LBB0_22:
	cbz	w0, LBB0_24
; %bb.23:
Lloh33:
	adrp	x8, _EIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh35:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x23, x0
	b	LBB0_32
LBB0_26:
	mov	x0, sp
	bl	_ff_rtmp_packet_destroy
	mov	w23, #0
	b	LBB0_32
LBB0_27:
	mov	x0, sp
	bl	_ff_rtmp_packet_destroy
	b	LBB0_1
LBB0_28:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #0
	bl	_append_flv_data
	b	LBB0_30
LBB0_29:
	mov	x1, sp
	mov	x0, x20
	bl	_handle_notify
LBB0_30:
	mov	x23, x0
LBB0_31:
	mov	x0, sp
	bl	_ff_rtmp_packet_destroy
LBB0_32:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_STOPPED,8,3              ; @STATE_STOPPED
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending bytes read report\n"

	.comm	_STATE_SEEKING,8,3              ; @STATE_SEEKING
	.comm	_STATE_PLAYING,8,3              ; @STATE_PLAYING
	.comm	_STATE_PUBLISHING,8,3           ; @STATE_PUBLISHING
	.comm	_STATE_SENDING,8,3              ; @STATE_SENDING
	.comm	_STATE_RECEIVING,8,3            ; @STATE_RECEIVING
	.comm	_RTMP_PT_VIDEO,8,3              ; @RTMP_PT_VIDEO
	.comm	_RTMP_PT_AUDIO,8,3              ; @RTMP_PT_AUDIO
	.comm	_RTMP_PT_NOTIFY,8,3             ; @RTMP_PT_NOTIFY
	.comm	_RTMP_PT_METADATA,8,3           ; @RTMP_PT_METADATA
	.no_dead_strip	_get_packet
.subsections_via_symbols
