	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twaddle
_twaddle:                               ## @twaddle
	.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	_DP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_FDCS@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %ebx
	movq	_current_drive@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_UNIT
	movl	$16, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	notl	%edi
	andl	%ebx, %edi
	movq	_FD_DOR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_fd_outb
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_fd_outb
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DRS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP,8,3                         ## @DP
	.comm	_FDCS,8,3                       ## @FDCS
	.comm	_current_drive,4,2              ## @current_drive
	.comm	_FD_DOR,4,2                     ## @FD_DOR
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_DRS,8,3                        ## @DRS
	.no_dead_strip	_twaddle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twaddle
_twaddle:                               ; @twaddle
	.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, _DP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _FDCS@GOTPAGE
Lloh4:
	ldr	x19, [x19, _FDCS@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _current_drive@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current_drive@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_UNIT
	mov	w8, #16
	lsl	w8, w8, w0
	bic	w0, w20, w8
Lloh8:
	adrp	x20, _FD_DOR@GOTPAGE
Lloh9:
	ldr	x20, [x20, _FD_DOR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_fd_outb
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_fd_outb
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _DRS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DRS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	w8, [x9]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DP,8,3                         ; @DP
	.comm	_FDCS,8,3                       ; @FDCS
	.comm	_current_drive,4,2              ; @current_drive
	.comm	_FD_DOR,4,2                     ; @FD_DOR
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_DRS,8,3                        ; @DRS
	.no_dead_strip	_twaddle
.subsections_via_symbols
