	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_read_announce
_rtsp_read_announce:                    ## @rtsp_read_announce
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -4144(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-4144(%rbp), %rsi
	callq	_rtsp_read_request
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	incl	4(%rbx)
	movl	-4136(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4136(%rbp), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_RTSP_STATUS_SERVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4140(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtsp_send_reply
	movq	_AVERROR_OPTION_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_3:
	movl	-4144(%rbp), %edx
	leal	-1(%rdx), %eax
	cmpl	$4093, %eax                     ## imm = 0xFFD
	ja	LBB0_8
## %bb.4:
	movl	(%rbx), %edi
	leaq	-4128(%rbp), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ffurl_read_complete
	movslq	-4144(%rbp), %rcx
	cmpl	%ecx, %eax
	jge	LBB0_6
## %bb.5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_RTSP_STATUS_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4140(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_RTSP_STATUS_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4140(%rbp), %ecx
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
LBB0_9:
	callq	_rtsp_send_reply
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movb	$0, -4128(%rbp,%rcx)
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	leaq	-4128(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ff_sdp_parse
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_RTSP_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-4140(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtsp_send_reply
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ANNOUNCE"

L_.str.1:                               ## @.str.1
	.asciz	"application/sdp"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Unexpected content type %s\n"

	.comm	_RTSP_STATUS_SERVICE,4,2        ## @RTSP_STATUS_SERVICE
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ## @AVERROR_OPTION_NOT_FOUND
L_.str.3:                               ## @.str.3
	.asciz	"Unable to get complete SDP Description in ANNOUNCE\n"

	.comm	_RTSP_STATUS_INTERNAL,4,2       ## @RTSP_STATUS_INTERNAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.4:                               ## @.str.4
	.asciz	"SDP: %s\n"

	.comm	_RTSP_STATUS_OK,4,2             ## @RTSP_STATUS_OK
L_.str.5:                               ## @.str.5
	.asciz	"Content-Length header value exceeds sdp allocated buffer (4KB)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Content-Length exceeds buffer size"

	.no_dead_strip	_rtsp_read_announce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_read_announce
_rtsp_read_announce:                    ; @rtsp_read_announce
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x0]
	stp	xzr, xzr, [sp, #8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_rtsp_read_request
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldr	w0, [sp, #16]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [sp, #16]
	str	x8, [sp]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh14:
	adrp	x8, _RTSP_STATUS_SERVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RTSP_STATUS_SERVICE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x2, #0
	bl	_rtsp_send_reply
Lloh17:
	adrp	x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVERROR_OPTION_NOT_FOUND@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_3:
	ldr	w2, [sp, #8]
	sub	w8, w2, #1
	cmp	w8, #4093
	b.hi	LBB0_6
; %bb.4:
	ldr	w0, [x20]
	add	x20, sp, #24
	add	x1, sp, #24
	bl	_ffurl_read_complete
	ldrsw	x8, [sp, #8]
	cmp	w0, w8
	b.ge	LBB0_10
; %bb.5:
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh25:
	adrp	x8, _RTSP_STATUS_INTERNAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RTSP_STATUS_INTERNAL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x2, #0
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.5@PAGE
Lloh32:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh33:
	adrp	x8, _RTSP_STATUS_INTERNAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RTSP_STATUS_INTERNAL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
Lloh36:
	adrp	x2, l_.str.6@PAGE
Lloh37:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
LBB0_7:
	bl	_rtsp_send_reply
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.9:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	strb	wzr, [x20, x8]
Lloh44:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh47:
	adrp	x2, l_.str.4@PAGE
Lloh48:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	x1, sp, #24
	mov	x0, x19
	bl	_ff_sdp_parse
	cbnz	w0, LBB0_8
; %bb.11:
Lloh49:
	adrp	x8, _RTSP_STATUS_OK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RTSP_STATUS_OK@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x2, #0
	bl	_rtsp_send_reply
	mov	w0, #0
	b	LBB0_8
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ANNOUNCE"

l_.str.1:                               ; @.str.1
	.asciz	"application/sdp"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Unexpected content type %s\n"

	.comm	_RTSP_STATUS_SERVICE,4,2        ; @RTSP_STATUS_SERVICE
	.comm	_AVERROR_OPTION_NOT_FOUND,4,2   ; @AVERROR_OPTION_NOT_FOUND
l_.str.3:                               ; @.str.3
	.asciz	"Unable to get complete SDP Description in ANNOUNCE\n"

	.comm	_RTSP_STATUS_INTERNAL,4,2       ; @RTSP_STATUS_INTERNAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.4:                               ; @.str.4
	.asciz	"SDP: %s\n"

	.comm	_RTSP_STATUS_OK,4,2             ; @RTSP_STATUS_OK
l_.str.5:                               ; @.str.5
	.asciz	"Content-Length header value exceeds sdp allocated buffer (4KB)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Content-Length exceeds buffer size"

	.no_dead_strip	_rtsp_read_announce
.subsections_via_symbols
