	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function throttle
_throttle:                              ## @throttle
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_throttling_counter@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	%rdi, (%rax)
	movq	_throttling_sample@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rdi
	jb	LBB0_13
## %bb.1:
	movq	_elapsed_min_unit@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r14
	jmp	LBB0_4
LBB0_2:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r14d
LBB0_4:
	imull	%ecx, %r14d
	movq	_MyLatch@GOTPCREL(%rip), %r12
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %r15
	movq	_WL_TIMEOUT@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%ebx, (%r13)
	jne	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	_throttled_last@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subl	%eax, %ebx
	addl	%r14d, %ebx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
	callq	_ResetLatch
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	(%r12), %edi
	movl	(%r13), %esi
	orl	(%r15), %esi
	movq	_WL_EXIT_ON_PM_DEATH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	shrq	$38, %rdx
	movq	_WAIT_EVENT_BASE_BACKUP_THROTTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_WaitLatch
	movl	%eax, %ebx
	testl	%eax, (%r15)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	jmp	LBB0_8
LBB0_9:
	movq	_throttling_sample@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_throttling_counter@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_12
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:
	movq	%rdx, (%rsi)
	xorl	%eax, %eax
	callq	_GetCurrentTimestamp
	movq	_throttled_last@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_throttling_counter,8,3         ## @throttling_counter
	.comm	_throttling_sample,8,3          ## @throttling_sample
	.comm	_elapsed_min_unit,8,3           ## @elapsed_min_unit
	.comm	_throttled_last,4,2             ## @throttled_last
	.comm	_MyLatch,4,2                    ## @MyLatch
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_WL_TIMEOUT,4,2                 ## @WL_TIMEOUT
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ## @WL_EXIT_ON_PM_DEATH
	.comm	_WAIT_EVENT_BASE_BACKUP_THROTTLE,4,2 ## @WAIT_EVENT_BASE_BACKUP_THROTTLE
	.no_dead_strip	_throttle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function throttle
_throttle:                              ; @throttle
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _throttling_counter@GOTPAGE
Lloh1:
	ldr	x20, [x20, _throttling_counter@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x8, _throttling_sample@GOTPAGE
Lloh3:
	ldr	x8, [x8, _throttling_sample@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x9, x9, x0
	cmp	x9, x8
	str	x9, [x20]
	b.lo	LBB0_7
; %bb.1:
Lloh5:
	adrp	x10, _elapsed_min_unit@GOTPAGE
Lloh6:
	ldr	x10, [x10, _elapsed_min_unit@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x22, _throttled_last@GOTPAGE
Lloh9:
	ldr	x22, [x22, _throttled_last@GOTPAGEOFF]
	udiv	x8, x9, x8
Lloh10:
	adrp	x23, _MyLatch@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MyLatch@GOTPAGEOFF]
Lloh12:
	adrp	x24, _WL_LATCH_SET@GOTPAGE
Lloh13:
	ldr	x24, [x24, _WL_LATCH_SET@GOTPAGEOFF]
Lloh14:
	adrp	x25, _WL_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x25, [x25, _WL_TIMEOUT@GOTPAGEOFF]
	mul	w26, w8, w10
Lloh16:
	adrp	x27, _WL_EXIT_ON_PM_DEATH@GOTPAGE
Lloh17:
	ldr	x27, [x27, _WL_EXIT_ON_PM_DEATH@GOTPAGEOFF]
	mov	w28, #19923
	movk	w28, #4194, lsl #16
Lloh18:
	adrp	x21, _WAIT_EVENT_BASE_BACKUP_THROTTLE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _WAIT_EVENT_BASE_BACKUP_THROTTLE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	tst	w8, w19
	b.ne	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_GetCurrentTimestamp
	ldr	w8, [x22]
	sub	w8, w8, w0
	add	w19, w8, w26
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	bl	_ResetLatch
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w0, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x27]
	orr	w1, w8, w9
	umull	x8, w19, w28
	lsr	x2, x8, #38
	ldr	w3, [x21]
	bl	_WaitLatch
	mov	x19, x0
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	b	LBB0_2
LBB0_6:
Lloh20:
	adrp	x8, _throttling_sample@GOTPAGE
Lloh21:
	ldr	x8, [x8, _throttling_sample@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x20]
	udiv	x10, x9, x8
	msub	x8, x10, x8, x9
	str	x8, [x20]
	bl	_GetCurrentTimestamp
	str	w0, [x22]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_throttling_counter,8,3         ; @throttling_counter
	.comm	_throttling_sample,8,3          ; @throttling_sample
	.comm	_elapsed_min_unit,8,3           ; @elapsed_min_unit
	.comm	_throttled_last,4,2             ; @throttled_last
	.comm	_MyLatch,4,2                    ; @MyLatch
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_WL_TIMEOUT,4,2                 ; @WL_TIMEOUT
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ; @WL_EXIT_ON_PM_DEATH
	.comm	_WAIT_EVENT_BASE_BACKUP_THROTTLE,4,2 ; @WAIT_EVENT_BASE_BACKUP_THROTTLE
	.no_dead_strip	_throttle
.subsections_via_symbols
