	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_send_setup_request
_rtsp_send_setup_request:               ## @rtsp_send_setup_request
	.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	$24, %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	(%rdi), %rax
	movq	(%rax), %r13
	movq	(%r13), %r12
	movq	_COMMS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	_RTSP_URI_LENGTH_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_1
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r13d
	addq	%r12, %r14
	movq	_RTSP_REQUEST_LINE_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_SETUP_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_snprintf
	cltq
	addq	%rax, %r12
	cmpl	%r13d, %eax
	jge	LBB0_3
## %bb.2:
	movl	%r14d, %esi
	subl	%r12d, %esi
	movq	_TRANSPORT_HEADER_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	leal	1(%rcx), %r8d
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_snprintf
	cltq
	addq	%rax, %r12
LBB0_3:
	cmpq	%r14, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jae	LBB0_5
## %bb.4:
	movl	%r14d, %esi
	subl	%r12d, %esi
	movq	_TRAILING_HEADERS_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	8(%rdi), %ecx
	leal	1(%rcx), %eax
	movl	%eax, 8(%rdi)
	movq	%r12, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_snprintf
	cltq
	addq	%rax, %r12
LBB0_5:
	xorl	%edi, %edi
	cmpq	%r14, %r12
	setb	%dil
	callq	_vc_container_assert
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtsp_send                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMS_BUFFER_SIZE,4,2          ## @COMMS_BUFFER_SIZE
	.comm	_RTSP_URI_LENGTH_MAX,8,3        ## @RTSP_URI_LENGTH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP: Control URI is too long (%d>%d)"

	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ## @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_RTSP_REQUEST_LINE_FORMAT,8,3   ## @RTSP_REQUEST_LINE_FORMAT
	.comm	_SETUP_METHOD,4,2               ## @SETUP_METHOD
	.comm	_TRANSPORT_HEADER_FORMAT,8,3    ## @TRANSPORT_HEADER_FORMAT
	.comm	_TRAILING_HEADERS_FORMAT,8,3    ## @TRAILING_HEADERS_FORMAT
	.no_dead_strip	_rtsp_send_setup_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_send_setup_request
_rtsp_send_setup_request:               ; @rtsp_send_setup_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldr	x20, [x24]
Lloh0:
	adrp	x8, _COMMS_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMS_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x22, [x8]
	ldr	x23, [x1]
	mov	x0, x23
	bl	_strlen
Lloh3:
	adrp	x8, _RTSP_URI_LENGTH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTSP_URI_LENGTH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x3, [x8]
	cmp	x0, x3
	b.le	LBB0_2
; %bb.1:
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_LOG_ERROR
Lloh8:
	adrp	x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	add	x25, x20, x22
Lloh11:
	adrp	x8, _RTSP_REQUEST_LINE_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTSP_REQUEST_LINE_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
Lloh14:
	adrp	x8, _SETUP_METHOD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SETUP_METHOD@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	str	x23, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_snprintf
	add	x20, x20, w0, sxtw
	cmp	w0, w22
	b.ge	LBB0_4
; %bb.3:
	sub	w1, w25, w20
Lloh17:
	adrp	x8, _TRANSPORT_HEADER_FORMAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRANSPORT_HEADER_FORMAT@GOTPAGEOFF]
Lloh19:
	ldr	x2, [x8]
	ldr	w3, [x21, #8]
	add	w8, w3, #1
	str	x8, [sp]
	mov	x0, x20
	bl	_snprintf
	add	x20, x20, w0, sxtw
LBB0_4:
	cmp	x20, x25
	b.hs	LBB0_6
; %bb.5:
	sub	w1, w25, w20
Lloh20:
	adrp	x8, _TRAILING_HEADERS_FORMAT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRAILING_HEADERS_FORMAT@GOTPAGEOFF]
Lloh22:
	ldr	x2, [x8]
	ldr	w3, [x24, #8]
	add	w8, w3, #1
	str	w8, [x24, #8]
	mov	x0, x20
	bl	_snprintf
	add	x20, x20, w0, sxtw
LBB0_6:
	cmp	x20, x25
	cset	w0, lo
	bl	_vc_container_assert
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_rtsp_send
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMS_BUFFER_SIZE,4,2          ; @COMMS_BUFFER_SIZE
	.comm	_RTSP_URI_LENGTH_MAX,8,3        ; @RTSP_URI_LENGTH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP: Control URI is too long (%d>%d)"

	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ; @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_RTSP_REQUEST_LINE_FORMAT,8,3   ; @RTSP_REQUEST_LINE_FORMAT
	.comm	_SETUP_METHOD,4,2               ; @SETUP_METHOD
	.comm	_TRANSPORT_HEADER_FORMAT,8,3    ; @TRANSPORT_HEADER_FORMAT
	.comm	_TRAILING_HEADERS_FORMAT,8,3    ; @TRAILING_HEADERS_FORMAT
	.no_dead_strip	_rtsp_send_setup_request
.subsections_via_symbols
