	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_sip_get_sdp_header          ## -- Begin function ct_sip_get_sdp_header
	.p2align	4, 0x90
_ct_sip_get_sdp_header:                 ## @ct_sip_get_sdp_header
	.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	_ct_sdp_hdrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$0, -44(%rbp)
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jae	LBB0_21
## %bb.1:
	movl	%r9d, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %edi
	movl	%ecx, %r15d
	addq	%rsi, %r15
	movl	%edx, %eax
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	addq	%rsi, %rax
	movl	%r9d, %ecx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rbx,%rcx,8), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rdi,4), %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rcx,8), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rax
	cmpq	%r15, %rax
	jae	LBB0_20
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$13, %cl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$10, %cl
	jne	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rax), %r14
	cmpq	%r15, %r14
	jae	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$13, %cl
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$10, (%r14)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rax
	movq	%rax, %r14
	cmpq	%r15, %rax
	jae	LBB0_20
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rbx
	subq	%r14, %rbx
	movq	_SDP_HDR_UNSPEC@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strnicmp
	testq	%rax, %rax
	je	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r12), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r12), %esi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strnicmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.15:
	movslq	(%r12), %rax
	addq	%rax, %r14
	movl	%r14d, %eax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	subl	%r13d, %eax
	movq	16(%rbp), %r12
	movl	%eax, (%r12)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%r12,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.16:
	movl	16(%r12,%rbx,8), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ct_sdp_header_search
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movq	%rax, %r14
	leaq	(%r12,%rbx,8), %rax
	addq	$16, %rax
	movslq	(%rax), %rax
	addq	%rax, %r14
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-44(%rbp), %rcx
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	*8(%r12,%rbx,8)
	movq	24(%rbp), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_23
## %bb.19:
	subl	%r13d, %r14d
	addl	-44(%rbp), %r14d
	movq	16(%rbp), %rax
	movl	%r14d, (%rax)
	movl	$1, %eax
	jmp	LBB0_21
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	$-1, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ct_sdp_hdrs,8,3                ## @ct_sdp_hdrs
	.comm	_SDP_HDR_UNSPEC,4,2             ## @SDP_HDR_UNSPEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_sip_get_sdp_header          ; -- Begin function ct_sip_get_sdp_header
	.p2align	2
_ct_sip_get_sdp_header:                 ; @ct_sip_get_sdp_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x9, x0
	mov	w0, #0
Lloh0:
	adrp	x8, _ct_sdp_hdrs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ct_sdp_hdrs@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	str	wzr, [sp, #44]
	cmp	w2, w3
	b.hs	LBB0_20
; %bb.1:
	mov	x24, x5
	stp	x9, x7, [sp]                    ; 16-byte Folded Spill
	stp	x1, x6, [sp, #24]               ; 16-byte Folded Spill
	mov	w10, w4
	add	x23, x1, w3, uxtw
	add	x8, x1, w2, uxtw
	mov	w9, #40
	umaddl	x28, w5, w9, x26
	add	x21, x28, #32
	str	x10, [sp, #16]                  ; 8-byte Folded Spill
	madd	x19, x10, x9, x26
	add	x22, x19, #32
Lloh3:
	adrp	x27, _SDP_HDR_UNSPEC@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SDP_HDR_UNSPEC@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, x23
	b.hs	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #13
	ccmp	w9, #10, #4, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x8, #1
	cmp	x25, x23
	b.hs	LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #13
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x25]
	cmp	w9, #10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x8, #2
	cmp	x25, x23
	b.hs	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	sub	x20, x23, x25
	cmp	w8, w24
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x2, [x28]
	cmp	x20, x2
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21]
	mov	x0, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strnicmp
	cbz	x0, LBB0_20
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x2, [x19]
	cmp	x20, x2
	b.lt	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x22]
	mov	x0, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strnicmp
	cbnz	x0, LBB0_2
; %bb.14:
	ldrsw	x8, [x19]
	add	x24, x25, x8
	ldp	x21, x20, [sp, #24]             ; 16-byte Folded Reload
	sub	w8, w24, w21
	str	w8, [x20]
	mov	w8, #40
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	mul	x8, x22, x8
	add	x8, x26, x8
	ldr	x2, [x8, #24]
	cbz	x2, LBB0_17
; %bb.15:
	mov	w8, #40
	mul	x8, x22, x8
	add	x19, x26, x8
	ldr	w3, [x19, #16]!
	mov	x0, x24
	mov	x1, x23
	bl	_ct_sdp_header_search
	cbz	x0, LBB0_21
; %bb.16:
	ldrsw	x8, [x19]
	add	x24, x0, x8
LBB0_17:
	ldp	x0, x19, [sp]                   ; 16-byte Folded Reload
	mov	w8, #40
	mul	x8, x22, x8
	add	x8, x26, x8
	ldr	x8, [x8, #8]
	add	x3, sp, #44
	mov	x1, x24
	mov	x2, x23
	blr	x8
	str	w0, [x19]
	cbz	w0, LBB0_21
; %bb.18:
	ldr	w8, [sp, #44]
	sub	w9, w24, w21
	add	w8, w8, w9
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_20
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
	mov	w0, #-1
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ct_sdp_hdrs,8,3                ; @ct_sdp_hdrs
	.comm	_SDP_HDR_UNSPEC,4,2             ; @SDP_HDR_UNSPEC
.subsections_via_symbols
