	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg_with_in_iops_limit
_tg_with_in_iops_limit:                 ## @tg_with_in_iops_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rdi
	movq	%rsi, %r15
	callq	_bio_data_dir
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	(%r15), %rcx
	movslq	%eax, %r13
	subq	(%rcx,%r13,8), %r12
	movq	_throtl_slice@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	cmoveq	%rsi, %rdi
	callq	_roundup
	movq	8(%r15), %rcx
	movslq	(%rcx,%r13,4), %rbx
	imulq	%rax, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_do_div
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
	movq	16(%r15), %rax
	movl	(%rax,%r13,4), %eax
	incl	%eax
	cmpl	%ebx, %eax
	jbe	LBB0_1
## %bb.3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	8(%r15), %rcx
	cltd
	idivl	(%rcx,%r13,4)
	incl	%eax
	cltq
	subq	%r12, %rax
	movl	$1, %ecx
	cmovaq	%rax, %rcx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movl	$1, %eax
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	xorl	%ecx, %ecx
LBB0_6:
	movq	%rcx, (%r14)
	jmp	LBB0_7
LBB0_4:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %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
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.no_dead_strip	_tg_with_in_iops_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_iops_limit
_tg_with_in_iops_limit:                 ; @tg_with_in_iops_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	x0, x2
	mov	x20, x1
	bl	_bio_data_dir
	mov	x21, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x9, [x9, w0, sxtw #3]
Lloh2:
	ldr	x8, [x8]
	subs	x23, x8, x9
Lloh3:
	adrp	x8, _throtl_slice@GOTPAGE
Lloh4:
	ldr	x8, [x8, _throtl_slice@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	csel	x0, x1, x23, eq
	bl	_roundup
	ldr	x8, [x20, #8]
	sbfiz	x25, x21, #2, #32
	ldrsw	x8, [x8, x25]
	mul	x22, x0, x8
Lloh6:
	adrp	x24, _HZ@GOTPAGE
Lloh7:
	ldr	x24, [x24, _HZ@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_do_div
Lloh8:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x22, x8
	csel	x9, x22, x8, lo
	ldr	x8, [x20, #16]
	ldr	w8, [x8, x25]
	add	w8, w8, #1
	cmp	w8, w9
	b.ls	LBB0_3
; %bb.1:
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.2:
	sxtw	x9, w21
	ldr	w10, [x24]
	ldr	x11, [x20, #8]
	ldr	w9, [x11, x9, lsl #2]
	mul	w8, w10, w8
	sdiv	w8, w8, w9
	add	w8, w8, #1
	sxtw	x8, w8
	subs	x8, x8, x23
	csinc	x8, x8, xzr, hi
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	cbz	x19, LBB0_6
; %bb.4:
	mov	x8, #0
LBB0_5:
	str	x8, [x19]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.no_dead_strip	_tg_with_in_iops_limit
.subsections_via_symbols
