	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtualdmabug_workaround
_virtualdmabug_workaround:              ## @virtualdmabug_workaround
	.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	_COMMAND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_CT
	movq	_FD_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	andb	$127, (%rbx)
	movq	_raw_cmd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_SIZECODE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	$7, %cl
	sarl	%cl, %eax
	movq	_SECTOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	movq	_SECT_PER_TRACK@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_FD_WRITE,8,3                   ## @FD_WRITE
	.comm	_raw_cmd,8,3                    ## @raw_cmd
	.comm	_SIZECODE,4,2                   ## @SIZECODE
	.comm	_SECTOR,4,2                     ## @SECTOR
	.comm	_SECT_PER_TRACK,4,2             ## @SECT_PER_TRACK
	.no_dead_strip	_virtualdmabug_workaround
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtualdmabug_workaround
_virtualdmabug_workaround:              ; @virtualdmabug_workaround
	.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, _COMMAND@GOTPAGE
Lloh1:
	ldr	x19, [x19, _COMMAND@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_CT
Lloh2:
	adrp	x8, _FD_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FD_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	and	w8, w8, #0xffffff7f
	str	w8, [x19]
Lloh5:
	adrp	x8, _raw_cmd@GOTPAGE
Lloh6:
	ldr	x8, [x8, _raw_cmd@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _SIZECODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SIZECODE@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	add	w9, w9, #7
	asr	w8, w8, w9
Lloh11:
	adrp	x9, _SECTOR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SECTOR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	add	w8, w9, w8
	sub	w8, w8, #1
Lloh14:
	adrp	x9, _SECT_PER_TRACK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SECT_PER_TRACK@GOTPAGEOFF]
Lloh16:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_FD_WRITE,8,3                   ; @FD_WRITE
	.comm	_raw_cmd,8,3                    ; @raw_cmd
	.comm	_SIZECODE,4,2                   ; @SIZECODE
	.comm	_SECTOR,4,2                     ; @SECTOR
	.comm	_SECT_PER_TRACK,4,2             ; @SECT_PER_TRACK
	.no_dead_strip	_virtualdmabug_workaround
.subsections_via_symbols
