	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtsp_tcp_read_packet        ## -- Begin function ff_rtsp_tcp_read_packet
	.p2align	4, 0x90
_ff_rtsp_tcp_read_packet:               ## @ff_rtsp_tcp_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	leaq	-72(%rbp), %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ff_rtsp_read_reply
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	leaq	4(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ff_rtsp_read_reply
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	js	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$1, %r14d
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	32(%r12), %edi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_ffurl_read_complete
	movl	$-1, %r14d
	cmpl	$3, %eax
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_AV_RB16
	movl	%eax, %r15d
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_av_log
	cmpl	-68(%rbp), %r15d                ## 4-byte Folded Reload
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$7, %r15d
	jle	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %r13
	movl	32(%r12), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_ffurl_read_complete
	cmpl	%r15d, %eax
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movq	_RTSP_TRANSPORT_RDT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	leaq	-44(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ff_rdt_parse_header
	testq	%rax, %rax
	js	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rcx
	movl	-44(%rbp), %edx
	xorl	%esi, %esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_9
LBB0_15:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rsi,8), %rdi
	cmpl	(%rdi), %edx
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	cmpl	4(%rdi), %edx
	jg	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	_RTSP_STATE_STREAMING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ff_rtsp_read_reply
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_2
	jmp	LBB0_19
LBB0_18:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rdi, (%rax)
	movl	%r15d, %r14d
	jmp	LBB0_19
LBB0_4:
	xorl	%r14d, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_read_packet:\n"

	.comm	_RTSP_STATE_STREAMING,8,3       ## @RTSP_STATE_STREAMING
L_.str.1:                               ## @.str.1
	.asciz	"id=%d len=%d\n"

	.comm	_RTSP_TRANSPORT_RDT,8,3         ## @RTSP_TRANSPORT_RDT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_rtsp_tcp_read_packet        ; -- Begin function ff_rtsp_tcp_read_packet
	.p2align	2
_ff_rtsp_tcp_read_packet:               ; @ff_rtsp_tcp_read_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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x26, [x0]
Lloh0:
	adrp	x27, _AV_LOG_TRACE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _AV_LOG_TRACE@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	add	x1, sp, #24
	mov	x0, x22
	mov	x2, #0
	mov	w3, #1
	mov	x4, #0
	bl	_ff_rtsp_read_reply
	mov	x25, x0
	tbnz	w0, #31, LBB0_19
; %bb.1:
	add	x23, x21, #4
Lloh4:
	adrp	x28, _RTSP_STATE_STREAMING@GOTPAGE
Lloh5:
	ldr	x28, [x28, _RTSP_STATE_STREAMING@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #24
	mov	x0, x22
	mov	x2, #0
	mov	w3, #1
	mov	x4, #0
	bl	_ff_rtsp_read_reply
	mov	x25, x0
	tbnz	w0, #31, LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w25, #1
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26, #32]
	mov	x1, x21
	mov	w2, #3
	bl	_ffurl_read_complete
	cmp	w0, #3
	b.ne	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	str	w8, [sp, #28]
	mov	x0, x23
	bl	_AV_RB16
	mov	x25, x0
	ldr	w1, [x27]
	ldr	w8, [sp, #28]
	stp	x8, x25, [sp]
	mov	x0, x22
	mov	x2, x24
	bl	_av_log
	cmp	w25, w19
	b.gt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, #7
	b.le	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26, #32]
	mov	x1, x21
	mov	x2, x25
	bl	_ffurl_read_complete
	cmp	w0, w25
	b.ne	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26, #8]
Lloh8:
	adrp	x9, _RTSP_TRANSPORT_RDT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTSP_TRANSPORT_RDT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x25
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_ff_rdt_parse_header
	tbnz	x0, #63, LBB0_17
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26, #16]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26, #24]
	ldr	w10, [sp, #28]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_3
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x9]
	ldr	w12, [x11]
	cmp	w10, w12
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w12, [x11, #4]
	cmp	w10, w12
	b.gt	LBB0_13
; %bb.16:
	str	x11, [x20]
	b	LBB0_19
LBB0_17:
	mov	w25, #-1
	b	LBB0_19
LBB0_18:
	mov	w25, #0
LBB0_19:
	mov	x0, x25
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_read_packet:\n"

	.comm	_RTSP_STATE_STREAMING,8,3       ; @RTSP_STATE_STREAMING
l_.str.1:                               ; @.str.1
	.asciz	"id=%d len=%d\n"

	.comm	_RTSP_TRANSPORT_RDT,8,3         ; @RTSP_TRANSPORT_RDT
.subsections_via_symbols
