	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function inval_cache_and_wait_for_operation
_inval_cache_and_wait_for_operation:    ## @inval_cache_and_wait_for_operation
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	$128, %edi
	callq	_CMD
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %r13d
	movq	%rbx, %r15
	movl	24(%rbx), %edi
	callq	_spin_unlock
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_INVALIDATE_CACHED_RANGE
LBB0_2:
	movq	%r15, %r14
	movl	24(%r15), %edi
	callq	_spin_lock
	movl	16(%rbp), %ecx
	testl	%ecx, %ecx
	movl	$500000, %eax                   ## imm = 0x7A120
	cmovnel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_map_read
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_map_word_andequal
	testq	%rax, %rax
	je	LBB0_3
LBB0_19:
	movq	_FL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_3:
	shrl	-44(%rbp)                       ## 4-byte Folded Spill
	leaq	28(%r14), %rax
	movq	_HZ@GOTPCREL(%rip), %r12
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_map_read
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_map_word_andequal
	testq	%rax, %rax
	movq	_HZ@GOTPCREL(%rip), %r12
	jne	LBB0_19
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r14), %edi
	callq	_spin_unlock
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	(%r12)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%eax, %ebx
	jae	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_udelay
	xorl	%eax, %eax
	callq	_cond_resched
	decl	%r15d
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_msleep
	subl	%ebx, %r15d
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	idivl	(%r12)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r14), %edi
	callq	_spin_lock
	cmpl	%r13d, (%r14)
	movq	_current@GOTPCREL(%rip), %rax
	movl	%r13d, %r15d
	movq	%r14, %rbx
	movq	_wait@GOTPCREL(%rip), %r14
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movl	(%rax), %esi
	movq	%rax, %r13
	callq	_DECLARE_WAITQUEUE
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_add_wait_queue
	movl	24(%rbx), %edi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_schedule
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_remove_wait_queue
	movl	24(%rbx), %edi
	callq	_spin_lock
	movq	%r13, %rax
	cmpl	%r15d, (%rbx)
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%rbx)
	movq	%rbx, %r14
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_FL_ERASING@GOTPCREL(%rip), %rax
	movl	%r15d, %r13d
	cmpl	(%rax), %r15d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 16(%r14)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%r14)
	je	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_FL_WRITING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 8(%r14)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	%r15d, %r13d
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	cmpq	$0, 8(%r14)
	jne	LBB0_16
	jmp	LBB0_18
LBB0_5:
	movl	$112, %edi
	callq	_CMD
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_map_write
	movq	_FL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ETIME@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FL_STATUS,8,3                  ## @FL_STATUS
	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_HZ,4,2                         ## @HZ
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_FL_ERASING,4,2                 ## @FL_ERASING
	.comm	_FL_WRITING,4,2                 ## @FL_WRITING
	.no_dead_strip	_inval_cache_and_wait_for_operation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function inval_cache_and_wait_for_operation
_inval_cache_and_wait_for_operation:    ; @inval_cache_and_wait_for_operation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x6
	mov	x23, x5
	mov	x25, x4
	mov	x26, x3
	str	x2, [sp, #16]                   ; 8-byte Folded Spill
	mov	x19, x1
	mov	x21, x0
	mov	w0, #128
	bl	_CMD
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w27, [x19]
	ldr	w0, [x19, #24]
	bl	_spin_unlock
	cbz	w25, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	bl	_INVALIDATE_CACHED_RANGE
LBB0_2:
	ldr	w0, [x19, #24]
	bl	_spin_lock
	mov	w8, #41248
	movk	w8, #7, lsl #16
	cmp	w24, #0
	csel	w8, w8, w24, eq
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x21
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_map_read
	mov	x1, x0
	mov	x0, x21
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x2
	bl	_map_word_andequal
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #0
Lloh0:
	adrp	x8, _FL_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FL_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_19
LBB0_4:
	lsr	w8, w23, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	add	x23, x19, #28
Lloh3:
	adrp	x28, _HZ@GOTPAGE
Lloh4:
	ldr	x28, [x28, _HZ@GOTPAGEOFF]
Lloh5:
	adrp	x24, _wait@GOTPAGE
Lloh6:
	ldr	x24, [x24, _wait@GOTPAGEOFF]
Lloh7:
	adrp	x26, _current@GOTPAGE
Lloh8:
	ldr	x26, [x26, _current@GOTPAGEOFF]
	ldr	w25, [sp, #8]                   ; 4-byte Folded Reload
Lloh9:
	adrp	x20, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	str	x21, [sp]                       ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	bl	_map_read
	mov	x1, x0
	mov	x0, x21
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x2
	bl	_map_word_andequal
Lloh11:
	adrp	x28, _HZ@GOTPAGE
Lloh12:
	ldr	x28, [x28, _HZ@GOTPAGEOFF]
	cbnz	x0, LBB0_3
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cbz	w25, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #24]
	mov	w21, #16960
	movk	w21, #15, lsl #16
	bl	_spin_unlock
	ldr	w8, [x28]
	sdiv	w8, w21, w8
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w22, w8
	b.hs	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_udelay
	bl	_cond_resched
	sub	w25, w25, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w22, w8
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_msleep
	sub	w25, w25, w22
	ldr	w8, [x28]
	sdiv	w8, w21, w8
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x19, #24]
	bl	_spin_lock
	ldr	w8, [x19]
	cmp	w8, w27
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	b.eq	LBB0_12
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	ldr	w1, [x26]
	bl	_DECLARE_WAITQUEUE
	ldr	w0, [x20]
	bl	_set_current_state
	mov	x0, x23
	mov	x1, x24
	bl	_add_wait_queue
	ldr	w0, [x19, #24]
	bl	_spin_unlock
	bl	_schedule
	mov	x0, x23
	mov	x1, x24
	bl	_remove_wait_queue
	ldr	w0, [x19, #24]
	bl	_spin_lock
	ldr	w8, [x19]
	cmp	w8, w27
	b.ne	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh13:
	adrp	x8, _FL_ERASING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FL_ERASING@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x19, #16]
	ldr	w25, [sp, #8]                   ; 4-byte Folded Reload
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh16:
	adrp	x8, _FL_WRITING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FL_WRITING@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_5
; %bb.17:                               ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x19, #8]
	ldr	w25, [sp, #8]                   ; 4-byte Folded Reload
	b	LBB0_5
LBB0_18:
	mov	w0, #112
	bl	_CMD
	mov	x1, x0
	mov	x0, x21
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	bl	_map_write
Lloh19:
	adrp	x8, _FL_STATUS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FL_STATUS@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	w8, [x19]
Lloh22:
	adrp	x8, _ETIME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FL_STATUS,8,3                  ; @FL_STATUS
	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_HZ,4,2                         ; @HZ
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_FL_ERASING,4,2                 ; @FL_ERASING
	.comm	_FL_WRITING,4,2                 ; @FL_WRITING
	.no_dead_strip	_inval_cache_and_wait_for_operation
.subsections_via_symbols
