	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ct_sip_next_header
_ct_sip_next_header:                    ## @ct_sip_next_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_ct_sip_hdrs@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ecx, %r15d
	addq	%rsi, %r15
	movl	$0, -44(%rbp)
	movl	%edx, %ebx
	addq	%rsi, %rbx
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_ct_sip_header_search
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	leaq	(%rcx,%rcx,2), %rbx
	movq	(%r13,%rbx,8), %rdx
	movl	16(%r13,%rbx,8), %ecx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ct_sip_header_search
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	16(%rbp), %r14
	leaq	16(,%rbx,8), %rcx
	addq	%r13, %rcx
	movslq	(%rcx), %rcx
	addq	%rcx, %rax
	movl	%eax, %ecx
	subl	%r12d, %ecx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%ecx, (%r12)
	leaq	-44(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	*8(%r13,%rbx,8)
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	-44(%rbp), %eax
	addl	%eax, (%r12)
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ct_sip_hdrs,8,3                ## @ct_sip_hdrs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	","

	.no_dead_strip	_ct_sip_next_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ct_sip_next_header
_ct_sip_next_header:                    ; @ct_sip_next_header
	.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	x20, x6
	mov	x19, x5
	mov	x24, x4
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ct_sip_hdrs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ct_sip_hdrs@GOTPAGEOFF]
Lloh2:
	ldr	x27, [x8]
	add	x22, x1, w3, uxtw
	str	wzr, [sp, #12]
	add	x25, x1, w2, uxtw
Lloh3:
	adrp	x26, l_.str@PAGE
Lloh4:
	add	x26, x26, l_.str@PAGEOFF
	mov	x0, x26
	bl	_strlen
	mov	x3, x0
	mov	x0, x25
	mov	x1, x22
	mov	x2, x26
	bl	_ct_sip_header_search
	cbz	x0, LBB0_5
; %bb.1:
	mov	w24, w24
	mov	w8, #24
	mul	x8, x24, x8
	add	x25, x27, x8
	ldr	x2, [x27, x8]
	ldr	w3, [x25, #16]!
	mov	x1, x22
	bl	_ct_sip_header_search
	cbz	x0, LBB0_5
; %bb.2:
	ldrsw	x8, [x25]
	add	x1, x0, x8
	sub	w8, w1, w23
	str	w8, [x19]
	mov	w8, #24
	madd	x8, x24, x8, x27
	ldr	x8, [x8, #8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, x22
	blr	x8
	str	w0, [x20]
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ct_sip_hdrs,8,3                ; @ct_sip_hdrs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	","

	.no_dead_strip	_ct_sip_next_header
.subsections_via_symbols
