	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_tsnmap_num_gabs           ## -- Begin function sctp_tsnmap_num_gabs
	.p2align	4, 0x90
_sctp_tsnmap_num_gabs:                  ## @sctp_tsnmap_num_gabs
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_sctp_tsnmap_has_gap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_sctp_tsnmap_iter_init
	addq	$8, %rbx
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r13
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_sctp_tsnmap_next_gap_ack
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %edi
	callq	_htons
	movq	%rax, (%rbx)
	movl	-44(%rbp), %edi
	callq	_htons
	movq	%rax, -8(%rbx)
	incq	%r15
	movq	_SCTP_MAX_GABS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_MAX_GABS,4,2              ## @SCTP_MAX_GABS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_tsnmap_num_gabs           ; -- Begin function sctp_tsnmap_num_gabs
	.p2align	2
_sctp_tsnmap_num_gabs:                  ; @sctp_tsnmap_num_gabs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_sctp_tsnmap_has_gap
	cbz	x0, LBB0_4
; %bb.1:
	str	xzr, [sp]
	add	x1, sp, #8
	mov	x0, x19
	bl	_sctp_tsnmap_iter_init
	mov	x20, #0
	add	x21, x21, #8
Lloh0:
	adrp	x22, _SCTP_MAX_GABS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SCTP_MAX_GABS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x19
	bl	_sctp_tsnmap_next_gap_ack
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #4]
	bl	_htons
	str	x0, [x21]
	ldr	w0, [sp]
	bl	_htons
	stur	x0, [x21, #-8]
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x21, x21, #16
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_MAX_GABS,4,2              ; @SCTP_MAX_GABS
.subsections_via_symbols
