	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg_with_in_bps_limit
_tg_with_in_bps_limit:                  ## @tg_with_in_bps_limit
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	callq	_bio_data_dir
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	movq	(%r13), %rcx
	movslq	%eax, %r12
	subq	(%rcx,%r12,8), %r14
	movq	_throtl_slice@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	cmoveq	%rsi, %rdi
	callq	_roundup
	movq	%rax, %r15
	movq	8(%r13), %rax
	movl	(%rax,%r12,8), %ebx
	imull	%r15d, %ebx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_do_div
	movq	16(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	addl	(%rax,%r12,4), %edi
	subl	%ebx, %edi
	jle	LBB0_1
## %bb.3:
	movq	_HZ@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rsi
	callq	_div64_u64
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	testq	%rax, %rax
	movl	$1, %ecx
	cmovneq	%rax, %rcx
	subq	%r14, %r15
	addq	%rcx, %r15
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movl	$1, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r15, (%rdx)
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_throtl_slice,8,3               ## @throtl_slice
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_tg_with_in_bps_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg_with_in_bps_limit
_tg_with_in_bps_limit:                  ; @tg_with_in_bps_limit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x0, x2
	bl	_bio_data_dir
	mov	x21, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	ldr	x9, [x20]
	sbfiz	x24, x21, #3, #32
	ldr	x9, [x9, x24]
Lloh2:
	ldr	x8, [x8]
	subs	x25, x8, x9
Lloh3:
	adrp	x8, _throtl_slice@GOTPAGE
Lloh4:
	ldr	x8, [x8, _throtl_slice@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	csel	x0, x1, x25, eq
	bl	_roundup
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8, x24]
	mul	w24, w8, w22
Lloh6:
	adrp	x26, _HZ@GOTPAGE
Lloh7:
	ldr	x26, [x26, _HZ@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x24
	bl	_do_div
	ldr	x8, [x20, #16]
	ldr	w8, [x8, w21, sxtw #2]
	ldr	w9, [x23]
	add	w8, w9, w8
	subs	w8, w8, w24
	b.le	LBB0_3
; %bb.1:
	sxtw	x9, w21
	ldr	w10, [x26]
	mul	w0, w10, w8
	ldr	x8, [x20, #8]
	ldr	x1, [x8, x9, lsl #3]
	bl	_div64_u64
	cbz	x19, LBB0_6
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	cmp	x8, #0
	csinc	x8, x8, xzr, ne
	sub	x9, x22, x25
	add	x8, x9, x8
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	cbz	x19, LBB0_7
; %bb.4:
	mov	x8, #0
LBB0_5:
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_throtl_slice,8,3               ; @throtl_slice
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_tg_with_in_bps_limit
.subsections_via_symbols
