	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raw_read
_raw_read:                              ## @raw_read
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	andl	$3, %ebx
	movl	%ebx, %edi
	callq	_get_fdc
	movq	_wait_fd_block@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_block_flag@GOTPCREL(%rip), %r15
	xorl	%esi, %esi
	cmpl	$0, (%r15)
	sete	%sil
	callq	_wait_event
	movl	%ebx, %edi
	callq	_fd_select
	movq	_ADK_SETCLR@GOTPCREL(%rip), %rax
	movq	_ADK_WORDSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ADK_FAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_custom@GOTPCREL(%rip), %r12
	movl	%ecx, (%r12)
	movq	_MFM_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$0, 4(%r12)
	movq	_raw_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ZTWO_PADDR
	movq	%rax, 8(%r12)
	movq	_unit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %eax
	movq	_DSKLEN_DMAEN@GOTPCREL(%rip), %rcx
	sarl	%eax
	orl	(%rcx), %eax
	movl	%eax, 4(%r12)
	movl	$1, (%r15)
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_wait_event
	movl	$0, 4(%r12)
	movl	%ebx, %edi
	callq	_fd_deselect
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rel_fdc                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wait_fd_block,4,2              ## @wait_fd_block
	.comm	_block_flag,4,2                 ## @block_flag
	.comm	_ADK_MSBSYNC,4,2                ## @ADK_MSBSYNC
	.comm	_custom,24,3                    ## @custom
	.comm	_ADK_SETCLR,4,2                 ## @ADK_SETCLR
	.comm	_ADK_WORDSYNC,4,2               ## @ADK_WORDSYNC
	.comm	_ADK_FAST,4,2                   ## @ADK_FAST
	.comm	_MFM_SYNC,4,2                   ## @MFM_SYNC
	.comm	_raw_buf,8,3                    ## @raw_buf
	.comm	_unit,8,3                       ## @unit
	.comm	_DSKLEN_DMAEN,4,2               ## @DSKLEN_DMAEN
	.no_dead_strip	_raw_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raw_read
_raw_read:                              ; @raw_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	and	w19, w0, #0x3
	mov	x0, x19
	bl	_get_fdc
Lloh0:
	adrp	x20, _wait_fd_block@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wait_fd_block@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _block_flag@GOTPAGE
Lloh3:
	ldr	x21, [x21, _block_flag@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w1, eq
	bl	_wait_event
	mov	x0, x19
	bl	_fd_select
Lloh4:
	adrp	x8, _ADK_SETCLR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADK_SETCLR@GOTPAGEOFF]
Lloh6:
	adrp	x9, _ADK_WORDSYNC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADK_WORDSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _ADK_FAST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADK_FAST@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh13:
	adrp	x22, _custom@GOTPAGE
Lloh14:
	ldr	x22, [x22, _custom@GOTPAGEOFF]
Lloh15:
	adrp	x9, _MFM_SYNC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MFM_SYNC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x22, #16]
	stp	w8, wzr, [x22]
Lloh18:
	adrp	x8, _raw_buf@GOTPAGE
Lloh19:
	ldr	x8, [x8, _raw_buf@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
	bl	_ZTWO_PADDR
	str	x0, [x22, #8]
Lloh21:
	adrp	x8, _unit@GOTPAGE
Lloh22:
	ldr	x8, [x8, _unit@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x8, [x8, w19, uxtw #3]
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _DSKLEN_DMAEN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DSKLEN_DMAEN@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8, asr #1
	str	w8, [x22, #4]
	mov	w8, #1
	str	w8, [x21]
	ldr	w0, [x20]
	mov	w1, #0
	bl	_wait_event
	str	wzr, [x22, #4]
	mov	x0, x19
	bl	_fd_deselect
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rel_fdc
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_wait_fd_block,4,2              ; @wait_fd_block
	.comm	_block_flag,4,2                 ; @block_flag
	.comm	_ADK_MSBSYNC,4,2                ; @ADK_MSBSYNC
	.comm	_custom,24,3                    ; @custom
	.comm	_ADK_SETCLR,4,2                 ; @ADK_SETCLR
	.comm	_ADK_WORDSYNC,4,2               ; @ADK_WORDSYNC
	.comm	_ADK_FAST,4,2                   ; @ADK_FAST
	.comm	_MFM_SYNC,4,2                   ; @MFM_SYNC
	.comm	_raw_buf,8,3                    ; @raw_buf
	.comm	_unit,8,3                       ; @unit
	.comm	_DSKLEN_DMAEN,4,2               ; @DSKLEN_DMAEN
	.no_dead_strip	_raw_read
.subsections_via_symbols
