	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dummynet_task                  ## -- Begin function dummynet_task
	.p2align	4, 0x90
_dummynet_task:                         ## @dummynet_task
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	callq	_CURVNET_SET
	xorl	%eax, %eax
	callq	_DN_BH_WLOCK
	movq	_tick_lost@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%ebx, %ecx
	decl	%ecx
	movl	%ecx, (%rax)
	leaq	-48(%rbp), %rdi
	callq	_getmicrouptime
	movq	-48(%rbp), %rcx
	movq	%rcx, %xmm0
	movq	_dn_cfg@GOTPCREL(%rip), %r12
	movq	32(%r12), %xmm1                 ## xmm1 = mem[0],zero
	psubd	%xmm1, %xmm0
	movd	%xmm0, %edx
	pextrd	$1, %xmm0, %eax
	imull	$1000000, %edx, %edx            ## imm = 0xF4240
	addl	%edx, %eax
	movq	_tick_last@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_hz@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	imull	%esi, %eax
	addl	$-1000000, %eax                 ## imm = 0xFFF0BDC0
	cltd
	idivl	%esi
	cltq
	movq	_tick_delta@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	movq	_tick_delta_sum@GOTPCREL(%rip), %rsi
	addq	(%rsi), %rax
	movq	%rax, (%rsi)
	movq	%rcx, 32(%r12)
	movq	16(%r12), %rdx
	leaq	1(%rdx), %r14
	movq	%r14, 16(%r12)
	movq	_tick@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_1
## %bb.5:
	addq	%rax, %rcx
	jg	LBB0_8
## %bb.6:
	movq	%rdx, 16(%r12)
	movq	_tick_diff@GOTPCREL(%rip), %rax
	decq	(%rax)
	movq	%rdx, %r14
	jmp	LBB0_7
LBB0_1:
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	%edx, %ecx
LBB0_4:
	cltq
	addq	%rax, %r14
	movq	%r14, 16(%r12)
	movq	_tick_diff@GOTPCREL(%rip), %rdx
	addq	%rax, (%rdx)
LBB0_7:
	movq	%rcx, (%rsi)
	movq	_tick_adjustment@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_8:
	cmpq	$0, 24(%r12)
	je	LBB0_16
## %bb.9:
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_HEAP_TOP
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_DN_KEY_LT
	testq	%rax, %rax
	jne	LBB0_16
## %bb.10:
	movq	_DN_SCH_I@GOTPCREL(%rip), %r13
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_HEAP_TOP
	movq	(%rax), %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_heap_extract
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r12), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_serve_sched
	cmpq	$0, 24(%r12)
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r12), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_transmit_event
	cmpq	$0, 24(%r12)
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r12), %rbx
	movq	%r15, %rdi
	callq	_HEAP_TOP
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	callq	_DN_KEY_LT
	testq	%rax, %rax
	je	LBB0_11
LBB0_16:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	8(%r12), %rcx
	incq	%rcx
	movq	%rcx, 8(%r12)
	cmpq	%rax, %rcx
	jl	LBB0_19
## %bb.18:
	movq	$0, 8(%r12)
	xorl	%eax, %eax
	callq	_dn_drain_scheduler
	xorl	%eax, %eax
	callq	_dn_drain_queue
LBB0_19:
	xorl	%eax, %eax
	callq	_dn_reschedule
	xorl	%eax, %eax
	callq	_DN_BH_WUNLOCK
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_dummynet_send
LBB0_21:
	xorl	%eax, %eax
	callq	_CURVNET_RESTORE
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tick_lost,4,2                  ## @tick_lost
	.comm	_dn_cfg,40,3                    ## @dn_cfg
	.comm	_tick_last,4,2                  ## @tick_last
	.comm	_hz,4,2                         ## @hz
	.comm	_tick_delta,8,3                 ## @tick_delta
	.comm	_tick_delta_sum,8,3             ## @tick_delta_sum
	.comm	_tick,8,3                       ## @tick
	.comm	_tick_diff,8,3                  ## @tick_diff
	.comm	_tick_adjustment,4,2            ## @tick_adjustment
	.comm	_DN_SCH_I,8,3                   ## @DN_SCH_I
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dummynet_task                  ; -- Begin function dummynet_task
	.p2align	2
_dummynet_task:                         ; @dummynet_task
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	bl	_CURVNET_SET
	bl	_DN_BH_WLOCK
