	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdc_dtr
_fdc_dtr:                               ## @fdc_dtr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_raw_cmd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	andl	$3, %edi
	movq	_FDCS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpl	(%rax), %edi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_FD_DCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fd_outb
	movq	(%r14), %rax
	movl	(%rax), %eax
	andl	$3, %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %rax
	shrq	$2, %rax
	movabsq	$2951479051793528259, %rdx      ## imm = 0x28F5C28F5C28F5C3
	mulq	%rdx
	movq	%rdx, %rdi
	shrq	$2, %rdi
	addq	(%rcx), %rdi
	movq	_floppy_ready@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fd_wait_for_completion         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_raw_cmd,8,3                    ## @raw_cmd
	.comm	_FDCS,8,3                       ## @FDCS
	.comm	_FD_DCR,4,2                     ## @FD_DCR
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_floppy_ready,8,3               ## @floppy_ready
	.no_dead_strip	_fdc_dtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdc_dtr
_fdc_dtr:                               ; @fdc_dtr
	.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	x19, _raw_cmd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _raw_cmd@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w8, [x8]
	and	w0, w8, #0x3
Lloh2:
	adrp	x20, _FDCS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _FDCS@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh4:
	adrp	x8, _FD_DCR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FD_DCR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_fd_outb
	ldr	x8, [x19]
	ldr	w8, [x8]
	and	w8, w8, #0x3
	ldr	x9, [x20]
	str	w8, [x9]
Lloh7:
	adrp	x8, _jiffies@GOTPAGE
Lloh8:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _HZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ubfx	x9, x9, #1, #62
	mov	x10, #62915
	movk	x10, #23592, lsl #16
	movk	x10, #49807, lsl #32
	movk	x10, #10485, lsl #48
	umulh	x9, x9, x10
	add	x0, x8, x9, lsr #2
Lloh13:
	adrp	x8, _floppy_ready@GOTPAGE
Lloh14:
	ldr	x8, [x8, _floppy_ready@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fd_wait_for_completion
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_raw_cmd,8,3                    ; @raw_cmd
	.comm	_FDCS,8,3                       ; @FDCS
	.comm	_FD_DCR,4,2                     ; @FD_DCR
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_floppy_ready,8,3               ; @floppy_ready
	.no_dead_strip	_fdc_dtr
.subsections_via_symbols
