	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_watchdog
_fd_watchdog:                           ## @fd_watchdog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_current_drive@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_disk_change
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT
	xorl	%eax, %eax
	callq	_cancel_activity
	movq	_cont@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	callq	*(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reset_fdc                      ## TAILCALL
LBB0_2:
	movq	_fd_timer@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_del_timer
	leaq	_fd_watchdog(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current_drive,4,2              ## @current_drive
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disk removed during i/o\n"

	.comm	_cont,8,3                       ## @cont
	.comm	_fd_timer,16,3                  ## @fd_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_DP,8,3                         ## @DP
	.comm	_FD_DEBUG,4,2                   ## @FD_DEBUG
	.no_dead_strip	_fd_watchdog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fd_watchdog
_fd_watchdog:                           ; @fd_watchdog
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _current_drive@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_drive@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_disk_change
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	bl	_cancel_activity
Lloh5:
	adrp	x8, _cont@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cont@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	w0, #0
	blr	x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reset_fdc
LBB0_2:
Lloh8:
	adrp	x19, _fd_timer@GOTPAGE
Lloh9:
	ldr	x19, [x19, _fd_timer@GOTPAGEOFF]
	mov	x0, x19
	bl	_del_timer
Lloh10:
	adrp	x8, _fd_watchdog@PAGE
Lloh11:
	add	x8, x8, _fd_watchdog@PAGEOFF
Lloh12:
	adrp	x9, _jiffies@GOTPAGE
Lloh13:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _HZ@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh17:
	ldrsw	x10, [x10]
	mov	w11, #26215
	movk	w11, #26214, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #34
	add	w10, w10, w11
	add	x9, x9, w10, sxtw
	stp	x9, x8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_add_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_current_drive,4,2              ; @current_drive
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disk removed during i/o\n"

	.comm	_cont,8,3                       ; @cont
	.comm	_fd_timer,16,3                  ; @fd_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_DP,8,3                         ; @DP
	.comm	_FD_DEBUG,4,2                   ; @FD_DEBUG
	.no_dead_strip	_fd_watchdog
.subsections_via_symbols
