	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_mark_non_revokable
_sctp_mark_non_revokable:               ## @sctp_mark_non_revokable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_sctp_do_drain@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	32(%r14), %rdi
	incq	%rdi
	movq	%rbx, %rsi
	callq	_SCTP_TSN_GT
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movl	16(%r14), %edx
	movq	%rbx, %rsi
	callq	_SCTP_CALC_TSN_TO_GAP
	movl	20(%r14), %edi
	callq	_SCTP_IS_TSN_PRESENT
	movl	%eax, %r15d
	movl	24(%r14), %edi
	callq	_SCTP_IS_TSN_PRESENT
	movl	%eax, %r12d
	movl	%r15d, %eax
	orl	%r12d, %eax
	je	LBB0_3
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_5
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_8
LBB0_7:
	movl	20(%r14), %edi
	callq	_SCTP_UNSET_TSN_PRESENT
LBB0_8:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_SCTP_TSN_GT
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, (%r14)
LBB0_10:
	cmpq	%rbx, 8(%r14)
	jne	LBB0_15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_SCTP_CALC_TSN_TO_GAP
	movl	20(%r14), %edi
	callq	_SCTP_IS_TSN_PRESENT
	testl	%eax, %eax
	jne	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	decq	%rbx
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_SCTP_TSN_GE
	movslq	16(%r14), %rdx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	decq	%rdx
	movq	%rdx, %rbx
LBB0_14:
	movq	%rbx, 8(%r14)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	callq	_SCTP_PRINTF
	movq	%r14, %rdi
	callq	_sctp_print_mapping_array
	testl	%r12d, %r12d
	jne	LBB0_6
LBB0_5:
	movl	24(%r14), %edi
	callq	_SCTP_SET_TSN_PRESENT
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_do_drain,4,2              ## @sctp_do_drain
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gap:%x tsn:%x\n"

	.no_dead_strip	_sctp_mark_non_revokable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_mark_non_revokable
_sctp_mark_non_revokable:               ; @sctp_mark_non_revokable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _sctp_do_drain@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_do_drain@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x8, [x19, #32]
	add	x0, x8, #1
	mov	x1, x20
	bl	_SCTP_TSN_GT
	cbnz	x0, LBB0_13
; %bb.2:
	ldr	w2, [x19, #16]
	mov	x1, x20
	bl	_SCTP_CALC_TSN_TO_GAP
	ldr	w0, [x19, #20]
	bl	_SCTP_IS_TSN_PRESENT
	mov	x21, x0
	ldr	w0, [x19, #24]
	bl	_SCTP_IS_TSN_PRESENT
	mov	x22, x0
	orr	w8, w21, w0
	cbz	w8, LBB0_14
; %bb.3:
	cbz	w22, LBB0_15
LBB0_4:
	cbz	w21, LBB0_6
LBB0_5:
	ldr	w0, [x19, #20]
	bl	_SCTP_UNSET_TSN_PRESENT
LBB0_6:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_SCTP_TSN_GT
	cbz	x0, LBB0_8
; %bb.7:
	str	x20, [x19]
LBB0_8:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_13
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_SCTP_CALC_TSN_TO_GAP
	ldr	w0, [x19, #20]
	bl	_SCTP_IS_TSN_PRESENT
	cbnz	w0, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	x20, x20, #1
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_SCTP_TSN_GE
	ldrsw	x2, [x19, #16]
	cbnz	x0, LBB0_9
; %bb.11:
	sub	x20, x2, #1
LBB0_12:
	str	x20, [x19, #8]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_SCTP_PRINTF
	mov	x0, x19
	bl	_sctp_print_mapping_array
	cbnz	w22, LBB0_4
LBB0_15:
	ldr	w0, [x19, #24]
	bl	_SCTP_SET_TSN_PRESENT
	cbnz	w21, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_do_drain,4,2              ; @sctp_do_drain
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gap:%x tsn:%x\n"

	.no_dead_strip	_sctp_mark_non_revokable
.subsections_via_symbols
