	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_source_mod_counter
_ng_source_mod_counter:                 ## @ng_source_mod_counter
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movl	(%rsi), %edi
	callq	_htonl
	movl	%eax, -36(%rbp)
	movq	16(%rbx), %rcx
	leaq	-36(%rbp), %r8
	subq	%rcx, %r8
	addq	$4, %r8
	movl	24(%rbx), %edx
	movl	12(%rbx), %r9d
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_ng_source_packet_mod
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.1:
	movl	(%rbx), %eax
	addl	%r14d, %eax
	movl	%eax, (%rbx)
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.2:
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_7
## %bb.3:
	movl	%ecx, %edx
	notl	%edx
	addl	%edx, %eax
	addl	8(%rbx), %eax
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	jmp	LBB0_6
LBB0_4:
	movl	8(%rbx), %ecx
	subl	%ecx, %eax
	jge	LBB0_7
## %bb.5:
	movl	4(%rbx), %edx
	addl	%edx, %eax
	incl	%eax
	cmpl	%ecx, %eax
	cmovll	%edx, %eax
LBB0_6:
	movl	%eax, (%rbx)
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ng_source_mod_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_source_mod_counter
_ng_source_mod_counter:                 ; @ng_source_mod_counter
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x1]
	bl	_htonl
	str	w0, [sp, #12]
	ldr	x3, [x19, #16]
	add	x8, sp, #12
	sub	x8, x8, x3
	add	x4, x8, #4
	ldr	w2, [x19, #24]
	ldr	w5, [x19, #12]
	mov	x0, x22
	mov	x1, x21
	bl	_ng_source_packet_mod
	cbz	w20, LBB0_7
; %bb.1:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	cmp	w20, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.le	LBB0_7
; %bb.3:
	ldr	w10, [x19, #8]
	mvn	w11, w9
	add	w8, w8, w11
	add	w8, w8, w10
	cmp	w8, w9
	csel	w8, w8, w9, lt
	b	LBB0_6
LBB0_4:
	ldr	w9, [x19, #8]
	subs	w8, w8, w9
	b.ge	LBB0_7
; %bb.5:
	ldr	w10, [x19, #4]
	add	w8, w8, w10
	add	w11, w8, #1
	cmp	w11, w9
	csinc	w8, w10, w8, lt
LBB0_6:
	str	w8, [x19]
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ng_source_mod_counter
.subsections_via_symbols
