	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_byte_mode6
_read_byte_mode6:                       ## @read_byte_mode6
	.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	_RdAddr@GOTPCREL(%rip), %r13
	movq	_MAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r13), %eax
	movslq	%edi, %rbx
	movq	_PAR_DATA@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outb
	movq	_PAR_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inbyte
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inbyte
	movl	%eax, %r14d
	shrl	$3, %r14d
	andl	$15, %r14d
	movq	_HNib@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r13), %edi
	movq	_MAR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	callq	_outb
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_inbyte
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_inbyte
                                        ## kill: def $eax killed $eax def $rax
	andl	$120, %eax
	leal	(%r14,%rax,2), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RdAddr,4,2                     ## @RdAddr
	.comm	_MAR,4,2                        ## @MAR
	.comm	_PAR_DATA,8,3                   ## @PAR_DATA
	.comm	_PAR_STATUS,8,3                 ## @PAR_STATUS
	.comm	_HNib,4,2                       ## @HNib
	.no_dead_strip	_read_byte_mode6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_byte_mode6
_read_byte_mode6:                       ; @read_byte_mode6
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x20, _RdAddr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RdAddr@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _MAR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MAR@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	sxtw	x22, w0
Lloh4:
	adrp	x23, _PAR_DATA@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PAR_DATA@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x22
	mov	x0, x8
	bl	_outb
Lloh6:
	adrp	x24, _PAR_STATUS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PAR_STATUS@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_inbyte
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_inbyte
	mov	x19, x0
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _HNib@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HNib@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w0, w8, w9
	ldr	x8, [x23]
	add	x1, x8, x22
	bl	_outb
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_inbyte
	ldr	x8, [x24]
	add	x0, x8, x22
	bl	_inbyte
	lsl	w8, w0, #1
	and	w0, w8, #0xf0
	bfxil	w0, w19, #3, #4
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RdAddr,4,2                     ; @RdAddr
	.comm	_MAR,4,2                        ; @MAR
	.comm	_PAR_DATA,8,3                   ; @PAR_DATA
	.comm	_PAR_STATUS,8,3                 ; @PAR_STATUS
	.comm	_HNib,4,2                       ; @HNib
	.no_dead_strip	_read_byte_mode6
.subsections_via_symbols
