	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsp_read_response
_rtsp_read_response:                    ## @rtsp_read_response
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	(%r12), %r13
	movq	_COMMS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r12), %edi
	callq	_vc_containers_list_reset
	movq	$0, -64(%rbp)
	movq	%r13, -56(%rbp)
	decq	%rbx
	je	LBB0_32
## %bb.1:
	movq	%rbx, %rdx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r15
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %r14
	testq	%rdx, %rdx
	je	LBB0_30
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rdx, %rbx
	callq	_vc_container_io_read
	movq	(%r15), %rcx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_29
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %r13
	subq	%rax, %rbx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%rbx, %rdx
	jne	LBB0_21
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r13, %r14
	jae	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=2
	incq	%r14
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	cmpq	%r13, %r14
	jae	LBB0_2
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14), %eax
	cmpl	$10, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$58, %eax
	jne	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	1(%r14), %rax
	cmpq	$0, -56(%rbp)
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=2
	leaq	1(%r14), %r15
	cmpq	$0, -56(%rbp)
	movb	$0, (%r14)
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-56(%rbp), %rdi
	callq	_rtsp_trim
	movq	%rax, -56(%rbp)
	cmpq	$0, -64(%rbp)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	8(%r12), %edi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_vc_containers_list_insert
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_28
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	movb	$0, (%r14)
	movq	%rax, -56(%rbp)
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_rtsp_successful_response_status
	testl	%eax, %eax
	je	LBB0_33
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	%r15, %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, %r15
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdx
	movb	(%rdx), %al
	testb	%al, %al
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$13, %al
	jne	LBB0_37
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_CONTENT_PSEUDOHEADER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%r15, -56(%rbp)
	movl	8(%r12), %edi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_vc_containers_list_insert
	testl	%eax, %eax
	je	LBB0_35
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %edi
	callq	_rtsp_get_content_length
	leaq	(%r15,%rax), %rcx
	cmpq	%r13, %rcx
	jb	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rcx
	subq	%r13, %rcx
	addq	%rcx, %rax
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, %rdx
	jl	LBB0_3
## %bb.27:
	leaq	L_.str.3(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_28:
	movq	-64(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_29:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_30:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_32
LBB0_31:
	movb	$0, (%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_32:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_33:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
LBB0_34:
	movq	(%rax), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
LBB0_36:
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_37:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMS_BUFFER_SIZE,8,3          ## @COMMS_BUFFER_SIZE
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTSP: Failed to add <%s> header to list"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"RTSP: Invalid name in header - no colon:\n%s"

	.comm	_CONTENT_PSEUDOHEADER_NAME,8,3  ## @CONTENT_PSEUDOHEADER_NAME
L_.str.2:                               ## @.str.2
	.asciz	"RTSP: Failed to add content pseudoheader to list"

L_.str.3:                               ## @.str.3
	.asciz	"RTSP: Not enough room to read content"

L_.str.4:                               ## @.str.4
	.asciz	"RTSP: Response header section too big / content missing"

	.no_dead_strip	_rtsp_read_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsp_read_response
_rtsp_read_response:                    ; @rtsp_read_response
	.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	x20, x0
	ldr	x8, [x0]
	ldp	x19, x23, [x8]
	ldr	x21, [x23]
Lloh0:
	adrp	x8, _COMMS_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMS_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x22, x8, #1
	ldr	w0, [x23, #8]
	bl	_vc_containers_list_reset
	stp	xzr, x21, [sp, #16]
	cbz	x22, LBB0_29
; %bb.1:
	mov	w28, #0
Lloh3:
	adrp	x24, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh5:
	adrp	x25, _CONTENT_PSEUDOHEADER_NAME@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CONTENT_PSEUDOHEADER_NAME@GOTPAGEOFF]
	mov	x27, x21
Lloh7:
	adrp	x26, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh8:
	ldr	x26, [x26, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x22, LBB0_27
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_vc_container_io_read
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_31
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, x0
	sub	x22, x22, x0
	cbnz	w28, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x27, x21
	b.lo	LBB0_9
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x27, x27, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	cmp	x27, x21
	b.hs	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w8, [x27]
	cmp	w8, #10
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w8, #58
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x9, [sp, #24]
	add	x8, x27, #1
	cbz	x9, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x27, x8
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #24]
	strb	wzr, [x27], #1
	cbz	x8, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [sp, #24]
	bl	_rtsp_trim
	str	x0, [sp, #24]
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [x23, #8]
	add	x1, sp, #16
	mov	w2, #0
	bl	_vc_containers_list_insert
	cbnz	w0, LBB0_18
	b	LBB0_24
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=2
	strb	wzr, [x27]
	str	x8, [sp, #24]
	mov	x27, x8
	b	LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x0
	mov	x0, x20
	bl	_rtsp_successful_response_status
	cbz	w0, LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	stp	x27, xzr, [sp, #16]
	b	LBB0_8
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldrb	w9, [x8]
	cmp	w9, #0
	ccmp	w9, #13, #4, ne
	b.ne	LBB0_34
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	stp	x8, x27, [sp, #16]
	ldr	w0, [x23, #8]
	add	x1, sp, #16
	mov	w2, #0
	bl	_vc_containers_list_insert
	cbz	w0, LBB0_32
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23, #8]
	bl	_rtsp_get_content_length
	add	x8, x27, x0
	cmp	x8, x21
	b.lo	LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x27, x21
	add	x8, x0, x8
	cmp	x8, x22
	b.ge	LBB0_33
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	mov	x22, x8
	b	LBB0_3
LBB0_24:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_25:
	mov	x0, x20
	bl	_LOG_ERROR
Lloh11:
	adrp	x19, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh12:
	ldr	x19, [x19, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_31
LBB0_26:
	mov	x19, x26
	b	LBB0_31
LBB0_27:
	cbz	w28, LBB0_29
LBB0_28:
	strb	wzr, [x21]
	b	LBB0_31
LBB0_29:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_30:
	mov	x0, x20
	bl	_LOG_ERROR
Lloh15:
	adrp	x19, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh16:
	ldr	x19, [x19, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
LBB0_31:
	ldr	x0, [x19]
	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
LBB0_32:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_33:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_34:
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMS_BUFFER_SIZE,8,3          ; @COMMS_BUFFER_SIZE
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTSP: Failed to add <%s> header to list"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"RTSP: Invalid name in header - no colon:\n%s"

	.comm	_CONTENT_PSEUDOHEADER_NAME,8,3  ; @CONTENT_PSEUDOHEADER_NAME
l_.str.2:                               ; @.str.2
	.asciz	"RTSP: Failed to add content pseudoheader to list"

l_.str.3:                               ; @.str.3
	.asciz	"RTSP: Not enough room to read content"

l_.str.4:                               ; @.str.4
	.asciz	"RTSP: Response header section too big / content missing"

	.no_dead_strip	_rtsp_read_response
.subsections_via_symbols
