	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_sip_parse_request           ## -- Begin function ct_sip_parse_request
	.p2align	4, 0x90
_ct_sip_parse_request:                  ## @ct_sip_parse_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	%edx, %r14d
	addq	%rsi, %r14
	movl	$0, -44(%rbp)
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_string_len
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %eax
	leaq	(%r12,%rax), %rbx
	incq	%rbx
	cmpq	%r14, %rbx
	jae	LBB0_13
## %bb.2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	cltq
	subq	%rax, %r14
	cmpq	%r14, %rbx
	jae	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$10, %al
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$13, %al
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strnicmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%r14, %rbx
	jb	LBB0_4
LBB0_8:
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_skp_epaddr_len
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movslq	-44(%rbp), %rax
	addq	%rax, %rbx
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_parse_addr
	movl	$-1, %r13d
	testl	%eax, %eax
	je	LBB0_20
## %bb.10:
	movq	-56(%rbp), %rdi
	cmpq	%r14, %rdi
	jae	LBB0_17
## %bb.11:
	cmpb	$58, (%rdi)
	jne	LBB0_17
## %bb.12:
	incq	%rdi
	movq	%rdi, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %edi
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	cmpl	$-64512, %eax                   ## imm = 0xFFFF0400
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jae	LBB0_18
	jmp	LBB0_20
LBB0_13:
	xorl	%r13d, %r13d
LBB0_20:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	$-1, %r13d
	jmp	LBB0_20
LBB0_17:
	movq	_SIP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_18:
	movq	16(%rbp), %r14
	callq	_htons
	movl	%eax, (%r14)
	movq	-56(%rbp), %rax
	movl	$0, %r13d
	cmpq	%rbx, %rax
	je	LBB0_20
## %bb.19:
	movl	%ebx, %ecx
	subl	%r12d, %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	subl	%ebx, %eax
	movl	%eax, (%r15)
	movl	$1, %r13d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sip:"

	.comm	_SIP_PORT,4,2                   ## @SIP_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_sip_parse_request           ; -- Begin function ct_sip_parse_request
	.p2align	2
_ct_sip_parse_request:                  ; @ct_sip_parse_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x6
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x24, x0
	mov	w27, w2
	add	x25, x1, x27
	str	wzr, [sp, #4]
	mov	x2, x25
	mov	x3, #0
	bl	_string_len
	cbz	w0, LBB0_18
; %bb.1:
	mov	w28, w0
	add	x8, x21, x28
	add	x26, x8, #1
	cmp	x26, x25
	b.hs	LBB0_17
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x25, x25, x8
	cmp	x26, x25
	b.hs	LBB0_8
; %bb.3:
	add	x8, x8, x28
	sub	x8, x8, x27
	add	x28, x8, #1
Lloh2:
	adrp	x27, l_.str@PAGE
Lloh3:
	add	x27, x27, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x26]
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_strlen
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	bl	_strnicmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	adds	x28, x28, #1
	b.ne	LBB0_4
; %bb.7:
	mov	x26, x25
LBB0_8:
	add	x3, sp, #4
	mov	x0, x24
	mov	x1, x26
	mov	x2, x25
	bl	_skp_epaddr_len
	cbz	w0, LBB0_18
; %bb.9:
	ldrsw	x8, [sp, #4]
	add	x26, x26, x8
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x26
	mov	x3, x23
	mov	x4, x25
	bl	_parse_addr
	cbz	w0, LBB0_13
; %bb.10:
	ldr	x8, [sp, #8]
	cmp	x8, x25
	b.hs	LBB0_14
; %bb.11:
	ldrb	w9, [x8]
	cmp	w9, #58
	b.ne	LBB0_14
; %bb.12:
	add	x0, x8, #1
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	w2, #10
	bl	_simple_strtoul
	sub	w8, w0, #16, lsl #12            ; =65536
	mov	w9, #-64512
	cmp	w8, w9
	b.hs	LBB0_15
LBB0_13:
	mov	w0, #-1
	b	LBB0_18
LBB0_14:
Lloh4:
	adrp	x8, _SIP_PORT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIP_PORT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
LBB0_15:
	bl	_htons
	str	w0, [x22]
	ldr	x8, [sp, #8]
	cmp	x8, x26
	b.eq	LBB0_17
; %bb.16:
	sub	w9, w26, w21
	str	w9, [x20]
	sub	w8, w8, w26
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sip:"

	.comm	_SIP_PORT,4,2                   ; @SIP_PORT
.subsections_via_symbols
