	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_send_reply
_rtsp_send_reply:                       ## @rtsp_send_reply
	.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
	pushq	%rax
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r8
	movq	_status_messages@GOTPCREL(%rip), %r9
	movq	(%r9), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	movq	%r8, -4152(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	leaq	16(%rax), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %edi
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movl	(%rsi), %edi
	addq	$16, %rsi
	testl	%edi, %edi
	jne	LBB0_3
## %bb.6:
	movl	%edx, %r13d
	jmp	LBB0_7
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_4:
	movl	%edx, %r13d
	movq	%r13, %rdx
	shlq	$4, %rdx
	movl	%ecx, %r14d
	movq	8(%rax,%rdx), %r8
	leaq	L_.str(%rip), %rdx
	leaq	-4144(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movl	%ebx, %ecx
	movq	%r9, %rbx
	callq	_snprintf
	movl	%r14d, %ecx
	movq	(%rbx), %rax
LBB0_7:
	shlq	$4, %r13
	cmpl	$0, (%rax,%r13)
	je	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rdx
	leaq	-4144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_av_strlcatf
	movq	_LIBAVFORMAT_IDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_av_strlcatf
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	leaq	-4144(%rbp), %rdi
	movq	%r15, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_av_strlcat
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	leaq	-4144(%rbp), %r14
	movq	%r14, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_av_strlcat
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rcx
	callq	_av_log
	movq	-4152(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ffurl_write
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_status_messages,8,3            ## @status_messages
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP/1.0 %d %s\r\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"CSeq: %d\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"Server: %s\r\n"

	.comm	_LIBAVFORMAT_IDENT,4,2          ## @LIBAVFORMAT_IDENT
L_.str.3:                               ## @.str.3
	.asciz	"\r\n"

	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
L_.str.4:                               ## @.str.4
	.asciz	"Sending response:\n%s"

	.no_dead_strip	_rtsp_send_reply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_send_reply
_rtsp_send_reply:                       ; @rtsp_send_reply
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	mov	w9, #4112
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, #16
	mov	x21, x3
	mov	x20, x2
	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, #-72]
	ldr	x22, [x0]
Lloh5:
	adrp	x23, _status_messages@GOTPAGE
Lloh6:
	ldr	x23, [x23, _status_messages@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w11, [x8]
	cbz	w11, LBB0_5
; %bb.1:
	mov	x3, x1
	mov	x9, #0
	mov	w10, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w11, w3
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	ldr	w11, [x8, x10]
	add	x10, x10, #16
	cbnz	w11, LBB0_2
; %bb.4:
	and	x24, x9, #0xffffffff
	b	LBB0_7
LBB0_5:
	mov	x24, #0
	b	LBB0_7
LBB0_6:
	and	x24, x9, #0xffffffff
	add	x8, x8, w9, uxtw #4
	ldr	x4, [x8, #8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #4096
	bl	_snprintf
	ldr	x8, [x23]
LBB0_7:
	lsl	x9, x24, #4
	ldr	w8, [x8, x9]
	cbz	w8, LBB0_11
; %bb.8:
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #4096
	mov	x3, x21
	bl	_av_strlcatf
Lloh11:
	adrp	x8, _LIBAVFORMAT_IDENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LIBAVFORMAT_IDENT@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w1, #4096
	bl	_av_strlcatf
	cbz	x20, LBB0_10
; %bb.9:
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #4096
	bl	_av_strlcat
LBB0_10:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4096
	bl	_av_strlcat
Lloh18:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.4@PAGE
Lloh22:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x3, sp, #8
	mov	x0, x19
	bl	_av_log
	ldr	w19, [x22]
	add	x0, sp, #8
	bl	_strlen
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_ffurl_write
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_status_messages,8,3            ; @status_messages
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP/1.0 %d %s\r\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"CSeq: %d\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"Server: %s\r\n"

	.comm	_LIBAVFORMAT_IDENT,4,2          ; @LIBAVFORMAT_IDENT
l_.str.3:                               ; @.str.3
	.asciz	"\r\n"

	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
l_.str.4:                               ; @.str.4
	.asciz	"Sending response:\n%s"

	.no_dead_strip	_rtsp_send_reply
.subsections_via_symbols
