	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function result
_result:                                ## @result
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAX_REPLIES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.2:
	movq	_STATUS_BUSY@GOTPCREL(%rip), %r12
	movq	_STATUS_DMA@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_wait_til_ready
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_STATUS_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_STATUS_DIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	%edx, %ebx
	movl	(%r12), %esi
	orl	%esi, %ebx
	movl	(%r13), %ecx
	orl	%ebx, %ecx
	andl	%eax, %ecx
	notl	%esi
	andl	%ecx, %esi
	cmpl	%edx, %esi
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, %ecx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FD_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fd_inb
	movq	_reply_buffer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jl	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movl	%ecx, %ebx
LBB0_9:
	movq	_initialising@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	_fdc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_DPRINT
	xorl	%eax, %eax
	callq	_show_floppy
LBB0_11:
	movq	_FDCS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	movl	$-1, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REPLIES,4,2                ## @MAX_REPLIES
	.comm	_STATUS_DIR,4,2                 ## @STATUS_DIR
	.comm	_STATUS_READY,4,2               ## @STATUS_READY
	.comm	_STATUS_BUSY,4,2                ## @STATUS_BUSY
	.comm	_STATUS_DMA,4,2                 ## @STATUS_DMA
	.comm	_FD_DATA,4,2                    ## @FD_DATA
	.comm	_reply_buffer,8,3               ## @reply_buffer
	.comm	_initialising,4,2               ## @initialising
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get result error. Fdc=%d Last status=%x Read bytes=%d\n"

	.comm	_fdc,4,2                        ## @fdc
	.comm	_FDCS,8,3                       ## @FDCS
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_resultjiffies,4,2              ## @resultjiffies
	.comm	_resultsize,4,2                 ## @resultsize
	.no_dead_strip	_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function result
_result:                                ; @result
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x20, _MAX_REPLIES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_REPLIES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, #0
Lloh2:
	adrp	x21, _STATUS_DIR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _STATUS_DIR@GOTPAGEOFF]
Lloh4:
	adrp	x22, _STATUS_READY@GOTPAGE
Lloh5:
	ldr	x22, [x22, _STATUS_READY@GOTPAGEOFF]
Lloh6:
	adrp	x23, _STATUS_BUSY@GOTPAGE
Lloh7:
	ldr	x23, [x23, _STATUS_BUSY@GOTPAGEOFF]
Lloh8:
	adrp	x24, _STATUS_DMA@GOTPAGE
Lloh9:
	ldr	x24, [x24, _STATUS_DMA@GOTPAGEOFF]
Lloh10:
	adrp	x25, _FD_DATA@GOTPAGE
Lloh11:
	ldr	x25, [x25, _FD_DATA@GOTPAGEOFF]
Lloh12:
	adrp	x26, _reply_buffer@GOTPAGE
Lloh13:
	ldr	x26, [x26, _reply_buffer@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_wait_til_ready
	mov	x2, x0
	tbnz	w0, #31, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w10, [x23]
	orr	w27, w8, w10
	ldr	w8, [x24]
	orr	w8, w27, w8
	and	w2, w8, w2
	bic	w8, w2, w10
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w2, w27
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_fd_inb
	ldr	x8, [x26]
	str	w0, [x8, x19, lsl #2]
	add	x19, x19, #1
	ldrsw	x8, [x20]
	cmp	x19, x8
	b.lt	LBB0_2
; %bb.6:
	mov	x2, x27
	b	LBB0_8
LBB0_7:
	mov	w19, #0
	mov	w2, #0
LBB0_8:
Lloh14:
	adrp	x8, _initialising@GOTPAGE
Lloh15:
	ldr	x8, [x8, _initialising@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _fdc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fdc@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	bl	_DPRINT
	bl	_show_floppy
LBB0_10:
Lloh22:
	adrp	x8, _FDCS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FDCS@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	mov	w19, #-1
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REPLIES,4,2                ; @MAX_REPLIES
	.comm	_STATUS_DIR,4,2                 ; @STATUS_DIR
	.comm	_STATUS_READY,4,2               ; @STATUS_READY
	.comm	_STATUS_BUSY,4,2                ; @STATUS_BUSY
	.comm	_STATUS_DMA,4,2                 ; @STATUS_DMA
	.comm	_FD_DATA,4,2                    ; @FD_DATA
	.comm	_reply_buffer,8,3               ; @reply_buffer
	.comm	_initialising,4,2               ; @initialising
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get result error. Fdc=%d Last status=%x Read bytes=%d\n"

	.comm	_fdc,4,2                        ; @fdc
	.comm	_FDCS,8,3                       ; @FDCS
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_resultjiffies,4,2              ; @resultjiffies
	.comm	_resultsize,4,2                 ; @resultsize
	.no_dead_strip	_result
.subsections_via_symbols
