	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bw_meter_prepare_upcall
_bw_meter_prepare_upcall:               ## @bw_meter_prepare_upcall
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_MFC_LOCK_ASSERT
	movl	(%r14), %eax
	movl	%eax, -32(%rbp)
	leaq	32(%rbx), %rsi
	leaq	-32(%rbp), %rdi
	callq	_BW_TIMEVALDECR
	movq	_V_bw_upcalls_n@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_BW_UPCALLS_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_bw_upcalls_send
	movq	(%r14), %rax
LBB0_2:
	movq	_V_bw_upcalls@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%r14)
	movq	24(%rbx), %rdx
	leaq	(%rax,%rax,8), %rsi
	leaq	(%rcx,%rsi,4), %rax
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 20(%rcx,%rsi,4)
	movl	12(%rbx), %edx
	movl	%edx, 16(%rcx,%rsi,4)
	movl	-32(%rbp), %edx
	movl	%edx, 12(%rcx,%rsi,4)
	movl	8(%rbx), %edx
	movl	%edx, 8(%rcx,%rsi,4)
	movl	4(%rbx), %edx
	movl	%edx, 4(%rcx,%rsi,4)
	movl	$0, (%rcx,%rsi,4)
	movl	(%rbx), %ecx
	movq	_BW_METER_UNIT_PACKETS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_BW_UPCALL_UNIT_PACKETS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	movl	%r15d, (%rax)
LBB0_4:
	movq	_BW_METER_UNIT_BYTES@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_BW_UPCALL_UNIT_BYTES@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r15d
	movl	%r15d, (%rax)
LBB0_6:
	movq	_BW_METER_GEQ@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_8
## %bb.7:
	movq	_BW_UPCALL_GEQ@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r15d
	movl	%r15d, (%rax)
LBB0_8:
	movq	_BW_METER_LEQ@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	_BW_UPCALL_LEQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movl	%r15d, (%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_bw_upcalls_n,8,3             ## @V_bw_upcalls_n
	.comm	_BW_UPCALLS_MAX,8,3             ## @BW_UPCALLS_MAX
	.comm	_V_bw_upcalls,8,3               ## @V_bw_upcalls
	.comm	_BW_METER_UNIT_PACKETS,4,2      ## @BW_METER_UNIT_PACKETS
	.comm	_BW_UPCALL_UNIT_PACKETS,4,2     ## @BW_UPCALL_UNIT_PACKETS
	.comm	_BW_METER_UNIT_BYTES,4,2        ## @BW_METER_UNIT_BYTES
	.comm	_BW_UPCALL_UNIT_BYTES,4,2       ## @BW_UPCALL_UNIT_BYTES
	.comm	_BW_METER_GEQ,4,2               ## @BW_METER_GEQ
	.comm	_BW_UPCALL_GEQ,4,2              ## @BW_UPCALL_GEQ
	.comm	_BW_METER_LEQ,4,2               ## @BW_METER_LEQ
	.comm	_BW_UPCALL_LEQ,4,2              ## @BW_UPCALL_LEQ
	.no_dead_strip	_bw_meter_prepare_upcall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bw_meter_prepare_upcall
_bw_meter_prepare_upcall:               ; @bw_meter_prepare_upcall
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_MFC_LOCK_ASSERT
	ldr	w8, [x20]
	str	w8, [sp, #8]
	add	x1, x19, #32
	add	x0, sp, #8
	bl	_BW_TIMEVALDECR
Lloh0:
	adrp	x20, _V_bw_upcalls_n@GOTPAGE
Lloh1:
	ldr	x20, [x20, _V_bw_upcalls_n@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _BW_UPCALLS_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BW_UPCALLS_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_2
; %bb.1:
	bl	_bw_upcalls_send
	ldr	x8, [x20]
LBB0_2:
Lloh5:
	adrp	x9, _V_bw_upcalls@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V_bw_upcalls@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x10, x8, #1
	str	x10, [x20]
	ldr	x10, [x19, #24]
	mov	w11, #36
	madd	x8, x8, x11, x9
	ldr	d0, [x10]
	ldr	d1, [x19, #16]
	mov.d	v1[1], v0[0]
	stur	q1, [x8, #20]
	ldr	w9, [x19, #12]
	str	w9, [x8, #16]
	ldr	w9, [sp, #8]
	str	w9, [x8, #12]
	ldur	d0, [x19, #4]
	stur	d0, [x8, #4]
	str	wzr, [x8]
	ldr	w9, [x19]
Lloh8:
	adrp	x10, _BW_METER_UNIT_PACKETS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BW_METER_UNIT_PACKETS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x10, _BW_UPCALL_UNIT_PACKETS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _BW_UPCALL_UNIT_PACKETS@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	str	w10, [x8]
	b	LBB0_5
LBB0_4:
	mov	w10, #0
LBB0_5:
Lloh14:
	adrp	x11, _BW_METER_UNIT_BYTES@GOTPAGE
Lloh15:
	ldr	x11, [x11, _BW_METER_UNIT_BYTES@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x11, _BW_UPCALL_UNIT_BYTES@GOTPAGE
Lloh18:
	ldr	x11, [x11, _BW_UPCALL_UNIT_BYTES@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x8]
LBB0_7:
Lloh20:
	adrp	x11, _BW_METER_GEQ@GOTPAGE
Lloh21:
	ldr	x11, [x11, _BW_METER_GEQ@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x11, _BW_UPCALL_GEQ@GOTPAGE
Lloh24:
	ldr	x11, [x11, _BW_UPCALL_GEQ@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x8]
LBB0_9:
Lloh26:
	adrp	x11, _BW_METER_LEQ@GOTPAGE
Lloh27:
	ldr	x11, [x11, _BW_METER_LEQ@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_11
; %bb.10:
Lloh29:
	adrp	x9, _BW_UPCALL_LEQ@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BW_UPCALL_LEQ@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_V_bw_upcalls_n,8,3             ; @V_bw_upcalls_n
	.comm	_BW_UPCALLS_MAX,8,3             ; @BW_UPCALLS_MAX
	.comm	_V_bw_upcalls,8,3               ; @V_bw_upcalls
	.comm	_BW_METER_UNIT_PACKETS,4,2      ; @BW_METER_UNIT_PACKETS
	.comm	_BW_UPCALL_UNIT_PACKETS,4,2     ; @BW_UPCALL_UNIT_PACKETS
	.comm	_BW_METER_UNIT_BYTES,4,2        ; @BW_METER_UNIT_BYTES
	.comm	_BW_UPCALL_UNIT_BYTES,4,2       ; @BW_UPCALL_UNIT_BYTES
	.comm	_BW_METER_GEQ,4,2               ; @BW_METER_GEQ
	.comm	_BW_UPCALL_GEQ,4,2              ; @BW_UPCALL_GEQ
	.comm	_BW_METER_LEQ,4,2               ; @BW_METER_LEQ
	.comm	_BW_UPCALL_LEQ,4,2              ; @BW_UPCALL_LEQ
	.no_dead_strip	_bw_meter_prepare_upcall
.subsections_via_symbols
