	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ct_sip_parse_header_uri        ## -- Begin function ct_sip_parse_header_uri
	.p2align	4, 0x90
_ct_sip_parse_header_uri:               ## @ct_sip_parse_header_uri
	.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
	movl	%ecx, %ebx
	movq	%rdx, %rcx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	24(%rbp), %r10
	xorl	%r12d, %r12d
	movl	$0, %edx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	(%rcx), %edx
LBB0_2:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	pushq	%r10
	pushq	16(%rbp)
	callq	_ct_sip_walk_headers
	addq	$16, %rsp
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_WARN_ON
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.3:
	movl	%ebx, %r8d
	movq	32(%rbp), %rcx
	addq	%r15, %r8
	movq	16(%rbp), %rax
	movl	(%rax), %esi
	addq	%r15, %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_parse_addr
	movl	$-1, %r12d
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	-48(%rbp), %rdi
	cmpb	$58, (%rdi)
	jne	LBB0_6
## %bb.5:
	incq	%rdi
	movq	%rdi, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %edi
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	cmpl	$-64512, %eax                   ## imm = 0xFFFF0400
	jae	LBB0_7
	jmp	LBB0_9
LBB0_6:
	movq	_SIP_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_7:
	movq	40(%rbp), %rbx
	callq	_htons
	movl	%eax, (%rbx)
	movl	$1, %r12d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movl	-48(%rbp), %eax
	subl	%r15d, %eax
	movl	%eax, (%rcx)
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_header_uri        ; -- Begin function ct_sip_parse_header_uri
	.p2align	2
_ct_sip_parse_header_uri:               ; @ct_sip_parse_header_uri
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x6
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w2, [x19]
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x3, x23
	mov	x6, x22
	bl	_ct_sip_walk_headers
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_WARN_ON
	cbz	w24, LBB0_7
; %bb.3:
	ldr	x3, [x29, #16]
	add	x4, x20, w23, uxtw
	ldr	w8, [x22]
	add	x1, x20, x8
	add	x2, sp, #8
	mov	x0, x21
	bl	_parse_addr
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	cmp	w9, #58
	b.ne	LBB0_8
; %bb.5:
	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_9
LBB0_6:
	mov	w0, #-1
	b	LBB0_12
LBB0_7:
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh0:
	adrp	x8, _SIP_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIP_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_9:
	ldr	x21, [x29, #24]
	bl	_htons
	str	w0, [x21]
	cbz	x19, LBB0_11
; %bb.10:
	ldr	w8, [sp, #8]
	sub	w8, w8, w20
	str	w8, [x19]
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIP_PORT,4,2                   ; @SIP_PORT
.subsections_via_symbols
