	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as_update_iohist
_as_update_iohist:                      ## @as_update_iohist
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_rq_is_sync
	testq	%r15, %r15
	je	LBB0_12
## %bb.1:
	movq	_BLK_RW_SYNC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	28(%r15), %rdi
	callq	_atomic_read
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %rdi
	callq	_atomic_read
	movq	%rax, %r12
	leaq	16(%r15), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	_AS_TASK_IORUNNING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	20(%r15), %r13
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_AS_TASK_IOSTARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_test_bit
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	negq	%r12
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.6:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	(%r15), %rdi
	movq	_MAX_THINKTIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	callq	_min
	movq	%rax, %rdx
LBB0_7:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_as_update_thinktime
	movq	8(%r15), %rbx
	movq	%r14, %rdi
	callq	_blk_rq_pos
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_blk_rq_pos
	movq	%rax, %rbx
	subq	8(%r15), %rbx
	jmp	LBB0_10
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r15), %rbx
	movq	%r14, %rdi
	callq	_blk_rq_pos
	subq	%rax, %rbx
LBB0_10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_as_update_seekdist
LBB0_11:
	movq	%r14, %rdi
	callq	_blk_rq_pos
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_blk_rq_sectors
	addq	%rbx, %rax
	movq	%rax, 8(%r15)
	movq	_AS_TASK_IOSTARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_RW_SYNC,4,2                ## @BLK_RW_SYNC
	.comm	_AS_TASK_IORUNNING,4,2          ## @AS_TASK_IORUNNING
	.comm	_AS_TASK_IOSTARTED,4,2          ## @AS_TASK_IOSTARTED
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MAX_THINKTIME,8,3              ## @MAX_THINKTIME
	.no_dead_strip	_as_update_iohist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as_update_iohist
_as_update_iohist:                      ; @as_update_iohist
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_rq_is_sync
	cbz	x19, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _BLK_RW_SYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_RW_SYNC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.2:
	add	x0, x19, #28
	bl	_atomic_read
	mov	x24, x0
	add	x0, x19, #24
	bl	_atomic_read
	mov	x25, x0
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock
Lloh3:
	adrp	x27, _AS_TASK_IORUNNING@GOTPAGE
Lloh4:
	ldr	x27, [x27, _AS_TASK_IORUNNING@GOTPAGEOFF]
	ldr	w0, [x27]
	add	x23, x19, #20
	mov	x1, x23
	bl	_test_bit
Lloh5:
	adrp	x26, _AS_TASK_IOSTARTED@GOTPAGE
Lloh6:
	ldr	x26, [x26, _AS_TASK_IOSTARTED@GOTPAGEOFF]
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x26]
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_11
LBB0_4:
	ldr	w0, [x27]
	mov	x1, x23
	bl	_test_bit
	mov	x2, #0
	neg	x8, x25
	cmp	x0, #0
	ccmp	x24, x8, #0, ne
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _jiffies@GOTPAGE
Lloh8:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x19]
	sub	x0, x8, x9
Lloh10:
	adrp	x8, _MAX_THINKTIME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_THINKTIME@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	sub	x1, x8, #1
	bl	_min
	mov	x2, x0
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	bl	_as_update_thinktime
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_blk_rq_pos
	cmp	x24, x0
	b.ge	LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_blk_rq_pos
	ldr	x8, [x19, #8]
	sub	x2, x0, x8
	b	LBB0_10
LBB0_8:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_blk_rq_pos
	sub	x2, x24, x0
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_as_update_seekdist
LBB0_11:
	mov	x0, x20
	bl	_blk_rq_pos
	mov	x21, x0
	mov	x0, x20
	bl	_blk_rq_sectors
	add	x8, x0, x21
	str	x8, [x19, #8]
	ldr	w0, [x26]
	mov	x1, x23
	bl	_set_bit
	mov	x0, x22
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_RW_SYNC,4,2                ; @BLK_RW_SYNC
	.comm	_AS_TASK_IORUNNING,4,2          ; @AS_TASK_IORUNNING
	.comm	_AS_TASK_IOSTARTED,4,2          ; @AS_TASK_IOSTARTED
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MAX_THINKTIME,8,3              ; @MAX_THINKTIME
	.no_dead_strip	_as_update_iohist
.subsections_via_symbols
