	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function com20020_copy_from_card
_com20020_copy_from_card:               ## @com20020_copy_from_card
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movl	%esi, %ebx
	shll	$9, %ebx
	addl	%edx, %ebx
	movl	%ebx, %edi
	sarl	$8, %edi
	movq	_RDDATAflag@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_AUTOINCflag@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	__ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb
	movzbl	%bl, %edi
	movq	__ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb
	movq	__MEMDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_insb
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TIME                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RDDATAflag,4,2                 ## @RDDATAflag
	.comm	_AUTOINCflag,4,2                ## @AUTOINCflag
	.comm	__ADDR_HI,4,2                   ## @_ADDR_HI
	.comm	__ADDR_LO,4,2                   ## @_ADDR_LO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"insb"

	.comm	__MEMDATA,4,2                   ## @_MEMDATA
	.no_dead_strip	_com20020_copy_from_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function com20020_copy_from_card
_com20020_copy_from_card:               ; @com20020_copy_from_card
	.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
	mov	x19, x4
	mov	x20, x3
	add	w21, w2, w1, lsl #9
Lloh0:
	adrp	x8, _RDDATAflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDDATAflag@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AUTOINCflag@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTOINCflag@GOTPAGEOFF]
	orr	w8, w8, w21, asr #8
Lloh5:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh6:
	adrp	x8, __ADDR_HI@GOTPAGE
Lloh7:
	ldr	x8, [x8, __ADDR_HI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_outb
	and	w0, w21, #0xff
Lloh9:
	adrp	x8, __ADDR_LO@GOTPAGE
Lloh10:
	ldr	x8, [x8, __ADDR_LO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_outb
Lloh12:
	adrp	x8, __MEMDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, __MEMDATA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x19
	bl	_insb
	mov	x2, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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	_TIME
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDDATAflag,4,2                 ; @RDDATAflag
	.comm	_AUTOINCflag,4,2                ; @AUTOINCflag
	.comm	__ADDR_HI,4,2                   ; @_ADDR_HI
	.comm	__ADDR_LO,4,2                   ; @_ADDR_LO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"insb"

	.comm	__MEMDATA,4,2                   ; @_MEMDATA
	.no_dead_strip	_com20020_copy_from_card
.subsections_via_symbols
