	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_write_record
_rtsp_write_record:                     ## @rtsp_write_record
	.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	%r12
	pushq	%rbx
	subq	$1056, %rsp                     ## imm = 0x420
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r12
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_snprintf
	movl	4(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-1080(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rcx
	xorl	%r9d, %r9d
	callq	_ff_rtsp_send_cmd
	movq	-1080(%rbp), %rdi
	movq	_RTSP_STATUS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_1
## %bb.2:
	movq	_RTSP_STATE_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %esi
	callq	_ff_rtsp_averror
	movl	%eax, %r14d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$1056, %rsp                     ## imm = 0x420
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Range: npt=0.000-\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"RECORD"

	.comm	_RTSP_STATUS_OK,8,3             ## @RTSP_STATUS_OK
	.comm	_RTSP_STATE_STREAMING,4,2       ## @RTSP_STATE_STREAMING
	.no_dead_strip	_rtsp_write_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_write_record
_rtsp_write_record:                     ; @rtsp_write_record
	.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
	sub	sp, sp, #1040
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x0]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	bl	_snprintf
	ldr	w2, [x20, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x19
	mov	x5, #0
	bl	_ff_rtsp_send_cmd
	ldr	x0, [sp]
Lloh7:
	adrp	x8, _RTSP_STATUS_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTSP_STATUS_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh10:
	adrp	x8, _RTSP_STATE_STREAMING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RTSP_STATE_STREAMING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_3
LBB0_2:
	mov	w1, #-1
	bl	_ff_rtsp_averror
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #1040
	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_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Range: npt=0.000-\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"RECORD"

	.comm	_RTSP_STATUS_OK,8,3             ; @RTSP_STATUS_OK
	.comm	_RTSP_STATE_STREAMING,4,2       ; @RTSP_STATE_STREAMING
	.no_dead_strip	_rtsp_write_record
.subsections_via_symbols
