	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as_can_break_anticipation
_as_can_break_anticipation:             ## @as_can_break_anticipation
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	32(%rdi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_spin_lock
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_RQ_IOC
	cmpq	%rax, %rbx
	je	LBB0_2
LBB0_3:
	cmpq	$0, 24(%r14)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_as_antic_expired
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_24
## %bb.6:
	leaq	24(%r15), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jg	LBB0_2
## %bb.7:
	leaq	20(%r15), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	$1, %eax
LBB0_25:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testq	%r12, %r12
	je	LBB0_16
## %bb.9:
	movq	%r12, %rdi
	callq	_rq_is_sync
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_as_close_req
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	_AS_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	cmpq	$0, (%r15)
	jne	LBB0_14
## %bb.13:
	movl	(%r14), %eax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	leal	256(%rcx), %eax
	addl	$263, %ecx                      ## imm = 0x107
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, (%r14)
LBB0_14:
	movl	4(%r14), %eax
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movl	%eax, 4(%r14)
LBB0_15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_as_update_iohist
	jmp	LBB0_2
LBB0_16:
	movq	_AS_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rsi
	callq	_test_bit
	movq	(%r15), %rcx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	testq	%rcx, %rcx
	jne	LBB0_19
## %bb.18:
	movl	(%r14), %eax
	leal	(,%rax,8), %edx
	subl	%eax, %edx
	leal	256(%rdx), %eax
	addl	$263, %edx                      ## imm = 0x107
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movl	%edx, (%r14)
LBB0_19:
	cmpl	$129, 4(%r14)
	jge	LBB0_2
LBB0_20:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.23:
	movq	8(%r15), %rax
	cmpq	16(%r14), %rax
	jg	LBB0_2
	jmp	LBB0_24
LBB0_21:
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	jg	LBB0_2
## %bb.22:
	movl	4(%r14), %eax
	imull	(%r14), %eax
	cmpl	$32769, %eax                    ## imm = 0x8001
	jge	LBB0_2
LBB0_24:
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_AS_TASK_RUNNING,4,2            ## @AS_TASK_RUNNING
	.no_dead_strip	_as_can_break_anticipation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as_can_break_anticipation
_as_can_break_anticipation:             ; @as_can_break_anticipation
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #32]
	cmp	x19, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_spin_lock
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_RQ_IOC
	cmp	x19, x0
	b.eq	LBB0_7
LBB0_2:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_as_antic_expired
	cbnz	x0, LBB0_7
LBB0_4:
	ldr	x22, [x19, #8]
	cbz	x22, LBB0_25
; %bb.5:
	add	x0, x22, #24
	bl	_atomic_read
	cmp	x0, #1
	b.ge	LBB0_7
; %bb.6:
	add	x0, x22, #20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	cbz	x21, LBB0_17
; %bb.10:
	mov	x0, x21
	bl	_rq_is_sync
	cbz	x0, LBB0_17
; %bb.11:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_as_close_req
	cbz	x0, LBB0_17
; %bb.12:
Lloh0:
	adrp	x8, _AS_TASK_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AS_TASK_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x22, #16
	bl	_test_bit
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	x8, [x22]
	cbnz	x8, LBB0_15
; %bb.14:
	ldr	w8, [x20]
	lsl	w9, w8, #3
	sub	w8, w9, w8
	add	w9, w8, #256
	add	w8, w8, #263
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #3
	str	w8, [x20]
LBB0_15:
	ldr	w8, [x20, #4]
	lsl	w9, w8, #3
	sub	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x20, #4]
LBB0_16:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_as_update_iohist
	b	LBB0_7
LBB0_17:
Lloh3:
	adrp	x8, _AS_TASK_RUNNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AS_TASK_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x22, #16
	bl	_test_bit
	ldr	x8, [x22]
	cbnz	w0, LBB0_21
; %bb.18:
	cbnz	x8, LBB0_20
; %bb.19:
	ldr	w9, [x20]
	lsl	w10, w9, #3
	sub	w9, w10, w9
	add	w10, w9, #256
	add	w9, w9, #263
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #3
	str	w9, [x20]
LBB0_20:
	ldr	w9, [x20, #4]
	cmp	w9, #129
	b.ge	LBB0_7
LBB0_21:
	cbz	x8, LBB0_23
; %bb.22:
	ldr	x8, [x22, #8]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.gt	LBB0_7
	b	LBB0_25
LBB0_23:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.24:
	ldp	w8, w9, [x20]
	mul	w8, w9, w8
	cmp	w8, #8, lsl #12                 ; =32768
	b.gt	LBB0_7
LBB0_25:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AS_TASK_RUNNING,4,2            ; @AS_TASK_RUNNING
	.no_dead_strip	_as_can_break_anticipation
.subsections_via_symbols