Lloh0:
	adrp	x8, _tick_lost@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tick_lost@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w19, w9
	sub	w9, w9, #1
	str	w9, [x8]
	add	x0, sp, #24
	bl	_getmicrouptime
	ldp	w8, w11, [sp, #24]
Lloh2:
	adrp	x21, _dn_cfg@GOTPAGE
Lloh3:
	ldr	x21, [x21, _dn_cfg@GOTPAGEOFF]
	ldp	w9, w10, [x21, #32]
	sub	w8, w8, w9
	mov	w9, #16960
	movk	w9, #15, lsl #16
	sub	w10, w11, w10
	madd	w8, w8, w9, w10
Lloh4:
	adrp	x9, _tick_last@GOTPAGE
Lloh5:
	ldr	x9, [x9, _tick_last@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
Lloh7:
	adrp	x9, _hz@GOTPAGE
Lloh8:
	ldr	x9, [x9, _hz@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	mov	w10, #48576
	movk	w10, #65520, lsl #16
	madd	w8, w8, w9, w10
	sdiv	w8, w8, w9
	sxtw	x10, w8
Lloh10:
	adrp	x8, _tick_delta@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tick_delta@GOTPAGEOFF]
Lloh12:
	str	x10, [x8]
Lloh13:
	adrp	x8, _tick_delta_sum@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tick_delta_sum@GOTPAGEOFF]
	ldr	x11, [x8]
Lloh15:
	adrp	x9, _tick@GOTPAGE
Lloh16:
	ldr	x9, [x9, _tick@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x11, x11, x10
	cmp	x11, x9
	str	x11, [x8]
	ldr	x10, [sp, #24]
	str	x10, [x21, #32]
	ldr	x10, [x21, #16]
	add	x20, x10, #1
	str	x20, [x21, #16]
	b.ge	LBB0_3
; %bb.1:
	add	x9, x9, x11
	cmp	x9, #0
	b.gt	LBB0_5
; %bb.2:
	str	x10, [x21, #16]
Lloh18:
	adrp	x11, _tick_diff@GOTPAGE
Lloh19:
	ldr	x11, [x11, _tick_diff@GOTPAGEOFF]
	ldr	x12, [x11]
	sub	x12, x12, #1
	str	x12, [x11]
	mov	x20, x10
	b	LBB0_4
LBB0_3:
	sdiv	x10, x11, x9
	sxtw	x12, w10
	add	x20, x12, x20
	str	x20, [x21, #16]
Lloh20:
	adrp	x13, _tick_diff@GOTPAGE
Lloh21:
	ldr	x13, [x13, _tick_diff@GOTPAGEOFF]
	ldr	x14, [x13]
	add	x12, x14, x12
	str	x12, [x13]
	msub	x9, x10, x9, x11
LBB0_4:
	str	x9, [x8]
Lloh22:
	adrp	x8, _tick_adjustment@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tick_adjustment@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_12
; %bb.6:
	add	x19, x21, #24
	mov	x0, x19
	bl	_HEAP_TOP
	ldr	w1, [x0, #8]
	mov	x0, x20
	bl	_DN_KEY_LT
	cbnz	x0, LBB0_12
; %bb.7:
Lloh24:
	adrp	x22, _DN_SCH_I@GOTPAGE
Lloh25:
	ldr	x22, [x22, _DN_SCH_I@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_HEAP_TOP
	ldr	x20, [x0]
	mov	x0, x19
	mov	x1, #0
	bl	_heap_extract
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x2, [x21, #16]
	mov	x0, sp
	mov	x1, x20
	bl	_serve_sched
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x2, [x21, #16]
	mov	x0, sp
	mov	x1, x20
	bl	_transmit_event
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x20, [x21, #16]
	add	x0, x21, #24
	bl	_HEAP_TOP
	ldr	w1, [x0, #8]
	mov	x0, x20
	bl	_DN_KEY_LT
	cbz	x0, LBB0_8
LBB0_12:
	ldr	x8, [x21]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	x9, [x21, #8]
	add	x9, x9, #1
	str	x9, [x21, #8]
	cmp	x9, x8
	b.lt	LBB0_15
; %bb.14:
	str	xzr, [x21, #8]
	bl	_dn_drain_scheduler
	bl	_dn_drain_queue
LBB0_15:
	bl	_dn_reschedule
	bl	_DN_BH_WUNLOCK
	ldr	x0, [sp]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_dummynet_send
LBB0_17:
	bl	_CURVNET_RESTORE
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_tick_lost,4,2                  ; @tick_lost
	.comm	_dn_cfg,40,3                    ; @dn_cfg
	.comm	_tick_last,4,2                  ; @tick_last
	.comm	_hz,4,2                         ; @hz
	.comm	_tick_delta,8,3                 ; @tick_delta
	.comm	_tick_delta_sum,8,3             ; @tick_delta_sum
	.comm	_tick,8,3                       ; @tick
	.comm	_tick_diff,8,3                  ; @tick_diff
	.comm	_tick_adjustment,4,2            ; @tick_adjustment
	.comm	_DN_SCH_I,8,3                   ; @DN_SCH_I
.subsections_via_symbols
