	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_callid
_get_callid:                            ## @get_callid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SIP_HDR_CALL_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, (%rsp)
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movq	%rbx, %r9
	callq	_ct_sip_get_header
	testl	%eax, %eax
	jg	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	(%rbx), %r13d
	jmp	LBB0_1
LBB0_4:
	movl	(%r14), %esi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	_IP_VS_PEDATA_MAXLEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	ja	LBB0_5
## %bb.7:
	movl	(%rbx), %eax
	leal	(%rax,%rsi), %ecx
	cmpl	%r12d, %ecx
	je	LBB0_5
## %bb.8:
	addq	%rax, %r15
	movb	(%rsi,%r15), %al
	cmpb	$10, %al
	je	LBB0_10
## %bb.9:
	cmpb	$13, %al
	jne	LBB0_5
LBB0_10:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_IP_VS_DEBUG_CALLID
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$9, %edi
	movl	%eax, %edx
	callq	_IP_VS_DBG_BUF
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIP_HDR_CALL_ID,4,2            ## @SIP_HDR_CALL_ID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IP_VS_PEDATA_MAXLEN,4,2        ## @IP_VS_PEDATA_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIP callid %s (%d bytes)\n"

	.no_dead_strip	_get_callid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_callid
_get_callid:                            ; @get_callid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _SIP_HDR_CALL_ID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SIP_HDR_CALL_ID@GOTPAGEOFF]
	ldr	w4, [x24]
	mov	x0, #0
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x5, x22
	mov	x6, x19
	bl	_ct_sip_get_header
	cmp	w0, #0
	b.le	LBB0_7
LBB0_1:
	ldr	w1, [x19]
	cbz	w1, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _IP_VS_PEDATA_MAXLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IP_VS_PEDATA_MAXLEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w1, w8
	b.hi	LBB0_8
; %bb.3:
	ldr	w8, [x22]
	add	w9, w8, w1
	cmp	w9, w21
	b.eq	LBB0_8
; %bb.4:
	add	x0, x20, x8
	ldrb	w8, [x0, x1]
	cmp	w8, #10
	ccmp	w8, #13, #4, ne
	b.ne	LBB0_8
; %bb.5:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_IP_VS_DEBUG_CALLID
	mov	x2, x0
	ldr	w3, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #9
	bl	_IP_VS_DBG_BUF
	mov	w0, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22]
	add	w23, w8, w23
	ldr	w4, [x24]
	mov	x0, #0
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x5, x22
	mov	x6, x19
	bl	_ct_sip_get_header
	cmp	w0, #1
	b.ge	LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w0, LBB0_6
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SIP_HDR_CALL_ID,4,2            ; @SIP_HDR_CALL_ID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IP_VS_PEDATA_MAXLEN,4,2        ; @IP_VS_PEDATA_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIP callid %s (%d bytes)\n"

	.no_dead_strip	_get_callid
.subsections_via_symbols
