	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function throtl_trim_slice
_throtl_trim_slice:                     ## @throtl_trim_slice
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	40(%rsi), %rcx
	movslq	%edx, %rbx
	movl	(%rcx,%rbx,4), %edi
	movq	(%rax,%rbx,8), %rsi
	callq	_time_before
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_throtl_slice_used
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_throtl_slice@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	addq	(%r12), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_throtl_set_slice_end
	movq	(%r12), %rcx
	movq	(%r15), %rax
	subq	(%rax,%rbx,8), %rcx
	movq	(%r13), %r12
	movq	%rcx, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r12
	cmpq	%rcx, %r12
	jbe	LBB0_5
	jmp	LBB0_11
LBB0_2:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rcx, %r12
	ja	LBB0_11
LBB0_5:
	movq	8(%r15), %rcx
	imulq	%rax, %r12
	imulq	(%rcx,%rbx,8), %r12
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%r12, %rdi
	movq	%rax, %r13
	callq	_do_div
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	imulq	%r13, %rax
	movq	_throtl_slice@GOTPCREL(%rip), %rcx
	imulq	(%rcx), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_jiffies@GOTPCREL(%rip), %r11
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:
	cmpq	%rax, %rcx
	jbe	LBB0_7
LBB0_11:
	addq	$8, %rsp
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.9:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_10
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	xorl	%esi, %esi
	subq	%r12, %rdx
	cmovbq	%rsi, %rdx
	movq	%rdx, (%rcx,%rbx,8)
	movq	32(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	subq	%rax, %rdx
	cmovbq	%rsi, %rdx
	movq	%rdx, (%rcx,%rbx,8)
	movq	_throtl_slice@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	imulq	%r13, %r10
	movq	(%r15), %rcx
	addq	(%rcx,%rbx,8), %r10
	movq	%r10, (%rcx,%rbx,8)
	movq	_READ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%ebx, (%rcx)
	setne	%dl
	movq	40(%r15), %rcx
	movl	(%rcx,%rbx,4), %ebx
	leal	(%rdx,%rdx,4), %ecx
	addl	$82, %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %r8
	movq	%r12, %r9
	pushq	(%r11)
	pushq	%rbx
	pushq	%r10
	pushq	%rax
	callq	_throtl_log_tg
	addq	$40, %rsp
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_throtl_slice,8,3               ## @throtl_slice
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%c] trim slice nr=%lu bytes=%llu io=%lu start=%lu end=%lu jiffies=%lu"

	.comm	_READ,4,2                       ## @READ
	.no_dead_strip	_throtl_trim_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function throtl_trim_slice
_throtl_trim_slice:                     ; @throtl_trim_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #40]
	ldr	w0, [x8, w2, sxtw #2]
	ldr	x8, [x1]
	ldr	x1, [x8, w2, sxtw #3]
	bl	_time_before
	bl	_BUG_ON
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_throtl_slice_used
	cbnz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	sxtw	x25, w21
	ldr	x8, [x24]
Lloh2:
	adrp	x26, _throtl_slice@GOTPAGE
Lloh3:
	ldr	x26, [x26, _throtl_slice@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x3, x9, x8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_throtl_set_slice_end
	ldr	x9, [x24]
	ldr	x8, [x19]
	ldr	x10, [x8, x25, lsl #3]
	ldr	x8, [x26]
	sub	x9, x9, x10
	cmp	x8, x9
	b.hi	LBB0_4
; %bb.2:
	ldr	x10, [x19, #8]
	lsl	x27, x25, #3
	ldr	x10, [x10, x27]
	udiv	x22, x9, x8
	mul	x8, x22, x8
	mul	x23, x8, x10
Lloh4:
	adrp	x28, _HZ@GOTPAGE
Lloh5:
	ldr	x28, [x28, _HZ@GOTPAGEOFF]
	ldr	x1, [x28]
	mov	x0, x23
	bl	_do_div
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x27]
	ldr	x9, [x26]
	mul	x8, x8, x22
	mul	x8, x8, x9
	ldr	x9, [x28]
	cmp	x23, #0
	ccmp	x9, x8, #0, eq
	b.hi	LBB0_4
; %bb.3:
	ldp	x10, x11, [x19, #24]
	ldr	x12, [x10, x27]
	subs	x12, x12, x23
	csel	x12, xzr, x12, lo
	str	x12, [x10, x27]
	udiv	x6, x8, x9
	ldr	x8, [x11, x27]
	subs	x8, x8, x6
	csel	x8, xzr, x8, lo
	str	x8, [x11, x27]
	ldr	x8, [x19]
	ldr	x9, [x8, x27]
	ldr	x10, [x26]
	madd	x7, x10, x22, x9
	str	x7, [x8, x27]
Lloh6:
	adrp	x8, _READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #40]
	ldr	w9, [x9, x25, lsl #2]
	ldr	x10, [x24]
	str	x10, [sp, #8]
	str	w9, [sp]
	mov	w9, #87
	mov	w10, #82
	cmp	w8, w21
	csel	w3, w10, w9, eq
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x4, x22
	mov	x5, x23
	bl	_throtl_log_tg
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_throtl_slice,8,3               ; @throtl_slice
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%c] trim slice nr=%lu bytes=%llu io=%lu start=%lu end=%lu jiffies=%lu"

	.comm	_READ,4,2                       ; @READ
	.no_dead_strip	_throtl_trim_slice
.subsections_via_symbols
