	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg_may_dispatch
_tg_may_dispatch:                       ## @tg_may_dispatch
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_bio_data_dir
	movl	%eax, %ebx
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	32(%r14), %rax
	movslq	%ebx, %r15
	cmpq	$0, (%rax,%r15,8)
	je	LBB0_1
## %bb.2:
	leaq	(,%r15,4), %rdi
	addq	24(%r14), %rdi
	callq	_bio_list_peek
	xorl	%edi, %edi
	cmpq	%r13, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_BUG_ON
	movq	(%r14), %rax
	cmpl	$-1, (%rax,%r15,4)
	jne	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	cmpl	$-1, (%rax,%r15,4)
	je	LBB0_17
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_throtl_slice_used
	testq	%rax, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_throtl_start_new_slice
	movq	%r12, %rbx
	jmp	LBB0_9
LBB0_7:
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %edi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	%r12, %rbx
	movq	_throtl_slice@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%rax), %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r12), %rcx
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_throtl_extend_slice
LBB0_9:
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_tg_with_in_bps_limit
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_tg_with_in_iops_limit
	testq	%rax, %rax
	je	LBB0_12
LBB0_17:
	movl	$1, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	$0, (%rax)
	jmp	LBB0_19
LBB0_10:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_12:
	movq	-64(%rbp), %rsi
LBB0_13:
	movq	-72(%rbp), %rdi
	callq	_max
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r12, (%rax)
LBB0_15:
	movq	16(%r14), %rax
	movl	(%rax,%r15,4), %edi
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	%r12, %rsi
	callq	_time_before
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	addq	(%r15), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_throtl_extend_slice
LBB0_19:
	movl	%r13d, %eax
	addq	$40, %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
	.no_dead_strip	_tg_may_dispatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg_may_dispatch
_tg_may_dispatch:                       ; @tg_may_dispatch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_bio_data_dir
                                        ; kill: def $w0 killed $w0 def $x0
	stp	xzr, xzr, [sp]
	ldr	x8, [x19, #32]
	sxtw	x22, w0
	ldr	x8, [x8, w0, sxtw #3]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	add	x0, x8, x22, lsl #2
	bl	_bio_list_peek
	cmp	x0, x23
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_BUG_ON
	ldr	x8, [x19]
	ldr	w8, [x8, x22, lsl #2]
	cmn	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x22, lsl #2]
	cmn	w8, #1
	b.eq	LBB0_11
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_throtl_slice_used
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_throtl_start_new_slice
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x22, lsl #2]
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh2:
	adrp	x25, _throtl_slice@GOTPAGE
Lloh3:
	ldr	x25, [x25, _throtl_slice@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_time_before
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x24]
	ldr	x9, [x25]
	add	x3, x9, x8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_throtl_extend_slice
LBB0_9:
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_tg_with_in_bps_limit
	cbz	x0, LBB0_14
; %bb.10:
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_tg_with_in_iops_limit
	cbz	x0, LBB0_15
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	str	xzr, [x21]
LBB0_13:
	mov	w0, #1
	b	LBB0_20
LBB0_14:
	mov	x1, #0
	b	LBB0_16
LBB0_15:
	ldr	x1, [sp]
LBB0_16:
	ldr	x0, [sp, #8]
	bl	_max
	mov	x23, x0
	cbz	x21, LBB0_18
; %bb.17:
	str	x23, [x21]
LBB0_18:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x22, lsl #2]
Lloh4:
	adrp	x21, _jiffies@GOTPAGE
Lloh5:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x23
	bl	_time_before
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x8, [x21]
	add	x3, x8, x23
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_throtl_extend_slice
	mov	w0, #0
LBB0_20:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_throtl_slice,8,3               ; @throtl_slice
	.no_dead_strip	_tg_may_dispatch
.subsections_via_symbols
