	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serverworks_tlbflush
_serverworks_tlbflush:                  ## @serverworks_tlbflush
	.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	_serverworks_private@GOTPCREL(%rip), %r14
	movq	_SVWRKS_POSTFLUSH@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%r14), %rsi
	movl	$1, %edi
	callq	_writeb
	movq	_jiffies@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	movq	_HZ@GOTPCREL(%rip), %r12
	movslq	(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	callq	_readb
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_SVWRKS_DIRFLUSH@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%r14), %rsi
	movl	$1, %edi
	callq	_writel
	movslq	(%r15), %rax
	movslq	(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_serverworks_private,16,3       ## @serverworks_private
	.comm	_SVWRKS_POSTFLUSH,8,3           ## @SVWRKS_POSTFLUSH
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TLB post flush took more than 3 seconds\n"

	.comm	_SVWRKS_DIRFLUSH,8,3            ## @SVWRKS_DIRFLUSH
L_.str.1:                               ## @.str.1
	.asciz	"TLB Dir flush took more than 3 seconds\n"

	.no_dead_strip	_serverworks_tlbflush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serverworks_tlbflush
_serverworks_tlbflush:                  ; @serverworks_tlbflush
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _serverworks_private@GOTPAGE
Lloh1:
	ldr	x20, [x20, _serverworks_private@GOTPAGEOFF]
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x23, _SVWRKS_POSTFLUSH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SVWRKS_POSTFLUSH@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writeb
Lloh4:
	adrp	x21, _jiffies@GOTPAGE
Lloh5:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldrsw	x8, [x21]
Lloh6:
	adrp	x22, _HZ@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HZ@GOTPAGEOFF]
	ldrsw	x9, [x22]
	add	x9, x9, x9, lsl #1
	add	x19, x9, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readb
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	ldr	w0, [x21]
	mov	x1, x19
	bl	_time_after
	cbz	x0, LBB0_1
; %bb.3:
	ldr	x0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x23, _SVWRKS_DIRFLUSH@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SVWRKS_DIRFLUSH@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	ldrsw	x8, [x21]
	ldrsw	x9, [x22]
	add	x9, x9, x9, lsl #1
	add	x19, x9, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
	ldr	w0, [x21]
	mov	x1, x19
	bl	_time_after
	cbz	x0, LBB0_5
; %bb.7:
	ldr	x0, [x20]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_serverworks_private,16,3       ; @serverworks_private
	.comm	_SVWRKS_POSTFLUSH,8,3           ; @SVWRKS_POSTFLUSH
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TLB post flush took more than 3 seconds\n"

	.comm	_SVWRKS_DIRFLUSH,8,3            ; @SVWRKS_DIRFLUSH
l_.str.1:                               ; @.str.1
	.asciz	"TLB Dir flush took more than 3 seconds\n"

	.no_dead_strip	_serverworks_tlbflush
.subsections_via_symbols
