	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_slide_mapping_arrays      ## -- Begin function sctp_slide_mapping_arrays
	.p2align	4, 0x90
_sctp_slide_mapping_arrays:             ## @sctp_slide_mapping_arrays
	.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	%rdi, %r13
	movl	4(%rdi), %r9d
	movl	8(%rdi), %esi
	movl	12(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	16(%r13), %r8
	movq	24(%r13), %rdx
	leal	(,%rax,8), %r12d
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rbx,4), %edi
	orl	(%r8,%rbx,4), %edi
	cmpl	$255, %edi
	jne	LBB0_33
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	addl	$-8, %ecx
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_33:
	movslq	%edi, %rax
	movq	_sctp_map_lookup_tab@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,8), %r12d
	subl	%ecx, %r12d
LBB0_6:
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	leal	(%r9,%r12), %edi
	decl	%edi
	movl	%edi, (%r13)
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_SCTP_TSN_GT
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	(%r13), %edi
	movl	32(%r13), %esi
	callq	_SCTP_TSN_GT
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	(%r13), %esi
	movl	8(%r13), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_SCTP_PRINTF
	movq	%r13, %rdi
	callq	_sctp_print_mapping_array
	movq	_sctp_logging_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	movq	_SCTP_MAP_LOGGING_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	8(%r13), %edx
	movq	_SCTP_MAP_SLIDE_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$6, %esi
	callq	_sctp_log_map
LBB0_10:
	movl	(%r13), %eax
	movl	%eax, 8(%r13)
	movl	%eax, 32(%r13)
LBB0_11:
	leaq	32(%r13), %r14
	movl	8(%r13), %esi
	movl	32(%r13), %edi
	leaq	8(%r13), %r15
	callq	_SCTP_TSN_GT
	testq	%rax, %rax
	cmoveq	%r15, %r14
	movl	(%r14), %esi
	cmpl	%esi, (%r13)
	jne	LBB0_15
## %bb.12:
	cmpl	$8, %r12d
	jl	LBB0_15
## %bb.13:
	addl	$7, %r12d
	shrl	$3, %r12d
	movl	12(%r13), %eax
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	movq	24(%r13), %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	16(%r13), %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r13)
	movl	%eax, 8(%r13)
	movl	%eax, 32(%r13)
	jmp	LBB0_14
LBB0_15:
	cmpl	$8, %r12d
	jl	LBB0_14
## %bb.16:
	movl	4(%r13), %edx
	callq	_SCTP_CALC_TSN_TO_GAP
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.34:
	movq	%r13, %rdi
	callq	_sctp_print_mapping_array
	leaq	L_.str.1(%rip), %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SCTP_PRINTF                    ## TAILCALL
LBB0_17:
	movl	12(%r13), %esi
	xorl	%ebx, %ebx
	testl	%esi, %esi
	jns	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_SCTP_PRINTF
	movl	12(%r13), %ebx
LBB0_19:
	leal	1(%rbx), %r12d
	movq	_sctp_logging_level@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_SCTP_BASE_SYSCTL
	movq	_SCTP_MAP_LOGGING_ENABLE@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_21
## %bb.20:
	movq	_SCTP_MAP_PREPARE_SLIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_sctp_log_map
	movq	_SCTP_MAP_SLIDE_FROM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_sctp_log_map
LBB0_21:
	movl	12(%r13), %eax
	cmpl	%eax, %r12d
	jg	LBB0_30
## %bb.22:
	cmpl	$-1, %ebx
	jl	LBB0_30
## %bb.23:
	testl	%ebx, %ebx
	js	LBB0_25
## %bb.24:
	movl	12(%r13), %eax
LBB0_25:
	cmpl	%eax, %r12d
	jge	LBB0_28
## %bb.26:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	movslq	%r12d, %rdx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rcx,%rdx,4)
	movl	$0, (%rax,%rdx,4)
	incq	%rdx
	movslq	12(%r13), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_27
LBB0_28:
	movl	(%r15), %edi
	callq	_SCTP_BASE_SYSCTL
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.29:
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movl	8(%r13), %edx
	movq	_SCTP_MAP_SLIDE_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_32
LBB0_30:
	movl	(%r15), %edi
	callq	_SCTP_BASE_SYSCTL
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.31:
	movl	12(%r13), %edx
	movq	_SCTP_MAP_SLIDE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	xorl	%esi, %esi
LBB0_32:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_log_map                   ## TAILCALL
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_map_lookup_tab,8,3        ## @sctp_map_lookup_tab
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"huh, cumack 0x%x greater than high-tsn 0x%x in map - should panic?\n"

	.comm	_sctp_logging_level,4,2         ## @sctp_logging_level
	.comm	_SCTP_MAP_LOGGING_ENABLE,4,2    ## @SCTP_MAP_LOGGING_ENABLE
	.comm	_SCTP_MAP_SLIDE_RESULT,4,2      ## @SCTP_MAP_SLIDE_RESULT
L_.str.1:                               ## @.str.1
	.asciz	"impossible slide lgap: %x slide_end: %x slide_from: %x? at: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Gak, would have overrun map end: %d slide_end: %d\n"

	.comm	_SCTP_MAP_PREPARE_SLIDE,4,2     ## @SCTP_MAP_PREPARE_SLIDE
	.comm	_SCTP_MAP_SLIDE_FROM,4,2        ## @SCTP_MAP_SLIDE_FROM
	.comm	_SCTP_MAP_SLIDE_NONE,4,2        ## @SCTP_MAP_SLIDE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_slide_mapping_arrays      ; -- Begin function sctp_slide_mapping_arrays
	.p2align	2
_sctp_slide_mapping_arrays:             ; @sctp_slide_mapping_arrays
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldp	w21, w20, [x0, #4]
	ldr	w8, [x0, #12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w9, #0
	mov	x23, #0
	ldp	x10, x11, [x19, #16]
	lsl	w24, w8, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x23, #2
	ldr	w13, [x10, x12]
	ldr	w12, [x11, x12]
	orr	w12, w12, w13
	cmp	w12, #255
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	sub	w9, w9, #8
	cmp	x8, x23
	b.ne	LBB0_2
; %bb.4:
	mov	x23, x8
	b	LBB0_7
LBB0_5:
	mov	w23, #0
	mov	w24, #0
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _sctp_map_lookup_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_map_lookup_tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w12, sxtw #3]
	sub	w24, w8, w9
LBB0_7:
	ldr	w22, [x19]
	add	w8, w21, w24
	sub	w0, w8, #1
	str	w0, [x19]
	mov	x1, x20
	bl	_SCTP_TSN_GT
	cbz	x0, LBB0_12
; %bb.8:
	ldr	w0, [x19]
	ldr	w1, [x19, #32]
	bl	_SCTP_TSN_GT
	cbz	x0, LBB0_12
; %bb.9:
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SCTP_PRINTF
	mov	x0, x19
	bl	_sctp_print_mapping_array
Lloh5:
	adrp	x8, _sctp_logging_level@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sctp_logging_level@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
Lloh8:
	adrp	x8, _SCTP_MAP_LOGGING_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCTP_MAP_LOGGING_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	ldr	w2, [x19, #8]
Lloh11:
	adrp	x8, _SCTP_MAP_SLIDE_RESULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCTP_MAP_SLIDE_RESULT@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w0, #0
	mov	w1, #6
	bl	_sctp_log_map
LBB0_11:
	ldr	w8, [x19]
	str	w8, [x19, #8]
	str	w8, [x19, #32]
LBB0_12:
	ldr	w0, [x19, #32]
	ldr	w1, [x19, #8]
	bl	_SCTP_TSN_GT
	mov	w8, #32
	mov	w9, #8
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x19, x8]
	ldr	w8, [x19]
	cmp	w8, w1
	ccmp	w24, #8, #8, eq
	b.ge	LBB0_16
; %bb.13:
	cmp	w24, #8
	b.lt	LBB0_17
; %bb.14:
	ldr	w2, [x19, #4]
	bl	_SCTP_CALC_TSN_TO_GAP
	cbz	w23, LBB0_18
; %bb.15:
	mov	x0, x19
	bl	_sctp_print_mapping_array
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	stp	x23, x24, [sp, #16]
	str	xzr, [sp, #8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SCTP_PRINTF
	b	LBB0_17
LBB0_16:
	add	w8, w24, #7
	lsr	w8, w8, #3
	ldr	w9, [x19, #12]
	cmp	w8, w9
	csel	w20, w8, w9, lt
	ldr	x0, [x19, #24]
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	ldr	w8, [x19]
	add	w9, w8, #1
	stp	w9, w8, [x19, #4]
	str	w8, [x19, #32]
LBB0_17:
	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
	add	sp, sp, #112
	ret
LBB0_18:
	ldr	w8, [x19, #12]
	tbnz	w8, #31, LBB0_20
; %bb.19:
	mov	w24, #0
	b	LBB0_21
LBB0_20:
	stp	x8, xzr, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_SCTP_PRINTF
	ldr	w24, [x19, #12]
LBB0_21:
	add	w23, w24, #1
Lloh18:
	adrp	x26, _sctp_logging_level@GOTPAGE
Lloh19:
	ldr	x26, [x26, _sctp_logging_level@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_SCTP_BASE_SYSCTL
Lloh20:
	adrp	x25, _SCTP_MAP_LOGGING_ENABLE@GOTPAGE
Lloh21:
	ldr	x25, [x25, _SCTP_MAP_LOGGING_ENABLE@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_23
; %bb.22:
Lloh22:
	adrp	x8, _SCTP_MAP_PREPARE_SLIDE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SCTP_MAP_PREPARE_SLIDE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_sctp_log_map
Lloh25:
	adrp	x8, _SCTP_MAP_SLIDE_FROM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SCTP_MAP_SLIDE_FROM@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	w0, #0
	mov	x1, x24
	bl	_sctp_log_map
LBB0_23:
	ldr	w8, [x19, #12]
	cmp	w23, w8
	b.gt	LBB0_32
; %bb.24:
	cmn	w24, #1
	b.lt	LBB0_32
; %bb.25:
	tbnz	w24, #31, LBB0_27
; %bb.26:
	ldr	w8, [x19, #12]
LBB0_27:
	cmp	w23, w8
	b.ge	LBB0_30
; %bb.28:
	ldp	x9, x8, [x19, #16]
	sxtw	x10, w23
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x10, #2
	str	wzr, [x8, x11]
	str	wzr, [x9, x11]
	add	x10, x10, #1
	ldrsw	x11, [x19, #12]
	cmp	x10, x11
	b.lt	LBB0_29
LBB0_30:
	ldr	w0, [x26]
	bl	_SCTP_BASE_SYSCTL
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.31:
	ldp	w1, w0, [x19]
Lloh28:
	adrp	x8, _SCTP_MAP_SLIDE_RESULT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SCTP_MAP_SLIDE_RESULT@GOTPAGEOFF]
	ldr	w2, [x19, #8]
Lloh30:
	ldr	w3, [x8]
	b	LBB0_34
LBB0_32:
	ldr	w0, [x26]
	bl	_SCTP_BASE_SYSCTL
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_17
; %bb.33:
Lloh31:
	adrp	x8, _SCTP_MAP_SLIDE_NONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SCTP_MAP_SLIDE_NONE@GOTPAGEOFF]
	ldr	w2, [x19, #12]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w1, #0
LBB0_34:
	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
	add	sp, sp, #112
	b	_sctp_log_map
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_map_lookup_tab,8,3        ; @sctp_map_lookup_tab
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"huh, cumack 0x%x greater than high-tsn 0x%x in map - should panic?\n"

	.comm	_sctp_logging_level,4,2         ; @sctp_logging_level
	.comm	_SCTP_MAP_LOGGING_ENABLE,4,2    ; @SCTP_MAP_LOGGING_ENABLE
	.comm	_SCTP_MAP_SLIDE_RESULT,4,2      ; @SCTP_MAP_SLIDE_RESULT
l_.str.1:                               ; @.str.1
	.asciz	"impossible slide lgap: %x slide_end: %x slide_from: %x? at: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Gak, would have overrun map end: %d slide_end: %d\n"

	.comm	_SCTP_MAP_PREPARE_SLIDE,4,2     ; @SCTP_MAP_PREPARE_SLIDE
	.comm	_SCTP_MAP_SLIDE_FROM,4,2        ; @SCTP_MAP_SLIDE_FROM
	.comm	_SCTP_MAP_SLIDE_NONE,4,2        ; @SCTP_MAP_SLIDE_NONE
.subsections_via_symbols
